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

The method and device in passive Ethernet aggregation networks switch data transmission from a faulty link to a secondary link based on optical power and time interval detection, ensuring efficient and high-bandwidth communication.

JP2026504845AActive Publication Date: 2026-02-10ルイジェ ネットワークス カンパニーリミテッド
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2025540504
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-07-24
Filing Date
2024-04-22
Publication Date
2026-02-10
Estimated Expiration
2044-04-22

AI Technical Summary

Technical Problem

In passive Ethernet aggregation networks, link failures necessitate waiting for recovery, disrupting data transmission efficiency.

Method used

A method and device for switching data transmission from a faulty link to a secondary link by detecting faults using optical power and time intervals, ensuring timely link switching and maintaining communication efficiency.

Benefits of technology

Enables efficient data transmission by avoiding downtime due to link failures, achieving high-bandwidth communication without waiting for recovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026504845000001_ABST
    Figure 2026504845000001_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a link switching method, system, electronic device, and storage medium, the method including: determining a failure state of a first link; if it is determined that a failure has occurred in the first link, determining whether a failure has occurred in a second link; and if a failure has not occurred in the second link, switching from the first link to the second link to transmit data.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application claims priority to a Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on July 24, 2023, bearing application number 202310916016.6 and entitled "Link Switching Method, Apparatus and Electronic Device," the entire contents of which are incorporated herein by reference.

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

[0003] A passive Ethernet aggregation network architecture was introduced to provide a corporate office park with a high-bandwidth, Gigabit or 10 Gigabit network that is easy to operate and maintain.

[0004] Figure 1 is a schematic diagram of a passive Ethernet aggregation network architecture according to related technology. As shown in Figure 1, by adopting a transparent passive aggregation device, an access device (e.g., an indoor switch) in a local area network can access a core switch through the transparent passive aggregation device, and then transmit data waiting to be transmitted from the core switch to the access device. Summary of the Invention [Problem to be solved by the invention]

[0005] The exemplary embodiments of the present application provide a link switching method, a system, an electronic device, and a storage medium. [Means for solving the problem]

[0006] According to a first aspect, the present application provides a link switching method, the method comprising: determining a fault condition of a first link, the first link being a link between the spectrometer and the first transmitting end; if it is determined that a fault has occurred in the first link, determining a fault state of a second link, the second link being a link between the spectrometer and a second transmitting end; and when it is determined that no failure has occurred in the second link, switching data transmission from the first link to the second link; Here, the spectrometer is configured to receive a first optical signal transmitted by a multiplexer, branch the first optical signal into a first branched optical signal and a second branched optical signal, transmit the first branched optical signal to the first transmitting end, and transmit the second branched optical signal to the second transmitting end, wherein the first branched optical signal is used to detect a fault state of the first link, and the second branched optical signal is used to detect a fault state of the second link.

[0007] The fault status here is mainly used to indicate whether a fault occurs in the first link or the second link. In the above method, when a fault occurs in the first link but a fault does not occur in the second link, data transmission is switched from the first link to the second link, thereby solving the problem of having to wait for the recovery of the faulty link, thereby affecting data transmission efficiency.

[0008] In one possible implementation, determining the fault state of the first link includes obtaining an interval time length during which the first branch optical signal is not transmitted on the first link, and determining that a fault has occurred on the first link if the interval time length exceeds a predetermined time length.

[0009] In one possible implementation, determining a fault state 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 a fault has occurred in the first link if the third optical power is not within a third preset optical power range.

[0010] In one possible implementation, determining the fault state of the first link comprises: detecting an interval time length during which the first branched optical signal is not transmitted in the first link; If the interval time length does not exceed a predetermined time length, acquiring a third optical power corresponding to the first branched optical signal transmitted by the first link; determining that a fault has occurred in the first link if the third optical power is not within a third preset optical power range.

[0011] The above method jointly judges the fault state of the link by determining whether the predetermined condition is met based on the interval time length and the first optical power, and adopts double judgment to improve the accuracy of the judgment result.

[0012] The embodiments of the present application provide various ways for determining the failure state of the first link so that the method for determining the failure of the first link can be applied to more business scenarios.

[0013] In one possible implementation, the method further includes controlling the transmission and reception functions of the first transmitting end to be on, and controlling the transmission function of the second transmitting end to be off and the reception function to be on, before determining a fault state of the first link.

[0014] The above method puts the first transmitting end into a normal operating state and the second transmitting end into a standby state, thereby ensuring that the second transmitting end can timely monitor the information transmitted by the first transmitting end and switch from the first link to the second link according to the notification of the first transmitting end.

[0015] In one possible implementation, determining whether a failure has occurred in the second link includes obtaining a failure status of the second link detected by the second transmitting end.

[0016] The above method allows the failure status of the second link to be obtained in a timely manner to facilitate switching from the first link to the second link only when it is determined that the second link can communicate normally.

[0017] In one possible implementation, switching from the first link to the second link to transmit data includes controlling the first transmitting end to turn off a transmitting function and the second transmitting end to turn on a receiving function, and controlling the second transmitting end to turn on a transmitting function and a receiving function.

[0018] According to the above method, in the passive Ethernet aggregation network architecture, after performing link switching, the second transmitting end is put into a normal operating state and the first transmitting end is put into a standby state, thereby ensuring normal communication of the second link.

[0019] According to a second aspect, the present application provides a link switching device, comprising: a first determination module configured to determine a fault state of a first link, the first link being a link between the spectrometer and the first transmitting end; a second determination module configured to determine a fault state of a second link between the spectrometer and a second transmitting end when determining that a fault has occurred in the first link; a switching module configured to switch data transmission from the first link to the second link when it is determined that the second link is not faulty; Here, the spectrometer is configured to receive a first optical signal transmitted by a multiplexer, branch the first optical signal into a first branched optical signal and a second branched optical signal, transmit the first branched optical signal to the first transmitting end, and transmit the second branched optical signal to the second transmitting end, wherein the first branched optical signal is used to detect a fault state of the first link, and the second branched optical signal is used to detect a fault state of the second link.

[0020] The fault condition here is primarily used to indicate whether a fault has occurred in the first link and the second link.

[0021] In one possible implementation, the first determination module is configured to obtain an interval time length during which the first branch optical signal is not transmitted on the first link, and determine that a fault has occurred on the first link if the interval time length exceeds a predetermined time length.

[0022] In one possible implementation, the first determination module is configured to obtain a third optical power corresponding to the first branched optical signal transmitted by the first link, and determine that a fault has occurred in the first link if the third optical power is not within a third preset optical power range.

[0023] In one possible implementation, the first determination module is configured to obtain an interval time length during which the first branch optical signal is not transmitted on the first link, and if the interval time length does not exceed a predetermined time length, obtain a third optical power corresponding to the first branch optical signal transmitted by the first link, and if the third optical power is not within a third predetermined optical power range, determine that a fault has occurred on the first link.

[0024] In one possible implementation, the first determination module is further configured to control the turning on of the transmitting function and the receiving function of the first transmitting end, and to control the turning off of the transmitting function and the turning on of the receiving function of the second transmitting end before determining a fault state of the first link.

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

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

[0027] According to a third aspect, the present application provides a communications device including a multiplexer and a spectrometer, wherein: the multiplexer is configured to receive a third optical signal transmitted by a first receiving end and a fourth optical signal transmitted by a second receiving end, couple the third optical signal and the fourth optical signal into a first optical signal, and transmit the first optical signal to the spectrometer; the splitter is configured to receive the first optical signal, split the first optical signal into a first split optical signal and a second split optical signal, transmit the first split optical signal to a first transmitting end, and transmit the second split optical signal to a second transmitting end, wherein a link between the first transmitting end and the splitter is a first link, a link between the second transmitting end and the splitter is a second link, the first split optical signal is used to perform fault state detection of the first link, and the second split optical signal is used to perform fault state detection of the second link; and The spectrometer is further configured to receive a fifth optical signal transmitted by the second transmitting end when switching from the first link to the second link for data transmission based on a failure state of the first link and a failure state of the second link.

[0028] In one possible implementation, the communication device further comprises a demultiplexer; the spectrometer is configured to transmit 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, transmit the sixth optical signal to the first receiving end, and transmit the seventh optical signal to the second receiving end.

[0029] According to a fourth aspect, the present application provides a link switching system, the system including: a spectrometer; 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 transmit a third optical signal to the multiplexer; the second receiving end is configured to transmit 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 spectrometer; the splitter is configured to receive the first optical signal, split the first optical signal into a first split optical signal and a second split optical signal, transmit the first split optical signal to a first transmitting end, and transmit the second split optical signal to a second transmitting end, wherein a link between the first transmitting end and the splitter is a first link, and a link between the second transmitting end and the splitter is a second link; the first transmitting end is configured to receive the first branched optical signal for detecting a fault state of the first link, and when it is determined that a fault occurs in the first link and that no fault occurs in the second link, to control the first link to be switched to the second link for data transmission; and The second transmitting end is configured to receive the second branched optical signal for fault condition detection of the second link.

[0030] In one possible implementation, the link switching system further comprises a demultiplexer; The spectrometer is configured to receive a fifth optical signal transmitted by the second transmitting end when the first link is switched to the second link to transmit data, and to transmit 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, transmit the sixth optical signal to the first receiving end, and transmit the seventh optical signal to the second receiving end.

[0031] In one possible implementation, before controlling the first link to be switched to the second link for data transmission, the first transmitting end is configured to obtain an interval time length during which the first branched optical signal is not transmitted on the first link, and to determine that a failure has occurred in the first link if the interval time length exceeds a predetermined time length.

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

[0033] In one possible implementation, before controlling the first link to be switched to the second link for data transmission, the first transmitting end is configured to obtain an interval time length during which the first branch optical signal is not transmitted in the first link, and if the interval time length does not exceed a predetermined time length, obtain a third optical power corresponding to the first branch optical signal transmitted by the first link, and if the third optical power is not within a third predetermined optical power range, determine that a fault has occurred in the first link.

[0034] In one possible implementation, before controlling the first link to be switched to the second link for data transmission, the first transmitting end is configured to turn on its transmitting function and receiving function, and the second transmitting end is configured to turn off its transmitting function and turn on its receiving function.

[0035] In one possible implementation, before controlling the first link to be switched to the second link for data transmission, the first transmitting end is configured to acquire a failure state of the second link detected by the second transmitting end.

[0036] In one possible implementation, when a failure occurs in the first link and it is determined that the second link is normal, the first transmitting end is configured to turn off its transmitting function and turn on its receiving function, and the second transmitting end is configured to turn on both its transmitting and receiving functions.

[0037] According to a fifth aspect, the present application provides an electronic device, the electronic device comprising: a memory for storing a computer program; a processor for implementing the steps of the link switching method when executing a computer program stored in the memory.

[0038] According to a sixth aspect, there is provided a computer-readable storage medium having a computer program stored therein, the computer program implementing the steps of the link switching method when executed by a processor.

[0039] The technical effects achievable in each of the above first to sixth aspects and each aspect are not further described here, but refer to the description of the technical effects achievable in the above first aspect or various possible solutions in the first aspect. [Brief explanation of the drawings]

[0040] In order to more clearly explain the technical solutions in the embodiments of the present invention or related technologies, the following will briefly introduce the drawings that need to be used in the description of the embodiments. It is obvious that the drawings in the following description are only some embodiments of the present application, and those skilled in the art can also obtain drawings of other embodiments based on these drawings without any creative efforts. [Figure 1]1 is a schematic diagram of a passive Ethernet aggregation network architecture according to an embodiment of the present application; [Figure 2] 1 is a flowchart of a link switching method according to an embodiment of the present application; [Figure 3] FIG. 2 is a schematic diagram of a passive Ethernet aggregation network architecture according to another embodiment of the present application. [Figure 4] 1 is a schematic diagram of a PON network architecture according to an embodiment of the present application; [Figure 5] FIG. 2 is a schematic diagram of a PON network architecture according to another embodiment of the present application. [Figure 6] FIG. 2 is a schematic diagram of a passive Ethernet aggregation network architecture according to another embodiment of the present application. [Figure 7] 1 is a schematic diagram of a transparent passive aggregation device according to an embodiment of the present application; [Figure 8] 1 is a schematic diagram of a link switching system according to an embodiment of the present application; [Figure 9] 1 is a structural schematic diagram of a link switching device according to an embodiment of the present application; [Figure 10] 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0041] To clarify the objectives, technical solutions, and advantages of this application, the following description will be provided in more detail with reference to the accompanying drawings. A specific operation method in a method embodiment may also be used in an apparatus embodiment or a system embodiment. It should be noted that the term "plurality" in this application means "at least two." "And / or" describes a relationship between related objects and indicates that three relationships may exist. For example, A and / or B may represent three cases: A alone, a combination of A and B, and B alone. A being connected to B may represent two cases: A and B being directly connected, or A and B being connected via C. Furthermore, in this description, terms such as "first," "second," etc., are used solely for the purpose of distinguishing between descriptions and should not be construed as indicating or implying relative importance or order.

[0042] In the related art, referring to Figure 1, a core switch C1 is connected to a transparent passive aggregation device B1 via link a, and the core switch C1 is connected to a transparent passive aggregation device B2 via link b. If a failure occurs on link a or link b, it will directly result in the access device corresponding to the access side of the failed link being in an abnormal working state. To restore the normal working state of the access device, it is necessary to wait for the failed link to be restored. Therefore, how to achieve failed link recovery in a passive Ethernet aggregation network architecture has become a major problem to be solved.

[0043] To solve the above-described problems, the embodiments of the present application provide a link switching method for realizing link multiplexing between a core switch and a transparent passive aggregation device, so that when a failed link occurs, the failed link can be switched to a normal link in a timely manner. Here, the method and apparatus in the embodiments of the present application are based on the same technical concept, and the principles of the problems solved by the method and the apparatus are similar, so the apparatus and the method embodiments can refer to each other, and the overlapping points will not be further described.

[0044] Hereinafter, embodiments of the present application will be described in detail with reference to the drawings.

[0045] The embodiment of the present application provides a link switching method that can solve the problem of link switching in a passive Ethernet aggregation architecture, and the method can be implemented by a first receiving end or a second receiving end. Figure 2 is a flowchart of the link switching method according to the embodiment of the present application. As shown in Figure 2, the method includes the following steps:

[0046] The fault state of the first link between the spectrometer and the first transmitting end is determined (step S21). The fault state here is mainly used to indicate whether a fault has occurred in the first link.

[0047] FIG. 3 is a schematic diagram of another passive Ethernet aggregation network architecture according to an embodiment of the present application. As shown in FIG. 3, the embodiment of the present application employs a passive Ethernet aggregation network architecture to realize data transmission based on a wavelength division multiplexing mechanism, such as coarse wavelength division multiplexing (abbreviated as CWDM). In FIG. 3, the first receiving end and the second receiving end may be access switches. Devices such as PCs, wireless access terminals, and smart phones connect to the transparent passive aggregation device through the access switches. The transparent passive aggregation equipment may include a multiplexer and a demultiplexer, and the types of the multiplexer and demultiplexer can be selected according to actual needs, including but not limited to, a coarse wavelength-division multiplexing (CWDM) device, a dense wavelength-division multiplexing (DWDM) device, or a multi-wavelength division multiplexing (MWDM) device. The first transmitting end and the second transmitting end may be core switches. The first receiving end, the second receiving end, the first transmitting end, and the second transmitting end are each provided with an optical module for converting optical and electrical signals.

[0048] In an embodiment of the present application, to further realize link switching, a splitter can be provided between a first transmitting end and a transparent passive aggregation device, and the splitter is also provided between a second transmitting end and the transparent passive aggregation device. The link between the splitter and the first transmitting end is a first link, and the link between the splitter and the second transmitting end is a second link. The splitter is used to receive a first optical signal transmitted by the first receiving end or the second receiving end through the transparent passive aggregation device, and split the first optical signal into a first branched optical signal corresponding to the first link and a second branched optical signal corresponding to the second link.

[0049] The splitter may be a 1:2 splitter for achieving signal splitting, which splits one input optical signal equally into two output optical signals for transmission in two different channels.

[0050] In the embodiment of the present application, the Ethernet aggregation passive architecture network supports a peer-to-peer (P2P) protocol, but P2P requires the second transmitting end corresponding to the second link to turn off the transport (TX) function. If the first transmitting end corresponding to the first link and the second transmitting end corresponding to the second link both turn on the TX function, signal interference will occur.

[0051] After the first and second transmitting ends are connected to power, the first transmitting end must turn on the TX and RX functions of the optical module of the first transmitting end to put the first transmitting end into normal operation. The first transmitting end transmits a second optical signal in response to the first branched optical signal. The second transmitting end must turn off the TX function of the optical module of the second transmitting end so that the second transmitting end cannot transmit signals, but keep the RX function of the second transmitting end on so that the second transmitting end can receive optical signals. At this time, the second transmitting end is in a standby state. In the standby state, the second transmitting end can only receive signals, not transmit signals. The second transmitting end can timely receive the link switching message sent by the first transmitting end, thereby successfully completing the switching between the first link and the second link.

[0052] To ensure that switching between different links can be performed, the receiving end needs to detect the failure state of the first link and then determine whether the first link needs to be switched based on the failure state of the first link.

[0053] In one possible implementation, to detect a fault state of the first link, the receiving end detects an interval time length during which the second optical signal is not transmitted on the first link at a predetermined period, and determines whether the interval time length is greater than the predetermined time length. If the interval time length is greater than the predetermined time length, the receiving end can determine that the second optical signal has been lost and determine that the first link has failed. If the interval time length is equal to or less than the predetermined time length, the receiving end can determine that the second optical signal has been received normally and determine that the first link has not failed, i.e., is in a normal state.

[0054] In one possible implementation, the receiving end detects a first optical power corresponding to a second optical signal transmitted by a first transmitting end in the first link and determines whether the first optical power is within a first preset optical power range. If the first optical power is within the first preset optical power range, it indicates 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. If the first optical power is not within the first preset optical power range, it determines that the first link is faulty. If the first optical power is smaller than the minimum optical power of the first preset optical power range, it indicates that the second optical signal strength is relatively weak and there is a risk of communication service being interrupted. If the first optical power is larger than the maximum optical power of the first preset optical power range, it indicates that the second optical signal is too strong, and the usage time of the optical module will be shortened.

[0055] In one possible implementation, the receiving end detects an interval time during which the second optical signal is not transmitted on the first link at a predetermined period and determines whether the interval time is greater than the predetermined time. If the interval time is not greater than the predetermined time, the receiving end determines that the optical signal has been received. The receiving end further determines a first optical power corresponding to the second optical signal on the first link and determines whether the first optical power is within a first predetermined optical power range. If the first optical power is within the first predetermined optical power, it means that the second optical signal corresponding to the first optical power is normal, and determines that the first link is normal. If the first optical power is not within the first predetermined optical power range, it means that the second optical signal corresponding to the first optical power is abnormal, and determines that the first link is faulty. If the first optical power is smaller than the minimum optical power of the first predetermined optical power range, it means that the second optical signal strength is relatively weak and there is a risk of communication service being interrupted. If the first optical power is greater than the maximum optical power of the first preset optical power range, it means that the second optical signal is too strong, which shortens the use time of the optical module.

[0056] The receiving end can select one of the three methods described above to determine the detection result according to the actual scenario, which can adapt to more actual scenarios, facilitate the receiving end to obtain the detection result, and ensure the accuracy of the obtained detection result. It should be noted that other methods can be used to detect the working status of the first link, and the above three methods are merely enumerated and do not limit the embodiments of the present application. Any obvious modifications made by those skilled in the art based on the above methods fall within the protection scope of the present application.

[0057] If it is determined that a failure has occurred in the first link, the failure status of the second link is determined (step S22), where the second link is the link between the spectrometer and the second transmitting end. The failure status here is mainly used to indicate whether a failure has occurred in the second link.

[0058] The passive Ethernet aggregation network architecture supports a peer-to-peer protocol and, to avoid signal interference, turns off the TX function of the second transmitting end and keeps the RX function of the second transmitting end in an on state. The second transmitting end can receive the second branch optical signal transmitted by the receiving end in real time. To ensure that the switchover from the first link to the second link can be completed smoothly and that the second link can communicate normally after the switchover, after the receiving end determines that a fault has occurred in the first link, the second transmitting end determines a second optical power corresponding to the second branch optical signal and detects whether the second optical power is within a second preset optical power range. If the second optical power is within the second preset optical power range, it can determine that the second link is normal. If the second optical power is not within the second preset optical power range, it can determine that the second link is abnormal. The first transmitting end reads the result of whether the second link is normal or abnormal detected by the second transmitting end in real time and transmits the detection result to the receiving end. It should be noted that the second transmitting end may determine the status of the second link by detecting the interval time length during which the second branch optical signal is not transmitted on the second link. Any obvious modifications made by those skilled in the art based on the above method fall within the scope of protection of the present application.

[0059] After determining the state of the second link based on the above described method, if the second link is in a normal state, the receiving end switches from the first link to the second link and notifies the first transmitting end to allow the second link to perform data transmission.

[0060] If it is determined that no failure has occurred in the second link, the first link is switched to the second link and data transmission is performed (step S23).

[0061] In one possible implementation, switching from the first link to the second link can be realized by turning off the TX function of the first transmitting end, turning on the RX function of the first transmitting end, and turning on the TX function and RX function of the second transmitting end, and then realizing normal transmission of data on the second link.

[0062] Based on the above method, the passive Ethernet aggregation network architecture realizes link multiplexing by using a spectrometer, i.e., the first link communicates as the main link, and the second link as the secondary link, and monitors the fault status of the first link and the second link. If a fault occurs in the first link and the second link is monitored to be normal, data transmission is directly switched from the first link to the second link, thereby solving the problem in the related art that it is necessary to passively wait for the recovery of the failed link, which affects data transmission efficiency.

[0063] In one possible implementation, in order to realize efficient transmission of data waiting to be transmitted on the second link, the second link can be configured with a total power bandwidth, which is the maximum bandwidth that the second link can enable. Referring to Figure 3, for example, the maximum bandwidth between the first transmitting end and the receiving end is 8G, and after switching from the first link to the second link, the maximum bandwidth of 8G can be enabled for the second link. Of course, in a practical application scenario, if it is not possible to allocate the maximum bandwidth to the second link, a bandwidth smaller than the maximum bandwidth can be allocated for the second link.

[0064] In one possible implementation, the goal of high broadband transmission in a passive Ethernet aggregation network architecture can be achieved by configuring full bandwidth power for the second link.

[0065] In addition, since the passive Ethernet aggregation network architecture in the embodiment of the present application adopts a wavelength division multiplexing mechanism, the bandwidth allocated by the core equipment to the access equipment is not reduced compared to the PON network architecture in the traditional network architecture, whereas in the PON network architecture, the bandwidth allocated by the core equipment to the access equipment is reduced.

[0066] Figure 4 is a schematic diagram of a PON network architecture based on related technology. As shown in Figure 4, the PON network architecture consists of an optical line terminal (OLT), an optical network unit (ONU), and an optical distribution network (ODN, also known as a spectrometer). To ensure the reliability of the PON network architecture, two technical solutions are introduced: PON type single-homed and PON type dual-homed. As shown in Figure 4, when a PON network has only one OLT, the network connection method is called PON single-homed. When a PON network has two OLTs, the network connection method is called PON dual-homed.

[0067] In a PON single-homed connection scenario, if the PON single-homed connection is PON type B single-homed, there are two links between one spectrometer and one OLT. If the PON single-homed connection is PON type C single-homed, two spectrometers are connected to one OLT, with one link between each spectrometer and one OLT, and two links between the two spectrometers and one OLT. In a PON dual-homed connection scenario, if the PON dual-homed connection is PON type B dual-homed, one spectrometer is connected to each of two OLTs, with two links between the one spectrometer and the two OLTs. If the PON dual-homed connection is PON type C dual-homed, two spectrometers are connected to each of the OLTs, with two links between the two spectrometers and the two OLTs.

[0068] If a failure occurs in one of the two links between the spectrometer and the OLT described above, the communication system can automatically switch from the failed link to the other link between the spectrometer and the OLT, and after the failed link is restored, the communication system can automatically switch back to the restored failed link.

[0069] 4, in the PON type B single-homed connection, there are Link 1 and Link 2 between the spectrometer and the OLT, and when a failure occurs in Link 1, the communication system automatically switches from Link 1 to Link 2. After the failure of Link 1 is recovered, the communication system automatically switches from Link 2 to Link 1.

[0070] Based on the above description, the PON network architecture can switch to another link after a link failure, but it also realizes data transmission based on the Time Division Multiplexing (TDM) mechanism. The TDM mechanism distinguishes between signals transmitted sequentially on the same channel. For example, the TDM mechanism divides one second into two 0.5 seconds, and data A is not transmitted in the first 0.5 seconds, but is transmitted in the second 0.5 seconds. The actual data transmission time occupied by data A within this 1 second is only 0.5 seconds.

[0071] The bit rate is calculated by dividing the amount of data transmitted by the transmission time. If the maximum broadband rate of a network is 2048 bit / s and the total amount of data A is 1024 bits, then theoretically, the transmission time required for Data A is 0.5 seconds, and the corresponding bit rate is 2048 bit / s. In practice, based on the TDM mechanism, after Data A occupies 0.5 seconds, a 0.5 second wait is required, reducing the bit rate corresponding to Data A to 1024 bit / s. That is, for Data A, theoretically, 2048 bits can be successfully transmitted within 1 second. However, due to the limitations of the TDM mechanism, only 1024 bits can currently be transmitted within 1 second, resulting in a reduction in bandwidth.

[0072] 5 is a schematic diagram of another PON network architecture according to the related art. In FIG. 5, the total bandwidth from the OLT equipment to one spectrometer is 10G, and two ONUs are connected to this spectrometer. If the average bandwidth allocated to each ONU is 5G, the equipment connected to each ONU shares the 5G bandwidth. If a large number of ONUs are connected to one spectrometer, the average bandwidth allocated to each ONU will be smaller.

[0073] To sum up, the passive Ethernet aggregation network architecture according to the embodiments of the present application can further realize high broadband transmission of data by solving the bandwidth convergence problem.

[0074] An embodiment of the present application further provides a link switching method, which can solve the problem of link switching in a passive Ethernet aggregation network architecture, and the method may be implemented by a first transmitting end.

[0075] 3, the TX transmitting function and the RX receiving function of the first transmitting end are both in an ON state. The second transmitting end is in a standby state, i.e., the TX transmitting function of the second transmitting end is in an OFF state, and the RX receiving function of the second transmitting end is in an ON state. Since the information between the first transmitting end and the second transmitting end is synchronized in real time, the second transmitting end can monitor the information of the first transmitting end in real time, and the first transmitting end can obtain the message of the second transmitting end in real time.

[0076] According to a method according to an embodiment of the present application, a first transmitting end determines a fault state of a first link between a spectrometer and the first transmitting end. If it is determined that a fault has occurred in the first link, it determines a fault state of a second link between the spectrometer and a second transmitting end. The fault state here is mainly used to indicate whether a fault has occurred in the first link or the second link. If it is determined that a fault has not occurred in the second link, data transmission is switched from the first link to the second link. The spectrometer is configured to receive a first optical signal transmitted by a transparent passive aggregation device including a multiplexer. The spectrometer splits the first optical signal into a first branch optical signal and a second branch optical signal, transmits the first branch optical signal to the first transmitting end, and transmits the second branch optical signal to the second transmitting end. The first branch optical signal is used to detect a fault state of the first link, and the second branch optical signal is used to detect a fault state of the second link. The multiplexer is configured to receive a third optical signal transmitted by a first receiving end and a fourth optical signal transmitted by a second receiving end, couple the third optical signal and the fourth optical signal into a first optical signal, and transmit the first optical signal to the spectrometer.

[0077] In one possible implementation, the first transmitting end detects an interval time length during which the first branch optical signal in the first link is not transmitted at a predetermined period, and if the interval time length is greater than the predetermined time length, it can determine that the first link has failed.

[0078] In one possible implementation, the first transmitting end detects a third optical power corresponding to the first branch optical signal in the first link, and determines whether the third optical power is within a third preset optical power range, and if the third optical power is not within the third preset optical power range, determines that the first link is faulty.

[0079] In one possible implementation, the first transmitting end detects an interval time length during which the first branch optical signal is not transmitted on the first link at a predetermined period and determines whether the interval time length is greater than the predetermined time length. If the interval time length does not exceed the predetermined time length, 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 predetermined optical power range. If the third optical power is not within the third predetermined optical power range, it determines that the first link is faulty.

[0080] When a fault occurs in the first link, the first transmitting end must ensure that the second link is switched over when the second link is in a normal state. The first transmitting end obtains a detection result of the second link status from the second transmitting end. When the second transmitting end receives the second branch optical signal transmitted by the receiving end, it determines a second optical power corresponding to the second branch optical signal and further determines whether the second optical power is within a second preset optical power range. If the optical power is within the second preset optical power range, it determines that the detection result of the second link is normal. If the optical power is not within the second preset optical power range, it determines that the detection result of the second link is abnormal. It should be noted that the second transmitting end may also determine the status of the second link by detecting the interval time during which the second branch optical signal is not transmitted on the second link. Any obvious modifications made by those skilled in the art based on the above method are within the scope of protection of this application.

[0081] If the first transmitting end determines that the second link is normal based on the detection result obtained from the second transmitting end, it switches from the first link to the second link. Specifically, it turns off the TX function of the first transmitting end, turns on the RX function, and turns on both the TX and RX functions of the second transmitting end. This method solves the problem of waiting for the failed link to recover, which affects data transmission efficiency. After switching from the first link to the second link, the full power bandwidth can be configured for the second link, thereby achieving high-broadband data transmission in a passive Ethernet aggregation network architecture.

[0082] The embodiments of the present application further provide a link switching method that can solve the link switching problem in a passive Ethernet aggregation network architecture, and the method may be implemented by servers corresponding to a first transmitting end and a second transmitting end. Figure 6 is a schematic diagram of another passive Ethernet aggregation network architecture according to the present application. As shown in Figure 6, the first transmitting end and the second transmitting end are managed by a server, where the first link corresponding to the first transmitting end is a main link and the second link corresponding to the second transmitting end is a backup link.

[0083] According to a method according to an embodiment of the present application, a server determines a fault state of a first link between a spectrometer and a first transmitting end. If it determines that a fault has occurred in the first link, it determines a fault state of a second link between the spectrometer and a second transmitting end. The fault state here is mainly used to indicate whether a fault has occurred in the first link or the second link. If it determines that a fault has not occurred in the second link, data transmission is switched from the first link to the second link. The spectrometer is configured to receive a first optical signal transmitted by a transparent passive aggregation device including a multiplexer. The spectrometer splits the first optical signal into a first branch optical signal and a second branch optical signal, transmits the first branch optical signal to the first transmitting end, and transmits the second branch optical signal to the second transmitting end. The first branch optical signal is used to detect a fault state of the first link, and the second branch optical signal is used to detect a fault state of the second link. The multiplexer is configured to receive a third optical signal transmitted by a first receiving end and a fourth optical signal transmitted by a second receiving end, couple the third optical signal and the fourth optical signal into a first optical signal, and transmit the first optical signal to the spectrometer.

[0084] In one possible implementation, the server can directly obtain an interval time length during which the first branch optical signal is not transmitted on the first link to confirm the fault state of the first link, and if the interval time length exceeds a predetermined time length, it means that the server has not detected the first branch optical signal on the first link and has determined that the first link is faulty.

[0085] In one possible implementation, the server can directly obtain the third optical power corresponding to the first branch optical signal in the first link. If the third optical power is not within the third preset optical power range, it determines 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 usage time 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, which will pose a risk of communication service interruption.

[0086] In one possible implementation, the server may obtain an interval time length during which the first branch optical signal in the first link is not transmitted, and if the server determines that the interval time length does not exceed a predetermined time length, the server may further obtain a third optical power corresponding to the first branch optical signal, and if the third optical power is not within a third predetermined optical power range, determine that the first link has failed.

[0087] The second transmitting end's TX function is turned off and its RX function is turned on, so that the second transmitting end can receive the second branch optical signal transmitted by the receiving end. The second transmitting end determines a second optical power corresponding to the second branch optical signal and detects whether the second optical power is within a second preset optical power range. If the second optical power is within the second preset optical power range, the second link is determined to be normal. If the second optical power is not within the second preset optical power range, the second link is determined to be abnormal. It should be noted that the second transmitting end may also determine the status of the second link by detecting the interval time during which the second branch optical signal is not transmitted on the second link. Any obvious modifications made by those skilled in the art based on the above method are within the scope of protection of this application.

[0088] 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 by turning off the TX function of the first transmitting end and turning on the RX function, and by turning on both the TX and RX functions of the second transmitting end, thereby solving the problem of affecting data transmission efficiency by waiting for the failed link to recover.

[0089] In one possible implementation, after the first link switches to the second link, the server configures the full power bandwidth for the second link, achieving high-broadband data transmission in a passive Ethernet aggregation network architecture.

[0090] Based on the above method, a second link is configured as a backup link in a passive Ethernet aggregation network architecture, and when a 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 in a passive Ethernet aggregation network architecture fails, it is necessary to wait for the failed link to recover, thereby affecting data transmission efficiency.

[0091] In one embodiment, the spectrometer can be integrated into a transparent passive aggregator. Figure 7 is a schematic diagram of a transparent passive aggregator according to the present application, where the spectrometer in the transparent passive aggregator is connected to a multiplexer / demultiplexer, as shown in Figure 7.

[0092] The transparent passive aggregation device includes a multiplexer connected to a splitter. The multiplexer receives a third optical signal transmitted by a first receiving end and a fourth optical signal transmitted by a second receiving end, couples the third optical signal and the fourth optical signal into a first optical signal, and transmits the first optical signal to the splitter. After receiving the first optical signal, the 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 a first transmitting end, and transmits the second branched optical signal to a second transmitting end.

[0093] For illustrative purposes, the link between the first transmitting end and the transparent passive aggregation device is referred to as the first link, and the link between the second transmitting end and the transparent passive aggregation device is referred to as the second link. When a failure occurs in the first link and the second link is normal, data transmission is switched from the first link to the second link. At this time, the TX function of the first transmitting end is turned off and the RX function is turned on, and the TX function and RX function of the second transmitting end are turned on. The second transmitting end transmits a fifth optical signal, and the spectrometer receives the fifth optical signal transmitted by the second transmitting end.

[0094] The transparent passive aggregation device further includes a demultiplexer. After the first link is switched to the second link, the second transmitting end transmits the fifth optical signal to the splitter, and the splitter sends the fifth optical signal to the demultiplexer. After receiving the fifth optical signal, the demultiplexer 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.

[0095] Based on the above description of the transparent passive aggregation device, a spectrometer is integrated into the transparent passive aggregation device to form a first link and a second link, thereby solving the problem that when the first link fails, the data transmission efficiency is affected by switching to the second link and waiting for the failed link to recover.

[0096] In one possible implementation, the transparent passive aggregation device further includes a demultiplexer, where the spectrometer transmits the fifth optical signal to the demultiplexer, which receives the fifth optical signal, decouples the fifth optical signal into a sixth optical signal and a seventh optical signal, transmits the sixth optical signal to a first receiving end, and transmits the seventh optical signal to a second receiving end.

[0097] The present application further provides a link switching system, and FIG. 8 is a schematic diagram of the link switching system according to the present application. As shown in FIG. 8, the link switching system includes a transparent passive aggregation device, a first transmitting end, a second transmitting end, a first receiving end, and a second receiving end. The transparent passive aggregation device is provided with a spectrometer and a multiplexer. The first transmitting end and the second transmitting end are each connected to the spectrometer in the transparent passive aggregation device, and the first receiving end and the second receiving end are each connected to the multiplexer in the transparent passive aggregation device.

[0098] The multiplexer in the transparent passive aggregation device receives the third optical signal transmitted by the first receiving end and the fourth optical signal transmitted by the second receiving end and couples the third optical signal and the fourth optical signal into the first optical signal. The spectrometer in the transparent passive aggregation device branches the first optical signal into a first branch optical signal and a second branch optical signal and transmits the first branch optical signal to the first transmitting end and transmits the second branch optical signal to the second transmitting end, so that the first transmitting end receives the first branch optical signal and the second transmitting end receives the second branch optical signal.

[0099] In one possible implementation, the first transmitting end is further configured to control, when it determines that a failure has occurred in the first link and that no failure has occurred in the second link, to switch from the first link to the second link to perform data transmission.

[0100] In one possible implementation, the first transmitting end is configured to determine the status of the first link. If an interval time length during which the first branch optical signal is not transmitted on the first link exceeds a predetermined time length, a fault of the first link is determined. In one possible implementation, if the detection result indicates that a third optical power corresponding to the first branch optical signal transmitted on the first link is not within a third predetermined optical power range, a fault of the first link is determined. In one possible implementation, if the interval time length during which the first branch optical signal is not transmitted on the first link does not exceed the predetermined time length, the first transmitting end further detects whether the third optical power corresponding to the first branch optical signal is within the first predetermined optical power range, and if the third optical power corresponding to the first branch optical signal is not within the third predetermined optical power range, a fault of the first link is determined.

[0101] 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 determines a second optical power corresponding to the second branch optical signal, and if this second optical power is within a second preset optical power range, determines that the second link is normal. If this optical power is not within the second preset optical power range, determines that the second link is abnormal. The first transmitting end can directly obtain the detection result, whether the second link is normal or abnormal, from the second transmitting end.

[0102] When the first transmitting end determines that the first link has failed and the second link is normal, it must switch from the first link to the second link to wait for the failed link to recover, thereby solving the problem of affecting data transmission efficiency.

[0103] In one possible implementation, before controlling the first link to be switched to the second link for data transmission, the first transmitting end is configured to turn on its transmitting function and receiving function, and the second transmitting end is configured to turn off its transmitting function and turn on its receiving function.

[0104] In one possible implementation, when a failure occurs in the first link and it is determined that the second link is normal, the first transmitting end is configured to turn off a transmitting function and turn on a receiving function, and the second transmitting end is configured to turn on both the transmitting function and the receiving function to realize switching from the first link to the second link.

[0105] In one possible implementation, when switching from the first link to the second link for data transmission, the second transmitting end transmits a fifth optical signal, and the spectrometer in the transparent passive aggregation device receives the fifth optical signal transmitted by the second transmitting end.

[0106] In one possible implementation, the transparent passive aggregation device further includes a demultiplexer, where the spectrometer transmits the fifth optical signal to the demultiplexer, which receives the fifth optical signal, decouples the fifth optical signal into a sixth optical signal and a seventh optical signal, transmits the sixth optical signal to a first receiving end, and transmits the seventh optical signal to a second receiving end.

[0107] It should be noted that the transparent passive aggregation device with a spectrometer in the above link switching system can be decomposed into an independent spectrometer and an independent multiplexer / demultiplexer device to operate.

[0108] Based on the above description, when it is determined that the first link has failed and the second link is normal, data transmission is switched from the first link to the second link, and by integrating the spectrometer into a transparent passive aggregation device, the problem of waiting for the failed link to recover, which affects data transmission efficiency, is solved.

[0109] Based on the same inventive concept, an embodiment of the present application further provides a link switching device, which is used to realize the function of the link switching method, and referring to FIG. 9, the device comprises: a first determining module 901 configured to determine a fault state of a first link, the first link being a link between the spectrometer and a first transmitting end; a second determining module 902 configured to determine whether a failure has occurred in a second link, the second link being a link between the spectrometer and a second transmitting end, if determining that a failure has occurred in the first link; and a switching module 903 configured to switch data transmission from the first link to the second link when it is determined that the second link has not failed.

[0110] wherein the splitter is configured to receive a first optical signal transmitted by a multiplexer, split the first optical signal into a first split optical signal and a second split optical signal, transmit the first split optical signal to the first transmitting end, and transmit the second split optical signal to the second transmitting end, the first split optical signal being used to detect a fault state of the first link, and the second split optical signal being used to detect a fault state of the second link. The multiplexer is configured to receive a third optical signal transmitted by a first receiving end and a fourth optical signal transmitted by a second receiving end, couple the third optical signal and the fourth optical signal into a first optical signal, and transmit the first optical signal to the splitter.

[0111] In one possible implementation, the first determination module 901 is configured to obtain an interval time length during which a first branch optical signal is not transmitted in the first link, and determine a failure of the first link if the interval time length exceeds a predetermined time length.

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

[0113] In one possible design, the first determination module 901 is configured to detect an interval time length during which a first branch optical signal in the first link is not transmitted, obtain a third optical power corresponding to the first branch optical signal transmitted by the first link if the interval time length does not exceed a predetermined time length, and determine a failure of the first link if the third optical power is not within a third predetermined optical power range.

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

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

[0116] In one possible design, the first determination module 901 is further configured to control the turning on of the transmitting function and the receiving function of the first transmitting end, and to control the turning off of the transmitting function and the turning on of the receiving function of the second transmitting end before determining whether a failure has occurred in the first link.

[0117] Based on the same inventive concept, an embodiment of the present application provides a communication device, which may be a transparent passive aggregation device. Referring to Figure 7, the transparent passive aggregation device includes a multiplexer and a spectrometer connected to the multiplexer.

[0118] The multiplexer is configured to receive a third optical signal transmitted by a first receiving end and a fourth optical signal transmitted by a second receiving end, couple the third optical signal and the fourth optical signal into a first optical signal, and transmit the first optical signal to the spectrometer.

[0119] The splitter is configured to receive the first optical signal, split the first optical signal into a first split optical signal and a second split optical signal, transmit the first split optical signal to a first transmitting end, and transmit the second split optical signal to a second transmitting end, wherein a link between the first transmitting end and the splitter is a first link, a link between the second transmitting end and the splitter is a second link, the first split optical signal is used to detect a fault state of the first link, and the second split optical signal is used to detect a fault state of the second link.

[0120] The spectrometer is further configured to receive a fifth optical signal transmitted by the second transmitting end when switching from the first link to the second link for data transmission based on a failure state of the first link and a failure state of the second link.

[0121] In one possible design, the communication device further includes a demultiplexer.

[0122] The spectrometer is configured to transmit the fifth optical signal to the demultiplexer.

[0123] 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, transmit the sixth optical signal to the first receiving end, and transmit the seventh optical signal to the second receiving end.

[0124] Based on the same inventive concept, the present application provides a link switching system, which can realize the functions of the 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 may be a transparent passive aggregation device, which includes a spectrometer and a multiplexer.

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

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

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

[0128] A splitter in the transparent passive aggregation device is configured to split the first optical signal into a first split optical signal and a second split optical signal, transmit the first split optical signal to the first transmitting end, and transmit the second split optical signal to the second transmitting end, wherein a link between the first transmitting end and the splitter is a first link, and a link between the second transmitting end and the splitter is a second link.

[0129] The first transmitting end is configured to receive the first branched optical signal for detecting a fault state of the first link, and when it determines that a fault has occurred in the first link and that no fault has occurred in the second link, to control the first link to be switched to the second link for data transmission.

[0130] The second transmitting end is configured to receive the second branched optical signal for detecting a fault state of the second link, and to transmit a fifth optical signal when the first link is switched to the second link for data transmission.

[0131] In one possible implementation, the transparent passive aggregation device further includes a demultiplexer. When the first link is switched to the second link to transmit data, the spectrometer in the communication device is further configured to receive a fifth optical signal transmitted by the second transmitting end and transmit 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, transmit the sixth optical signal to the first receiving end, and transmit the seventh optical signal to the second receiving end.

[0132] The present application provides a link switching system, which can implement the functions of the link switching method. Referring to Figure 6, the system further includes a spectrometer, a transparent passive aggregation device, a first transmitting end, a second transmitting end, a first receiving end, and a second receiving end. The transparent passive aggregation device may include a multiplexer.

[0133] The first receiving end is configured to transmit a third optical signal to the transparent passive aggregation device.

[0134] The second receiving end is configured to transmit a fourth optical signal to the transparent passive aggregation device.

[0135] The transparent passive aggregation 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 transmit the first optical signal to the spectrometer.

[0136] The splitter is configured to receive the first optical signal, split the first optical signal into a first split optical signal and a second split optical signal, transmit the first split optical signal to a first transmitting end, and transmit the second split optical signal to a second transmitting end, a link between the first transmitting end and the splitter being a first link, and a link between the second transmitting end and the splitter being a second link.

[0137] The first transmitting end is configured to receive the first branched optical signal for detecting a fault state of the first link, and when it determines that a fault has occurred in the first link and that no fault has occurred in the second link, to control the first link to be switched to the second link for data transmission.

[0138] The second transmitting end is configured to receive the second branched optical signal for detecting a fault state of the second link, and to transmit a fifth optical signal when the first link is switched to the second link for data transmission.

[0139] In one possible implementation, the transparent passive aggregation device further includes a demultiplexer. When the first link is switched to the second link to transmit data, the spectrometer is further configured to receive a fifth optical signal transmitted by the second transmitting end and transmit 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, transmit the sixth optical signal to the first receiving end, and transmit the seventh optical signal to the second receiving end.

[0140] Based on the same inventive concept, an embodiment of the present application further provides an electronic device, which can realize the function of the above-mentioned link switching device. Referring to FIG. 10, the electronic device comprises: The system includes at least one processor 1001 and a memory 1002 connected to the 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, and in FIG. 10, the processor 1001 and the memory 1002 are connected via a bus 1000. The bus 1000 is represented by a bold line in FIG. 10, and the connection method between other components is merely a schematic illustration and is not limited thereto. The bus 1000 may be divided into an address bus, a data bus, a control bus, etc., and is represented by only one bold line in FIG. 10 for convenience of illustration, but is not limited to only one bus or only one bus type. Alternatively, the processor 1001 may be called a controller, and the name is not limited thereto.

[0141] In an embodiment of the present application, the memory 1002 stores instructions executable by at least one processor 1001, and the at least one processor 1001 can perform the link switching method described above by executing the instructions stored in the memory 1002. The processor 1001 can realize the functions of each module in the device shown in FIG.

[0142] Processor 1001 is the control center of the device, and can connect each part of the entire control equipment using various interfaces and lines, and runs or executes instructions stored in memory 1002 and accesses data stored in memory 1002 to perform each function and data processing of the device, thereby monitoring the device as a whole.

[0143] In one possible design, the processor 1001 may include one or more processing units, and the processor 1001 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. The modem processor may not be integrated into the processor 1001. In some embodiments, the processor 1001 and the memory 1002 may be implemented on the same chip, and in some embodiments, they may be implemented separately on independent chips.

[0144] The processor 1001 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, a dedicated integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware assembly, and may implement or perform the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any other general processor. The steps of the link switching method disclosed in connection with the embodiments of the present application may be implemented to be performed directly by a hardware processor, or may be implemented to be performed by a combination of hardware and software modules in a processor.

[0145] The memory 1002 may be used as a non-volatile computer-readable storage medium to store non-volatile software programs, non-volatile computer-executable programs, and modules. The 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 (RAM), a static random access memory (SRAM), a programmable read-only memory (PROM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 1002 may be, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that is accessible by a computer. The memory 1002 in the embodiments of the present application may also be a circuit or any other device capable of implementing a memory function and used to store program instructions and / or data.

[0146] By programming the processor 1001, code corresponding to the link switching method introduced in the above embodiment can be embedded into the chip, so that the chip can execute the link switching steps of the embodiment shown in Figure 4 when running. How to design and program the processor 1001 is a technique known to those skilled in the art, and will not be described here.

[0147] Based on the same inventive concept, an embodiment of the present application further provides a storage medium, which stores computer instructions, and when the computer instructions run on a computer, causes the computer to perform the above-mentioned link switching method.

[0148] In some possible embodiments, each aspect of the link switching method according to the present application may be realized in the form of a program product, which includes program code, and when the program product runs on an apparatus, the program code is used to cause the control device to execute the steps of the link switching method of each exemplary embodiment according to the present application described above in this specification.

[0149] As will be appreciated by those skilled in the art, the present application may be provided as a method, a system, or a computer program product. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.

[0150] The present application is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, may be implemented by computer program instructions. These computer program instructions may 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. The instructions, executed by the processor of the computer or other programmable data processing device, thereby produce an apparatus for implementing the functions specified in one or more flows in the flowcharts and / or one or more blocks in the block diagrams.

[0151] These computer program instructions may be stored in a computer-readable memory that can cause a computer or other programmable data processing device to operate in a particular manner, whereby the instructions stored in the computer-readable memory produce an article of manufacture that includes an instruction apparatus that implements the functions specified in one or more flows in the flowcharts and / or one or more blocks in the block diagrams.

[0152] These computer program instructions may be installed on a computer or other programmable data processing device to cause the computer or other programmable device to perform a series of operational steps to generate a computer-implemented process, whereby the instructions executing on the computer or other programmable device provide steps for implementing the functions specified in one or more flows in the flowcharts and / or one or more blocks in the block diagrams.

[0153] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application also intends to include these modifications and variations.

Claims

1. A link switching method, comprising: determining a fault condition of a first link, the first link being a link between the spectrometer and the first transmitting end; if it is determined that a fault has occurred in the first link, determining a fault state of a second link, the second link being a link between the spectrometer and a second transmitting end; and when it is determined that no failure has occurred in the second link, switching data transmission from the first link to the second link; wherein the spectrometer is configured to receive a first optical signal transmitted by a multiplexer, transmit the first optical signal into a first branched optical signal and a second branched optical signal, transmit the first branched optical signal to the first transmitting end, and transmit the second branched optical signal to the second transmitting end, the first branched optical signal being used to detect a fault state of the first link, and the second branched optical signal being used to detect a fault state of the second link.

2. determining a fault condition of the first link includes:

2. The method of claim 1, further comprising: obtaining an interval time length during which the first branch optical signal is not transmitted in the first link; and determining that a fault has occurred in the first link if the interval time length exceeds a predetermined time length.

3. determining a fault condition of the first link includes:

2. The method of claim 1, further comprising: obtaining a third optical power corresponding to the first branch optical signal transmitted by the first link; and determining that a fault has occurred in the first link if the third optical power is not within a third preset optical power range.

4. determining a fault condition of the first link includes: acquiring an interval time length during which the first branched optical signal is not transmitted in the first link; If the interval time length does not exceed a predetermined time length, acquiring a third optical power corresponding to the first branched optical signal transmitted by the first link; and determining that a fault has occurred in the first link if the third optical power is not within a third preset optical power range.

5. Prior to determining a fault condition of the first link, the method further comprises:

5. The method according to claim 1, further comprising: controlling the transmission function and the reception function of the first transmitting end to be on; and controlling the transmission function of the second transmitting end to be off and the reception function to be on.

6. determining whether a failure has occurred in the second link includes: The method of claim 1 , further comprising: obtaining a fault condition of the second link detected by the second transmitting end.

7. The step of switching from the first link to the second link to transmit data includes: The method of claim 6, comprising: controlling the first transmitting end to turn off a transmitting function and the second transmitting end to turn on a receiving function; and controlling the second transmitting end to turn on both a transmitting function and a receiving function.

8. A link switching device, a first determination module configured to determine a fault state of a first link, the first link being a link between the spectrometer and the first transmitting end; a second determination module configured to determine a fault state of a second link between the spectrometer and a second transmitting end when determining that a fault has occurred in the first link; a switching module configured to switch data transmission from the first link to the second link when it is determined that the second link is not faulty; wherein the spectrometer is configured to receive a first optical signal transmitted by a multiplexer, transmit the first optical signal into a first branched optical signal and a second branched optical signal, transmit the first branched optical signal to the first transmitting end, and transmit the second branched optical signal to the second transmitting end, the first branched optical signal being used to detect a fault state of the first link, and the second branched optical signal being used to detect a fault state of the second link.

9. A communication device, a multiplexer configured to receive a third optical signal transmitted by a first receiving end and a fourth optical signal transmitted by a second receiving end, couple the third optical signal and the fourth optical signal into a first optical signal, and transmit the first optical signal to a spectrometer; a demultiplexer configured to receive the first optical signal, demultiplex the first optical signal into a first branched optical signal and a second branched optical signal, transmit the first branched optical signal to a first transmitting end, and transmit the second branched optical signal to a second transmitting end, wherein a link between the first transmitting end and the demultiplexer is a first link, a link between the second transmitting end and the demultiplexer is a second link, the first branched optical signal is used to detect a fault state of the first link, and the second branched optical signal is used to detect a fault state of the second link; and the spectrometer configured to receive a fifth optical signal transmitted by the second transmitting end when data transmission is performed by switching from the first link to the second link based on a failure state of the first link and a failure state of the second link.

10. the communication device further includes a demultiplexer; the spectrometer is configured to transmit the fifth optical signal to the demultiplexer; and 10. The communication device of claim 9, wherein 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, transmit the sixth optical signal to the first receiving end, and transmit the seventh optical signal to the second receiving end.

11. A link switching system, comprising: a spectrometer; 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 transmit a third optical signal to the multiplexer; the second receiving end is configured to transmit 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 spectrometer; the splitter is configured to receive the first optical signal, split the first optical signal into a first split optical signal and a second split optical signal, transmit the first split optical signal to a first transmitting end, and transmit the second split optical signal to a second transmitting end, wherein a link between the first transmitting end and the splitter is a first link, and a link between the second transmitting end and the splitter is a second link; the first transmitting end is configured to receive the first branched optical signal for detecting a fault state of the first link, and when it is determined that a fault occurs in the first link and that no fault occurs in the second link, to control the first link to be switched to the second link for data transmission; and The second transmitting end is configured to receive the second branched optical signal for performing fault condition detection on the second link.

12. further comprising a demultiplexer; The spectrometer is configured to receive a fifth optical signal transmitted by the second transmitting end when the first link is switched to the second link to transmit data, and to transmit the fifth optical signal to the demultiplexer; and 12. The system of claim 11, wherein 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, transmit the sixth optical signal to the first receiving end, and transmit the seventh optical signal to the second receiving end.

13. 12. The system according to claim 11, wherein, before controlling the first link to be switched to the second link for data transmission, the first transmitting end is configured to obtain an interval time length during which the first branch optical signal is not transmitted in the first link, and to determine that a failure has occurred in the first link if the interval time length exceeds a predetermined time length.

14. 12. The system of claim 11, wherein before controlling the first link to be switched to the second link for data transmission, the first transmitting end is configured to obtain a third optical power corresponding to the first branched optical signal transmitted by the first link, and determine that a fault has occurred in the first link if the third optical power is not within a third preset optical power range.

15. 12. The system of claim 11, wherein, before controlling the first link to be switched to the second link for data transmission, the first transmitting end is configured to obtain an interval time length during which the first branch optical signal is not transmitted in the first link, and if the interval time length does not exceed a predetermined time length, obtain a third optical power corresponding to the first branch optical signal transmitted by the first link, and if the third optical power is not within a third predetermined optical power range, determine that a fault has occurred in the first link.

16. 16. The system according to claim 11, wherein before controlling the first link to be switched to the second link for data transmission, the first transmitting end is configured to turn on a transmitting function and a receiving function, and the second transmitting end is configured to turn off a transmitting function and turn on a receiving function.

17. 16. The system according to claim 11, wherein before controlling the first link to be switched to the second link for data transmission, the first transmitting end is configured to acquire a fault state of the second link detected by the second transmitting end.

18. 18. The system of claim 17, wherein when a failure occurs in the first link and when it is determined that the second link is normal, the first transmitting end is configured to turn off a transmitting function and turn on a receiving function, and the second transmitting end is configured to turn on both the transmitting function and the receiving function.

19. An electronic device, a memory for storing a computer program; a processor for implementing the steps of the method of any one of claims 1 to 7 when executing a computer program stored in said memory.

20. 8. A computer-readable storage medium having stored therein a computer program that, when executed by a processor, implements the steps of the method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Passive optical network protection method and active / standby switch device and system

    CN101854566A

  • Method and device for protection changeover for pon

    JP2000349801A

  • Standby system diagnosis method of optical ring network

    JP2005217904A

  • Optical path switching device and communication method

    JP2015154272A

  • Data transfer apparatus

    JP2015156564A