Optical fiber communication method and device
By establishing an east-west backup link in the FTTR network, the problem of FTTR optical fiber being easily destroyed and causing network interruption in the home environment is solved, and the stability and sustainability of the network are achieved.
Patent Information
- Application Number
- CN202310984912.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2025-02-14
Smart Images

Figure CN119449156A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical fiber communication technology, and in particular to an optical fiber communication method and device. Background Art
[0002] FTTR (Fiber to the Room), which means that optical fiber reaches every room, is a network access technology. By using indoor optical fiber to replace the existing network cable, the characteristics of optical fiber transmission, large bandwidth, no signal attenuation, and strong anti-interference ability can be used to break through the network speed bottleneck of the original network cable.
[0003] During the promotion of the FTTR solution, considering the efficiency and success rate of optical fiber laying, the open-wire laying method is usually adopted, that is, optical fiber routing is carried out in external environments such as walls.
[0004] The open-wire laying method exposes the optical fiber to the external environment. Various careless scratches, children's curiosity, and pets' vandalism in the home may cause damage to the optical fiber, causing the risk of disconnection of the FTTR network. Before the optical fiber facilities are repaired, the network equipment cannot work normally, affecting the user's use. Summary of the invention
[0005] The present invention provides an optical fiber communication method and device, which are used to solve the defect in the prior art that the network cannot work normally when the FTTR optical fiber is damaged, and to ensure the continuous operation of the network when the optical fiber is damaged or the link between the FTTR master device and the FTTR slave device cannot communicate under other circumstances.
[0006] The present invention provides an optical fiber communication method, comprising: a master device in a fiber-to-the-room FTTR network monitors whether an optical fiber link of at least one slave device in the FTTR network is abnormal;
[0007] In the event that an abnormality occurs in the optical fiber link of a first slave device among the at least one slave device, the master device switches the communication link between the master device and the first slave device to a backup link, wherein the backup link includes a communication link between the master device and a second slave device among the at least one slave device whose optical fiber link is normal, and a communication link between the second slave device and the first slave device.
[0008] According to an optical fiber communication method provided by the present invention, before the master device switches the communication link between the master device and the first slave device to a backup link, the method further includes:
[0009] In the case that an abnormality occurs in the optical fiber link of the first slave device, the master device sends the backup routing table indication information to the slave device with a normal optical fiber link, so that the second slave device determines the communication connection with the first slave device indicated by the backup routing table indication information, and forwards the backup routing table indication information to the first slave device;
[0010] A response message from the first slave device forwarded by the second slave device is received, and the backup link is enabled.
[0011] According to an optical fiber communication method provided by the present invention, before the master device sends the backup routing table indication information to the slave device whose optical fiber link is normal, the method further includes:
[0012] Determining, according to the east-west topological connection of the FTTR network, backup routing table information of a backup link enabled after the optical fiber link between the master device and at least one slave device is disconnected;
[0013] The backup routing table information is sent to slave devices in the FTTR network.
[0014] According to a fiber optic communication method provided by the present invention, the step of determining the backup routing table information of the backup link enabled after the fiber optic link between the master device and at least one slave device is disconnected according to the east-west topological connection of the FTTR network comprises:
[0015] Instructing the slave device to search for an east-west topological connection of the slave device;
[0016] Sending the topology structure of the FTTR network and the MAC address of the device in the topology structure to the slave device, so that the slave device reports the connection information of the east-west topology connection according to the topology structure and the MAC address;
[0017] The backup routing table information of the backup link is determined according to the connection information of the east-west topological connection.
[0018] According to an optical fiber communication method provided by the present invention, in the case where an optical fiber link of a first slave device among the slave devices is abnormal, after the step of the master device switching the communication link between the master device and the first slave device to a backup link, the method further comprises:
[0019] After the optical fiber link of the first slave device is re-established, the master device switches the communication link between the master device and the first slave device back to the optical fiber link.
[0020] According to an optical fiber communication method provided by the present invention, after the optical fiber link of the first slave device is reestablished, the master device switches the communication link between the master device and the first slave device back to the optical fiber link, further comprising:
[0021] The backup routing table information is updated.
[0022] The present invention also provides an optical fiber communication device, comprising:
[0023] A monitoring module, used for a master device in a fiber-to-the-room FTTR network to monitor whether an abnormality occurs in a fiber link of at least one slave device in the FTTR network;
[0024] A communication module is used for, when an abnormality occurs in the optical fiber link of a first slave device among the slave devices, the master device switches the communication link between the master device and the first slave device to a backup link, wherein the backup link includes a communication link between the master device and a second slave device among the at least one slave device whose optical fiber link is normal, and a communication link between the second slave device and the first slave device.
[0025] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned optical fiber communication methods is implemented.
[0026] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the optical fiber communication method described above is implemented.
[0027] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the optical fiber communication method described above is implemented.
[0028] The optical fiber communication method and device provided by the present invention establish a connection between multiple slave devices connected to a master device so that each slave device has at least one slave device connected to it, thereby establishing an east-west backup link; when the link between the master device and the first slave device is disconnected, the backup link is switched to, and an indirect connection between the master device and the first slave device is achieved through a second slave device connected to the first slave device, thereby ensuring the stability of the network when the optical fiber is damaged or other means cause the link directly connected between the master device and the slave device to be disconnected. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 It is a P2MP FTTR optical fiber architecture networking diagram involved in the optical fiber communication method provided by the present invention;
[0031] Figure 2 It is a fiber link networking diagram of the PON technology involved in the fiber optic communication method provided by the present invention;
[0032] Figure 3 It is a network diagram of optical fiber links backed up by Wi-Fi involved in the optical fiber communication method provided by the present invention;
[0033] Figure 4 It is one of the flow charts of the optical fiber communication method provided by the present invention;
[0034] Figure 5 It is a networking diagram for realizing connection between multiple FTTR slave devices in a serial manner in the optical fiber communication method provided by the present invention;
[0035] Figure 6 It is a networking diagram for realizing connection between multiple FTTR slave devices in a mesh manner in the optical fiber communication method provided by the present invention;
[0036] Figure 7 This is the second flow chart of the optical fiber communication method provided by the present invention;
[0037] Figure 8 It is a structural schematic diagram of the optical fiber communication device provided by the present invention;
[0038] Fig. 9 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] First, the following contents are introduced:
[0041] FTTR is the best solution for indoor network communication in the future, and it has inherent advantages in providing larger high-quality bandwidth; optical fiber has the characteristics of light weight, green, signal transmission is not affected by electromagnetic interference, and has a long life cycle. In the development and evolution of optical fiber communication networks over the past few decades, it has gradually evolved from backbone transmission to access transmission and then to indoor short-distance transmission. The development of communication technology is an important aspect. On the other hand, thanks to the improvement of optical fiber deployment engineering capabilities, the deployment of optical fiber in tunnels, hanging poles and other outdoor areas has gradually matured.
[0042] However, when it comes to indoor deployment, the rapid deployment of optical fibers also faces new challenges and new opportunities. In traditional home networks, there was no requirement to pre-deploy optical fibers in newly built houses. Therefore, the application of FTTR technology first faces the problem of optical fiber deployment. Currently, three typical optical fiber deployment solutions are used in the application of FTTR technology:
[0043] One is concealed pipe laying, which involves laying optical fiber through existing communication pipelines (Ethernet cables, coaxial cables, etc.) by adding or replacing them. This requires construction workers to have skilled and sophisticated laying skills, and has additional requirements for the rigidity design of the optical fiber.
[0044] The second is the laying of open cables, which uses invisible optical cables and optical fiber fixtures to route optical fibers in external environments such as walls. Compared with concealed tube wiring, this reduces the difficulty of project deployment, but brings risks of aesthetics and optical fiber exposure.
[0045] The third is the photovoltaic composite laying, which is to increase the laying of optical fiber in the existing high-voltage pipelines. Since high-voltage fibers generally use thick copper wires, laying optical fiber is more difficult than laying in concealed pipes.
[0046] In the actual application process, users often find it difficult to spare much time to wait for engineers to lay optical fibers. Therefore, improving the efficiency and success rate of optical fiber laying is the key to the widespread promotion of FTTR solutions. At present, the laying of open wires in already built houses has the advantages of high efficiency and high success rate, and is widely used first.
[0047] However, laying open cables also brings obvious risks. Optical fibers exposed to the environment are more likely to be damaged, resulting in network connectivity being affected. Figure 1 The typical P2MP FTTR (Point-to-Multipoint, point-to-multipoint fiber-to-the-home network architecture) fiber facility structure is shown to illustrate the impact of fiber damage on the network:
[0048] The FTTR network connection uses a P2MP optical fiber topology to connect multiple FTTR slave devices to the FTTR master device. The FTTR master device is generally a network terminal of the optical access network, and the FTTR slave devices are generally placed in each room and connected to other consumer terminals (such as mobile phones, tablets, etc.) through Wi-Fi. Currently, the FTTR master device and the FTTR slave device are connected through optical fiber. Once the connected optical fiber is damaged, the FTTR master and FTTR slave cannot communicate through the optical fiber, and the FTTR is forced to leave the network.
[0049] On this basis, in order to solve the problem of network maintenance after the optical fiber is damaged, we can refer to the current PON optical fiber communication technology (Passive Optical Network, a transmission technology based on optical fiber). Figure 2 The fiber link backup scheme of current access optical network PON technology is described.
[0050] Specifically, in order to avoid network interruptions caused by port disconnection and optical fiber damage, the current PON network adopts a dual physical device backup solution. Two sets of identical physical connections are used in the connection between the central office and the terminal. When a problem occurs in one of the sets, it is discovered through software, and then the other set of physical equipment is started to achieve the purpose of backup and improve the robustness of the overall system operation.
[0051] In addition, if Figure 3 As shown, there is also a method of using Wi-Fi backup to solve the problem of network interruption when the optical fiber is damaged. Specifically, when the FTTR master and FTTR slave are directly connected via Wi-Fi, this solution is generally applicable to scenarios where the FTTR master and FTTR slave are close to each other. Then, the FTTR solution itself is to solve the coverage problem by adding wireless access nodes in the room, so the FTTR solution is generally applied in scenarios where the Wi-Fi connection between the FTTR master and FTTR slave is poor.
[0052] However, the use of dual-link backup requires the design of two different fiber optic cabling solutions, which greatly increases the complexity and cost of fiber optic cabling. When using Wi-Fi backup, it is difficult to establish a high-quality and effective connection because the Wi-Fi connection between the FTTR master device and the FTTR slave device is generally poor, making it difficult to ensure the robustness of communication.
[0053] Combine the following Figure 4-Figure 7 Describe the optical fiber communication method of the present invention, such as Figure 4 Said, including:
[0054] Step 401, a master device in a fiber-to-the-room FTTR network monitors whether an abnormality occurs in a fiber link of at least one slave device in the FTTR network;
[0055] The FTTR network includes a FTTR master device and multiple FTTR slave devices respectively connected to the FTTR master device to form a north-south communication link.
[0056] In addition, multiple FTTR slave devices in the FTTR network of the present application are directly or indirectly connected to form an east-west communication link.
[0057] Optionally, the connection between multiple FTTR slave devices may be a Wi-Fi connection and / or a wired connection.
[0058] Among them, wired connection is connected through optical fiber or Ethernet cable. It should be noted that when using wired connection, it is necessary to establish the corresponding east-west physical connection through engineering deployment between FTTR slave devices. Since the north-south wired deployment and the east-west wired deployment belong to different physical wiring, the wired connection method also reduces the risk of physical damage to the line.
[0059] Optionally, the rooms can be interconnected through serial or wired mesh.
[0060] For example, Figure 5 A scheme for connecting multiple FTTR slave devices in serial mode is presented. Figure 5 The left figure shows the traditional north-south backup link method. Figure 5 The right figure shows that an east-west backup communication link is formed between two adjacent FTTR slave devices through Wi-Fi connection or wired connection.
[0061] For example, Figure 6 A solution for connecting multiple FTTR slave devices in a mesh manner is demonstrated. Multiple east-west backup communication links are established between rooms in wired and wireless backup modes, where two adjacent slave devices are connected, and two non-adjacent slave devices can also be connected by wire or Wi-Fi to form a backup communication link.
[0062] On this basis, monitor whether there is any abnormality in the optical fiber link between each master device and slave device in the FTTR network to determine whether the backup link needs to be enabled.
[0063] Optionally, in real-time network communication, the FTTR master device monitors the network connection status with each slave device in real time. If the network connection between the master device and at least one slave device is disconnected, the communication link between the master device and the corresponding slave device becomes abnormal.
[0064] Step 402, when an abnormality occurs in the optical fiber link of the first slave device among the slave devices, the master device switches the communication link between the master device and the first slave device to a backup link, and the backup link includes a communication link between the master device and a second slave device among the at least one slave device whose optical fiber link is normal, and a communication link between the second slave device and the first slave device.
[0065] The first slave device indicates an FTTR slave device having an abnormal link with the FTTR master device.
[0066] In the event that an abnormality occurs in a link between a master device and at least one slave device, the link between the master device and the abnormal first slave device is switched from a north-south main communication link to an east-west backup communication link.
[0067] The second slave device refers to a slave device having a normal link with the FTTR master device and directly or indirectly connected to the first slave device.
[0068] Optionally, the FTTR master device finds at least one second slave device directly connected to the first slave device among the second slave devices.
[0069] The backup link includes a communication link from the master device to the second slave device, and from the second slave device to the first slave device, and an indirect connection between the master device and the first slave device is achieved through the second slave device.
[0070] It should be noted that since there may be multiple second slave devices directly connected to the first slave device, and the second slave device is also connected to slave devices other than the first slave device, there are multiple backup links from the autonomous device to the first slave device through the second slave device. It is necessary to determine the backup link to be switched among the multiple backup links as the backup link actually used.
[0071] Optionally, a second slave device is selected from at least one second slave device directly connected to the first slave device to be used as a backup link to be switched. After determining the backup link to be switched based on the selected second slave device, the main link is switched to the backup link to achieve the connection between the main device and the first slave device.
[0072] Optionally, a second slave device used by the backup link to be switched is determined from a plurality of second slave devices connected to the first slave device according to a preset selection condition, wherein the preset selection condition is determined according to actual networking conditions.
[0073] by Figure 6 As an example of the east-west backup solution shown in FIG. 1 , in a feasible implementation mode, when Figure 6After the link between the slave device in room 1 and the master device is disconnected, the master device finds the slave device in room 2 connected to the slave device in room 1, and determines the slave device in room 2 as the second slave device directly connected to the first slave device.
[0074] At the same time, the slave device in room 2 is also directly connected to the slave devices in room 3 and room 4 respectively. On this basis, the backup links between the master device and the slave device in room 1 include the first link: the master device to the slave device in room 2, the slave device in room 2 to the slave device in room 1; the second link: the master device to the slave device in room 3, the slave device in room 3 to the slave device in room 2, the slave device in room 2 to the slave device in room 1; the third link: the master device to the slave device in room 4, the slave device in room 4 to the slave device in room 2, the slave device in room 2 to the slave device in room 1.
[0075] On this basis, the preset selection condition may be the shortest link, so that the master device can be connected to the first slave device more conveniently and simply, and thus the backup link to be switched is the first backup link.
[0076] In another possible implementation, when Figure 6 After the link between the slave device in room 2 and the master device is disconnected, the master device finds the slave devices in rooms 1, 3 and 4 connected to the slave device in room 1, and determines the slave devices in rooms 1, 3 and 4 as second slave devices directly connected to the first slave device.
[0077] On this basis, the backup links between the master device and the slave device in room 2 include the first link: the master device to the slave device in room 1, and the slave device in room 1 to the slave device in room 2; the second link: the master device to the slave device in room 3, and the slave device in room 3 to the slave device in room 2; the third link: the master device to the slave device in room 4, and the slave device in room 4 to the slave device in room 2.
[0078] Since the master device and the first slave device in the three backup links are connected through only one second slave device, on this basis, the preset selection condition can be the best signal, and the backup link with the best signal after connection is selected from the three backup links as the backup link to be switched.
[0079] The present invention establishes a connection between multiple slave devices connected to a master device so that each slave device has at least one slave device connected to it, thereby establishing an east-west backup link; when the link between the master device and the first slave device is disconnected, the backup link is switched to, and an indirect connection between the master device and the first slave device is achieved through a second slave device connected to the first slave device, thereby ensuring the stability of the network when the optical fiber is damaged or other means cause the direct connection link between the master device and the slave device to be disconnected.
[0080] In the optical fiber communication method of the present invention, before the master device switches the communication link between the master device and the first slave device to a backup link, the method further includes:
[0081] In the case that an abnormality occurs in the optical fiber link of the first slave device, the master device sends the backup routing table indication information to the slave device with a normal optical fiber link, so that the second slave device determines the communication connection with the first slave device indicated by the backup routing table indication information, and forwards the backup routing table indication information to the first slave device;
[0082] The backup routing table records the corresponding backup links.
[0083] When an abnormality occurs to the optical fiber link of the first slave device, it is necessary to start the backup routing table and switch the main link to the backup link according to the backup routing table.
[0084] Specifically, the master device sends the backup routing table indication information to each slave device with a normal optical fiber link, so that the slave device determines the backup link to be switched according to the backup routing table indication information and the pre-stored backup routing table, and forwards the message information to the target device according to the backup link to be switched, so as to realize the switching of the communication link.
[0085] The second slave device forwards the backup routing table indication information to the first slave device so as to establish a backup connection between the first slave device and the master device.
[0086] It should be noted that the slave device has a pre-stored backup routing table built in. After the first slave device is disconnected from the master device, it is connected to the second slave device through a backup link according to the pre-stored backup routing table.
[0087] Optionally, the first slave device selects a backup link to be switched from a pre-stored backup routing table according to a preset priority condition, and establishes a backup link connection. The preset priority condition is determined according to actual networking conditions.
[0088] Specifically, the backup routing table pre-stored in the slave device includes backup routing tables corresponding to all backup links. After the first slave device is disconnected from the master device, the backup routing table with the highest priority is selected and started according to the preset priority condition to establish the corresponding backup link connection.
[0089] A response message from the first slave device forwarded by the second slave device is received, and the backup link is enabled.
[0090] After receiving the backup routing table indication information forwarded by the second slave device, the first slave device replies a response message to the master device through the second slave device.
[0091] After receiving the message responded by the first slave device forwarded by the second slave device, the master device establishes a corresponding network connection, thereby entering the backup link working state and realizing the activation of the backup link.
[0092] When the backup link is enabled, the messages of the master device are forwarded to the first slave device through the second slave device, and the messages of the first slave device are forwarded to the master device.
[0093] It should be noted that after the backup link is enabled, the routing table of the backup link needs to be re-established to update the backup routing table.
[0094] The present invention enables a backup link after the connection between the first slave device and the master device is disconnected, and forwards message information from the master device to the first slave device and message information from the first slave device to the master device through a second slave device connected to the first slave device, thereby enabling the startup of the backup link and ensuring the stability of the network; and after enabling the backup link, the routing table of the backup link is updated for use at the next startup.
[0095] In the optical fiber communication method of the present invention,
[0096] Before the master device sends the backup routing table indication information to the slave device whose optical fiber link is normal, the method further includes:
[0097] Determining, according to the east-west topological connection of the FTTR network, backup routing table information of a backup link enabled after the optical fiber link between the master device and at least one slave device is disconnected;
[0098] The backup routing table is pre-generated.
[0099] Specifically, the master device determines, based on the east-west topological connection and corresponding connection status of the network, a corresponding backup link when at least one slave device is disconnected from the master device, as a backup link enabled after the optical fiber link is disconnected, and generates a corresponding backup routing table based on the backup routing table information determined by the backup link, and numbers the backup routing table.
[0100] Optionally, in the determined backup link, the communication between the first slave device and the master device is forwarded only once.
[0101] For example, Figure 6 Taking the east-west backup scheme shown as an example, when determining the backup link, it is assumed that the slave device in room 1 is disconnected from the master device, and there are three connection links between the master device and the slave device. Only the first connection link, that is, the link from the master device to the slave device in room 2, and the link from the slave device in room 2 to the slave device in room 1, is used as the backup link, and the backup routing table information of the backup link is determined, and the backup routing table is numbered.
[0102] Assuming that the device in room 2 is disconnected from the main device, the three connection links from the main device to the slave device in room 1, 3 or 4, and from the slave device in room 1, 3 or 4 to the slave device in room 2 are all used as backup links, and the backup routing table information of the three backup links is determined, and the three backup routing tables are numbered respectively.
[0103] Optionally, when there is only one backup link corresponding to one forwarding, the connection link between the first slave device and the master device realized by two forwardings is also used as a backup link.
[0104] For example, Figure 6 Taking the east-west backup scheme shown as an example, assuming that the slave device in room 1 is disconnected from the master device, the connection link from the master device to the slave device in room 3, the slave device in room 3 to the slave device in room 2, and the slave device in room 2 to the slave device in room 1 is also used as a backup link, so that when the connection between the slave device in room 2 and the slave device in room 1 and the master device is disconnected, the slave devices in rooms 1 and 2 can be indirectly connected to the master device through the slave device in room 3.
[0105] Optionally, this embodiment does not limit the manner of numbering the backup routing tables.
[0106] In a feasible implementation manner, all backup routing tables may be numbered sequentially according to the order in which the topology is discovered.
[0107] In other feasible implementations, the backup routing tables may also be numbered in device-discovery order. For example, assuming that the disconnected slave device is device AP, the corresponding backup routing tables are numbered in sequence as AP1, AP2, and AP3.
[0108] Optionally, when determining the number of the backup link corresponding to any slave device being disconnected, a correspondence between the order in which the backup routing tables are enabled and the backup routing table numbers is established according to preset priority conditions, so that when the slave device is disconnected from the master device, the number corresponding to the backup routing table with the highest priority can be quickly determined, and the corresponding backup routing table can be enabled or issued according to the number.
[0109] The master device sends the backup routing table information to the slave devices in the FTTR network.
[0110] Determine the backup link corresponding to each slave device when it is disconnected, and determine the backup routing table information corresponding to the backup link according to the backup link.
[0111] After determining the backup routing table information, the master device sends the corresponding backup routing table to the slave device, which is pre-stored in the slave device so as to be used when the backup routing table is enabled after the slave device connection is actually disconnected.
[0112] Optionally, the slave device may store the backup routing table in order of priority based on a preset priority condition.
[0113] The preset priority condition may be one or more of optimal signal, optimal connection or user experience, that is, the preset priority condition of the backup link may be based solely on signal strength or a combination of signal strength and user experience.
[0114] Optionally, the backup link with the highest current priority corresponding to each slave device is obtained by calculating parameters such as the negotiation rate, interference level and signal strength of each backup link according to preset rules.
[0115] Optionally, different slave devices may have different corresponding preset priority conditions.
[0116] The present invention determines the backup link corresponding to each slave device when the FTTR master device is normally connected to the slave device, generates a backup routing table accordingly, sends the backup routing table to each slave device, and stores it in the slave device, so that when the slave device is disconnected from the master device, the slave device directly executes according to the backup routing table to switch the main link to the backup link.
[0117] In the optical fiber communication method of the present invention, the step of determining the backup routing table information of the backup link enabled after the optical fiber link between the master device and at least one slave device is disconnected according to the east-west topological connection of the FTTR network comprises:
[0118] Instructing the slave device to search for an east-west topological connection of the slave device;
[0119] Specifically, Figure 7 As shown, after the FTTR network of the optical fiber networking is initialized (i.e., the P2MP optical link is established), the FTTR optical fiber path network is established. On this basis, the FTTR main device can choose the appropriate time to start the topology discovery process of the backup link, determine the backup link, and establish a backup routing table.
[0120] During the topology discovery process, the FTTR master device instructs the FTTR slave device to search for all possible links for east-west connections.
[0121] Optionally, possible links to be searched include but are not limited to Ethernet links, optical fiber links, and Wi-Fi links.
[0122] Sending the topology structure of the FTTR network and the MAC address of the device in the topology structure to the slave device, so that the slave device reports the connection information of the east-west topology connection according to the topology structure and the MAC address;
[0123] During the topology discovery process, the FTTR master device sends the topology of the entire FTTR network and the MAC addresses of all devices in the topology to all FTTR slave devices connected to the master device to ensure that the FTTR slave devices can find other slave devices in the same network based on the unique MAC identification address when searching for backup links, while avoiding missing other slave devices in the FTTR network during the search for backup links.
[0124] After completing the east-west backup link search, each slave device in the FTTR network reports all possible backup links to the master device.
[0125] Optionally, when the connection mode in the backup link is ETH connection (Ethernet connection), the reported information includes the local MAC address, the target MAC address and the ETH connection speed, etc.
[0126] Optionally, when the connection mode in the backup link is a Wi-Fi connection, the reported information includes a Wi-Fi channel, a corresponding RSSI (Received Signal Strength Indicator), and the like.
[0127] The backup routing table information of the backup link is determined according to the connection information of the east-west topological connection.
[0128] The connection information of the east-west topology connection includes all backup links searched by slave devices in the FTTR network and all related information of the backup links reported by the slave devices.
[0129] The backup routing table information of the backup link is determined according to the connection information, and a backup routing table is generated for each backup link.
[0130] The present invention sends the MAC address of each device in the FTTR network to the slave device in the FTTR network through the master device, so that the slave device searches for other devices in the network according to the MAC address, and reports all feasible backup links to the FTTR master device for generating a backup routing table; the unique MAC address is used to avoid missing possible backup links during the search.
[0131] In the optical fiber communication method of the present invention, when an abnormality occurs in the optical fiber link of the first slave device among the slave devices, after the step of the master device switching the communication link between the master device and the first slave device to a backup link, the method further includes:
[0132] After the optical fiber link of the first slave device is re-established, the master device switches the communication link between the master device and the first slave device back to the optical fiber link.
[0133] After the connection between the first slave device and the master device is disconnected and switched to the backup link, the master device monitors the disconnected optical fiber link in real time.
[0134] After the FTTR master device finds that the disconnected first slave device re-applies for registration and goes online on the optical fiber link, the damaged optical fiber link has been repaired and the master link can be used normally.
[0135] The FTTR master device allows the optical fiber link to register and go online, and switches from the backup link to the main link, that is, the optical fiber link, so that the first slave device and the master device can resume communication through the optical fiber link.
[0136] It should be noted that after the FTTR network switches back to the fiber optic link, the corresponding routing table needs to be modified to ensure that no duplicate links appear in the FTTR network.
[0137] The present invention ensures fast and stable operation of the network by switching from the standby link to the optical fiber link after the optical fiber link is restored, and at the same time avoids the occurrence of duplicate links in the FTTR network and affecting the normal operation of the network by modifying the routing table.
[0138] In the optical fiber communication method of the present invention, after the step of the master device switching the communication link between the master device and the first slave device back to the optical fiber link after the optical fiber link of the first slave device is reestablished, the method further comprises:
[0139] The backup routing table information is updated.
[0140] like Figure 7 As shown, after the fiber link is restored, the topology discovery process is triggered again, that is, the FTTR master device instructs the FTTR slave device to search for the backup link, update the backup link, and generate the corresponding backup routing table, which is sent to the FTTR slave device for storage so that it can be used the next time the connection between the FTTR slave device and the master device is interrupted, thereby realizing the update of the backup routing table information.
[0141] Furthermore, when a new FTTR slave device joins the FTTR network, the topology discovery process will be triggered, the backup link will be updated, and the corresponding backup routing table will be generated and sent to the FTTR slave device for storage, so that the backup routing table stored in each FTTR slave device contains the backup routing table corresponding to the newly added slave device, and then when the newly added slave device is disconnected from the main device, it can smoothly switch to the backup link.
[0142] The present invention searches and generates a backup routing table again after switching to the optical fiber link and when a new slave device joins the FTTR network, and sends it to all slave devices in the FTTR network, so that when the connection between the FTTR slave device and the master device is interrupted, it can still quickly and accurately switch to the backup link, thereby ensuring the stability of the network.
[0143] The optical fiber communication device provided by the present invention is described below. The optical fiber communication device described below and the optical fiber communication method described above can be referred to each other.
[0144] like Figure 8 As shown, the optical fiber communication device includes a monitoring module 801 and a communication module 802.
[0145] Monitoring module 801, used for a master device in a fiber-to-the-room FTTR network to monitor whether an abnormality occurs in a fiber link of at least one slave device in the FTTR network;
[0146] The FTTR network includes a FTTR master device and multiple FTTR slave devices respectively connected to the FTTR master device to form a north-south communication link.
[0147] In addition, multiple FTTR slave devices in the FTTR network of the present application are directly or indirectly connected to form an east-west communication link.
[0148] Optionally, the connection between multiple FTTR slave devices may be a Wi-Fi connection and / or a wired connection.
[0149] Among them, wired connection is connected through optical fiber or Ethernet cable. It should be noted that when using wired connection, it is necessary to establish the corresponding east-west physical connection through engineering deployment between FTTR slave devices. Since the north-south wired deployment and the east-west wired deployment belong to different physical wiring, the wired connection method also reduces the risk of physical damage to the line.
[0150] Optionally, the rooms can be interconnected through serial or wired mesh.
[0151] For example, Figure 5 A scheme for connecting multiple FTTR slave devices in serial mode is presented. Figure 5 The left figure shows the traditional north-south backup link method. Figure 5 The right figure shows that an east-west backup communication link is formed between two adjacent FTTR slave devices through Wi-Fi connection or wired connection.
[0152] For example, Figure 6 A solution for connecting multiple FTTR slave devices in a mesh manner is demonstrated. Multiple east-west backup communication links are established between rooms in wired and wireless backup modes, where two adjacent slave devices are connected, and two non-adjacent slave devices can also be connected by wire or Wi-Fi to form a backup communication link.
[0153] On this basis, monitor whether there is any abnormality in the optical fiber link between each master device and slave device in the FTTR network to determine whether the backup link needs to be enabled.
[0154] Optionally, in real-time network communication, the FTTR master device monitors the network connection status with each slave device in real time. If the network connection between the master device and the slave device is disconnected, an abnormality occurs in the link between the master device and the slave device.
[0155] The communication module 802 is used for, when an abnormality occurs in the optical fiber link of the first slave device among the at least one slave device, the master device switches the communication link between the master device and the first slave device to a backup link, wherein the backup link includes a communication link between the master device and a second slave device among the at least one slave device whose optical fiber link is normal, and a communication link between the second slave device and the first slave device.
[0156] The first slave device indicates an FTTR slave device having an abnormal link with the FTTR master device.
[0157] In the event that an abnormality occurs in a link between a master device and at least one slave device, the link between the master device and the abnormal first slave device is switched from a north-south main communication link to an east-west backup communication link.
[0158] The second slave device represents a slave device whose link with the FTTR master device is normal.
[0159] Specifically, the FTTR master device finds at least one second slave device directly connected to the first slave device among the second slave devices.
[0160] The backup link is a communication link from the master device to the second slave device and from the second slave device to the first slave device. The master device and the first slave device are indirectly connected through the second slave device.
[0161] It should be noted that since there may be multiple second slave devices directly connected to the first slave device, and the second slave device is also connected to slave devices other than the first slave device, there are multiple backup links from the autonomous device to the first slave device through the second slave device. It is necessary to determine the backup link to be switched among the multiple backup links as the backup link actually used.
[0162] Optionally, a second slave device is selected from at least one second slave device directly connected to the first slave device to be used as a backup link to be switched. After determining the backup link to be switched based on the selected second slave device, the main link is switched to the backup link to achieve the connection between the main device and the first slave device.
[0163] Optionally, a second slave device used by the backup link to be switched is determined from a plurality of second slave devices connected to the first slave device according to a preset selection condition, wherein the preset selection condition is determined according to actual networking conditions.
[0164] by Figure 6 As an example of the east-west backup solution shown in FIG. 1 , in a feasible implementation mode, when Figure 6 After the link between the slave device in room 1 and the master device is disconnected, the master device finds the slave device in room 2 connected to the slave device in room 1, and determines the slave device in room 2 as the second slave device directly connected to the first slave device.
[0165] At the same time, the slave device in room 2 is also directly connected to the slave devices in room 3 and room 4 respectively. On this basis, the backup links between the master device and the slave device in room 1 include the first link: the master device to the slave device in room 2, the slave device in room 2 to the slave device in room 1; the second link: the master device to the slave device in room 3, the slave device in room 3 to the slave device in room 2, the slave device in room 2 to the slave device in room 1; the third link: the master device to the slave device in room 4, the slave device in room 4 to the slave device in room 2, the slave device in room 2 to the slave device in room 1.
[0166] On this basis, the preset selection condition may be the shortest link, so that the master device can be connected to the first slave device more conveniently and simply, and thus the backup link to be switched is the first backup link.
[0167] In another possible implementation, when Figure 6 After the link between the slave device in room 2 and the master device is disconnected, the master device finds the slave devices in rooms 1, 3 and 4 connected to the slave device in room 1, and determines the slave devices in rooms 1, 3 and 4 as second slave devices directly connected to the first slave device.
[0168] On this basis, the backup links between the master device and the slave device in room 2 include the first link: the master device to the slave device in room 1, and the slave device in room 1 to the slave device in room 2; the second link: the master device to the slave device in room 3, and the slave device in room 3 to the slave device in room 2; the third link: the master device to the slave device in room 4, and the slave device in room 4 to the slave device in room 2.
[0169] Since the master device and the first slave device in the three backup links are connected through only one second slave device, on this basis, the preset selection condition can be the best signal, and the backup link with the best signal after connection is selected from the three backup links as the backup link to be switched.
[0170] The present invention establishes a connection between multiple slave devices connected to a master device so that each slave device has at least one slave device connected to it, thereby establishing an east-west backup link; when the link between the master device and the first slave device is disconnected, the backup link is switched to, and an indirect connection between the master device and the first slave device is achieved through a second slave device connected to the first slave device, thereby ensuring the stability of the network when the optical fiber is damaged or other means cause the direct connection link between the master device and the slave device to be disconnected.
[0171] In the optical fiber communication device of the present invention, the communication module 802 is also used for:
[0172] In the case that an abnormality occurs in the optical fiber link of the first slave device, the master device sends the backup routing table indication information to the slave device with a normal optical fiber link, so that the second slave device determines the communication connection with the first slave device indicated by the backup routing table indication information, and forwards the backup routing table indication information to the first slave device;
[0173] A response message from the first slave device forwarded by the second slave device is received, and the backup link is enabled.
[0174] The optical fiber communication device of the present invention further includes a determination module, which is used to:
[0175] Determining, according to the east-west topological connection of the FTTR network, backup routing table information of a backup link enabled after the optical fiber link between the master device and at least one slave device is disconnected;
[0176] The backup routing table information is sent to slave devices in the FTTR network.
[0177] In the optical fiber communication device of the present invention, the determination module is also used for:
[0178] Instructing the slave device to search for an east-west topological connection of the slave device;
[0179] Sending the topology structure of the FTTR network and the MAC address of the device in the topology structure to the slave device, so that the slave device reports the connection information of the east-west topology connection according to the topology structure and the MAC address;
[0180] The backup routing table information of the backup link is determined according to the connection information of the east-west topological connection.
[0181] In the optical fiber communication device of the present invention, the communication module 802 is also used for:
[0182] After the optical fiber link of the first slave device is re-established, the master device switches the communication link between the master device and the first slave device back to the optical fiber link.
[0183] In the optical fiber communication device of the present invention, the determination module is also used for:
[0184] The backup routing table information is updated.
[0185] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9 As shown, the electronic device may include: a processor 910, a communication interface 920, a memory 930 and a communication bus 940, wherein the processor 910, the communication interface 920 and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call the logic instructions in the memory 930 to execute the optical fiber communication method, which includes: a master device in a fiber-to-the-room FTTR network monitors whether an optical fiber link of at least one slave device in the FTTR network is abnormal; in the case that an optical fiber link of a first slave device in the at least one slave device is abnormal, the master device switches the communication link between the master device and the first slave device to a backup link, wherein the backup link includes a communication link between the master device and a second slave device in the at least one slave device whose optical fiber link is normal, and a communication link between the second slave device and the first slave device.
[0186] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0187] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the optical fiber communication method provided by the above methods, which includes: a master device in a fiber-to-the-room FTTR network monitors whether an abnormality occurs in the optical fiber link of at least one slave device in the FTTR network; when an abnormality occurs in the optical fiber link of a first slave device among the at least one slave device, the master device switches the communication link between the master device and the first slave device to a backup link, and the backup link includes a communication link between the master device and a second slave device among the at least one slave device whose optical fiber link is normal, and a communication link between the second slave device and the first slave device.
[0188] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the optical fiber communication method provided by the above-mentioned methods, the method comprising: a master device in a fiber-to-the-room FTTR network monitors whether an abnormality occurs in the optical fiber link of at least one slave device in the FTTR network; in the event that an abnormality occurs in the optical fiber link of a first slave device among the at least one slave device, the master device switches the communication link between the master device and the first slave device to a backup link, the backup link comprising a communication link between the master device and a second slave device among the at least one slave device whose optical fiber link is normal, and a communication link between the second slave device and the first slave device.
[0189] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0190] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0191] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An optical fiber communication method, characterized in that: include: A master device in a fiber-to-the-room FTTR network monitors whether an abnormality occurs in a fiber link of at least one slave device in the FTTR network; In the event that an abnormality occurs in the optical fiber link of a first slave device among the at least one slave device, the master device switches the communication link between the master device and the first slave device to a backup link, wherein the backup link includes a communication link between the master device and a second slave device among the at least one slave device whose optical fiber link is normal, and a communication link between the second slave device and the first slave device.
2. The optical fiber communication method according to claim 1, characterized in that: Before the step of the master device switching the communication link between the master device and the first slave device to a backup link, the method further includes: In the case that an abnormality occurs in the optical fiber link of the first slave device, the master device sends the backup routing table indication information to the slave device with a normal optical fiber link, so that the second slave device determines the communication connection with the first slave device indicated by the backup routing table indication information, and forwards the backup routing table indication information to the first slave device; A response message from the first slave device forwarded by the second slave device is received, and the backup link is enabled.
3. The optical fiber communication method according to claim 2, characterized in that: Before the master device sends the backup routing table indication information to the slave device whose optical fiber link is normal, the method further includes: Determining, according to the east-west topological connection of the FTTR network, backup routing table information of a backup link enabled after the optical fiber link between the master device and at least one slave device is disconnected; The backup routing table information is sent to slave devices in the FTTR network.
4. The optical fiber communication method according to claim 3, characterized in that: The step of determining the backup routing table information of the backup link enabled after the optical fiber link between the master device and at least one slave device is disconnected according to the east-west topological connection of the FTTR network comprises: Instructing the slave device to search for an east-west topological connection of the slave device; Sending the topology structure of the FTTR network and the MAC address of the device in the topology structure to the slave device, so that the slave device reports the connection information of the east-west topology connection according to the topology structure and the MAC address; The backup routing table information of the backup link is determined according to the connection information of the east-west topological connection.
5. The optical fiber communication method according to claim 3 or 4, characterized in that: After the step of the master device switching the communication link between the master device and the first slave device to a backup link when an abnormality occurs in the optical fiber link of the first slave device among the slave devices, the method further includes: After the optical fiber link of the first slave device is re-established, the master device switches the communication link between the master device and the first slave device back to the optical fiber link.
6. The optical fiber communication method according to claim 5, characterized in that: After the step of the master device switching the communication link between the master device and the first slave device back to the optical fiber link after the optical fiber link of the first slave device is reestablished, the method further comprises: The backup routing table information is updated.
7. An optical fiber communication device, characterized in that: include: A monitoring module, used for a master device in a fiber-to-the-room FTTR network to monitor whether an abnormality occurs in a fiber link of at least one slave device in the FTTR network; A communication module is used for, when an abnormality occurs in the optical fiber link of a first slave device among the slave devices, the master device switches the communication link between the master device and the first slave device to a backup link, wherein the backup link includes a communication link between the master device and a second slave device among the at least one slave device whose optical fiber link is normal, and a communication link between the second slave device and the first slave device.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the optical fiber communication method according to any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the optical fiber communication method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the optical fiber communication method according to any one of claims 1 to 6 is implemented.