Link switching method and system, electronic device, and storage medium

MYPI2025004035A0Undetermined Publication Date: 2025-01-24RUIJIE NETWORKS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
MYPI2025004035
Authority / Receiving Office
MY · MY
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-07-24
Filing Date
2024-04-22
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In the Ethernet aggregation passive network architecture, when the link fails, you need to wait for the faulty link to recover, which affects the data transmission efficiency.

Method used

The light signal is divided into two links by the optical division, and when the first link fails, the failure state of the second link is detected. If there is no failure, switch to the second link for data transmission.

Benefits of technology

The timely switching to the backup link when the link failure is achieved, the waiting time for waiting for the recovery of the fault link, and the improvement of data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure PI2025004035_DRAWING_001
    Figure PI2025004035_DRAWING_001
  • Figure PI2025004035_DRAWING_002
    Figure PI2025004035_DRAWING_002
  • Figure PI2025004035_DRAWING_003
    Figure PI2025004035_DRAWING_003
Patent Text Reader

Abstract

Embodiments of this application provide a link switching method and system, an electronic device, and a storage medium. The method includes: determining a failure status of a first link, wherein the first link is a link between an optical splitter and a first transmit end; in response to that it is determined that the first link fails, determining a failure status of a second link, wherein the second link is a link between the optical splitter and a second transmit end; and in response to that the second link does not fail, switching data transmission from the first link to the second link.
Need to check novelty before this filing date? Find Prior Art

Description

Link switching method, system, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on July 24, 2023, with application number 202310916016.6 and application name “A link switching method, device and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of communication technology, and in particular to a link switching method, system, electronic device, and storage medium. Background Art

[0004] In order to provide enterprise parks with higher bandwidth and easier operation and maintenance of "Gigabit" or "10 Gigabit" networks, the Ethernet converged passive network architecture was introduced.

[0005] Figure 1 is a schematic diagram of an Ethernet converged passive network architecture provided by related technology. As shown in Figure 1, the use of transparent converged passive devices enables access devices in the local area network (such as indoor switches) to access the core switch through the transparent converged passive devices, thereby realizing the data transmission from the core switch to the access device.

[0006] Summary of the Invention

[0007] Each exemplary embodiment of the present application provides a link switching method, system, electronic device, and storage medium.

[0008] In a first aspect, the present application provides a link switching method, the method comprising:

[0009] Determining a fault state of a first link, wherein the first link is a link between an optical splitter and a first transmitting end;

[0010] In the case where it is determined that the first link fails, determining a failure state of a second link, wherein the second link is a link between the optical splitter and the second transmitting end; and

[0011] If it is determined that the second link has not failed, switching from the first link to the second link for data transmission;

[0012] The optical splitter is configured to receive a first optical signal sent by a multiplexer, branch the first optical signal into a first branched optical signal and a second branched optical signal, and send the first branched optical signal to the first transmitting end and send the second branched optical signal to the second transmitting end. The first branched optical signal is used to detect the fault status of the first link, and the second branched optical signal is used to detect the fault status of the second link.

[0013] The fault status here mainly indicates whether the first link and the second link have failed. Through the above method, if the first link fails and the second link is not faulty, data transmission is switched from the first link to the second link, eliminating the problem of having to wait for the faulty link to recover, which affects data transmission efficiency.

[0014] In a possible implementation, determining the fault status of the first link includes: obtaining an interval duration during which the first branch optical signal is not transmitted in the first link, and determining that a fault occurs in the first link when the interval duration exceeds a preset duration.

[0015] In one possible implementation, determining the fault status of the first link includes: obtaining a third optical power corresponding to the first branch optical signal transmitted by the first link, and determining that the first link has failed if the third optical power is not within a third preset optical power range.

[0016] In a possible implementation, determining the failure status of the first link includes:

[0017] detecting a duration of an interval in which the first branched optical signal is not transmitted in the first link;

[0018] When the interval duration does not exceed a preset duration, obtaining a third optical power corresponding to the first branched optical signal transmitted by the first link; and

[0019] When the third optical power is not within a third preset optical power range, it is determined that a failure occurs in the first link.

[0020] Through the above method, the link fault state is judged based on the interval duration and the first optical power to determine whether the preset condition is met. The double judgment is adopted to improve the accuracy of the judgment result.

[0021] The embodiments of the present application provide multiple ways to determine the fault status of the first link, so that the method for determining the fault of the first link can be applied to more business scenarios.

[0022] In a possible implementation, before determining the fault state of the first link, the method further includes: controlling the sending function and receiving function of the first sending end to be turned on, and controlling the sending function to be turned off and the receiving function to be turned on of the second sending end.

[0023] Through the above method, the first transmitting end is in normal working state and the second transmitting end is in standby state, ensuring that the second transmitting end can timely monitor the information sent by the first transmitting end and switch from the first link to the second link according to the notification of the first transmitting end.

[0024] In a possible implementation, determining whether a fault occurs on the second link includes: acquiring a fault status of the second link detected by the second transmitting end.

[0025] By using the above method, the fault status of the second link can be acquired in time, so that switching from the first link to the second link is performed only when it is determined that the second link can communicate normally.

[0026] In a possible implementation, switching from the first link to the second link for data transmission includes: controlling the first transmitting end to turn off a transmitting function and turn on a receiving function, and controlling the second transmitting end to turn on a transmitting function and a receiving function.

[0027] Through the above method, in the Ethernet converged passive network architecture, after link switching is performed, the second transmitting end is in a normal working state and the first transmitting end is in a standby state, thereby ensuring normal communication of the second link.

[0028] In a second aspect, the present application provides a link switching device, the device comprising:

[0029] A first determining module is configured to determine a fault state of a first link, wherein the first link is a link between the optical splitter and the first transmitting end;

[0030] A second determining module is configured to determine a fault state of a second link when it is determined that the first link fails, wherein the second link is a link between the optical splitter and the second transmitting end; and

[0031] a switching module, configured to switch from the first link to the second link for data transmission when it is determined that the second link has not failed;

[0032] The optical splitter is configured to receive a first optical signal sent by a multiplexer, branch the first optical signal into a first branched optical signal and a second branched optical signal, and send the first branched optical signal to the first transmitting end and send the second branched optical signal to the second transmitting end. The first branched optical signal is used to detect the fault status of the first link, and the second branched optical signal is used to detect the fault status of the second link.

[0033] The fault status here is mainly used to indicate whether a fault occurs on the first link and the second link.

[0034] In a possible implementation, the first determining module is configured to obtain an interval duration during which the first branch optical signal is not transmitted in the first link, and determine that a failure occurs in the first link when the interval duration exceeds a preset duration.

[0035] In a possible implementation, the first determination module is configured to obtain a third optical power corresponding to the first branch optical signal transmitted by the first link, and determine that a failure occurs in the first link if the third optical power is not within a third preset optical power range.

[0036] In one possible implementation, the first determination module is configured to obtain an interval duration in which the first branch optical signal is not transmitted in the first link; when the interval duration does not exceed a preset duration, obtain a third optical power corresponding to the first branch optical signal transmitted by the first link; and when the third optical power is not within a third preset optical power range, determine that a fault has occurred in the first link.

[0037] In a possible implementation, the first determination module is further configured to, before determining the fault state of the first link, control the sending function and receiving function of the first sending end to be turned on, and control the sending function to be turned off and the receiving function to be turned on of the second sending end.

[0038] In a possible implementation, the second determining module is configured to obtain a fault status of the second link detected by the second transmitting end.

[0039] In a possible implementation, the switching module is configured to control the first transmitting end to turn off a transmitting function and turn on a receiving function, and to control the second transmitting end to turn on a transmitting function and a receiving function.

[0040] In a third aspect, the present application provides a communication device, including a multiplexer and an optical splitter; wherein,

[0041] The multiplexer is configured to receive a third optical signal sent by the first receiving end and a fourth optical signal sent by the second receiving end, couple the third optical signal and the fourth optical signal into a first optical signal, and send the first optical signal to the optical splitter;

[0042] The optical splitter is configured to receive the first optical signal, split the first optical signal into a first branched optical signal and a second branched optical signal, and send the first branched optical signal to a first transmitting end, and send the second branched optical signal to a second transmitting end; wherein the link between the first transmitting end and the optical splitter is a first link, and the link between the second transmitting end and the optical splitter is a second link, the first branched optical signal is used to perform fault status detection on the first link, and the second branched optical signal is used to perform fault status detection on the second link; and

[0043] The optical splitter is further configured to receive a fifth optical signal sent by the second transmitting end when the first link is switched to the second link for data transmission according to the failure status of the first link and the failure status of the second link.

[0044] In a possible implementation, the communication device further includes a demultiplexer;

[0045] the optical splitter configured to send the fifth optical signal to the demultiplexer; and

[0046] The demultiplexer is configured to receive the fifth optical signal, decouple the fifth optical signal into a sixth optical signal and a seventh optical signal, and send the sixth optical signal to the first receiving end and send the seventh optical signal to the second receiving end.

[0047] In a fourth aspect, the present application provides a link switching system, the system comprising an optical splitter, a multiplexer, a first transmitting end, a second transmitting end, a first receiving end, and a second receiving end;

[0048] The first receiving end is configured to send a third optical signal to the multiplexer;

[0049] The second receiving end is configured to send a fourth optical signal to the multiplexer;

[0050] the multiplexer being configured to receive the third optical signal and the fourth optical signal, couple the third optical signal and the fourth optical signal into a first optical signal, and send the first optical signal to the optical splitter;

[0051] The optical splitter is configured to receive the first optical signal, split the first optical signal into a first branched optical signal and a second branched optical signal, and send the first branched optical signal to a first transmitting end and send the second branched optical signal to a second transmitting end; wherein the link between the first transmitting end and the optical splitter is a first link, and the link between the second transmitting end and the optical splitter is a second link;

[0052] The first transmitting end is configured to receive the first branched optical signal, the first branched optical signal being used to detect a fault status of the first link; and, when it is determined that the first link has failed and the second link has not failed, control the first link to switch to the second link for data transmission; and

[0053] The second transmitting end is configured to receive the second branched optical signal, where the second branched optical signal is used to detect a fault status of the second link.

[0054] In a possible implementation, the link switching system further includes a demultiplexer;

[0055] the optical splitter being configured to receive a fifth optical signal sent by the second transmitting end and send the fifth optical signal to the demultiplexer when the first link is switched to the second link for data transmission; and

[0056] The demultiplexer is configured to receive the fifth optical signal, decouple the fifth optical signal into a sixth optical signal and a seventh optical signal, and send the sixth optical signal to the first receiving end and send the seventh optical signal to the second receiving end.

[0057] In a possible implementation, before controlling the first link to switch to the second link for data transmission, the first transmitting end is configured to obtain an interval duration during which the first branch optical signal is not transmitted in the first link, and determine that a failure has occurred in the first link if the interval duration exceeds a preset duration.

[0058] In one possible implementation, before controlling the first link to switch to the second link for data transmission, the first transmitting end is configured to obtain a third optical power corresponding to the first branch optical signal transmitted by the first link, and determine that a failure has occurred in the first link if the third optical power is not within a third preset optical power range.

[0059] In one possible implementation, before controlling the first link to switch to the second link for data transmission, the first transmitting end is configured to obtain an interval duration in which the first branch optical signal is not transmitted in the first link; when the interval duration does not exceed a preset duration, obtain a third optical power corresponding to the first branch optical signal transmitted by the first link; and when the third optical power is not within a third preset optical power range, determine that a failure has occurred in the first link.

[0060] In a possible implementation, before controlling the first link to switch to the second link for data transmission, the first transmitting end is configured to enable a transmitting function and a receiving function, and the second transmitting end is configured to disable a transmitting function and enable a receiving function.

[0061] In a possible implementation, before controlling the first link to switch to the second link for data transmission, the first transmitting end is configured to obtain a fault status of the second link detected by the second transmitting end.

[0062] In a possible implementation, when it is determined that the first link fails and the second link is normal, the first transmitting end is configured to turn off the sending function and turn on the receiving function, and the second transmitting end is configured to turn on the sending function and the receiving function.

[0063] In a fifth aspect, the present application provides an electronic device, comprising:

[0064] memory for storing computer programs; and

[0065] The processor is configured to implement the above-mentioned link switching method steps when executing the computer program stored in the memory.

[0066] In a sixth aspect, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the link switching method described above are implemented.

[0067] For each of the above-mentioned aspects 1 to 6 and the technical effects that may be achieved by each of the aspects, please refer to the above-mentioned description of the technical effects that can be achieved by the first aspect or various possible solutions in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, without paying any creative work, they can also obtain drawings of other embodiments based on these drawings.

[0069] FIG1 is a schematic diagram of an Ethernet converged passive network architecture provided in an embodiment of the present application.

[0070] FIG2 is a flowchart of a link switching method provided in an embodiment of the present application.

[0071] FIG3 is a schematic diagram of an Ethernet converged passive network architecture provided by another embodiment of the present application.

[0072] FIG4 is a schematic diagram of a PON network architecture provided in an embodiment of the present application.

[0073] FIG5 is a schematic diagram of a PON network architecture provided by another embodiment of the present application.

[0074] FIG6 is a schematic diagram of an Ethernet converged passive network architecture provided in yet another embodiment of the present application.

[0075] FIG7 is a schematic diagram of a transparent convergence passive device provided in an embodiment of the present application.

[0076] FIG8 is a schematic diagram of a link switching system provided in an embodiment of the present application.

[0077] FIG9 is a schematic structural diagram of a link switching device provided in an embodiment of the present application.

[0078] FIG10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0079] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail with reference to the accompanying drawings. The specific operating methods in the method embodiments can also be applied to device embodiments or system embodiments. It should be noted that in the description of the present application, "multiple" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent two situations: A is directly connected to B and A is connected to B through C. In addition, in the description of the present application, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0080] In the related art, referring to Figure 1, core switch C1 is connected to transparent passive aggregation device B1 via link a, and core switch C1 is connected to transparent passive aggregation device B2 via link b. When link a or link b fails, the access device corresponding to the failed link will directly enter an abnormal operating state. Restoring the access device to normal operation requires waiting for the failed link to recover. Therefore, how to achieve failed link recovery in Ethernet passive aggregation network architectures becomes a major challenge.

[0081] To address the aforementioned issues, embodiments of the present application provide a link switching method for implementing link reuse between a core switch and a transparent aggregation passive device, thereby enabling timely switching from a faulty link to a normal link when a faulty link exists. The method and apparatus described in the embodiments of the present application are based on the same technical concept. Since the principles of the problems solved by the method and apparatus are similar, the embodiments of the apparatus and method can refer to each other, and any repetitions will not be repeated.

[0082] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0083] The present invention provides a link switching method that can solve the link switching problem in an Ethernet passive aggregation architecture. The method can be implemented by a first receiving end or a second receiving end. FIG2 is a flow chart of a link switching method provided by an embodiment of the present invention. As shown in FIG2, the method includes the following steps.

[0084] Step S21: Determine the fault status of the first link, wherein the first link is the link between the optical splitter and the first transmitting end. The fault status here is mainly used to indicate whether a fault occurs in the first link.

[0085] Figure 3 is a schematic diagram of another Ethernet converged passive network architecture provided by an embodiment of the present application. As shown in Figure 3, the embodiment of the present application adopts an Ethernet converged passive network architecture, which can realize data transmission based on the wavelength division multiplexing mechanism, such as coarse wavelength division multiplexing (full name in English: Coarse Wavelength Division Multiplexing, abbreviated as: CWDM). In Figure 3, the first receiving end and the second receiving end can be access switches. PCs, wireless access terminals, smart phones and other devices are connected to the transparent converged passive device through the access switch. The transparent converged passive device may include a multiplexer and a demultiplexer. The types of the multiplexer and demultiplexer can be selected according to actual needs, and can be, but are not limited to, coarse wavelength division multiplexing (English: Coarse Wavelength-Division Multiplexing, abbreviated as CWDM) devices, dense wavelength division multiplexing (English: Dense Wavelength-Division Multiplexing, abbreviated as DWDM) devices, or multi-wavelength wavelength division multiplexing (English: Multi-Wavelength Division Multiplexing, abbreviated as MWDM) devices. The first transmitting end and the second transmitting end can be core switches. The first receiving end, the second receiving end, the first transmitting end and the second transmitting end are all provided with optical modules for converting photoelectric signals.

[0086] In an embodiment of the present application, in order to further implement link switching, an optical splitter can be provided between the first transmitting end and the transparent convergence passive device, and the optical splitter can also be provided between the second transmitting end and the transparent convergence passive device. The link between the optical splitter and the first transmitting end is the first link, and the link between the optical splitter and the second transmitting end is the second link. The optical splitter is used to receive a first optical signal sent by the first receiving end or the second receiving end through the transparent convergence passive device, and to split the first optical signal into a first branched optical signal and a second branched optical signal, where the first branched optical signal corresponds to the first link, and the second branched optical signal corresponds to the second link.

[0087] The above-mentioned optical splitter can be a 1:2 optical splitter for realizing signal fission. The 1:2 optical splitter can split one input optical signal into two output optical signals in equal proportions and transmit them in two different channels.

[0088] In this embodiment, the Ethernet converged passive architecture network supports a peer-to-peer (P2P) protocol. P2P requires disabling the transport (TX) function of the second transmitter corresponding to the second link. If both the first transmitter corresponding to the first link and the second transmitter corresponding to the second link have their TX functions enabled, signal interference will occur.

[0089] After the first transmitting end and the second transmitting end are connected to the power supply, the first transmitting end needs to turn on the TX function and the receiving (full name in English: Receive, abbreviated as: RX) function of the first transmitting end optical module so that the first transmitting end is in normal working state. The first transmitting end will send a second optical signal in response to the first branch optical signal. In addition, the second transmitting end needs to turn off the TX transmitting function of the second transmitting end optical module so that the second transmitting end cannot send signals, but keep the RX function of the second transmitting end turned on so that the second transmitting end can receive optical signals. At this time, the second transmitting end is in standby state. In the standby state, the second transmitting end can only receive signals but cannot send signals. The second transmitting end can receive the link switching message sent by the first transmitting end in a timely manner, so that the switching between the first link and the second link can be successfully completed.

[0090] In order to ensure that switching between different links can be performed, the receiving end needs to detect the fault status of the first link, and then determine whether the first link needs to be switched based on the fault status of the first link.

[0091] In one possible implementation, to detect a failure in the first link, the receiving end may detect the duration of an interval during which the second optical signal is not transmitted on the first link at a preset period and determine whether the interval is greater than the preset duration. If the interval is greater than the preset duration, the receiving end may determine that the second optical signal has been lost and thus determine that the first link has failed. If the interval is less than or equal to the preset duration, the receiving end may determine that the second optical signal has been received normally and thus determine that the first link has not failed and is in a normal state.

[0092] In one possible implementation, the receiving end detects the first optical power corresponding to the second optical signal transmitted by the first transmitting end in the first link, and determines whether the first optical power is within the first preset optical power range. When the first optical power is within the first preset optical power range, it means that the second optical signal corresponding to the first optical power is in a normal state, and the first link is determined to be normal. When the first optical power is not within the first preset optical power range, it is determined that the first link is faulty. If the first optical power is less than the minimum optical power in the first preset optical power range, it means that the second optical signal is weak and there is a risk of communication service interruption. If the first optical power is greater than the maximum optical power in the first preset optical power range, it means that the second optical signal is too strong, which will shorten the service life of the optical module.

[0093] In one possible implementation, the receiving end detects the interval duration during which the second optical signal is not transmitted in the first link according to a preset period, and determines whether the interval duration is greater than the preset duration. When the interval duration does not exceed the preset duration, the receiving end determines that the optical signal has been received. The receiving end further determines the first optical power corresponding to the second optical signal in the first link, and determines whether the first optical power is within the first preset optical power range. When the first optical power is within the first preset optical power, it means that the second optical signal corresponding to the first optical power is normal, and the first link is determined to be normal. When the first optical power is not within the first preset optical power range, it means that the second optical signal corresponding to the first optical power is abnormal, and the first link is determined to be faulty. If the first optical power is less than the minimum optical power in the first preset optical power range, it means that the second optical signal strength is weak, and there is a risk of communication service interruption. If the first optical power is greater than the maximum optical power in the first preset optical power range, it means that the second optical signal is too strong, which will shorten the service life of the optical module.

[0094] The receiving end can select any one of the three methods described above to determine the detection result based on the actual scenario, which can adapt to more actual scenarios, provide convenience for the receiving end to obtain the detection result, and ensure the accuracy of the obtained detection result. It should be noted that there may be other ways to detect the working status of the first link. The above three methods are only an example and do not serve as a limitation on the implementation methods of this application. Obvious variations made by those skilled in the art based on the above methods are all within the scope of protection of this application.

[0095] Step S22: If it is determined that the first link has failed, determine the failure status of the second link. The second link is the link between the optical splitter and the second transmitting end. The failure status here is mainly used to indicate whether the second link has failed.

[0096] The Ethernet converged passive architecture network supports the point-to-point protocol. In order to avoid signal interference, the TX function of the second transmitting end will be turned off, but the RX function of the second transmitting end will be kept in the on state. The second transmitting end can receive the second branch optical signal sent by the receiving end in real time. In order to ensure that the first link can successfully complete the switch to the second link and enable the second link to communicate normally after the switch, after the receiving end determines that the first link has failed, the second transmitting end determines the second optical power corresponding to the second branch optical signal, and then detects whether the second optical power is within the second preset optical power range. When the second optical power is within the second preset optical power range, it can be determined that the second link is normal. When the second optical power is not within the second preset optical power range, it can be determined that the second link is abnormal. The first transmitting end will read the result of whether the second link is normal or abnormal detected by the second transmitting end in real time and send the detection result to the receiving end. It should be noted that the second transmitting end can also determine the status of the second link by detecting the interval length during which the second branch optical signal is not transmitted in the second link. Obvious variations made by those skilled in the art based on the above method are all within the scope of protection of this application.

[0097] After determining the status of the second link based on the above-described method, when the second link is in a normal state, the receiving end will notify the first transmitting end to switch from the first link to the second link, and the second link will be used for data transmission.

[0098] Step S23: When it is determined that the second link has not failed, data transmission is switched from the first link to the second link.

[0099] In one possible implementation, the TX function of the first transmitting end is turned off and the RX function of the first transmitting end is turned on, and the TX function and RX function of the second transmitting end are turned on, so that switching from the first link to the second link can be achieved, and then normal transmission of data in the second link can be achieved.

[0100] Based on the above method, the Ethernet convergence passive architecture network realizes link multiplexing through an optical splitter, that is, the first link is used as the main link for communication, and the second link is used as the slave link. By monitoring the fault status of the first link and the second link, when it is monitored that the first link has a fault and the second link is in normal status, it is possible to directly switch from the first link to the second link for data transmission, thereby solving the problem that the related technology needs to passively wait for the faulty link to recover, thereby affecting the data transmission efficiency.

[0101] In one possible implementation, in order to achieve efficient transmission of data to be transmitted in the second link, a full-power bandwidth can be configured for the second link. The full-power bandwidth is the maximum bandwidth that can be enabled for the second link. Referring to Figure 3, for example, if the maximum bandwidth between the first transmitter and the receiver is 8G, after switching from the first link to the second link, a maximum bandwidth of 8G can be enabled for the second link. Of course, in actual application scenarios, if the maximum bandwidth cannot be allocated to the second link, a bandwidth smaller than the maximum bandwidth can also be allocated to the second link.

[0102] In a possible implementation, full bandwidth power may be configured for the second link, thereby achieving high-bandwidth transmission in an Ethernet converged passive network architecture.

[0103] In addition, the Ethernet converged passive network architecture in the embodiment of the present application adopts a wavelength division multiplexing mechanism, so compared with the PON network architecture in the traditional network architecture, the bandwidth allocated by the core device to the access device will not be reduced. In the PON network architecture, the bandwidth allocated by the core device to the access device will be reduced.

[0104] Figure 4 is a schematic diagram of a PON network architecture provided by the relevant technology. As shown in Figure 4, the PON network architecture is composed of an optical line terminal (full name in English: Optical Line Terminal, abbreviated as: OLT), an optical network unit (full name in English: Optical Network Unit, abbreviated as: ONU), and an optical distribution network (full name in English: Optical Distribution Network, abbreviated as: ODN, also known as a splitter). In order to ensure the reliability of the PON network architecture, two technical solutions, PON type single-home and PON type dual-home, are introduced. As shown in Figure 4, when there is only one OLT in the PON network, the network connection method at this time is called a PON single-home connection. When there are two OLTs in the PON network, the network connection method at this time is called a PON dual-home connection.

[0105] In a PON single-homing scenario, when the PON single-homing connection is a PON type B single-homing connection, there are two links between one optical splitter and one OLT. When the PON single-homing connection is a PON type C single-homing connection, two optical splitters are connected to one OLT, each optical splitter has one link to one OLT, and two links exist between the two optical splitters and one OLT. In a PON dual-homing scenario, when the PON dual-homing connection is a PON type B dual-homing connection, one optical splitter is connected to two OLTs, and two links exist between the optical splitter and the two OLTs. When the PON dual-homing connection is a PON type C dual-homing connection, two optical splitters are connected to their respective OLTs, and two links also exist between the two optical splitters and the two OLTs.

[0106] When any one of the two links between the optical splitter and the OLT described above fails, the communication system will automatically switch from the failed link to the other link between the optical splitter and the OLT. When the failed link is restored, the communication system can automatically switch to the restored failed link.

[0107] Referring to the PON type B single-homed connection in Figure 4, there are links 1 and 2 between the optical splitter and the OLT. When link 1 fails, the communication system automatically switches from link 1 to link 2. When link 1 recovers from the failure, the communication system automatically switches from link 2 to link 1.

[0108] Based on the above description, although the PON network architecture can switch to another link after a link failure, the PON network architecture is based on the time division multiplexing (TDM) mechanism to achieve data transmission. Since the TDM mechanism distinguishes the signals transmitted sequentially on the same channel in time, for example, based on the TDM mechanism, 1 second is divided into two 0.5 seconds. Data A is not transmitted in the first 0.5 second, and data A is transmitted in the second 0.5 second. Data A actually occupies only 0.5 seconds of the data transmission time in this 1 second.

[0109] The bit rate is the amount of data transmitted divided by the transmission time. If the network's maximum broadband rate is 2048 bits / s and data A contains 1024 bits, then theoretically, data A requires 0.5 seconds to transmit, corresponding to a bit rate of 2048 bits / s. In practice, due to the TDM mechanism, data A takes 0.5 seconds to transmit and then needs to wait another 0.5 seconds, reducing the corresponding bit rate to 1024 bits / s. In other words, while data A can theoretically transmit 2048 bits in one second, due to the limitations of the TDM mechanism, only 1024 bits can be transmitted in one second, resulting in a reduction in bandwidth.

[0110] Figure 5 is a schematic diagram of another PON network architecture provided by related art. In Figure 5, the total bandwidth from the OLT device to an optical splitter is 10G. Two ONUs are connected to the optical splitter, and each ONU is allocated an average bandwidth of 5G. Therefore, the devices connected to each ONU will share the 5G bandwidth. The more ONUs connected to an optical splitter, the smaller the average bandwidth allocated to each ONU will be.

[0111] In summary, the Ethernet converged passive network architecture based on the embodiment of the present application can also solve the bandwidth convergence problem, thereby achieving high-bandwidth data transmission.

[0112] An embodiment of the present application further provides a link switching method, which can solve the link switching problem under an Ethernet passive aggregation architecture. The method can be implemented by a first transmitting end.

[0113] Referring to Figure 3 , the first transmitter's TX function and RX function are both enabled. The second transmitter is in standby mode, meaning its TX function is disabled and its RX function is enabled. The first and second transmitters synchronize information in real time, allowing the second transmitter to monitor information from the first transmitter in real time, and the first transmitter to receive messages from the second transmitter in real time.

[0114] Based on the method provided in an embodiment of the present application, the first transmitting end determines the fault status of the first link, where the first link is the link between the optical splitter and the first transmitting end. When it is determined that the first link has failed, the fault status of the second link is determined, where the second link is the link between the optical splitter and the second transmitting end. The fault status here is mainly used to indicate whether the first link and the second link have failed. When it is determined that the second link has not failed, data transmission is switched from the first link to the second link. The optical splitter is configured to receive a first optical signal sent by a transparent convergence passive device, and the transparent convergence passive device includes a multiplexer. The optical splitter branches the first optical signal into a first branch optical signal and a second branch optical signal, and sends the first branch optical signal to the first transmitting end and sends the second branch optical signal to the second transmitting end, the first branch optical signal is used to detect the fault status of the first link, and the second branch optical signal is used to detect the fault status of the second link. The multiplexer is configured to receive a third optical signal sent by the first receiving end and a fourth optical signal sent by the second receiving end, couple the third optical signal and the fourth optical signal into a first optical signal, and send the first optical signal to the optical splitter.

[0115] In a possible implementation, the first transmitting end may detect the interval duration during which the first branch optical signal is not transmitted in the first link according to a preset period, and determine that the first link is faulty when the interval duration is greater than the preset duration.

[0116] In one possible implementation, the first transmitting end detects a third optical power corresponding to the first branched optical signal in the first link, and determines whether the third optical power is within a third preset optical power range. If the third optical power is not within the third preset optical power range, the first link is determined to be faulty.

[0117] In one possible implementation, the first transmitting end detects the duration of an interval during which the first branch optical signal is not transmitted in the first link according to a preset period, and determines whether the interval duration is greater than the preset duration. If the interval duration does not exceed the preset duration, the first transmitting end determines that the first branch optical signal has been received. The first transmitting end further determines a third optical power corresponding to the first branch optical signal and determines whether the third optical power is within a third preset optical power range. If the third optical power is not within the third preset optical power range, the first link is determined to be faulty.

[0118] In the event of a failure in the first link, the first transmitting end must ensure that the switching is performed when the second link is in a normal state. The first transmitting end will obtain the detection result of the second link status from the second transmitting end. When the second transmitting end receives the second branch optical signal sent by the receiving end, it will determine the second optical power corresponding to the second branch optical signal, and then determine whether the second optical power is within the second preset optical power range. When the optical power is within the second preset optical power range, the detection result of the second link is determined to be normal. When the optical power is not within the second preset optical power range, the detection result of the second link is determined to be abnormal. It should be noted that the second transmitting end can also determine the status of the second link by detecting the interval duration during which the second branch optical signal is not transmitted in the second link. Obvious variations made by those skilled in the art on the basis of the above methods are all within the scope of protection of this application.

[0119] When the first transmitter determines that the second link is normal based on the detection results obtained from the second transmitter, it switches from the first link to the second link. Specifically, the TX function of the first transmitter is disabled and the RX function is enabled, and the TX and RX functions of the second transmitter are both enabled. This method solves the problem of data transmission efficiency being affected by waiting for the faulty link to recover. After switching from the first link to the second link, the full power bandwidth can be configured for the second link, achieving high-bandwidth data transmission in an Ethernet converged passive architecture network.

[0120] An embodiment of the present application further provides a link switching method that can solve the link switching problem in an Ethernet passive aggregation architecture. The method can be implemented by servers corresponding to the first and second transmitting ends. Figure 6 is a schematic diagram of another Ethernet aggregation passive network architecture provided by the present application. As shown in Figure 6, the first and second transmitting ends are managed by a server, where the first link corresponding to the first transmitting end is the primary link, and the second link corresponding to the second transmitting end is the backup link.

[0121] Based on the method provided in an embodiment of the present application, the server determines the fault status of the first link, where the first link is the link between the optical splitter and the first transmitting end. When it is determined that the first link has failed, the fault status of the second link is determined, where the second link is the link between the optical splitter and the second transmitting end. The fault status here is mainly used to indicate whether the first link and the second link have failed. When it is determined that the second link has not failed, data transmission is switched from the first link to the second link. The optical splitter is configured to receive a first optical signal sent by a transparent convergence passive device, and the transparent convergence passive device includes a multiplexer. The optical splitter branches the first optical signal into a first branch optical signal and a second branch optical signal, and sends the first branch optical signal to the first transmitting end and sends the second branch optical signal to the second transmitting end, the first branch optical signal is used to detect the fault status of the first link, and the second branch optical signal is used to detect the fault status of the second link. The multiplexer is configured to receive a third optical signal sent by the first receiving end and a fourth optical signal sent by the second receiving end, couple the third optical signal and the fourth optical signal into a first optical signal, and send the first optical signal to the optical splitter.

[0122] In one possible implementation, to confirm the failure status of the first link, the server may directly obtain the duration of an interval during which the first branch optical signal is not transmitted in the first link. When the duration of the interval exceeds a preset duration, it indicates that the server has not detected the first branch optical signal in the first link and determines that the first link is faulty.

[0123] In one possible implementation, the server can directly obtain the third optical power corresponding to the first branch optical signal in the first link. When the third optical power is not within the third preset optical power range, it is determined that the first link is faulty. If the third optical power is greater than the maximum optical power of the third preset optical power, it means that the intensity of the first branch optical signal is too strong, which will shorten the service life of the optical module. If the third optical power is less than the minimum optical power of the third preset optical power, it means that the intensity of the first branch optical signal is too weak, and there is a risk of blocking the communication service.

[0124] In one possible implementation, the server can obtain the interval duration in which the first branch optical signal is not transmitted in the first link. When the server determines that the interval duration does not exceed the preset duration, it further obtains the third optical power corresponding to the first branch optical signal. When the third optical power is not within the third preset optical power range, it determines that the first link is faulty.

[0125] Since the TX function of the second transmitting end is turned off and the RX function is turned on, the second transmitting end can receive the second branch optical signal sent by the receiving end. The second transmitting end will determine the second optical power corresponding to the second branch optical signal and detect whether the second optical power is within the second preset optical power range. If the second optical power is within the second preset optical power range, it is determined that the second link is normal. If the second optical power is not within the second preset optical power range, it is determined that the second link is abnormal. It should be noted that the second transmitting end can also determine the status of the second link by detecting the interval duration during which the second branch optical signal is not transmitted in the second link. Obvious variations made by those skilled in the art on the basis of the above method are all within the scope of protection of this application.

[0126] When the server determines that the first link is faulty and the second link is normal, it switches from the first link to the second link. Specifically, the TX function of the first transmitter is disabled and the RX function is enabled, and the TX and RX functions of the second transmitter are both enabled, thus resolving the issue of data transmission efficiency being affected by waiting for the faulty link to recover.

[0127] In a possible implementation, after the first link switches to the second link, the server will configure full power bandwidth for the second link, thereby achieving high-bandwidth data transmission in the Ethernet converged passive architecture network.

[0128] Based on the above method, a second link is deployed as a backup link in the Ethernet converged passive architecture network. When the first link (main link) fails, the first link is switched to the second link, thereby solving the problem in the related art that when a link fails in the Ethernet converged passive architecture network, it is necessary to wait for the faulty link to recover, thereby affecting data transmission efficiency.

[0129] In one possible implementation, the optical splitter can be integrated into a transparent convergence passive device. FIG7 is a schematic diagram of a transparent convergence passive device provided by the present application. As shown in FIG7 , the optical splitter in the transparent convergence passive device is connected to a multiplexer / demultiplexer.

[0130] The transparent convergence passive device includes a multiplexer and an optical splitter, with the multiplexer connected to the optical splitter. The multiplexer receives the third optical signal transmitted by the first receiving end and the fourth optical signal transmitted by the second receiving end, couples the three optical signals and the fourth optical signal into a first optical signal, and transmits the first optical signal to the optical splitter. After receiving the first optical signal, the optical splitter splits the first optical signal into a first branched optical signal and a second branched optical signal, transmits the first branched optical signal to the first transmitting end, and transmits the second branched optical signal to the second transmitting end.

[0131] It should be noted that the link between the first transmitter and the transparent convergence passive device is called the first link, and the link between the second transmitter and the transparent convergence passive device is called the second link. If the first link fails and the second link is normal, data transmission will switch from the first link to the second link. At this time, the TX function of the first transmitter is disabled and the RX function is enabled, while the TX and RX functions of the second transmitter are enabled. The second transmitter transmits the fifth optical signal, and the optical splitter receives the fifth optical signal sent by the second transmitter.

[0132] The transparent convergence passive device also includes a demultiplexer. When the first link switches to the second link, the second transmitting end transmits the fifth optical signal to the optical splitter, which then sends the fifth optical signal to the demultiplexer. Upon receiving the fifth optical signal, the demultiplexer decouples the fifth optical signal into a sixth optical signal and a seventh optical signal, sending the sixth optical signal to the first receiving end and the seventh optical signal to the second receiving end.

[0133] Based on the above description of the transparent convergence passive device, an optical splitter is integrated into the transparent convergence passive device to form a first link and a second link. This allows switching to the second link when the first link fails, thus resolving the problem of data transmission efficiency being affected by waiting for the failed link to recover.

[0134] In one possible implementation, the transparent convergence passive device further includes a demultiplexer. The optical splitter sends the fifth optical signal to the demultiplexer. The demultiplexer receives the fifth optical signal, decouples the fifth optical signal into a sixth optical signal and a seventh optical signal, and sends the sixth optical signal to the first receiving end and the seventh optical signal to the second receiving end.

[0135] The present application also provides a link switching system. Figure 8 is a schematic diagram of a link switching system provided by the present application. As shown in Figure 8, the link switching system includes a transparent convergence passive device, a first transmitting end, a second transmitting end, a first receiving end, and a second receiving end. The transparent convergence passive device is provided with an optical splitter and a multiplexer. The first transmitting end and the second transmitting end are respectively connected to the optical splitter in the transparent convergence passive device, and the first receiving end and the second receiving end are respectively connected to the multiplexer in the transparent convergence passive device.

[0136] The multiplexer in the transparent convergence passive device receives a third optical signal transmitted by the first receiving end and a fourth optical signal transmitted by the second receiving end, and couples the third optical signal and the fourth optical signal into a first optical signal. The optical splitter in the transparent convergence passive device splits the first optical signal into a first branched optical signal and a second branched optical signal, then sends the first branched optical signal to the first transmitting end and sends the second branched optical signal to the second transmitting end, so that the first transmitting end receives the first branched optical signal and the second transmitting end receives the second branched optical signal.

[0137] In a possible implementation, the first transmitting end is further configured to, when it is determined that the first link fails and the second link does not fail, control the first link to switch to the second link for data transmission.

[0138] In one possible implementation, the first transmitting end is configured to determine the status of the first link. When the interval duration during which the first branch optical signal is not transmitted in the first link exceeds a preset duration, a first link failure is determined. In one possible implementation, when the detection result is that the third optical power corresponding to the first branch optical signal transmitted in the first link is not within a third preset optical power range, a first link failure is determined. In one possible implementation, when the interval duration during which the first branch optical signal is not transmitted in the first link does not exceed a preset duration, it is further detected whether the third optical power corresponding to the first branch optical signal is within the first preset optical power range. If the third optical power corresponding to the first branch optical signal is not within the third preset optical power range, a first link failure is determined.

[0139] In order to successfully complete link switching when the first link fails and the second link is normal, the first transmitting end also needs to obtain the detection result of the second branch optical signal detected by the second transmitting end. The second transmitting end will determine the second optical power corresponding to the second branch optical signal. When the second optical power is within the second preset optical power range, the second link is determined to be normal. When the optical power is not within the second preset optical power range, the second link is determined to be abnormal. The first transmitting end can directly obtain the detection result of whether the second link is normal or abnormal from the second transmitting end.

[0140] When the first transmitting end determines that the first link is faulty and the second link is normal, the first link is switched to the second link, thereby solving the problem of waiting for the faulty link to recover and affecting data transmission efficiency.

[0141] In a possible implementation, before controlling the first link to switch to the second link for data transmission, the first transmitting end is configured to enable a transmitting function and a receiving function, and the second transmitting end is configured to disable a transmitting function and enable a receiving function.

[0142] In one possible implementation, when it is determined that the first link fails and the second link is normal, the first transmitting end is configured to turn off the sending function and turn on the receiving function, and the second transmitting end is configured to turn on the sending function and the receiving function to achieve switching from the first link to the second link.

[0143] In a possible implementation, when the first link switches to the second link for data transmission, the second transmitting end sends the fifth optical signal, and the optical splitter in the transparent convergence passive device receives the fifth optical signal sent by the second transmitting end.

[0144] In one possible implementation, the transparent convergence passive device further includes a demultiplexer. The optical splitter sends the fifth optical signal to the demultiplexer. The demultiplexer receives the fifth optical signal, decouples the fifth optical signal into a sixth optical signal and a seventh optical signal, and sends the sixth optical signal to the first receiving end and the seventh optical signal to the second receiving end.

[0145] It should be noted that the transparent convergence passive device with an optical splitter in the above link switching system can be split into an independent optical splitter and an independent multiplexing / demultiplexing device to work.

[0146] Based on the above description, when it is determined that the first link is faulty and the second link is normal, data transmission is switched from the first link to the second link, and the optical splitter is integrated into the transparent convergence passive device, thereby solving the problem of waiting for the faulty link to recover and affecting data transmission efficiency.

[0147] Based on the same inventive concept, an embodiment of the present application further provides a link switching device, which is used to implement the functions of a link switching method. Referring to FIG. 9 , the device includes:

[0148] The first determining module 901 is configured to determine a fault status of a first link, where the first link is a link between an optical splitter and a first transmitting end.

[0149] The second determining module 902 is configured to determine whether a second link fails when it is determined that the first link fails, wherein the second link is a link between the optical splitter and the second transmitting end.

[0150] The switching module 903 is configured to switch from the first link to the second link for data transmission when it is determined that the second link has not failed.

[0151] The optical splitter is configured to receive a first optical signal sent by the multiplexer, split the first optical signal into a first branched optical signal and a second branched optical signal, and send the first branched optical signal to the first transmitting end and the second branched optical signal to the second transmitting end. The first branched optical signal is used to detect a fault status of the first link, and the second branched optical signal is used to detect a fault status of the second link. The multiplexer is configured to receive a third optical signal sent by the first receiving end and a fourth optical signal sent by the second receiving end, couple the third optical signal and the fourth optical signal into a first optical signal, and send the first optical signal to the optical splitter.

[0152] In a possible implementation, the first determining module 901 is configured to obtain an interval duration during which the first branch optical signal is not transmitted in the first link, and determine that the first link is faulty if the interval duration exceeds a preset duration.

[0153] In one possible design, the first determination module 901 is configured to obtain a third optical power corresponding to the first branch optical signal transmitted by the first link, and determine that the first link is faulty if the third optical power is not within a third preset optical power range.

[0154] In one possible design, the first determination module 901 is configured to detect the interval duration in which the first branch optical signal is not transmitted in the first link, and when the interval duration does not exceed a preset duration, obtain the third optical power corresponding to the first branch optical signal transmitted by the first link, and when the third optical power is not within a third preset optical power range, determine that the first link is faulty.

[0155] In one possible design, the second determination module 902 is configured to obtain the fault status of the second link monitored by the second transmitting end.

[0156] In one possible design, the switching module 903 is configured to control the first transmitting end to turn off the sending function and turn on the receiving function, and to control the second transmitting end to turn on the sending function and the receiving function.

[0157] In one possible design, the first determination module 901 is further configured to control the sending function and receiving function of the first sending end to be turned on, and control the sending function to be turned off and the receiving function to be turned on of the second sending end before determining whether a failure occurs in the first link.

[0158] Based on the same inventive concept, an embodiment of the present application provides a communication device, which can be a transparent convergence passive device. Referring to FIG7 , the transparent convergence passive device includes a multiplexer and an optical splitter, wherein the optical splitter is connected to the multiplexer.

[0159] The multiplexer is configured to receive a third optical signal sent by the first receiving end and a fourth optical signal sent by the second receiving end, couple the third optical signal and the fourth optical signal into a first optical signal, and send the first optical signal to the optical splitter.

[0160] The optical splitter is configured to receive the first optical signal, split the first optical signal into a first branched optical signal and a second branched optical signal, and send the first branched optical signal to a first transmitting end and send the second branched optical signal to a second transmitting end. The link between the first transmitting end and the optical splitter is a first link, and the link between the second transmitting end and the optical splitter is a second link. The first branched optical signal is used to detect a fault status of the first link, and the second branched optical signal is used to detect a fault status of the second link.

[0161] The optical splitter is further configured to receive a fifth optical signal sent by the second transmitting end when the first link is switched to the second link for data transmission according to the failure status of the first link and the failure status of the second link.

[0162] In one possible design, a communications device also includes a demultiplexer.

[0163] The optical splitter is configured to send the fifth optical signal to the demultiplexer.

[0164] The demultiplexer is configured to receive the fifth optical signal, decouple the fifth optical signal into a sixth optical signal and a seventh optical signal, and send the sixth optical signal to the first receiving end and send the seventh optical signal to the second receiving end.

[0165] Based on the same inventive concept, the present application provides a link switching system that can implement the functions of the aforementioned link switching method. Referring to Figure 8 , the system includes: a communication device, a first transmitting end, a second transmitting end, a first receiving end, and a second receiving end. The communication device can be a transparent convergence passive device that includes an optical splitter and a multiplexer.

[0166] The first receiving end is configured to send a third optical signal to a multiplexer in the transparent aggregation passive device.

[0167] The second receiving end is configured to send a fourth optical signal to a multiplexer in the transparent aggregation passive device.

[0168] The multiplexer in the transparent aggregation passive device is configured to receive the third optical signal and the fourth optical signal, and couple the third optical signal and the fourth optical signal into a first optical signal.

[0169] The optical splitter in the transparent convergence passive device is configured to split the first optical signal into a first branched optical signal and a second branched optical signal, send the first branched optical signal to the first transmitting end, and send the second branched optical signal to the second transmitting end; wherein, the link between the first transmitting end and the optical splitter is the first link, and the link between the second transmitting end and the optical splitter is the second link.

[0170] The first transmitting end is configured to receive the first branch optical signal, where the first branch optical signal is used to detect the fault status of the first link; and when it is determined that the first link fails and the second link does not fail, control the first link to switch to the second link for data transmission.

[0171] The second transmitting end is configured to receive the second branched optical signal, which is used to detect a fault state of the second link; and to send a fifth optical signal when the first link switches to the second link for data transmission.

[0172] In one possible implementation, the transparent convergence passive device is further provided with a demultiplexer. When the first link switches to the second link for data transmission, the optical splitter in the communication device is further configured to receive a fifth optical signal sent by the second transmitting end and send the fifth optical signal to the demultiplexer. The demultiplexer is configured to receive the fifth optical signal, decouple the fifth optical signal into a sixth optical signal and a seventh optical signal, and send the sixth optical signal to the first receiving end and the seventh optical signal to the second receiving end.

[0173] The present application provides a link switching system that can implement the functions of the aforementioned link switching method. Referring to FIG6 , the system further includes: an optical splitter, a transparent convergence passive device, a first transmitting end, a second transmitting end, a first receiving end, and a second receiving end. The transparent convergence passive device may include a multiplexer.

[0174] The first receiving end is configured to send a third optical signal to the transparent convergence passive device.

[0175] The second receiving end is configured to send a fourth optical signal to the transparent convergence passive device.

[0176] The transparent convergence passive device is configured to receive the third optical signal and the fourth optical signal, couple the third optical signal and the fourth optical signal into a first optical signal, and send the first optical signal to the optical splitter.

[0177] The optical splitter is configured to receive the first optical signal, split the first optical signal into a first branched optical signal and a second branched optical signal, and send the first branched optical signal to a first transmitting end and send the second branched optical signal to a second transmitting end. The link between the first transmitting end and the optical splitter is a first link, and the link between the second transmitting end and the optical splitter is a second link.

[0178] The first transmitting end is configured to receive the first branch optical signal, where the first branch optical signal is used to detect the fault status of the first link; and when it is determined that the first link fails and the second link does not fail, control the first link to switch to the second link for data transmission.

[0179] The second transmitting end is configured to receive the second branched optical signal, which is used to detect a fault state of the second link; and to send a fifth optical signal when the first link switches to the second link for data transmission.

[0180] In one possible implementation, the transparent convergence passive device is further provided with a demultiplexer. When the first link switches to the second link for data transmission, the optical splitter is further configured to receive a fifth optical signal sent by the second transmitting end and send the fifth optical signal to the demultiplexer. The demultiplexer is configured to receive the fifth optical signal, decouple the fifth optical signal into a sixth optical signal and a seventh optical signal, and send the sixth optical signal to the first receiving end and the seventh optical signal to the second receiving end.

[0181] Based on the same inventive concept, an embodiment of the present application further provides an electronic device, which can implement the functions of the aforementioned link switching device. Referring to FIG10 , the electronic device includes:

[0182] At least one processor 1001, and a memory 1002 connected to at least one processor 1001. In the embodiments of the present application, the specific connection medium between the processor 1001 and the memory 1002 is not limited. FIG10 takes the connection between the processor 1001 and the memory 1002 via the bus 1000 as an example. The bus 1000 is represented by a bold line in FIG10, and the connection between other components is only for schematic illustration and is not intended to be limiting. The bus 1000 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, FIG10 only uses a bold line to represent it, but this does not mean that there is only one bus or one type of bus. Alternatively, the processor 1001 can also be called a controller, and there is no limitation on the name.

[0183] In the embodiment of the present application, the memory 1002 stores instructions that can be executed by at least one processor 1001. The at least one processor 1001 can execute a link switching method discussed above by executing the instructions stored in the memory 1002. The processor 1001 can implement the functions of each module in the apparatus shown in FIG9.

[0184] Among them, the processor 1001 is the control center of the device, which can use various interfaces and lines to connect the various parts of the entire control device, and monitor the device as a whole by running or executing instructions stored in the memory 1002 and calling data stored in the memory 1002, the various functions of the device and processing data.

[0185] In one possible design, processor 1001 may include one or more processing units. Processor 1001 may integrate an application processor and a modem processor. The application processor primarily processes the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 1001. In some embodiments, processor 1001 and memory 1002 may be implemented on the same chip. In some embodiments, they may also be implemented on separate chips.

[0186] The processor 1001 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor. The steps of a link switching method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.

[0187] Memory 1002 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. Memory 1002 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. Memory 1002 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 1002 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0188] By designing and programming the processor 1001, the code corresponding to a link switching method described in the aforementioned embodiment can be embedded in the chip, thereby enabling the chip to execute a link switching step in the embodiment shown in FIG4 during operation. Designing and programming the processor 1001 is well known to those skilled in the art and will not be described in detail here.

[0189] Based on the same inventive concept, an embodiment of the present application further provides a storage medium storing computer instructions. When the computer instructions are executed on a computer, the computer executes a link switching method discussed above.

[0190] In some possible implementations, various aspects of a link switching method provided by the present application may also be implemented in the form of a program product, which includes program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of a link switching method according to various exemplary implementations of the present application described above in this specification.

[0191] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0192] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each flow and / or box in the flow chart and / or block diagram, as well as the combination of the flow chart and / or box in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more flow charts and / or one or more boxes in the block diagram.

[0193] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0194] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0195] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.

Claims

1. A link switching method, comprising: Determine a fault state of a first link, wherein the first link is a link between an optical splitter and a first transmitting end; In the case where it is determined that the first link fails, determining a failure state of a second link, wherein the second link is a link between the optical splitter and a second transmitting end; and When it is determined that the second link has not failed, switching from the first link to the second link for data transmission; The optical splitter is configured to receive a first optical signal sent by a multiplexer, split the first optical signal into a first branched optical signal and a second branched optical signal, and send the first branched optical signal to the first transmitting end, and send the second branched optical signal to the second transmitting end, the first branched optical signal is used to perform fault status detection of the first link, and the second branched optical signal is used to perform fault status detection of the second link.

2. The method of claim 1, wherein: The determining the fault status of the first link includes: The duration of an interval in which the first branch optical signal is not transmitted in the first link is obtained, and when the duration of the interval exceeds a preset duration, it is determined that a failure occurs in the first link.

3. The method of claim 1, wherein: The determining the fault status of the first link includes: A third optical power corresponding to the first branch optical signal transmitted by the first link is obtained, and if the third optical power is not within a third preset optical power range, it is determined that a failure occurs in the first link.

4. The method of claim 1, wherein: The determining the fault status of the first link includes: Obtaining a time interval during which the first branch optical signal is not transmitted in the first link; When the interval duration does not exceed the preset duration, obtaining all the first link transmission A third optical power corresponding to the first branch optical signal; and When the third optical power is not within a third preset optical power range, it is determined that a failure occurs in the first link.

5. The method according to any one of claims 1 to 4, wherein: Before determining the fault status of the first link, the method further includes: Control the sending function and receiving function of the first sending end to be turned on, and control the sending function to be turned off and the receiving function to be turned on of the second sending end.

6. The method according to any one of claims 1 to 4, wherein: The determining whether the second link fails includes: Obtain a fault status of the second link detected by the second transmitting end.

7. The method of claim 6, wherein: The switching from the first link to the second link for data transmission includes: Control the first transmitting end to turn off the sending function and turn on the receiving function, and control the second transmitting end to turn on the sending function and the receiving function.

8. A link switching device, comprising: A first determining module is configured to determine a fault state of a first link, wherein the first link is a link between an optical splitter and a first transmitting end; A second determining module is configured to determine a fault state of a second link when it is determined that the first link fails, wherein the second link is a link between the optical splitter and a second transmitting end; and a switching module, configured to switch from the first link to the second link for data transmission when it is determined that the second link has not failed; The optical splitter is configured to receive a first optical signal sent by the multiplexer, split the first optical signal into a first branch optical signal and a second branch optical signal, and send the first branch optical signal to the first transmitting end, and send the second branch optical signal to the second transmitting end, wherein the first branch optical signal is used to detect the fault state of the first link, and the second branch optical signal is used to detect the fault state of the second link. The signal is used to detect a fault state of the second link.

9. A communication device, comprising: a multiplexer configured to receive a third optical signal sent by the first receiving end and a fourth optical signal sent by the second receiving end, couple the third optical signal and the fourth optical signal into a first optical signal, and send the first optical signal to the optical splitter; An optical splitter is configured to receive the first optical signal, split the first optical signal into a first branched optical signal and a second branched optical signal, and send the first branched optical signal to a first transmitting end, and send the second branched optical signal to a second transmitting end; wherein the link between the first transmitting end and the optical splitter is a first link, the link between the second transmitting end and the optical splitter is a second link, the first branched optical signal is used to perform fault status detection of the first link, and the second branched optical signal is used to perform fault status detection of the second link; as well as The optical splitter is further configured to receive a fifth optical signal sent by the second transmitting end when the first link is switched to the second link for data transmission according to the failure status of the first link and the failure status of the second link.

10. The communication device according to claim 9, wherein: The communication device also includes a demultiplexer; the optical splitter being configured to send the fifth optical signal to the demultiplexer; and The demultiplexer is configured to receive the fifth optical signal, decouple the fifth optical signal into a sixth optical signal and a seventh optical signal, send the sixth optical signal to the first receiving end, and send the seventh optical signal to the second receiving end.

11. A link switching system, wherein: It includes an optical splitter, a multiplexer, a first transmitting end, a second transmitting end, a first receiving end, and a second receiving end; The first receiving end is configured to send a third optical signal to the multiplexer; The second receiving end is configured to send a fourth optical signal to the multiplexer; The multiplexer is configured to receive the third optical signal and the fourth optical signal, couple the third optical signal and the fourth optical signal into a first optical signal, and send the first optical signal to the optical splitter; The optical splitter is configured to receive the first optical signal, split the first optical signal into a first branched optical signal and a second branched optical signal, and send the first branched optical signal to a first transmitting end, and send the second branched optical signal to a second transmitting end; wherein the link between the first transmitting end and the optical splitter is a first link, and the link between the second transmitting end and the optical splitter is a second link; The first transmitting end is configured to receive the first branch optical signal, the first branch optical signal is used to detect the fault status of the first link; and when it is determined that the first link fails and the second link does not fail, control the first link to switch to the second link for data transmission; and The second transmitting end is configured to receive the second branched optical signal, where the second branched optical signal is used to perform fault status detection of the second link.

12. The system of claim 11, further comprising a demultiplexer; wherein The optical splitter is configured to receive a fifth optical signal sent by the second transmitting end and send the fifth optical signal to the demultiplexer when the first link is switched to the second link for data transmission; and The demultiplexer is configured to receive the fifth optical signal, decouple the fifth optical signal into a sixth optical signal and a seventh optical signal, send the sixth optical signal to the first receiving end, and send the seventh optical signal to the second receiving end.

13. The system of claim 11, wherein: Before controlling the first link to switch to the second link for data transmission, the first transmitting end is configured to obtain an interval duration in which the first branch optical signal is not transmitted in the first link, and determine that a failure occurs in the first link when the interval duration exceeds a preset duration.

14. The system of claim 11, wherein: Before controlling the first link to switch to the second link for data transmission, the first transmitting end is configured to obtain a third optical power corresponding to the first branch optical signal transmitted by the first link, and determine that a failure occurs in the first link when the third optical power is not within a third preset optical power range.

15. The system of claim 11, wherein: Before controlling the first link to switch to the second link for data transmission, the first transmitting end is configured to obtain an interval duration in which the first branch optical signal is not transmitted in the first link; and when the interval duration does not exceed a preset duration, obtain a third optical power corresponding to the first branch optical signal transmitted by the first link; And when the third optical power is not within a third preset optical power range, it is determined that the first link fails.

16. The system of any one of claims 11 to 15, wherein: Before controlling the first link to switch to the second link for data transmission, the first transmitting end is configured to enable a transmitting function and a receiving function, and the second transmitting end is configured to disable a transmitting function and enable a receiving function.

17. The system of any one of claims 11 to 15, wherein: Before controlling the first link to switch to the second link for data transmission, the first transmitting end is configured to obtain a fault status of the second link detected by the second transmitting end.

18. The system of claim 17, wherein: When it is determined that the first link fails and the second link is normal, the first transmitting end is configured to turn off the transmitting function and turn on the receiving function, and the second transmitting end is configured to turn on the transmitting function and the receiving function.

19. An electronic device, wherein: include: Memory, used to store computer programs; and A processor, configured to implement the method steps of any one of claims 1 to 7 when executing the computer program stored in the memory.

20. A computer-readable storage medium, wherein: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 7 are implemented.