Protection switching method, OLT, electronic equipment and storage medium
By introducing the main PON port and the backup PON port into the OLT of the PON system, and synchronizing the port status information and data positioning information in real time, the problem of long protection switching time in the PON system is solved, and the effect of rapid business recovery is achieved.
Patent Information
- Application Number
- CN202411481784.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-10-23
AI Technical Summary
The protection switching time in the PON system is long, which is difficult to meet the demand for rapid switching, resulting in a long service interruption time.
The main PON port and the backup PON port are introduced into the OLT. The main PON port receives the first uplink data sent by the ONU and passes it to the upper module. The backup PON port receives the second uplink data sent synchronously but does not pass it on. The main PON port processes the first uplink data and synchronizes the port status information and data positioning information to the backup PON port in real time. When a reception exception occurs on the main PON port, the backup PON port receives the second uplink data with the same content as the data exception point and passes it to the upper layer. module.
By synchronizing port status information and data location information in real time, the backup PON port can quickly learn that the primary PON port is abnormal and locate data abnormal points, thereby quickly restoring services and shortening business interruption time.
Smart Images

Figure CN119012057B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a protection switching method, an OLT, an electronic device and a storage medium. Background Art
[0002] In the PON system, the OLT has two optical fibers used as the main and backup. The information of these two optical fibers is independent and connected to PON port 1 and PON port 2 respectively. The OLT decides which PON port to use as the main port and which PON port to use as the backup port based on whether the signal sent by the ONU has an alarm. Under normal circumstances, the service packets of the backup port of the OLT are not processed, and only the alarm and management packets are processed. If protection switching is required, the main port needs to alarm first, and then the upper layer module starts the backup port, which will cause a long service interruption time and it is difficult to meet the needs of fast switching. Summary of the invention
[0003] The embodiments of the present application provide a protection switching method, an OLT, an electronic device, and a storage medium, which are used to alleviate the technical problem that the current PON system has a long protection switching time.
[0004] To solve the above technical problems, the present application provides the following technical solutions:
[0005] The present application provides a protection switching method, which is applicable to a PON system, wherein the PON system includes an OLT and at least one ONU, wherein the OLT includes a main PON port and a standby PON port, and the method is applied to the OLT, and the method includes:
[0006] The main PON port receives the first uplink data sent by each ONU and transmits it to the upper layer module, the standby PON port receives the second uplink data sent synchronously by each ONU and does not transmit it to the upper layer module, and the first uplink data and the second uplink data sent by the same ONU have the same content and are independent of each other;
[0007] The primary PON port processes the first uplink data, obtains port status information and data location information according to the processing result, and synchronizes the port status information and the data location information to the standby PON port in real time;
[0008] When a reception abnormality occurs at the main PON port, the main PON port stops receiving and transmitting the first uplink data, and the standby PON port determines, according to the port status information, that a reception abnormality occurs at the main PON port, and locates, according to the data location information, a data abnormality point when the main PON port is receiving;
[0009] The standby PON port receives the second uplink data having the same content as the data abnormal point, and transmits the second uplink data to the upper layer module.
[0010] In one embodiment, the main PON port and the backup PON port are the same PON port, and the same optical module of the same ONU sends first upstream data of a first wavelength and second upstream data of a second wavelength, and the first wavelength and the second wavelength are not equal; or, the main PON port and the backup PON port are different PON ports, the first optical module of the same ONU sends first upstream data, and the second optical module sends second upstream data, and the wavelengths of the first upstream data and the second upstream data are equal.
[0011] In one embodiment, the data location information includes a superframe number of a current uplink frame, and the step of locating a data abnormal point when the primary PON port receives the data according to the data location information includes:
[0012] According to the superframe number of the current uplink frame, the data abnormal point when the main PON port receives the data is located as the i-th uplink frame in the first uplink data, where i is a positive integer;
[0013] The step of receiving, by the standby PON port, second uplink data having the same content as the data abnormal point and transmitting the data to the upper layer module comprises:
[0014] The standby PON port receives the i-th upstream frame in the second upstream data, and transmits it to the upper layer module.
[0015] In one embodiment, the data location information includes the serial number of the current ONU, and the step of locating the data abnormal point when the main PON port receives the data according to the data location information includes:
[0016] According to the sequence number of the current ONU, the data abnormal point when the main PON port receives is located as an uplink frame sent by the target ONU in the first uplink data;
[0017] The step of receiving, by the standby PON port, second uplink data having the same content as the data abnormal point and transmitting the data to the upper layer module comprises:
[0018] The standby PON port receives the uplink frame sent by the target ONU in the second uplink data, and transmits it to the upper layer module.
[0019] In one embodiment, the data location information includes the current gemport id, and the step of locating the data abnormal point when the main PON port receives the data according to the data location information includes:
[0020] According to the current gemport id, the data abnormal point when the main PON port receives is located as the data corresponding to the target gemport id in the first uplink data;
[0021] The step of receiving, by the standby PON port, second uplink data having the same content as the data abnormal point and transmitting the data to the upper layer module comprises:
[0022] The standby PON port receives data corresponding to the target gemport id in the second uplink data, and transmits the data to the upper layer module.
[0023] In one embodiment, when a reception abnormality occurs at the main PON port, before the step of the main PON port stopping receiving and transmitting the first uplink data, the step further includes:
[0024] The main PON port detects whether there is ONU alarm information in each first uplink data;
[0025] If the ONU alarm information is detected, it is determined that a reception abnormality occurs at the main PON port.
[0026] In one embodiment, the main PON port is provided with an unused first TCONT, the standby PON port is provided with an unused second TCONT, and when a reception abnormality occurs at the main PON port, before the step of the main PON port stopping receiving and transmitting the first uplink data, the method further includes:
[0027] Monitoring whether an uplink signal can be detected on the first TCONT and the second TCONT;
[0028] If an uplink signal is detected on the first TCONT and no uplink signal is detected on the second TCONT, it is determined that a reception abnormality occurs on the primary PON port.
[0029] At the same time, an embodiment of the present application further provides an OLT, which is applied to a PON system, wherein the PON system includes the OLT and at least one ONU, and the OLT includes a main PON port and a standby PON port, wherein:
[0030] The main PON port is used to receive the first uplink data sent by each ONU and transmit it to the upper layer module;
[0031] The standby PON port is used to receive the second uplink data sent synchronously by each of the ONUs, and not to transmit it to the upper layer module. The first uplink data and the second uplink data sent by the same ONU have the same content and are independent of each other;
[0032] The main PON port is further used to process the first uplink data, obtain port status information and data location information according to the processing result, and synchronize the port status information and the data location information to the standby PON port in real time;
[0033] The main PON port is further used to stop receiving and transmitting the first uplink data when a reception abnormality occurs;
[0034] The standby PON port is further used to determine, according to the port status information, that a reception abnormality occurs at the main PON port, and locate a data abnormality point when the main PON port receives data according to the data location information;
[0035] The standby PON port is further used to receive second uplink data having the same content as the data abnormal point, and transmit the second uplink data to the upper layer module.
[0036] The present application also provides an electronic device, comprising a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to execute the steps in any of the above-mentioned protection switching methods.
[0037] An embodiment of the present application provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps in the above-mentioned protection switching method.
[0038] Beneficial effects: The present application provides a protection switching method, an OLT, an electronic device, and a storage medium. The method is applicable to a PON system. The PON system includes an OLT and at least one ONU. The OLT includes a main PON port and a standby PON port. The method is applied to the OLT. First, the main PON port receives the first upstream data sent by each ONU and transmits it to an upper module. The standby PON port receives the second upstream data sent synchronously by each ONU and does not transmit it to the upper module. The first upstream data and the second upstream data sent by the same ONU have the same content and are independent of each other. Then, the main PON port processes the first upstream data, obtains port status information and data location information according to the processing result, and synchronizes the port status information and the data location information to the standby PON port in real time. When a reception abnormality occurs at the main PON port, the main PON port stops receiving and transmitting the first upstream data. The standby PON port determines that a reception abnormality occurs at the main PON port according to the port status information, and locates the data abnormal point when the main PON port receives according to the data location information. Finally, the standby PON port receives the second upstream data with the same content as the data abnormal point, and transmits it to the upper module. In the present application, each ONU sends the first uplink data and the second uplink data which are independent of each other and have the same content. Under normal circumstances, the main PON port of the OLT receives and transmits the first uplink data to the upper module, and the backup PON port only receives the second uplink data but does not transmit it to the upper module. The main PON port synchronizes the port status information and data location information to the backup PON port in real time during the receiving and transmitting process. When the main PON port has a reception anomaly, the backup PON port can quickly know that the main PON port has an anomaly based on these two pieces of information, and know from which data point the anomaly begins to occur, and then receives the second uplink data with the same content as the data anomaly point and transmits it to the upper module, so that the interrupted service can be quickly restored. Since the entire process can be completed inside the chip without the intervention of the upper module, the recovery speed after the service interruption is greatly improved, and a better protection switching effect is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0040] Figure 1 The figure is a schematic diagram of the protection switching process of a PON system in the prior art.
[0041] Figure 2 A flowchart of a protection switching method provided in an embodiment of the present application.
[0042] Figure 3 A flow chart of the protection switching process of the PON system in an embodiment of the present application.
[0043] Figure 4 Another flow chart of the protection switching process of the PON system in the embodiment of the present application.
[0044] Figure 5 Schematic diagram of the superframe structure in the embodiment of the present application.
[0045] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0047] See also Figure 1 , Figure 1 The protection switching process diagram of the PON system in the prior art is shown in FIG. 1 . The PON system includes an OLT (Optical Line Terminal) and N ONUs (Optical Network Units), where N is a positive integer. The OLT is a device connected to the optical fiber trunk line, and the ONU is a user-side device. The OLT and the ONU are connected to communicate with each other through an ODN (Optical Distribution Network), which includes an optical fiber and a 1:N optical splitter. The OLT is provided with a PON port 1 and a PON port 2, and each ONU is provided with an optical module 1, an optical module 2, and a PON MAC module. A main optical fiber and a backup optical fiber are provided between the OLT and each ONU, and the information of the main optical fiber and the backup optical fiber is independent of each other. Specifically, the PONMAC module controls the ONU to send an uplink signal through optical module 1. The uplink signal is received by PON port 1 through the main optical fiber, and is sent to the upper module after being processed by PON port 1; the PON MAC module controls the ONU to send an uplink signal through optical module 2. The uplink signal is received by PON port 2 through the backup optical fiber. PON port 2 does not process the service packets in the uplink signal, but only processes alarms and management packets.
[0048] Under normal circumstances, the main PON port can complete the reception, processing and transmission of services. However, if a rogue ONU or other situations occur in the PON system, resulting in abnormal reception at the main PON port, the service will be interrupted, affecting the user experience. In order to ensure that the service can be quickly restored when the service is interrupted, the PON system will set a protection switching mechanism, that is, when the reception of PON port 1 is abnormal, the work of PON port 1 will be switched to PON port 2. However, the protection switching mechanism in the prior art is relatively complicated. PON port 1 needs to first alarm the upper layer module, and then the upper layer module makes decisions and intervenes before PON port 2 can be started to complete the relevant work. This method will cause the service interruption time to be longer, making it difficult to meet the needs of fast switching, and the user experience is poor.
[0049] Based on this, the present application proposes a protection switching method to alleviate the technical problem of long protection switching time in the current PON system.
[0050] See also Figure 2 , Figure 2 : is a flow chart of a protection switching method provided in an embodiment of the present application, the method specifically includes:
[0051] S1: The main PON port receives the first upstream data sent by each ONU and passes it to the upper module. The standby PON port receives the second upstream data sent synchronously by each ONU and does not pass it to the upper module. The first upstream data and the second upstream data sent by the same ONU have the same content and are independent of each other.
[0052] The OLT includes a main PON port and a standby PON port. When each ONU communicates with the OLT, it synchronously sends the first uplink data and the second uplink data to the OLT in its own time slot. The content of the first uplink data and the second uplink data are the same, but they are independent of each other. When the sending and receiving of one of them is abnormal, the sending and receiving of the other will not be affected. The first uplink data is received by the main PON port, which processes the first uplink data and then passes it to the upper module. The second uplink data is received by the standby PON port, which only processes the alarm and management packets after receiving them, and does not process the service packets or pass them to the upper module.
[0053] The first uplink data and the second uplink data may be sent and received in different ways to meet the requirements of different scenarios. Two implementation ways are described below respectively.
[0054] In one embodiment, the main PON port and the backup PON port are the same PON port, and the same optical module of the same ONU sends first upstream data of a first wavelength and second upstream data of a second wavelength, and the first wavelength and the second wavelength are not equal.
[0055] like Figure 3 As shown in the figure, in this scenario, the OLT includes only one PON port, each ONU can be equipped with only one optical module, and only one 1:N optical splitter and one optical fiber are set between the OLT and the N ONUs. At this time, the main PON port and the backup PON port are actually the same PON port, and the main and backup are only used as functional limitations. In the upstream direction, the optical module can synchronously send upstream data of two different wavelengths. Figure 3 In the figure, wavelength 1 and wavelength 2 are used to represent the first upstream data and the second upstream data respectively. The first upstream data and the second upstream data are both received by the PON port, but the PON port only transmits the first upstream data to the upper layer module, and the second upstream data is not transmitted to the upper layer module. In the downstream direction, the PON port can normally send downstream data to each ONU.
[0056] In one embodiment, the main PON port and the backup PON port are different PON ports, the first optical module of the same ONU sends first uplink data, the second optical module sends second uplink data, and the wavelengths of the first uplink data and the second uplink data are equal.
[0057] like Figure 4 As shown, in this scenario, the OLT includes PON port 1 and PON port 2, and each ONU is provided with optical module 1 and optical module 2. At this time, PON port 1 is used as the main PON port, and PON port 2 is used as the backup PON port. The main and backup are used as structural and functional definitions at the same time. In the upstream direction, the optical module 1 of each ONU sends the first upstream data, and the optical module 2 synchronously sends the second upstream data with the same wavelength. Figure 4 In the figure, Uplink 1 and Uplink 2 represent the first upstream data and the second upstream data respectively. The first upstream data is received by PON port 1 and then transmitted to the upper layer module, and the second upstream data is received by PON port 2 but not transmitted to the upper layer module. In the downstream direction, PON port 1 sends downstream data to each ONU, while PON port 2 does not send downstream data.
[0058] S2: The main PON port processes the first uplink data, obtains port status information and data location information according to the processing result, and synchronizes the port status information and data location information to the standby PON port in real time.
[0059] After receiving the first uplink data, the main PON port processes the first uplink data and obtains port status information and data location information according to the processing result. The port status information is used to indicate whether the current receiving state of the main PON port is normal, and the data location information is used to indicate which data the main PON port is currently receiving. In the process of normal business processing, the main PON port will continuously obtain port status information and data location information, and synchronize all this information to the standby PON port in real time, so that the standby PON port can timely understand whether the main PON port is normal and which data the main PON port is currently receiving.
[0060] S3: When a reception anomaly occurs at the main PON port, the main PON port stops receiving and transmitting the first uplink data, and the standby PON port determines that a reception anomaly occurs at the main PON port according to the port status information, and locates the data anomaly point when the main PON port receives the data according to the data location information.
[0061] When the main PON port does not have a reception anomaly, it will normally receive and pass the first upstream data to the upper-layer module. During this process, the port status information will indicate that the status of the main PON port is normal. The standby PON port knows the normal status and will always maintain the working mode of receiving the second upstream data but not passing it to the upper-layer module. When the main PON port finds that it has a reception anomaly, it will stop receiving and passing the first upstream data to the upper-layer module, and at the same time indicate that it currently has a reception anomaly in the port status information. When the standby PON port receives the port status information, it can determine that the status of the main PON port is abnormal, and then, based on the data positioning information, it can know which data the main PIN port is currently receiving, and locate the data anomaly point when the main PON port is receiving.
[0062] It should be noted that there are multiple ways to set the port status information. In one embodiment, flag 1 can be set for the normal state, and flag 2 can be set for the abnormal state. If the standby PON port recognizes flag 1, it can be determined that there is no abnormality in the main PON port. If flag 2 is recognized, it can be determined that there is an abnormality in the main PON port. In another embodiment, the flag can be set only for the abnormal state, and the flag is not set for the normal state by default. If the standby PON port does not recognize the flag, it can be determined that there is no abnormality in the main PON port. If the flag is recognized, it can be determined that there is an abnormality in the main PON port. Those skilled in the art can select the appropriate flag setting method according to the actual scenario requirements, as long as it can play the role of indicating normal and abnormal states.
[0063] There are multiple situations in which the main PON port determines that it has a reception abnormality. Two situations are described below.
[0064] In one embodiment, before S3, the method further includes: the main PON port detects whether there is ONU alarm information in each first upstream data; if the ONU alarm information is detected, it is determined that a reception abnormality occurs at the main PON port.
[0065] If some ONUs in the PON system have alarms, it means that the corresponding ONU cannot continue to send the first upstream data to the main PON port normally, and the main PON port cannot continue to receive the required first upstream data, and reception abnormality will occur. Based on this, the main PON port can detect the first upstream data sent by each ONU to see whether there is an ONU alarm information, such as the ONU LOS alarm. If the ONU alarm information is detected, it can be determined that the main PON port has a reception abnormality, and the subsequent reception and transmission work should be performed by the standby PON port.
[0066] In one embodiment, the main PON port is provided with an unused first TCONT, and the standby PON port is provided with an unused second TCONT, and before S3, the step further includes: monitoring whether an uplink signal can be detected on the first TCONT and the second TCONT; if an uplink signal is detected on the first TCONT and no uplink signal is detected on the second TCONT, determining that a reception abnormality occurs on the main PON port.
[0067] If a rogue ONU (an ONU that does not emit light according to the scheduled time, continuously emits light, or emits light randomly) appears in the PON system, it will affect the first upstream data of all ONUs, resulting in the first upstream data of all ONUs not being correctly received by the main PON port. Therefore, it is possible to determine whether the main PON port has a reception abnormality by identifying whether a rogue ONU appears in the PON system.
[0068] In the PON system, when all normal ONUs communicate with the OLT, the corresponding TCONT (TransmissionContainer) is used as the carrier of the upstream direction bearer service, and the upstream signal of the corresponding ONU can be detected on each used TCONT. In this embodiment, an unused first TCONT is set on the main PON port, and an unused second TCONT is set on the standby PON port. When the normal ONU communicates with the OLT, the unused TCONT will not detect the upstream signal, that is, under normal circumstances, the first TCONT and the second TCONT will not detect the upstream signal. If the upstream signal is detected on the first TCONT and the upstream signal is not detected on the second TCONT, it means that a rogue ONU appears on the main PON port, but no rogue ONU appears on the standby PON port. At this time, it can be determined that the main PON port has a reception abnormality, and the standby PON port should perform the subsequent reception and transmission work.
[0069] S4: The standby PON port receives the second upstream data with the same content as the data abnormal point, and transmits it to the upper layer module.
[0070] After the main PON port has a reception anomaly, it cannot continue to pass the first upstream data to the upper layer module, resulting in service interruption. After the backup PON port locates the data anomaly point when the main PON port receives the data according to the data location information, it continues to receive the second upstream data, and removes the possible duplicate packets from the second upstream data that have the same content as the data anomaly point and passes it to the upper layer module, so that the data can be quickly restored and the service can continue to operate normally.
[0071] After receiving and transmitting the data with the same content as the above data abnormal point, the standby PON port can continue to receive and transmit the subsequent second upstream data, or switch back to the main PON port to receive and transmit the first upstream data after the main PON port status returns to normal. Those skilled in the art can determine the subsequent receiving and transmitting methods according to actual conditions to flexibly adapt to the needs of different scenarios.
[0072] There are many ways to locate data location information. Three methods are described below.
[0073] In one embodiment, the data location information includes the superframe number of the current uplink frame, and S3 specifically includes: according to the superframe number of the current uplink frame, locating the data abnormal point when the main PON port receives it is the i-th uplink frame in the first uplink data, where i is a positive integer; S4 specifically includes: the standby PON port receives the i-th uplink frame in the second uplink data and passes it to the upper layer module.
[0074] The data location information can be located by the superframe number of the current uplink frame. Figure 5 As shown, taking GPON as an example, the GPON frame includes an IDENT field, which includes FEC Ind, Reserve and Superframe counter, where Superframecounter is a superframe counter, and its value is a 30-bit superframe number. The superframe number of each frame is 1 greater than the superframe number of the previous frame. The OLT can locate the number of the uplink frame currently received in the first uplink data based on the superframe counter of the current uplink frame. After the main PON port parses the superframe counter of the current uplink frame, it synchronizes this value to the standby PON port, so that the standby PON port knows the specific situation of the current packet receiving of the current main PON port.
[0075] Assume that the superframe number of the current upstream frame is i, where i is a positive integer. If the main PON port cannot correctly parse the i-th upstream frame in the first upstream data, a flag is set so that the standby PON port knows that the main PON port is abnormal, and the standby PON port can receive the i-th upstream frame in the second upstream data and pass it to the upper layer module. Since the i-th upstream frame in the second upstream data has the same content as the i-th upstream frame in the first upstream data, the upper layer module can still correctly receive the data after protection switching.
[0076] In one embodiment, the data location information includes the serial number of the current ONU, and S3 specifically includes: according to the serial number of the current ONU, locating the data abnormal point when the main PON port receives is the uplink frame sent by the target ONU in the first uplink data; S4 specifically includes: the standby PON port receives the uplink frame sent by the target ONU in the second uplink data, and passes it to the upper layer module.
[0077] The data location information can be located by the serial number of the current ONU. Each OUN has its own serial number, and the serial number can be used to determine which OUN the main PON port is currently receiving the first upstream data sent by. If the main PON port cannot receive data from a certain ONU, the standby PON port determines the ONU as the target ONU, locates the data anomaly point as the upstream frame sent by the target ONU, and then the standby PON port can receive the upstream frame sent by the target ONU in the second upstream data and pass it to the upper layer module. Since the content of the upstream frame sent by the target ONU in the second upstream data is the same as the content of the upstream frame sent by the target ONU in the first upstream data, the upper layer module can still receive the data correctly after the protection switching is performed.
[0078] In one embodiment, the data location information includes the current gemport id, and S3 specifically includes: according to the current gemport id, locating the data abnormal point when the main PON port receives the data as the data corresponding to the target gemport id in the first upstream data; S4 specifically includes: the standby PON port receives the data corresponding to the target gemport id in the second upstream data, and transmits it to the upper layer module.
[0079] The data location information can be located by the current gemport id. In the upstream direction, various services are first mapped to different gemports on the ONU, and the gemport carrying services are then mapped to different types of TCONTs for transmission to the OLT. The TCONT first demodulates the gemport on the OLT side, then demodulates the services in the gemport payload, and finally sends them to the relevant service processing unit for processing. Each gemport has its own gemport id, and the gemport id can be used to determine which gemport id the main PON port is currently receiving data corresponding to. If the main PON port cannot receive data of a certain gemport id, the standby PON port determines the gemport id as the target gemport id, locates the data anomaly point as the data corresponding to the target gemport id, and then the standby PON port can receive the data corresponding to the target gemport id in the second upstream data and pass it to the upper layer module. Since the data corresponding to the target gemport id in the second uplink data has the same content as the data corresponding to the target gemport id in the first uplink data, the upper layer module can still correctly receive the data after the protection switching is performed.
[0080] It can be seen from the above embodiments that the protection switching method provided by the present application, each ONU sends the first upstream data and the second upstream data which are independent of each other and have the same content. Under normal circumstances, the main PON port of the OLT receives and transmits the first upstream data to the upper module, and the standby PON port only receives the second upstream data but does not transmit it to the upper module. The main PON port synchronizes the port status information and data location information to the standby PON port in real time during the receiving and transmitting process. When the main PON port has a reception anomaly, the standby PON port can quickly know that the main PON port has an anomaly based on these two pieces of information, and know from which data point the anomaly begins to occur, and then receives the second upstream data with the same content as the data anomaly point and transmits it to the upper module, so that the interrupted service can be quickly restored. Since the entire process can be completed inside the chip, without the intervention of the upper module, the recovery speed after the service interruption is greatly improved, and a better protection switching effect is achieved.
[0081] Based on the method described in the above embodiment, this embodiment will be further described from the perspective of OLT. The PON system includes an OLT and at least one ONU. The OLT includes a main PON port and a standby PON port, wherein:
[0082] The main PON port is used to receive the first uplink data sent by each ONU and transmit it to the upper layer module;
[0083] The standby PON port is used to receive the second uplink data sent synchronously by each ONU, and does not transmit it to the upper layer module. The first uplink data and the second uplink data sent by the same ONU have the same content and are independent of each other;
[0084] The main PON port is further used to process the first uplink data, obtain port status information and data location information according to the processing result, and synchronize the port status information and data location information to the standby PON port in real time;
[0085] The main PON port is also used to stop receiving and transmitting the first uplink data when a reception abnormality occurs;
[0086] The standby PON port is also used to determine, based on the port status information, that a reception anomaly occurs at the main PON port, and to locate, based on the data location information, a data anomaly point when the main PON port is receiving data;
[0087] The standby PON port is also used to receive second uplink data with the same content as the data abnormal point, and transmit it to the upper layer module.
[0088] The OLT of the present application is the OLT described in any of the above embodiments, which is different from the prior art. In the present application, each ONU sends the first uplink data and the second uplink data which are independent of each other and have the same content. Under normal circumstances, the main PON port of the OLT receives and transmits the first uplink data to the upper module, and the standby PON port only receives the second uplink data but does not transmit it to the upper module. The main PON port synchronizes the port status information and data location information to the standby PON port in real time during the receiving and transmitting process. When the main PON port has a reception anomaly, the standby PON port can quickly know that the main PON port has an anomaly based on these two pieces of information, and know from which data point the anomaly begins to occur, and then receives the second uplink data with the same content as the data anomaly point and transmits it to the upper module, so that the interrupted service can be quickly restored. Since the entire process can be completed inside the chip, without the intervention of the upper module, the recovery speed after the service interruption is greatly improved, and a better protection switching effect is achieved.
[0089] Accordingly, the present application also provides an electronic device, such as Figure 6 As shown, the electronic device may include a radio frequency (RF) circuit 101, a memory 102 including one or more computer-readable storage media, an input unit 103, a display unit 104, a sensor 105, an audio circuit 106, a WiFi module 107, a processor 108 including one or more processing cores, and a power supply 109. Those skilled in the art will understand that Figure 6The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0090] The radio frequency circuit 101 can be used for receiving and sending signals during information transmission or communication. In particular, after receiving the downlink information of the base station, it is sent to one or more processors 108 for processing; in addition, the uplink data is sent to the base station. The memory 102 can be used to store software programs and modules. The processor 108 executes various functional applications and protection switching by running the software programs and modules stored in the memory 102. The input unit 103 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to customer settings and function control.
[0091] The display unit 104 may be used to display information input by a client or information provided to a client and various graphical client interfaces of the server. These graphical client interfaces may be composed of graphics, texts, icons, videos and any combination thereof.
[0092] The electronic device may also include at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. The audio circuit 106 includes a speaker, which may provide an audio interface between the user and the electronic device.
[0093] WiFi is a short-range wireless transmission technology. Electronic devices can help customers send and receive emails, browse web pages, and follow streaming media through WiFi modules 107. It provides customers with wireless broadband Internet follow-up. Figure 6 A WiFi module 107 is shown, but it is understandable that it is not an essential component of the electronic device and can be omitted as needed without changing the essence of the application.
[0094] The processor 108 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 102 and calling data stored in the memory 102, thereby monitoring the mobile phone as a whole.
[0095] The electronic device also includes a power source 109 (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor 108 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0096] Although not shown, the electronic device may also include a camera, a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the processor 108 in the server will load the executable files corresponding to the processes of one or more applications into the memory 102 according to the following instructions, and the processor 108 will run the application stored in the memory 102, thereby realizing the following functions:
[0097] The main PON port receives the first uplink data sent by each ONU and transmits it to the upper layer module, the standby PON port receives the second uplink data sent synchronously by each ONU and does not transmit it to the upper layer module, and the first uplink data and the second uplink data sent by the same ONU have the same content and are independent of each other;
[0098] The primary PON port processes the first uplink data, obtains port status information and data location information according to the processing result, and synchronizes the port status information and the data location information to the standby PON port in real time;
[0099] When a reception abnormality occurs at the main PON port, the main PON port stops receiving and transmitting the first uplink data, and the standby PON port determines, according to the port status information, that a reception abnormality occurs at the main PON port, and locates, according to the data location information, a data abnormality point when the main PON port is receiving;
[0100] The standby PON port receives the second uplink data having the same content as the data abnormal point, and transmits the second uplink data to the upper layer module.
[0101] Different from the prior art, the electronic device provided by the present application, each ONU sends the first uplink data and the second uplink data which are independent of each other and have the same content. Under normal circumstances, the main PON port of the OLT receives and transmits the first uplink data to the upper module, and the standby PON port only receives the second uplink data but does not transmit it to the upper module. The main PON port synchronizes the port status information and data location information to the standby PON port in real time during the receiving and transmitting process. When the main PON port has a reception anomaly, the standby PON port can quickly know that the main PON port has an anomaly based on these two pieces of information, and know from which data point the anomaly begins to occur, and then receives the second uplink data with the same content as the data anomaly point and transmits it to the upper module, so that the interrupted service can be quickly restored. Since the entire process can be completed inside the chip, without the intervention of the upper module, the recovery speed after the service interruption is greatly improved, and a better protection switching effect is achieved.
[0102] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the detailed description above and will not be repeated here.
[0103] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0104] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to implement the following functions:
[0105] The main PON port receives the first uplink data sent by each ONU and transmits it to the upper layer module, the standby PON port receives the second uplink data sent synchronously by each ONU and does not transmit it to the upper layer module, and the first uplink data and the second uplink data sent by the same ONU have the same content and are independent of each other;
[0106] The primary PON port processes the first uplink data, obtains port status information and data location information according to the processing result, and synchronizes the port status information and the data location information to the standby PON port in real time;
[0107] When a reception abnormality occurs at the main PON port, the main PON port stops receiving and transmitting the first uplink data, and the standby PON port determines, according to the port status information, that a reception abnormality occurs at the main PON port, and locates, according to the data location information, a data abnormality point when the main PON port is receiving;
[0108] The standby PON port receives the second uplink data having the same content as the data abnormal point, and transmits the second uplink data to the upper layer module.
[0109] Different from the prior art, the computer-readable storage medium provided by the present application, each ONU sends the first uplink data and the second uplink data which are independent of each other and have the same content. Under normal circumstances, the main PON port of the OLT receives and transmits the first uplink data to the upper module, and the standby PON port only receives the second uplink data but does not transmit it to the upper module. The main PON port synchronizes the port status information and data location information to the standby PON port in real time during the receiving and transmitting process. When the main PON port has a reception anomaly, the standby PON port can quickly know that the main PON port has an anomaly based on these two pieces of information, and know from which data point the anomaly begins to occur, and then receives the second uplink data with the same content as the data anomaly point and transmits it to the upper module, so that the interrupted service can be quickly restored. Since the entire process can be completed inside the chip without the intervention of the upper module, the recovery speed after the service interruption is greatly improved, and a better protection switching effect is achieved.
[0110] The above is a detailed introduction to a protection switching method, OLT, electronic device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the technical solution and core idea of the present application. Ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and these modifications or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiments of the present application.
Claims
1. A protection switching method, characterized in that: Applicable to a PON system, the PON system includes an OLT and at least one ONU, the OLT includes a main PON port and a standby PON port, the method is applied to the OLT, and the method includes: The main PON port receives the first uplink data sent by each ONU and transmits it to the upper layer module, the standby PON port receives the second uplink data sent synchronously by each ONU and does not transmit it to the upper layer module, and the first uplink data and the second uplink data sent by the same ONU have the same content and are independent of each other; The primary PON port processes the first upstream data, obtains port status information and data location information according to the processing result, and synchronizes the port status information and the data location information to the standby PON port in real time, wherein the data location information includes a superframe number of a current upstream frame or a current gemport id; When a reception abnormality occurs at the main PON port, the main PON port stops receiving and transmitting the first uplink data, and the standby PON port determines, according to the port status information, that a reception abnormality occurs at the main PON port, and locates, according to the data location information, a data abnormality point when the main PON port is receiving; The standby PON port receives the second uplink data having the same content as the data abnormal point, and transmits the second uplink data to the upper layer module.
2. The protection switching method according to claim 1, characterized in that: The main PON port and the standby PON port are the same PON port, and the same optical module of the same ONU sends first upstream data of a first wavelength and second upstream data of a second wavelength, and the first wavelength and the second wavelength are not equal; Alternatively, the main PON port and the backup PON port are different PON ports, a first optical module of the same ONU sends first uplink data, and a second optical module sends second uplink data, and the wavelengths of the first uplink data and the second uplink data are equal.
3. The protection switching method according to claim 1, characterized in that: The data location information includes a superframe number of the current uplink frame. The step of locating a data abnormal point when the main PON port receives the data according to the data location information includes: According to the superframe number of the current uplink frame, the data abnormal point when the main PON port receives the data is located as the i-th uplink frame in the first uplink data, where i is a positive integer; The step of receiving, by the standby PON port, second uplink data having the same content as the data abnormal point and transmitting the data to the upper layer module comprises: The standby PON port receives the i-th upstream frame in the second upstream data, and transmits it to the upper layer module.
4. The protection switching method according to claim 1, characterized in that: The data location information includes the current gemport id, and the step of locating the data abnormal point when the main PON port receives the data according to the data location information includes: According to the current gemport id, the data abnormal point when the main PON port receives is located as the data corresponding to the target gemport id in the first uplink data; The step of receiving, by the standby PON port, second uplink data having the same content as the data abnormal point and transmitting the data to the upper layer module comprises: The standby PON port receives data corresponding to the target gemport id in the second uplink data, and transmits the data to the upper layer module.
5. The protection switching method according to claim 1, characterized in that: Before the step of the main PON port stopping receiving and transmitting the first uplink data when a reception abnormality occurs at the main PON port, the method further includes: The main PON port detects whether there is ONU alarm information in each first uplink data; If the ONU alarm information is detected, it is determined that a reception abnormality occurs at the main PON port.
6. The protection switching method according to claim 1, characterized in that: The main PON port is provided with an unused first TCONT, the standby PON port is provided with an unused second TCONT, and when a reception abnormality occurs at the main PON port, before the step of the main PON port stopping receiving and transmitting the first uplink data, the method further includes: Monitoring whether an uplink signal can be detected on the first TCONT and the second TCONT; If an uplink signal is detected on the first TCONT and no uplink signal is detected on the second TCONT, it is determined that a reception abnormality occurs on the primary PON port.
7. An OLT, characterized in that: Applied to a PON system, the PON system comprises the OLT and at least one ONU, the OLT comprises a main PON port and a standby PON port, wherein: The main PON port is used to receive the first uplink data sent by each ONU and transmit it to the upper layer module; The standby PON port is used to receive the second uplink data sent synchronously by each of the ONUs, and not to transmit it to the upper layer module. The first uplink data and the second uplink data sent by the same ONU have the same content and are independent of each other; The main PON port is further used to process the first uplink data, obtain port status information and data location information according to the processing result, and synchronize the port status information and the data location information to the standby PON port in real time, wherein the data location information includes a superframe number of a current uplink frame or a current gemport id; The main PON port is further used to stop receiving and transmitting the first uplink data when a reception abnormality occurs; The standby PON port is further used to determine, according to the port status information, that a reception abnormality occurs at the main PON port, and locate a data abnormality point when the main PON port receives data according to the data location information; The standby PON port is further used to receive second uplink data having the same content as the data abnormal point, and transmit the second uplink data to the upper layer module.
8. An electronic device, characterized in that: It comprises a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to execute the steps in the protection switching method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps in the protection switching method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and apparatus for implementing trunk optical fiber rapid protection switching of EPON system
CN101414878A
Method, system and device for switching main and spare light access networks
CN101834687A
Protection switching method and device and OLT (Optical Line Terminal) equipment
CN117156326A