Link switching method, system, electronic equipment and storage medium
The link switching method in passive Ethernet networks uses a spectrometer to detect and switch to functional links, addressing inefficiencies caused by failures, ensuring continuous high-bandwidth communication.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2026-03-30
AI Technical Summary
In passive Ethernet aggregation networks, link failures lead to inefficient data transmission as systems must wait for the faulty link to recover, affecting communication efficiency.
A link switching method that employs a spectrometer to split optical signals into branched signals for each link, allowing real-time detection of failures and immediate switching to a functional link, using dual determination systems for enhanced accuracy.
Ensures timely and efficient data transmission by bypassing faulty links, maintaining communication integrity and enabling high-bandwidth operations without waiting for link recovery.
Smart Images

Figure 0007837480000001 
Figure 0007837480000002 
Figure 0007837480000003
Abstract
Description
Technical Field
[0001] [Cross - reference to Related Applications] This application claims the priority of a Chinese patent application filed with the China National Intellectual Property Administration on July 24, 2023, with the application number 202310916016.6 and the application title "Link Switching Method, Apparatus, and Electronic Device", , and priority rights to the international patent application filed with the International Bureau on April 22, 2024, with application number PCT / CN2024 / 089177 the entire content of which is incorporated herein by reference.
[0002] This application relates to the field of communication technologies, and particularly to link switching methods, systems, electronic devices, and storage media.
Background Art
[0003] To provide a higher - bandwidth and easier - to - operate and maintain "gigabit" or "10 - gigabit" network in an enterprise office park, a passive Ethernet aggregation network architecture has been introduced.
[0004] FIG. 1 is a schematic diagram of a passive Ethernet aggregation network architecture according to the related art. As shown in FIG. 1, by adopting a transparent passive aggregation device, access devices (such as indoor switches) in a local area network can access a core switch through the transparent passive aggregation device, and further realize data transmission from the core switch to the access devices for data waiting to be transmitted.
Summary of the Invention
Problems to be Solved by the Invention
[0005] Each exemplary embodiment of this application provides a link switching method, system, electronic device, and storage media.
Means for Solving the Problems
[0006] According to a first aspect, this application provides a link switching method, and the method includes To determine the failure state of the first link, which is the link between the spectrometer and the first transmitting end, If it is determined that a failure has occurred in the first link, the failure state of the second link, which is the link between the spectrometer and the second transmitting end, is determined. If it is determined that no failure has occurred in the second link, the system will switch from the first link to the second link and transmit data. Here, the spectrometer is configured to receive a first optical signal transmitted by a multiplexer, split 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 the second branched optical signal to the second transmitting end, the first branched optical signal is used to detect a fault in the first link and the second branched optical signal is used to detect a fault in the second link.
[0007] The fault status here is primarily used to indicate whether a failure has occurred in either the first or second link. Using the method described above, if a failure occurs in the first link but not in the second link, data transmission is switched from the first link to the second link. This solves the problem of having to wait for the failed link to recover, which would otherwise affect data transmission efficiency.
[0008] In one possible implementation, determining the failure state of a first link includes obtaining the interval time length during which the first branch optical signal is not transmitted in the first link, and determining that a failure has occurred in the first link if the interval time length exceeds a preset time length.
[0009] In one possible implementation, determining the failure state of a first link includes obtaining a third optical power corresponding to the first branch optical signal transmitted by the first link, and determining that a failure 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 failure state of the first link is: The first link is used to detect the interval time length during which the first branched optical signal is not transmitted, If the interval time length does not exceed a preset time length, a third optical power corresponding to the first branched optical signal transmitted by the first link is acquired. The method includes determining that a failure has occurred in the first link if the third optical power is not within a third preset optical power range.
[0011] By using the method described above, a joint determination of the link failure status was made by determining whether the predetermined conditions based on the interval time length and the first optical power were met, employing a dual determination system to improve the accuracy of the determination results.
[0012] Embodiments of this application provide various methods for determining the failure state of a first link so that the method for determining the failure of a first link can be applied to a wider range of business scenarios.
[0013] One possible implementation further includes controlling the on-off state of the transmit and receive functions of the first transmitting end and the off-state of the transmit and receive functions of the second transmitting end before determining the failure state of the first link.
[0014] By using the method described above, the first transmitting end is set to a normal operating state and the second transmitting end is set to a standby state, ensuring that the second transmitting end can monitor the information transmitted by the first transmitting end in a timely manner and switch from the first link to the second link in accordance with the notification from the first transmitting end.
[0015] In one possible implementation, determining whether a failure has occurred in the second link involves obtaining the failure status of the second link as detected by the second transmitting end.
[0016] The above method allows for timely acquisition of the failure status of the second link, facilitating a switch from the first link to the second link only when it is determined that the second link can communicate successfully.
[0017] In one possible implementation, switching from the first link to the second link to transmit data includes controlling the off-state and on-state of the transmit function of the first transmitting end, and controlling the on-state of the transmit function and the receive function of the second transmitting end.
[0018] Using the method described above, in a passive Ethernet aggregate network architecture, after performing a link switchover, 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 on the second link.
[0019] According to a second aspect, the present application provides a link switching device, the device is A first determination module configured to determine the failure state of a first link, which is a link between a spectrometer and a first transmitting end, If it is determined that a failure has occurred in the first link, a second determination module is configured to determine the failure state of the second link, which is the link between the spectrometer and the second transmitting end. The system includes a switching module configured to switch from the first link to the second link and transmit data when it is determined that no failure has occurred in the second link. Here, the spectrometer is configured to receive a first optical signal transmitted by a multiplexer, split 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 the second branched optical signal to the second transmitting end, the first branched optical signal is used to detect a fault in the first link and the second branched optical signal is used to detect a fault in the second link.
[0020] The failure state here is mainly used to indicate whether a failure has occurred in the first link and the second link.
[0021] In one possible implementation, the first determination module acquires the duration of the interval during which the first branched optical signal is not transmitted in the first link, and is configured to determine that a failure has occurred in the first link when the duration of the interval exceeds a preset duration.
[0022] In one possible implementation, the first determination module acquires the third optical power corresponding to the first branched optical signal transmitted by the first link, and is configured to determine that a failure has occurred in the first link when the third optical power is not within a third preset optical power range.
[0023] In one possible implementation, the first determination module acquires the duration of the interval during which the first branched optical signal is not transmitted in the first link. When the duration of the interval does not exceed a preset duration, the first determination module acquires the third optical power corresponding to the first branched optical signal transmitted by the first link, and is configured to determine that a failure has occurred in the first link when the third optical power is not within a third preset optical power range.
[0024] In one possible implementation, before determining the failure state of the first link, the first determination module is further configured to control the activation of the transmission function and the reception function of the first transmission end, and control the deactivation of the transmission function and the activation of the reception function of the second transmission end.
[0025] In one possible implementation, the second determination module is configured to acquire the failure state of the second link detected by the second transmission end.
[0026] In one possible implementation, the switching module is configured to control the off-switching and on-switching of the transmit function and the receive function of the first transmitting end, and to control the on-switching of the transmit function and the receive function of the second transmitting end.
[0027] According to a third aspect, the present application provides a communication 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, to couple the third and fourth optical signals to a first optical signal, and to transmit the first optical signal to the spectrometer. The spectrometer is configured to receive the first optical signal, split the first optical signal into a first branched optical signal and a second branched optical signal, 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 link between the first transmitting end and the spectrometer is the first link, the link between the second transmitting end and the spectrometer is the second link, the first branched optical signal is used to detect a failure in the first link, the second branched optical signal is used to detect a failure in the second link, and The spectrometer is further configured to receive a fifth optical signal transmitted by the second transmitting end when it switches the first link to the second link based on the failure status of the first link and the failure status of the second link to perform data transmission.
[0028] In one possible implementation, the communication device further includes 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 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 to the first optical signal, and transmit the first optical signal to the spectrometer. The spectrometer is configured to receive the first optical signal, split the first optical signal into a first branched optical signal and a second branched optical signal, 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 link between the first transmitting end and the spectrometer is the first link, and the link between the second transmitting end and the spectrometer is the second link. The first transmitting end is configured to receive the first branch optical signal for detecting a fault state of the first link, and, if it determines that a fault has occurred in the first link and no fault has occurred in the second link, to switch the first link to the second link and perform data transmission, and The second transmitting end is configured to receive the second branch optical signal for detecting a fault condition in the second link.
[0030] In one possible implementation, the link switching system further includes 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 perform data transmission, 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 switch to the second link for data transmission, the first transmitting end is configured to obtain the interval time length during which the first branch optical signal is not being transmitted on the first link, and to determine that a failure has occurred in the first link if the interval time length exceeds a preset time length.
[0032] In one possible implementation, before controlling the first link to switch to the second link for data transmission, the first transmitting end is configured to acquire a third optical power corresponding to the first branch optical signal transmitted by the first link, and to determine that a failure 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 switch to the second link for data transmission, the first transmitting end is configured to obtain the interval time length during which the first branch optical signal is not being transmitted on the first link, and if the interval time length does not exceed a preset time length, to 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 preset optical power range, to determine that a failure has occurred in the first link.
[0034] In one possible implementation, the first transmitting end is configured to turn on its transmit and receive functions, and the second transmitting end is configured to turn off its transmit function and turn on its receive function, before controlling the first link to switch to the second link to transmit data.
[0035] In one possible implementation, the first transmitting end is configured to acquire the failure status of the second link detected by the second transmitting end before controlling the first link to switch to the second link for data transmission.
[0036] In one possible implementation, if a failure occurs in the first link and the second link is determined to be functioning normally, the first transmitting end is configured to turn off the transmitting function and turn on the receiving function, and the second transmitting end is configured to turn on both the transmitting and receiving functions.
[0037] According to the fifth aspect, this application provides an electronic device, which is Memory for storing computer programs, When executing a computer program stored in the aforementioned memory, the system includes a processor for implementing the steps of the link switching method described above.
[0038] According to the sixth aspect, a computer-readable storage medium is provided, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the link switching method described above are realized.
[0039] The first through sixth embodiments described above, and the technical effects achievable in each embodiment, are described by referring to the description of the first embodiment or the technical effects achievable in the various possible configurations of the first embodiment, and will not be described further here. [Brief explanation of the drawing]
[0040] To more clearly illustrate the examples of the present invention or the technical concepts in related technologies, the following briefly introduces the drawings that may be used in the description of the examples. It is obvious that the drawings in the following description are only a few examples of the present application, and those skilled in the art can obtain drawings of other examples based on these drawings without expending any creative effort. [Figure 1]This is a schematic diagram of a passive Ethernet aggregate network architecture according to an embodiment of this application. [Figure 2] This is a flowchart of the link switching method according to the embodiment of this application. [Figure 3] This is a schematic diagram of a passive Ethernet aggregate network architecture according to another embodiment of the present application. [Figure 4] This is a schematic diagram of the PON network architecture according to the embodiment of this application. [Figure 5] This is a schematic diagram of a PON network architecture according to another embodiment of this application. [Figure 6] This is a schematic diagram of a passive Ethernet aggregate network architecture according to yet another embodiment of this application. [Figure 7] This is a schematic diagram of a transparent passive integration device according to an embodiment of the present application. [Figure 8] This is a schematic diagram of a link switching system according to an embodiment of the present application. [Figure 9] This is a schematic diagram of the structure of a link switching device according to an embodiment of this application. [Figure 10] This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. [Modes for carrying out the invention]
[0041] To further clarify the purpose, technical proposal and advantages of this application, the following describes this application in more detail with reference to the drawings. The specific operating procedures in the embodiments of the method may be used in embodiments of the apparatus or system. As to what should be explained, the description of this application is as follows: There, "Multiple" means "at least two." In the description of this application, "and / or" or " / " This describes the relationships between related objects. Used for This indicates that three relationships can exist. You may .for example, 「 A and / or B " or "A / B"This may represent three cases: A alone, A and B as a combination, and B alone. The connection of A to B may represent two cases: A and B being directly connected, and A and B being connected via C. Furthermore, in the descriptions of this application, terms such as "first," "second," etc., are intended solely to distinguish descriptions and should not be understood as indicating or implying relative importance, nor should they be understood as indicating or implying order.
[0042] In the related technology, as shown in Figure 1, core switch C1 is connected to transparent passive aggregation device B1 via link a, and core switch C1 is connected to transparent passive aggregation device B2 via link b. If a failure occurs in link a or link b, it directly leads to the access device corresponding to the faulty link access being in an abnormal operating state. If it is necessary to restore the access device to its normal operating state, it is necessary to wait for the faulty link to recover. Therefore, how to achieve fault link recovery in a passive Ethernet aggregation network architecture has become a major problem to be solved.
[0043] To solve the problems described above, embodiments of this application provide a link switching method for achieving link multiplexing between a core switch and a transparent passive aggregation device, thereby enabling a timely switch from a faulty link to a normal link in the event of a faulty link. Herein, the method and apparatus of the embodiments of this application are based on the same technical concept and the principles of the problems solved by the method and apparatus are similar, so embodiments of the apparatus and method may refer to each other, and the overlaps will not be explained further.
[0044] The embodiments of this application will be described in detail below with reference to the drawings.
[0045] Embodiments of this application provide a link switching method that can solve the link switching problem in a passive Ethernet aggregate architecture, and this method may be implemented by a first receiving end or a second receiving end. Figure 2 is a flowchart of the link switching method according to an embodiment of this application, and as shown in Figure 2, this method includes the following steps.
[0046] The fault condition of the first link, which is the link between the spectrometer and the first transmitting end, is determined (step S21). The fault condition here is mainly used to indicate whether a failure has occurred in the first link.
[0047] Figure 3 is a schematic diagram of another passive Ethernet aggregate network architecture according to an embodiment of the present application. As shown in Figure 3, the embodiment of the present application employs a passive Ethernet aggregate network architecture and can realize data transmission based on a wavelength division multiplexing mechanism, for example, Coarse Wavelength Division Multiplexing (CWDM). In Figure 3, This passive Ethernet aggregation network architecture includes a first transmitter, a second transmitter, a first receiver, a second receiver, and transparent passive aggregation equipment. The first and second receiving ends may be access switches. Devices such as PCs, wireless access terminals, and smart phones are connected to a transparent passive aggregation device via the access switches. The transparent passive aggregation device may include multiplexers and demultiplexers, the type of which can be selected according to actual needs, and may be, but not limited to, coarse wavelength-division multiplexing (CWDM), dense wavelength-division multiplexing (DWDM), or multi-wavelength division multiplexing (MWDM) devices. The first and second transmitting ends may be core switches. TheOptical modules for converting photoelectric signals are provided at the first receiving end, the second receiving end, the first transmitting end, and the second transmitting end.
[0048] In the embodiments of this application, to further realize link switching, a spectrometer can be provided between the first transmitting end and a transparent passive integrator, and this spectrometer is also provided simultaneously between the second transmitting end and this transparent passive integrator. The link between this spectrometer and the first transmitting end is the first link, and the link between this spectrometer and the second transmitting end is the second link. This spectrometer is used to receive a first optical signal transmitted by the first receiving end or the second receiving end via the transparent passive integrator, and to 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 above spectrometer may also be a 1:2 spectrometer for realizing signal fission, which can divide one input optical signal into two equal output optical signals and transmit them within two different channels.
[0050] In the embodiments of this application, the Ethernet aggregated passive architecture network supports the peer-to-peer (P2P) protocol. 。 Signal interference occurs when both the first transmitter corresponding to the first link and the second transmitter corresponding to the second link have the TX function turned on. Therefore, P2P requires that the transmit function (full name in English: Transport, abbreviated as TX) of the second transmitting end corresponding to the second link be turned off.
[0051] After the first and second transmitting ends are connected to the power supply, the first transmitting end needs to be brought into normal operation by turning on the TX function and the Receive (RX) function of the first transmitting end's optical module. Here, the TX and RX functions of the optical module at the first transmitting end correspond to the first link.The first transmitting end transmits a second optical signal in response to the first branched optical signal. Furthermore, the second transmitting end must be able to receive optical signals by turning off the TX transmission function of its optical module, preventing it from transmitting a signal, while keeping its RX function on. Here, the TX and RX functions of the optical module at the second transmitting end correspond to the second link. At this time, the second transmitting end is in a standby state, and in this standby state, the second transmitting end can only receive signals and cannot transmit signals. The second transmitting end can receive the link switching message transmitted by the first transmitting end in a timely manner, thereby enabling the switching between the first link and the second link to be completed smoothly.
[0052] To ensure that switching between different links is possible, the receiving end must detect a failure in the first link and then determine whether it is necessary to switch the first link based on the failure condition of the first link.
[0053] In one possible implementation, the receiving end can detect a failure in the first link by detecting the interval length during which the second optical signal is not transmitted over the first link at a preset period, and can determine whether the interval length is greater than a preset length. If the interval length is greater than a preset length, the receiving end can determine that the second optical signal has been lost, and thus determine that the first link has failed. If the interval length is less than or equal to the preset length, the receiving end can determine that the second optical signal has already been received successfully, and thus determines that the first link is not faulty, i.e., is in a normal state.
[0054] In one possible implementation, the receiving end detects the first optical power corresponding to the second optical signal transmitted by the first transmitting end on 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 is determined that the first link is faulty. If the first optical power is less than the minimum optical power of the first preset optical power range, it means that the second optical signal strength is relatively weak, and there is a risk of communication service interruption. 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, and the lifespan of the optical module will be shortened.
[0055] In one possible implementation, the receiving end detects the interval length during which the second optical signal is not transmitted on the first link at a predetermined period and determines whether the interval length is greater than the predetermined length. If the interval length does not exceed the predetermined length, the receiving end determines that the optical signal has been received. The receiving end further determines the first optical power corresponding to the second optical signal on the first link and determines whether the first optical power is within the first predetermined optical power range. If the first optical power is within the first predetermined optical power range, and this means that the second optical signal corresponding to the first optical power is normal, the receiving end determines that the first link is normal. If the first optical power is not within the first predetermined optical power range, and this means that the second optical signal corresponding to the first optical power is abnormal, the receiving end determines that the first link has failed. If the first optical power is less than the minimum optical power within the first predetermined optical power range, this means that the intensity of the second optical signal is relatively weak and there is a risk of communication service interruption. If the first optical power is greater than the maximum optical power within the first preset optical power range, it means that the second optical signal is too strong, resulting in a shorter operating time for the optical module.
[0056] The receiving end can select one of the three methods described above to determine the detection result depending on the actual scenario, thereby adapting to a wider range of actual scenarios, facilitating the acquisition of the detection result by the receiving end, and ensuring the accuracy of the obtained detection result. It should be noted that other methods may be used for detecting the operating state of the first link, and the three methods described above are merely enumerations and do not limit the embodiments of this application. Any obvious modifications made by those skilled in the art based on the above methods are all within the scope of protection of this 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). Here, 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 aggregate network architecture supports peer-to-peer protocols and, to avoid signal interference, keeps the TX function of the second transmitting end turned off while the RX function of the second transmitting end remains on, allowing the second transmitting end to receive the second branched optical signal transmitted by this receiving end in real time. Here, the TX and RX functions of the second transmitting end correspond to the second link.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, the receiving end, after determining that a failure has occurred in the first link, determines the second optical power corresponding to this second branch optical signal from the second transmitting end, and further detects whether this 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 can be determined to be normal. If the second optical power is not within the second preset optical power range, the second link can be determined to be abnormal. The first transmitting end reads the result of whether the second link is normal or abnormal, as detected by the second transmitting end, in real time and transmits this detection result to the receiving end. It should be noted that the second transmitting end may determine the state of the second link by detecting the interval time length during which the second branch optical signal is not being transmitted in the second link. Any obvious modifications made by persons skilled in the art based on the above method are within the scope of protection of this application.
[0059] After determining the state of the second link based on the above description 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 use the second link for data transmission.
[0060] If it is determined that there is no failure in the second link, the system switches from the first link to the second link to transmit data (step S23).
[0061] In one possible implementation, the TX function of the first transmitter end is turned off, the RX function of the first transmitter end is turned on, and the TX and RX functions of the second transmitter end are turned on. Data transmission This enables switching from the first link to the second link, and further enables normal data transmission on the second link. Here, the TX and RX functions of the first transmitting end correspond to the first link, and the TX and RX functions of the second transmitting end correspond to the second link.
[0062] Based on the above method, the passive Ethernet aggregate network architecture achieves link multiplexing using a spectrometer, meaning the first link acts as the main link for communication and the second link as the secondary link. By monitoring the failure status of both the first and second links, if a failure occurs in the first link and the second link is detected as normal, the system switches directly from the first link to the second link to transmit data. This solves the problem in related technologies where it is necessary to passively wait for the recovery of the faulty link, which affects data transmission efficiency.
[0063] In one possible implementation, to ensure efficient transmission of pending data on the second link, the second link can be configured with the full power bandwidth, which is the maximum bandwidth the second link can be enabled for. Referring to Figure 3, for example, the maximum bandwidth between the first transmit and receive ends 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 actual application scenarios, if it is not possible to allocate the maximum bandwidth to the second link, a bandwidth smaller than the maximum bandwidth may be allocated to the second link.
[0064] One possible implementation is to achieve the goal of high broadband transmission in a passive Ethernet aggregate network architecture by configuring the full bandwidth power for a second link.
[0065] Furthermore, because the passive Ethernet aggregate network architecture in the embodiment of this application employs a wavelength division multiplexing mechanism, the bandwidth allocated by the core device to the access device does not decrease compared to the PON network architecture in conventional network architectures. In a PON network architecture, the bandwidth allocated by the core device to the access device decreases.
[0066] Figure 4 is a schematic diagram of a PON network architecture using related technologies. 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 called a spectrometer). To ensure the reliability of the PON network architecture, two technical proposals are introduced: PON type single-home and PON type dual-home. As shown in Figure 4, when there is only one OLT in the PON network, the network connection method is called a PON single-home connection. When there are two OLTs in the PON network, the network connection method is called a PON dual-home connection.
[0067] PON Single Home Connection The continuation is , This includes two types: PON type B single home connection and PON type C single home connection. If the PON single-homed connection is a PON type B single-homed connection, there are two links between one spectrometer and one OLT. If the PON single-homed connection is a PON type C single-homed connection, two spectrometers are connected to one OLT, with one link between each spectrometer and the OLT, and two links between the two spectrometers and the OLT. PON dual-homed connection This includes two types: PON type B dual home connection and PON type C dual home connection. If the PON dual-home connection is PON type B dual-home, each spectrometer is connected to two OLTs, and there are two links between one spectrometer and the two OLTs. If the PON dual-home connection is PON type C dual-home, each of the two spectrometers is connected to its own OLT, and there are also two links between the two spectrometers and the two OLTs.
[0068] If a failure occurs in either of the two links between the spectrometer and the OLT described above, the communication system will 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 link.
[0069] Referring to the PON type B single-home connection in Figure 4, there are links 1 and 2 between the spectrometer and the OLT. If a failure occurs in link 1, the communication system automatically switches from link 1 to link 2. After the failure in link 1 is resolved, 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 the PON network architecture achieves data transmission based on the Time Division Multiplexing (TDM) mechanism. The TDM mechanism distinguishes signals transmitted sequentially on the same channel in time. For example, based on the TDM mechanism, one second is divided into two 0.5 seconds, data A is not transmitted in the first 0.5 seconds, and data A is transmitted in the second 0.5 seconds, so that the time that data A actually occupies within this one second for data transmission is only 0.5 seconds.
[0071] Dividing the amount of data transmitted by the transmission time gives the bitrate. If the maximum broadband rate of the network is 2048 bits / 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 bitrate is 2048 bits / s. In reality, based on the TDM mechanism, after data A occupies 0.5 seconds, there is a 0.5-second wait, so the bitrate corresponding to data A decreases to 1024 bits / s. In other words, theoretically, data A can successfully transmit 2048 bits within one second. Due to the limitations of the TDM mechanism, currently only 1024 bits can be transmitted within one second, which leads to a reduction in bandwidth.
[0072] Figure 5 is a schematic diagram of another PON network architecture using related technologies. In Figure 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, then the equipment connected to each ONU shares the 5G bandwidth. If the number of ONUs connected to a single spectrometer is large, the average bandwidth allocated to each ONU will decrease.
[0073] In summary, the passive Ethernet aggregate network architecture based on the embodiment of this application can further achieve high broadband data transmission by solving the bandwidth convergence problem.
[0074] Embodiments of this application further provide a link switching method that can solve the link switching problem in a passive Ethernet aggregate network architecture, and this method may be implemented by a first transmitting end.
[0075] Referring to Figure 3, This passive Ethernet aggregation network architecture includes a first transmitter, a second transmitter, a first receiver, a second receiver, a transparent passive aggregation device, and a spectrometer. The TX transmission function and RX reception function of the first transmitting terminal are both in the ON state. The second transmitting terminal is in the standby state; that is, the TX transmission function of the second transmitting terminal is OFF, and the RX reception function of the second transmitting terminal is ON. The TX and RX functions of the first transmitting end correspond to the first link, and the TX and RX functions of the second transmitting end correspond to the second link. To synchronize information between the first and second transmitting ends in real time, the second transmitting end can monitor the information from the first transmitting end in real time, and the first transmitting end can receive messages from the second transmitting end in real time.
[0076] According to the method of the embodiment of this application, the first transmitting end determines the failure state of the first link, which is the link between the spectrometer and the first transmitting end. If it is determined that a failure has occurred in the first link, the failure state of the second link, which is the link between the spectrometer and the second transmitting end is determined. The failure state here mainly affects the first link. or It is used to indicate whether a failure has occurred in the second link. If it is determined that there is no failure in the second link, the system switches from the first link to the second link to transmit data. 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 branched optical signal and a second branched optical signal, transmits the first branched optical signal to the first transmitting end, and transmits the second branched optical signal to the second transmitting end. The first branched optical signal is used to detect the failure state of the first link, and the second branched optical signal is used to detect the failure state of the second link. The multiplexer is configured to receive a third optical signal transmitted by the first receiving end and a fourth optical signal transmitted by the second receiving end, couple the third and fourth optical signals to the first optical signal, and transmit the first optical signal to the spectrometer.
[0077] In one possible implementation, the first transmitting end can detect the interval length during which the first branch optical signal is not transmitted in the first link at a predetermined period, and if the interval length is greater than the predetermined length, it can determine that the first link is faulty.
[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. If the third optical power is not within the third preset optical power range, a failure of the first link is determined.
[0079] In one possible implementation, the first transmitting end detects the interval length during which the first branch optical signal is not transmitted on the first link at a predetermined period, and determines whether the interval length is greater than the predetermined length. If the interval length does not exceed the predetermined length, the first transmitting end determines that the first branch optical signal has been received. The first transmitting end further determines the 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 a third predetermined optical power range, it determines that the first link has failed.
[0080] If a failure occurs in the first link, the first transmitting end must ensure that the second link is in a normal state when switching occurs. The first transmitting end obtains the detection result of the second link state from the second transmitting end. When the second transmitting end receives the second branched optical signal transmitted by the receiving end, it determines the second optical power corresponding to the second branched 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 determine the state of the second link by detecting the interval time length during which the second branched optical signal is not being transmitted in the second link. Any obvious modifications made by persons 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 functioning correctly based on the detection results received from the second transmitting end, it switches from the first link to the second link. data transmission Specifically, the TX function of the first transmitting end is turned off, the RX function is turned on, and both the TX and RX functions of the second transmitting end are turned on. Here, the TX and RX functions of the first transmitting end correspond to the first link, and the TX and RX functions of the second transmitting end correspond to the second link. The above method solves the problem of data transmission efficiency being affected by waiting for the faulty link to recover. Switch from the first link to the second link. and perform data transmission Subsequently, the entire power bandwidth may be configured for the second link, achieving high broadband data transmission in a passive Ethernet aggregate network architecture.
[0082] Embodiments of this application further provide a link switching method that can solve the link switching problem in a passive Ethernet aggregate network architecture, the method which may be implemented by servers corresponding to a first and second transmitting end. Figure 6 is a schematic diagram of yet another passive Ethernet aggregate network architecture according to this application. This passive Ethernet aggregation network architecture includes the server, the first transmitting end, the second transmitting end, the first receiving end, the second receiving end, a transparent passive aggregation device, and a spectrometer. As shown in Figure 6, the first and second transmitting ends are managed by a single server, where the first link corresponding to the first transmitting end is the main link, and the second link corresponding to the second transmitting end is the backup link.
[0083] According to the method of the embodiment of this application, the server determines the failure state of the first link, which is the link between the spectrometer and the first transmitting end. If it is determined that the first link has failed, the server determines the failure state of the second link, which is the link between the spectrometer and the second transmitting end. The failure state here is mainly used to indicate whether failures have occurred in the first and second links. If it is determined that the second link has not failed, the server switches from the first link to the second link to transmit data. 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 branched optical signal and a second branched optical signal, transmits the first branched optical signal to the first transmitting end, and transmits the second branched optical signal to the second transmitting end. The first branched optical signal is used to detect the failure state of the first link, and the second branched optical signal is used to detect the failure 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 and fourth optical signals with a first optical signal, and transmit the first optical signal to the spectrometer.
[0084] In one possible implementation, the server can directly obtain the interval time length during which the first branch optical signal is not being transmitted on the first link in order to determine the failure status of the first link. If the interval time length exceeds a preset 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 failed.
[0085] In one possible implementation, the server can directly obtain the third optical power corresponding to the first branch optical signal on the first link. If the third optical power is not within the third preset optical power range, it determines that the first link has failed. 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, resulting in a shorter operating time for 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, posing a risk of disruption to communication services.
[0086] In one possible implementation, the server can obtain the interval time length during which the first branch optical signal is not being transmitted on the first link. If the server determines that the interval time length does not exceed a preset time length, it then obtains a third optical power corresponding to the first branch optical signal, and if the third optical power is not within a third preset optical power range, it determines that the first link has failed.
[0087] The TX function of the second transmitting end is turned off and the RX function is turned on, so the second transmitting end can receive the second branched optical signal transmitted by the receiving end. The second transmitting end determines the second optical power corresponding to the second branched optical signal and detects whether this second optical power is within a second preset optical power range. Here, the TX and RX functions of the second transmitting end correspond to the second link. If this second optical power is within a second preset optical power range, the second link is determined to be normal. If this second optical power is outside the second preset optical power range, the second link is determined to be abnormal. For illustrative purposes, the second transmitting end may determine the state of the second link by detecting the interval time in which the second branch optical signal is not being transmitted in the second link. Any obvious modifications made by persons skilled in the art based on the above method are within the scope of protection of this application.
[0088] If the server determines that the first link has failed and the second link is functioning correctly, For data transmissionThe system switches from the first link to the second link. Specifically, by turning off the TX function and turning on the RX function at the first transmitting end, and turning on both the TX and RX functions at the second transmitting end, the system waits for the faulty link to recover, thus resolving the issue that affects data transmission efficiency.
[0089] In one possible implementation, the first link from Switch to the second link Data transmission was performed. Later, the server configured its full power bandwidth for the second link, enabling high-broadband data transmission in a passive Ethernet aggregate network architecture.
[0090] Based on the above method, a second link is configured as a backup link in a passive Ethernet aggregate network architecture, and if the first link (main link) fails, the network switches from the first link to the second link. to perform data transmission This solves a related technical problem in passive Ethernet aggregate network architectures where, if a link fails, it is necessary to wait for the failed link to recover, thereby affecting data transmission efficiency.
[0091] In one case, the spectrometer can be integrated into a transparent passive integration device. Figure 7 is a schematic diagram of a transparent passive integration device according to this application, and as shown in Figure 7, the transparent passive integration device This includes a spectrometer and a multiplexer / demultiplexer. The spectrometer is connected to a multiplexer / demultiplexer.
[0092] The transparent passive integration device includes a multiplexer connected to a spectrometer and the spectrometer itself. 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 and fourth optical signals into a first optical signal, and transmits the first optical signal to the spectrometer. After receiving the first optical signal, the spectrometer 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] It should be explained that the link between the first transmitting end and the transparent passive aggregation device is called the first link, and the link between the second transmitting end and the transparent passive aggregation device is called the second link. If a failure occurs in the first link and the second link is functioning normally, data transmission switches 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 and RX functions of the second transmitting end are turned on. Here, the TX and RX functions of the first transmitting end correspond to the first link, and the TX and RX functions of the second transmitting end correspond to the second link. 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 integration unit further includes a demultiplexer. (First link) from Switch to the second link Data transmission was performed. Subsequently, the second transmitting end transmits the fifth optical signal to the spectrometer, which then transmits the fifth optical signal to the demultiplexer. After receiving the fifth optical signal, the demultiplexer decouples it into the sixth and seventh optical signals, transmitting 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 transparent passive integration equipment, the spectrometer is integrated into the transparent passive integration equipment to form a first link and a second link. This ensures that if the first link fails... From the first link Switch to the second link Perform data transmission This solves the problem of data transmission efficiency being affected by waiting for a faulty link to recover.
[0096] In one possible implementation, a demultiplexer is further provided in the transparent passive integrator. The spectrometer transmits a fifth optical signal to the demultiplexer. The demultiplexer receives the fifth optical signal, decouples it into a sixth and a seventh optical signal, transmits the sixth optical signal to the first receiving end, and transmits the seventh optical signal to the second receiving end.
[0097] This application further provides a link switching system, and Figure 8 is a schematic diagram of the link switching system according to this application. As shown in Figure 8, the link switching system includes a transparent passive integrator, a first transmitting end, a second transmitting end, a first receiving end, and a second receiving end. The transparent passive integrator 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 integrator, and the first receiving end and the second receiving end are each connected to the multiplexer in the transparent passive integrator.
[0098] In a transparent passive integrated device, the multiplexer receives a third optical signal transmitted by the first receiving end and a fourth optical signal transmitted by the second receiving end, and couples the third and fourth optical signals to the first optical signal. In a transparent passive integrated device, the spectrometer splits the first optical signal into a first branched optical signal and a second branched optical signal, transmits the first branched optical signal to the first transmitting end and the second branched optical signal to the second transmitting end, so that the first transmitting end receives the first branched optical signal and the second transmitting end receives the second branched optical signal.
[0099] In one possible implementation, if the first transmitting end further determines that a failure has occurred in the first link and that a failure has not occurred in the second link, then the first link from It is configured to control the system to switch to the second link and perform data transmission.
[0100] In one possible implementation, the first transmitting end is configured to determine the state of the first link. If the interval time length during which the first branch optical signal is not transmitted on the first link exceeds a preset time length, the first link is determined to be faulty. In one possible implementation, if the detection result indicates that the third optical power corresponding to the first branch optical signal transmitted on the first link is not within a third preset optical power range, the first link is determined to be faulty. 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 a preset time length, the third optical power corresponding to the first branch optical signal is within the third preset optical power range. three The system further detects whether the optical power is within a preset optical power range, and if the third optical power corresponding to the first branch optical signal is not within the third preset optical power range, it determines that the first link has failed.
[0101] The first transmitting end also needs to obtain the detection result of the second branch optical signal detected by the second transmitting end in order to smoothly complete link switching when the first link fails and the second link is functioning normally. The second transmitting end determines the second optical power corresponding to the second branch optical signal, and determines that the second link is normal if this second optical power is within the second preset optical power range. If this optical power is not within the second preset optical power range, it determines that the second link is abnormal. The first transmitting end can directly obtain the detection result of whether the second link is normal or abnormal from the second transmitting end.
[0102] The first transmitting end will switch from the first link to the second link if it determines that the first link has failed and the second link is functioning correctly. to perform data transmission This solved the problem of having to wait for a faulty link to recover, which would have affected data transmission efficiency.
[0103] In one possible implementation, the first link fromBefore controlling the switch to the second link to perform data transmission, the first transmitting end is configured to turn on its transmit and receive functions, and the second transmitting end is configured to turn off its transmit function and turn on its receive function. Here, the transmitting and receiving functions of the first transmitting end correspond to the first link, and the transmitting and receiving functions of the second transmitting end correspond to the second link.
[0104] In one possible implementation, if a failure occurs in the first link and the second link is determined to be functioning normally, the first transmitting end is configured to turn off the transmitting function and turn on the receiving function. The second transmitting end is configured to turn on both the transmitting and receiving functions to enable switching from the first link to the second link. Here, the transmitting and receiving functions of the first transmitting end correspond to the first link, and the transmitting and receiving functions of the second transmitting end correspond to the second link.
[0105] In one possible implementation, when data transmission is performed by switching from the first link to the second link, the second transmitting end transmits a fifth optical signal, and a spectrometer in a transparent passive aggregate device receives the fifth optical signal transmitted by the second transmitting end.
[0106] In one possible implementation, a demultiplexer is further provided in the transparent passive integrator. The spectrometer transmits a fifth optical signal to the demultiplexer. The demultiplexer receives the fifth optical signal, decouples it into a sixth and a seventh optical signal, transmits the sixth optical signal to the first receiving end, and transmits the seventh optical signal to the second receiving end.
[0107] It should be noted that the transparent passive integration unit with a spectrometer in the above link switching system can be disassembled and operated as an independent spectrometer and an independent multiplexer / demultiplexer unit.
[0108] Based on the above description, if it is determined that the first link has failed and the second link is functioning normally, the system switches from the first link to the second link to transmit data, and integrates the spectrometer into a transparent passive integration device. This solves the problem of data transmission efficiency being affected by waiting for the failed link to recover.
[0109] Based on the same inventive concept, embodiments of this application further provide a link switching device, which is used to realize the function of a link switching method, and referring to Figure 9, the device is A first determination module 901 is configured to determine the failure state of the first link, which is the link between the spectrometer and the first transmitting end, If it is determined that a failure has occurred in the first link, a second determination module 902 is configured to determine whether a failure has occurred in the second link, which is the link between the spectrometer and the second transmitting end. The system includes a switching module 903 configured to switch from the first link to the second link and transmit data when it is determined that no failure has occurred in the second link.
[0110] Here, the spectrometer is configured to receive a first optical signal transmitted by a multiplexer, split 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 the second branched optical signal to the second transmitting end, the first branched optical signal is used to detect a fault in the first link and the second branched optical signal is used to detect a fault in 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 and fourth optical signals with the first optical signal, and transmit the first optical signal to the spectrometer.
[0111] In one possible implementation, the first determination module 901 is configured to obtain the interval time length during which the first branch optical signal is not transmitted in the first link, and to determine that the first link has failed if the interval time length exceeds a preset time length.
[0112] In one possible design, the first determination module 901 is configured to acquire a third optical power corresponding to a first branch optical signal transmitted by the first link, and to determine a failure 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 the interval time length during which the first branch optical signal is not being transmitted in the first link, and if the interval time length does not exceed a preset time length, to 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 preset optical power range, to determine that the first link is faulty.
[0114] In one possible design, the second decision module 902 is configured to acquire the fault condition of the second link as monitored by the second transmitting end.
[0115] In one possible design, the switching module 903 is configured to control the off-transmit function and on-receive function of the first transmitting end, and to control the on-transmit and on-receive functions of the second transmitting end. Here, the transmitting and receiving functions of the first transmitting end correspond to the first link, and the transmitting and receiving functions of the second transmitting end correspond to the second link.
[0116] In one possible design, the first determination module 901 is further configured to control the on-off of the transmit and receive functions of the first transmitting end, and the off-off of the transmit function and the on-off of the receive function of the second transmitting end, before determining whether a failure has occurred in the first link. Here, the transmitting and receiving functions of the first transmitting end correspond to the first link, and the transmitting and receiving functions of the second transmitting end correspond to the second link.
[0117] Based on the same inventive concept, embodiments of this application provide a communication device, which may be a transparent passive aggregation device. Referring to Figure 7, this 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 and fourth optical signals with a first optical signal, and transmit the first optical signal to the spectrometer.
[0119] The spectrometer is configured to receive the first optical signal, split the first optical signal into a first branched optical signal and a second branched optical signal, transmit the first branched optical signal to the first transmitting end, and transmit the second branched optical signal to the second transmitting end. Here, the link between the first transmitting end and the spectrometer is the first link, the link between the second transmitting end and the spectrometer is the second link, the first branched optical signal is used to detect a failure in the first link, and the second branched optical signal is used to detect a failure in the second link.
[0120] The spectrometer further determines the first link based on the failure state of the first link and the failure state of the second link. from When switching to the second link to perform data transmission, the system is configured to receive the fifth optical signal transmitted by the second transmitting end.
[0121] In one possible design, the communication equipment 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, this application provides a link switching system that can implement 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 aggregate 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 a fourth optical signal to a multiplexer in a transparent passive aggregation device.
[0127] The 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 to the first optical signal.
[0128] The spectrometer in the transparent passive integration device is configured to split 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. Here, the link between the first transmitting end and the spectrometer is the first link, and the link between the second transmitting end and the spectrometer is the second link.
[0129] The first transmitting end receives the first branch optical signal for detecting the fault state of the first link, and if it determines that a fault has occurred in the first link and no fault has occurred in the second link, the first link from It is configured to control the system to switch to the second link and perform data transmission.
[0130] The second transmitting end receives the second branch optical signal for detecting the fault state of the second link, and the first link from When switching to the second link and performing data transmission, the system is configured to transmit a fifth optical signal.
[0131] In one possible implementation, the transparent passive aggregate device is further provided with a demultiplexer. from When switching to the second link to perform data transmission, the spectrometer in the communication device is further configured to receive the fifth optical signal transmitted by the second transmitting end and to 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] This application provides a link switching system, which can implement the functions of the link switching method. Referring to Figure 6, the system comprises a spectrometer, a transparent passive integrator, a first transmitting end, a second transmitting end, a first receiving end, and a second receiving end. Includes Hmm. A transparent passive integration 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 integrator is configured to receive the third optical signal and the fourth optical signal, couple the third optical signal and the fourth optical signal to the first optical signal, and transmit the first optical signal to the spectrometer.
[0136] The spectrometer is configured to receive the first optical signal, split the first optical signal into a first branched optical signal and a second branched optical signal, transmit the first branched optical signal to the first transmitting end, and transmit the second branched optical signal to the second transmitting end. The link between the first transmitting end and the spectrometer is the first link, and the link between the second transmitting end and the spectrometer is the second link.
[0137] The first transmitting end receives the first branch optical signal for detecting the fault state of the first link, and if it determines that a fault has occurred in the first link and no fault has occurred in the second link, the first link from It is configured to control the system to switch to the second link and perform data transmission.
[0138] The second transmitting end receives the second branch optical signal for detecting the fault state of the second link, and the first link from When switching to the second link and performing data transmission, the system is configured to transmit a fifth optical signal.
[0139] In one possible implementation, the transparent passive aggregate device is further provided with a demultiplexer. from When switching to the second link to perform data transmission, the spectrometer is further configured to receive a fifth optical signal transmitted by the second transmitting end and to 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, embodiments of this application further provide an electronic device that can realize the function of the link switching device described above, and referring to Figure 10, the electronic device is The invention includes at least one processor 1001 and a memory 1002 connected to at least one processor 1001. In the embodiments of this application, the specific connection medium between the processor 1001 and the memory 1002 is not limited, and in Figure 10, the connection between the processor 1001 and the memory 1002 is shown as an example via a bus 1000. The bus 1000 is represented by a thick line in Figure 10, and the connection methods between other components are described only schematically and are not limited thereto. The bus 1000 may be divided into an address bus, a data bus, a control bus, etc., and for convenience of representation, it is represented by only one thick line in Figure 10, but it is not limited to having only one bus or only one bus type. Alternatively, the processor 1001 may be called a controller, and the name is not limited.
[0141] In the embodiments of this application, the memory 1002 stores instructions that can be executed by at least one processor 1001, and at least one processor 1001 can execute 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 Figure 9.
[0142] The processor 1001 is the control center of this device, and can connect all parts of the entire control device using various interfaces and lines, and operates or executes instructions stored in memory 1002 and retrieves data stored in memory 1002, thereby monitoring each function and data processing of 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. Here, the application processor mainly handles the operating system, user interface, and application programs, and the modem processor mainly handles wireless communication. The modem processor does not have to be integrated into the processor 1001. In some embodiments, the processor 1001 and 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 processor (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, which can implement or execute each method, step and logic block diagram disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any general-purpose processor. The steps of the link switching method disclosed in conjunction with the embodiments of this application may be implemented to be completed directly by a hardware processor or to be completed by a combination of hardware and software modules in the processor.
[0145] Memory 1002 may be used as a non-volatile computer-readable storage medium for storing non-volatile software programs, non-volatile computer-executable programs and modules. Memory 1002 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memory, magnetic disk, optical disk, etc. Memory 1002 may be, but is not limited to, any other medium accessible by a computer that can be used to carry or store desired program code having an instruction or data structure format. Memory 1002 in the embodiments of this application may further be a circuit or any other device capable of realizing a storage function, and is used to store program instructions and / or data.
[0146] By programming the processor 1001, code corresponding to the link switching method described in the above embodiment can be incorporated into the chip, thereby causing the chip to execute the link switching step of the embodiment shown in Figure 4 during operation. How to design and program the processor 1001 is a technique known to those skilled in the art and will not be explained here.
[0147] Based on the same inventive concept, the embodiment of this application further provides a storage medium in which computer instructions are stored, and when these computer instructions are executed on a computer, the computer is instructed to execute the link switching method described above.
[0148] In some possible embodiments, each aspect of the link switching method according to this application may also be implemented as a single program product, which includes program code, and when the program product is running on the device, the program code is used to cause the control device to perform the steps in each of the exemplary embodiments of the link switching method according to this application as described herein.
[0149] As those skilled in the art will see, embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of complete hardware embodiments, complete software embodiments, or embodiments combining software and hardware. Furthermore, this application can take the form of a computer program product implemented 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] This application is described with reference to flowcharts and / or block diagrams of the methods, apparatus (systems) and computer program products described herein. 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 dedicated computer, an embedded processor, or other programmable data processing device to generate a machine. The instructions executed by the processor of the computer or other programmable data processing device thereby generate an apparatus for implementing the functions specified in one or more flows in the flowchart and / or one or more blocks in the block diagram.
[0151] These computer program instructions may be stored in computer-readable memory that can operate a computer or other programmable data processing device in a specific manner. The instructions stored in the computer-readable memory generate a product including an instruction unit. This instruction unit implements the functions specified in one or more flows in a flowchart and / or one or more blocks in a block diagram.
[0152] These computer program instructions may be installed on a computer or other programmable data processing device. This allows a series of operational steps to be performed on the computer or other programmable device to generate processing realized by the computer. Thus, the instructions executed on the computer or other programmable device provide steps to realize a function specified in one or more flows in a flowchart, and / or one or more blocks in a block diagram.
[0153] Clearly, a person skilled in the art can make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and modifications of this application fall within the scope of the claims of this application and the equivalent art, this application is intended to include these modifications and modifications.
Claims
1. This is a method for switching links. To determine the failure state of the first link, which is the link between the spectrometer and the first transmitting end, If it is determined that a failure has occurred in the first link, the failure state of the second link, which is the link between the spectrometer and the second transmitting end, is determined. If it is determined that no failure has occurred in the second link, the system will switch from the first link to the second link and transmit data. Here, the spectrometer is configured to receive a first optical signal transmitted by a multiplexer, split 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 the second branched optical signal to the second transmitting end, the first branched optical signal is used to detect a fault in the first link and the second branched optical signal is used to detect a fault in the second link. Before determining the failure state of the first link, the method, A link switching method further comprising controlling the on-off state of the transmit function and receive function of the first transmitting end, and controlling the off-state of the transmit function and the on-off state of the receive function of the second transmitting end.
2. Determining the failure state of the first link as described above is: The interval time length during which the first branch optical signal is not transmitted in the first link is obtained, and if the interval time length exceeds a preset time length, it is determined that a failure has occurred in the first link, and / or Obtain a third optical power corresponding to the first branched optical signal transmitted by the first link, and if the third optical power is not within a third preset optical power range, determine that a failure has occurred in the first link, and / or The method according to claim 1, comprising: obtaining the interval time length during which the first branch optical signal is not transmitted in the first link; obtaining 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 preset time length; and determining that a failure has occurred in the first link if the third optical power is not within a third preset optical power range.
3. Determining the failure state of the second link as described above is: The method according to claim 1 or 2, comprising obtaining the fault condition of the second link detected by the second transmitting end.
4. The above-mentioned switching from the first link to the second link to transmit data is, The method according to claim 3, comprising controlling the off state of the transmission function and the on state of the reception function of the first transmitting end, and controlling the on state of the transmission function and reception function of the second transmitting end.
5. 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 to the first optical signal, and transmit the first optical signal to the spectrometer. The spectrometer is configured to receive the first optical signal, split the first optical signal into a first branched optical signal and a second branched optical signal, 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 link between the first transmitting end and the spectrometer is the first link, and the link between the second transmitting end and the spectrometer is the second link. The first transmitting end is configured to receive the first branch optical signal for detecting a fault state of the first link, and to control the switching from the first link to the second link to transmit data if it determines that a fault has occurred in the first link and no fault has occurred in the second link, and The second transmitting end is configured to receive the second branch optical signal for detecting a fault condition of the second link. A link switching system in which, before controlling the system to switch from the first link to the second link to perform data transmission, the first transmitting end is configured to turn on its transmit and receive functions, and the second transmitting end is configured to turn off its transmit function and turn on its receive function.
6. It further contains demultiplexa, The spectrometer is configured to receive a fifth optical signal transmitted by the second transmitting end and transmit the fifth optical signal to the demultiplexer when switching from the first link to the second link to perform data transmission, and The system according to claim 5, 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.
7. Before controlling the system to switch from the first link to the second link to transmit data, the first transmitting end is configured to obtain the interval time length during which the first branch optical signal is not being transmitted on the first link, and / or to determine that a failure has occurred in the first link if the interval time length exceeds a preset time length, and / or The first transmitting end is configured to acquire a third optical power corresponding to the first branch optical signal transmitted by the first link, and to determine that a failure has occurred in the first link if the third optical power is not within a third preset optical power range, and / or The system according to claim 5, wherein the first transmitting end is configured to obtain the 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 preset time length, to 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 preset optical power range, to determine that a failure has occurred in the first link.
8. The system according to any one of claims 5 to 7, wherein the first transmitting end is configured to acquire the failure status of the second link detected by the second transmitting end before controlling the system to switch from the first link to the second link to perform data transmission.
9. The system according to claim 8, wherein if a failure occurs in the first link and the second link is determined to be normal, the first transmitting end is configured to turn off the transmitting function and turn on the receiving function, and the second transmitting end is configured to turn on both the transmitting and receiving functions.
10. It is an electronic device, Memory for storing computer programs, An electronic device comprising a processor for executing a computer program stored in the memory, and for realizing the steps of the method according to claim 1.
11. A computer-readable storage medium wherein a computer program is stored within the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method according to claim 1 are realized.
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