A centralized OLT board switching management device and method based on CPLD

By controlling the identity verification and switching management of primary and backup boards through the CPLD module, the problem of untimely switching of primary and backup boards in centralized OLT systems is solved, thereby improving the stability and security of the system.

CN120224054BActive Publication Date: 2026-01-30GUANGZHOU V-SOLUTION TELECOMM TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510187144.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-20
Publication Date
2026-01-30
Estimated Expiration
2045-02-20

AI Technical Summary

Technical Problem

In existing technologies, the management of primary and backup board switching in centralized OLT systems has problems affecting system stability and security, especially when the primary control board processes large amounts of data, which can easily lead to system blockage, delay and crash.

Method used

The CPLD module is used to control the identification and switching management of the primary and backup boards. By reading the status of the primary and backup buttons and the board slot number from the outside, the initial primary and backup status is determined, and the system interacts with the software system in real time to ensure the stability of the primary and backup relationship and control priority, so as to achieve rapid switching.

Benefits of technology

It improves the operational stability and security of centralized OLT systems, avoids system blockage and crashes caused by software management, and ensures the timeliness and reliability of primary and backup board switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120224054B_ABST
    Figure CN120224054B_ABST
Patent Text Reader

Abstract

This invention discloses a centralized OLT board switching management device and method based on CPLD. The device includes: a first board and a second board, the first board and the second board being communicatively connected; a first CPLD module and a second CPLD module, the first CPLD module being communicatively connected to the first board, the second CPLD module being communicatively connected to the second board, and the first CPLD module being communicatively connected to the second CPLD module; the first CPLD module and the second CPLD module also read external master / slave button status changes and board slot numbers, and control the power-on time of the first board and the second board; a first software system and a second software system, the first software system being communicatively connected to the first board and the first CPLD module respectively, the second software system being communicatively connected to the second board and the second CPLD module respectively, and the first software system being communicatively connected to the second software system. This invention uses CPLD control to determine the master / slave status of the two master controllers, control and determine the master / slave relationship between the two master controllers, and perform control management between the two master controllers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network equipment technology, and more specifically, to a centralized OLT board switching management device and method based on CPLD. Background Technology

[0002] For centralized OLT (Optical Line Terminal) chassis equipment, data management and forwarding are concentrated on the main control board, making the main control board the core board of the centralized OLT chassis equipment. Therefore, the stable operation of the main control board is particularly important. As a result, the industry has generally adopted a dual main control board mode with a primary-backup configuration. When one main control board fails, the backup main control board can immediately take over the services to ensure the stable operation of the chassis equipment.

[0003] When a system has primary and backup boards, the switching management between the primary and backup boards is a critical link affecting the stable operation of the entire system. Existing primary and backup board management is more based on software protocol level to negotiate and authenticate the primary and backup relationship between the two systems. However, for centralized OLT, the main control board will process a large amount of data, which can easily lead to system blockage and delay, and is at risk of system crash at any time, resulting in untimely switching between primary and backup or even failure to issue switching commands.

[0004] A CPLD (Complex Programmable Logic Device) is a programmable logic device and a key hardware component in digital circuit design. It is widely used in embedded systems, communication equipment, and industrial control, primarily to implement flexible digital logic functions. Summary of the Invention

[0005] One objective of this invention is to provide a centralized OLT board switching management device based on CPLD; another objective of this invention is to provide a centralized OLT board switching management method based on CPLD, which solves the technical problem in the prior art that the switching management between primary and backup boards affects the stable operation of the system.

[0006] To solve the above-mentioned technical problems, the technical solution of the present invention is as follows:

[0007] A first aspect of the present invention provides a centralized OLT board switching management device based on a CPLD, comprising:

[0008] A first board and a second board, wherein the first board and the second board are communicatively connected;

[0009] A first CPLD module and a second CPLD module are connected in communication with the first board and the second CPLD module is connected in communication with the second board. The first CPLD module and the second CPLD module are also connected in communication with each other. The first CPLD module and the second CPLD module also read the status changes of the external main and backup buttons and the board slot number, and control the power-on time of the first board and the second board.

[0010] A first software system and a second software system, wherein the first software system is communicatively connected to the first board and the first CPLD module, respectively, and the second software system is communicatively connected to the second board and the second CPLD module, respectively, and the first software system is communicatively connected to the second software system.

[0011] A second aspect of the present invention provides a centralized OLT board switching management method based on a CPLD, the management method being applied to the aforementioned centralized OLT board switching management device based on a CPLD, the management method comprising:

[0012] The first CPLD module reads the status changes of the external primary / standby buttons and the board slot number to determine the initial primary / standby status of the first board. The second CPLD module reads the status changes of the external primary / standby buttons and the board slot number to determine the initial primary / standby status of the second board. The first CPLD module and the second CPLD module control the power-on time of the first board and the second board respectively according to the initial primary / standby status of the first board and the second board.

[0013] After the first CPLD module sends the first verification information including the initial primary / standby status of the first board to the second CPLD module, the second CPLD module sends the first primary / standby identity confirmation information to the first CPLD module to complete the primary / standby identity confirmation of the first board and the second board.

[0014] After the first CPLD module sends second verification information, including the confirmed primary / backup identity of the first board, to the first software system, the first software system sends second primary / backup identity confirmation information to the first CPLD module, completing the primary / backup identity confirmation of the first board by the first software system; after the second CPLD module sends third verification information, including the confirmed primary / backup identity of the second board, to the second software system, the second software system sends third primary / backup identity confirmation information to the second CPLD module, completing the primary / backup identity confirmation of the second board by the second software system; thus, the motherboard and the backup board are obtained;

[0015] The primary CPLD module and the backup CPLD module communicate at fixed intervals in real time to confirm the working status of the motherboard and the backup board. When the motherboard is the first board, the primary CPLD module is the first CPLD module, the primary software system is the first software system, the backup CPLD module is the second CPLD module, and the backup software system is the second software system. When the motherboard is the second board, the primary CPLD module is the second CPLD module, the primary software system is the second software system, the backup CPLD module is the first CPLD module, and the backup software system is the first software system.

[0016] If the motherboard malfunctions, the backup board will be switched to the motherboard, the backup CPLD module will be switched to the main CPLD module, and the backup software system will be switched to the main software system.

[0017] Among the above technical means, CPLD control is adopted to determine the primary and backup identities of the dual master controllers, and to perform external system control and management. It can interact with the software system in real time, provide software system monitoring and control interfaces, determine control priorities, and eliminate control conflicts.

[0018] Furthermore, determining the initial primary / standby status includes:

[0019] If the primary / standby button is in the primary state, then the initial primary / standby state is determined to be the motherboard card;

[0020] If the primary / standby button is in standby mode and the board slot number is the preset motherboard slot number, then the initial primary / standby status is determined to be motherboard.

[0021] If the primary / standby button is in standby status and the board slot number is not the preset motherboard slot number, then the initial primary / standby status is determined to be standby board.

[0022] Furthermore, the power-on time of the first and second boards is controlled according to their initial primary / standby states, including:

[0023] The initial primary / standby state prioritizes the power-on of the motherboard card, with a lead time of more than 3 seconds.

[0024] Furthermore, after the second CPLD module sends the first primary / backup identity verification information to the first CPLD module, if the verification fails, the first CPLD module repeatedly sends the first verification information including the initial primary / backup status of the first board to the second CPLD module, and repeatedly receives the first primary / backup identity verification information sent by the second CPLD module. If the number of repetitions exceeds the preset number, the primary / backup identity verification fails, and the software system enters the primary / backup identity verification step for the board.

[0025] Furthermore, if the first CPLD module does not receive the first primary / backup identity confirmation information, then the first board is confirmed to be the motherboard.

[0026] Furthermore, after the first CPLD module sends the second verification information, which includes the confirmed primary / backup identity of the first board, to the first software system, the first software system verifies the received confirmed primary / backup identity of the first board with the initial primary / backup status of the first board. If the verification passes, the first CPLD module sends the second primary / backup identity confirmation information to the first CPLD module, thus completing the primary / backup identity confirmation of the first board by the first software system.

[0027] After the second CPLD module sends the third verification information, which includes the confirmed primary / standby identity of the second board, to the second software system, the second software system verifies the received confirmed primary / standby identity of the second board against the initial primary / standby status of the second board. If the verification passes, the second CPLD module sends the third primary / standby identity confirmation information to the second CPLD module, thus completing the primary / standby identity confirmation of the second board by the second software system.

[0028] Furthermore, after obtaining the motherboard and the backup board, all management data of the service board is handed over to the motherboard, and the backup board enters standby mode.

[0029] Furthermore, if the motherboard card malfunctions, including:

[0030] If the backup CPLD module fails to receive communication from the main CPLD module after a preset time, or if the communication information verification from the main CPLD module fails, the motherboard card is deemed to be malfunctioning.

[0031] Furthermore, the main software system and the main CPLD module communicate in real time at fixed intervals. If the communication between the main software system and the main CPLD module is interrupted, or if the main CPLD module fails to verify the communication information of the main software system, the main CPLD module will send a preset private protocol to the main software system for information confirmation. If the main software system does not reply or the reply information verification fails, it is determined that the main software system is abnormal. The main CPLD module will interact with the backup CPLD module to switch the primary and backup identities, and at the same time inform the backup software system to switch the primary and backup identities, and complete the data service switch.

[0032] Compared with the prior art, the beneficial effects of the technical solution of the present invention are:

[0033] This invention utilizes the stability and accuracy of CPLD operation to determine the primary / standby relationship between the two main controllers and manage the control between them. Simultaneously, it interacts with the software system to achieve real-time control and switching between the primary and standby systems, ensuring the stability and security of the entire centralized OLT chassis system. Attached Figure Description

[0034] Figure 1 This is a schematic diagram of a centralized OLT board switching management device based on CPLD, provided in an embodiment of the present invention.

[0035] Figure 2 A flowchart illustrating a centralized OLT board switching management method based on CPLD provided in an embodiment of the present invention;

[0036] Figure 3 This is a schematic diagram of the handshake process between two boards provided in an embodiment of the present invention;

[0037] Figure 4 This is a schematic diagram of the communication process between two software systems provided in an embodiment of the present invention;

[0038] Figure 5 This is a schematic diagram of the processing flow when an anomaly occurs in the software system provided in an embodiment of the present invention. Detailed Implementation

[0039] The accompanying drawings are for illustrative purposes only and should not be construed as limiting the scope of this patent.

[0040] To better illustrate this embodiment, some parts in the accompanying drawings may be omitted, enlarged, or reduced, and do not represent the actual product dimensions;

[0041] It will be understood by those skilled in the art that certain well-known structures and their descriptions may be omitted in the accompanying drawings.

[0042] The technical solution of the present invention will be further described below with reference to the accompanying drawings and embodiments.

[0043] Example 1

[0044] This invention provides a centralized OLT board switching management device based on CPLD, such as... Figure 1 As shown, it includes:

[0045] A first board and a second board, wherein the first board and the second board are communicatively connected;

[0046] A first CPLD module and a second CPLD module are connected in communication with the first board and the second CPLD module is connected in communication with the second board. The first CPLD module and the second CPLD module are also connected in communication with each other. The first CPLD module and the second CPLD module also read the status changes of the external main and backup buttons and the board slot number, and control the power-on time of the first board and the second board.

[0047] A first software system and a second software system, wherein the first software system is communicatively connected to the first board and the first CPLD module, respectively, and the second software system is communicatively connected to the second board and the second CPLD module, respectively, and the first software system is communicatively connected to the second software system.

[0048] This embodiment utilizes a CPLD module for control, enabling stable and secure switching and management of primary and backup boards, thereby improving the stability of the centralized OLT chassis system and resolving issues such as system blocking, latency, and crashes caused by software management.

[0049] Example 2

[0050] This invention provides a centralized OLT board switching management method based on CPLD, such as... Figure 2 As shown, it includes the following steps:

[0051] The first CPLD module reads the status changes of the external primary / standby buttons and the board slot number to determine the initial primary / standby status of the first board. The second CPLD module reads the status changes of the external primary / standby buttons and the board slot number to determine the initial primary / standby status of the second board. The first CPLD module and the second CPLD module control the power-on time of the first board and the second board respectively according to the initial primary / standby status of the first board and the second board.

[0052] After the first CPLD module sends the first verification information including the initial primary / standby status of the first board to the second CPLD module, the second CPLD module sends the first primary / standby identity confirmation information to the first CPLD module to complete the primary / standby identity confirmation of the first board and the second board.

[0053] After the first CPLD module sends second verification information, including the confirmed primary / backup identity of the first board, to the first software system, the first software system sends second primary / backup identity confirmation information to the first CPLD module, completing the primary / backup identity confirmation of the first board by the first software system; after the second CPLD module sends third verification information, including the confirmed primary / backup identity of the second board, to the second software system, the second software system sends third primary / backup identity confirmation information to the second CPLD module, completing the primary / backup identity confirmation of the second board by the second software system; thus, the motherboard and the backup board are obtained;

[0054] The primary CPLD module and the backup CPLD module communicate at fixed intervals in real time to confirm the working status of the motherboard and the backup board. When the motherboard is the first board, the primary CPLD module is the first CPLD module, the primary software system is the first software system, the backup CPLD module is the second CPLD module, and the backup software system is the second software system. When the motherboard is the second board, the primary CPLD module is the second CPLD module, the primary software system is the second software system, the backup CPLD module is the first CPLD module, and the backup software system is the first software system.

[0055] If the motherboard malfunctions, the backup board will be switched to the motherboard, the backup CPLD module will be switched to the main CPLD module, and the backup software system will be switched to the main software system.

[0056] In this embodiment, each CPLD module first determines the primary / standby status of the board using the external primary / standby button and the board slot number. After determining the initial primary / standby status, the primary and standby boards will perform handshake communication to recognize each other. In particular, if the handshake fails, it can be determined as a single master control system. After the handshake communication, the primary / standby relationship will be informed to the software system. The software system will further determine the primary and standby boards, and after confirming the information, it will send confirmation information to the CPLD. After the software system confirms the master device, the CPLD switches the system management and control to the master device, the standby device goes into standby mode, and the system services are switched to the master device. The primary and standby CPLDs communicate with each other in real time. When the master device malfunctions, the standby device immediately switches to the master device and notifies the software system to switch services.

[0057] The above methods ensure the stability and security of the entire centralized OLT chassis system.

[0058] Example 3

[0059] This embodiment further describes the centralized OLT board switching management method based on CPLD provided in Embodiment 2, specifically as follows:

[0060] In a further embodiment, determining the initial primary / standby state includes:

[0061] If the primary / standby button is in the primary state, then the initial primary / standby state is determined to be the motherboard card;

[0062] If the primary / standby button is in standby mode and the board slot number is the preset motherboard slot number, then the initial primary / standby status is determined to be motherboard.

[0063] If the primary / standby button is in standby status and the board slot number is not the preset motherboard slot number, then the initial primary / standby status is determined to be standby board.

[0064] In a further embodiment, the power-on time of the first board and the second board is controlled according to their initial primary / standby states, including:

[0065] In the initial primary / standby state, the motherboard card is given priority for power-on, with an interval of more than 3 seconds in advance to prevent conflicts.

[0066] In a further embodiment, after the second CPLD module sends the first primary / backup identity verification information to the first CPLD module, if the verification fails, the first CPLD module repeatedly sends the first verification information including the initial primary / backup status of the first board to the second CPLD module, and repeatedly receives the first primary / backup identity verification information sent by the second CPLD module. If the number of repetitions exceeds a preset number, the primary / backup identity verification fails, and the software system enters the primary / backup identity verification step for the board.

[0067] In a specific embodiment, the handshake process is as follows: Figure 3 As shown, after determining the initial primary / backup identity through the primary / backup button and board slot number, the CPLD will send primary / backup identity information with a checksum to another master control system via a private protocol. After receiving the information, the other master control system will reply with a private protocol data stream containing primary / backup identity confirmation information. Upon receiving the data stream from the other master control system, the CPLD will perform information verification and judgment. One important verification information is the initial primary / backup identity verification. If the verification information passes, the initial primary / backup identity is confirmed as primary / backup. If the verification information fails, the CPLD will control the repeated sending of primary / backup identity information with a checksum. If the number of repetitions exceeds the preset number, the primary / backup identity confirmation fails, and the process will proceed to step S3 for primary / backup identity confirmation. If the first master control system does not reply with any data stream, the OLT system is considered to be a single master control system, and the master control board is the master device.

[0068] In a further embodiment, if the first CPLD module does not receive the first primary / backup identity confirmation information, then the first board is confirmed to be the motherboard.

[0069] In a further embodiment, after the first CPLD module sends the second verification information, which includes the confirmed primary / backup identity of the first board, to the first software system, the first software system verifies the received confirmed primary / backup identity of the first board with the initial primary / backup status of the first board. If the verification passes, the first CPLD module sends the second primary / backup identity confirmation information to the first CPLD module, thus completing the primary / backup identity confirmation of the first board by the first software system.

[0070] After the second CPLD module sends the third verification information, which includes the confirmed primary / standby identity of the second board, to the second software system, the second software system verifies the received confirmed primary / standby identity of the second board against the initial primary / standby status of the second board. If the verification passes, the second CPLD module sends the third primary / standby identity confirmation information to the second CPLD module, thus completing the primary / standby identity confirmation of the second board by the second software system.

[0071] In a specific embodiment, after the primary and backup boards communicate via handshake, a private protocol containing primary and backup identity information with a check bit is sent to the software system. The software system then verifies the initial primary and backup identity information of the software against the received primary and backup identity information of the CPLD. The initial primary and backup identity information of the software is determined based on the order of power-on time, with the first board powering on being the primary device. If the verification passes, an acknowledgment message is sent to the CPLD, and the primary and backup identities are confirmed. If the verification fails, the software system sends the initial primary and backup identity information to the CPLD, and the CPLD determines the primary and backup identities based on the received information. If it is a single master control system, the software system does not have a power-on time order, and it is always the primary device.

[0072] In a further embodiment, after obtaining the mainboard card and the backup card, all management data of the service board is handed over to the mainboard card, and the backup card enters a standby state.

[0073] In a specific embodiment, after the software system confirms the master device and sends master / standby information, the CPLD switches the management and control of the entire centralized OLT chassis system to the master device, that is, the master device takes over. All management data sent from the main control board to the service board is handled by the master device, and the standby device enters standby mode to prevent management conflicts. At the same time, the software system switches the device services to the master device.

[0074] In a further embodiment, if the motherboard card malfunctions, it includes:

[0075] If the backup CPLD module fails to receive communication from the main CPLD module after a preset time, or if the communication information verification from the main CPLD module fails, the motherboard card is deemed to be malfunctioning.

[0076] In specific embodiments, the primary and backup CPLD modules communicate using a private protocol at fixed intervals in real time, such as... Figure 4 As shown, this is used to confirm that the master and slave devices are in normal working condition. The private protocol is first sent by the master device, and the slave device receives it and verifies the information. After verification, it replies with the verification result. The master device receives the reply and verifies it. If the verification is successful, it enters the next loop. If the verification fails, it notifies the software system to issue a slave device anomaly alarm. If the master device does not receive a reply from the slave device within a timeout, it also notifies the software system to issue a slave device anomaly alarm. If the slave device does not receive the private protocol information from the master device within a timeout or the private protocol information verification fails, it is determined that the master device is malfunctioning. The slave device will switch to the master device and notify the software system that the master device is malfunctioning and the master-slave device has switched. After receiving the slave device information, the software system will perform dual-system interaction to confirm the master device malfunction and resend the master / slave identity information to the CPLD module to determine the master / slave status, and at the same time, perform data service switching.

[0077] In a further embodiment, the main software system and the main CPLD module communicate in real time at fixed intervals. If the communication between the main software system and the main CPLD module is interrupted, or if the main CPLD module fails to verify the communication information of the main software system, the main CPLD module will send a preset private protocol to the main software system for information confirmation. If the main software system does not reply or the reply information verification fails, it is determined that the main software system is abnormal. The main CPLD module will interact with the backup CPLD module to switch the primary and backup identities, and at the same time inform the backup software system to switch the primary and backup identities, and complete the data service switch.

[0078] In a specific embodiment, the software system communicates with the CPLD module via a private protocol at fixed intervals in real time, such as... Figure 5 As shown, to confirm the normal operation of the software system, if the software system experiences blocking delays or abnormalities, the communication between the software system and the CPLD module will be interrupted, or the CPLD module will fail to verify the private protocol information of the software system. At this time, the CPLD module will send a specific private protocol to the software system for information confirmation. If the software system does not reply or the reply information verification fails, it is determined that the software system is abnormal. The CPLD module will interact with the backup system CPLD module to switch the primary and backup identities. The backup system will become the primary system and inform the backup software system to switch the primary and backup identities. The backup system will interact with the primary system to confirm the information. If the primary confirmation information is abnormal or there is a blocking delay, the primary and backup system identity switch is confirmed, and the data service switch is completed. Confirmation information is sent to the CPLD module, and the CPLD module completes the primary system switch and takes over the system management and control.

[0079] In a further embodiment, the primary / standby system switching control can also be configured via software command line. The CPLD module is equipped with a priority judgment module, which is set to have higher priority for software system control to ensure that there is no conflict between the CPLD module and the software system regarding primary / standby identity switching.

[0080] The same or similar labels correspond to the same or similar parts;

[0081] The terms used to describe positional relationships in the accompanying drawings are for illustrative purposes only and should not be construed as limiting this patent.

[0082] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the implementation of the present invention. Those skilled in the art can make other variations or modifications based on the above description. It is neither necessary nor possible to exhaustively describe all embodiments here. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the claims of the present invention.

Claims

1. A CPLD-based centralized OLT board switching management device, characterized in that, The utility model relates to a kind of main and standby board card system, including: First board card and second board card, the first board card is connected with the second board card communication; First CPLD module and second CPLD module, the first CPLD module is connected with the first board card communication, the second CPLD module is connected with the second board card communication, the first CPLD module is connected with the second CPLD module communication;The first CPLD module and second CPLD module also read outside main and standby button state change and board card slot number, and control the power-on time of first board card and second board card; First software system and second software system, the first software system is connected with the first board card and the first CPLD module communication respectively, the second software system is connected with the second board card and the second CPLD module communication respectively, the first software system is connected with the second software system communication; The first CPLD module reads outside main and standby button state change and board card slot number, judges the initial main and standby state of the first board card, and the second CPLD module reads outside main and standby button state change and board card slot number, judges the initial main and standby state of the second board card; The first CPLD module and the second CPLD module control the power-on time of the first board card and second board card according to the initial main and standby state of the first board card and second board card respectively; After the first CPLD module sends the first check information including the initial main and standby state of the first board card to the second CPLD module, the second CPLD module sends the first main and standby identity confirmation information to the first CPLD module, and the main and standby identity confirmation of the first board card and second board card is completed; After the first CPLD module sends the second check information including the main and standby identity of the first board card after confirmation to the first software system, the first software system sends the second main and standby identity confirmation information to the first CPLD module, and the main and standby identity confirmation of the first software system to the first board card is completed; After the second CPLD module sends the third check information including the main and standby identity of the second board card after confirmation to the second software system, the second software system sends the third main and standby identity confirmation information to the second CPLD module, and the main and standby identity confirmation of the second software system to the second board card is completed; Main board card and standby board card are obtained; Main CPLD module and standby CPLD module carry out fixed period communication in real time, and confirm the working state of the main board card and standby board card; When the main board card is the first board card, the main CPLD module is the first CPLD module, the main software system is the first software system, the standby CPLD module is the second CPLD module, and the standby software system is the second software system;When the main board card is the second board card, the main CPLD module is the second CPLD module, the main software system is the second software system, the standby CPLD module is the first CPLD module, and the standby software system is the first software system; If the main board card appears abnormal, then standby board card is switched as main board card, standby CPLD module is switched as main CPLD module, and standby software system is switched as main software system.

2. A CPLD-based centralized OLT board card switching management method, characterized in that, The management method is applied to a CPLD-based centralized OLT board card switching management device, which comprises a first board card and a second board card, wherein the first board card is in communication connection with the second board card; a first CPLD module and a second CPLD module, wherein the first CPLD module is in communication connection with the first board card, the second CPLD module is in communication connection with the second board card, and the first CPLD module is in communication connection with the second CPLD module; the first CPLD module and the second CPLD module further read the state change of an external master / standby button and a board card slot number, and control the power-on time of the first board card and the second board card; a first software system and a second software system, wherein the first software system is in communication connection with the first board card and the first CPLD module respectively, the second software system is in communication connection with the second board card and the second CPLD module respectively, and the first software system is in communication connection with the second software system; the first CPLD module reads the state change of the external master / standby button and the board card slot number, judges the initial master / standby state of the first board card, the second CPLD module reads the state change of the external master / standby button and the board card slot number, and judges the initial master / standby state of the second board card; the first CPLD module and the second CPLD module control the power-on time of the first board card and the second board card respectively according to the initial master / standby state of the first board card and the second board card; after the first CPLD module sends first check information comprising the initial master / standby state of the first board card to the second CPLD module, the second CPLD module sends first master / standby identity confirmation information to the first CPLD module, and the master / standby identity confirmation of the first board card and the second board card is completed; the management method comprises: the first CPLD module reads the state change of the external master / standby button and the board card slot number, judges the initial master / standby state of the first board card, the second CPLD module reads the state change of the external master / standby button and the board card slot number, and judges the initial master / standby state of the second board card; the first CPLD module and the second CPLD module control the power-on time of the first board card and the second board card respectively according to the initial master / standby state of the first board card and the second board card; after the first CPLD module sends first check information comprising the initial master / standby state of the first board card to the second CPLD module, the second CPLD module sends first master / standby identity confirmation information to the first CPLD module, and the master / standby identity confirmation of the first board card and the second board card is completed; The first CPLD module sends second verification information including the confirmed main / standby status of the first board card to the first software system, and the first software system sends second main / standby status confirmation information to the first CPLD module, thereby completing the main / standby status confirmation of the first software system to the first board card; the second CPLD module sends third verification information including the confirmed main / standby status of the second board card to the second software system, and the second software system sends third main / standby status confirmation information to the second CPLD module, thereby completing the main / standby status confirmation of the second software system to the second board card; and the main board card and the standby board card are obtained. The main CPLD module and the standby CPLD module perform fixed-period communication in real time to confirm the working status of the main board card and the standby board card; when the main board card is the first board card, the main CPLD module is the first CPLD module, the main software system is the first software system, the standby CPLD module is the second CPLD module, and the standby software system is the second software system; when the main board card is the second board card, the main CPLD module is the second CPLD module, the main software system is the second software system, the standby CPLD module is the first CPLD module, and the standby software system is the first software system. If the main board card is abnormal, the standby board card is switched to the main board card, the standby CPLD module is switched to the main CPLD module, and the standby software system is switched to the main software system.

3. The CPLD-based centralized OLT board card switching management method according to claim 2, characterized in that, The initial main / standby status is determined, including: If the main / standby button status is main, the initial main / standby status is determined to be the main board card. If the main / standby button status is standby and the board card slot number is the preset main board card slot number, the initial main / standby status is determined to be the main board card. If the main / standby button status is standby and the board card slot number is not the preset main board card slot number, the initial main / standby status is determined to be the standby board card.

4. The CPLD-based centralized OLT board card switching management method according to claim 3, characterized in that, The power-on time of the first board card and the second board card is controlled according to the initial main / standby status of the first board card and the second board card, including: The initial main / standby status is the main board card, and the advance interval is greater than 3 seconds.

5. The CPLD-based centralized OLT board card switching management method according to claim 2, wherein, After the second CPLD module sends the first main / standby status confirmation information to the first CPLD module, if the verification fails, the first CPLD module repeatedly sends the first verification information including the initial main / standby status of the first board card to the second CPLD module, repeatedly receives the first main / standby status confirmation information sent by the second CPLD module, if the number of repetitions exceeds the preset number, the main / standby status confirmation fails, and the software system enters the main / standby status confirmation step of the board card.

6. The CPLD-based centralized OLT board card switching management method according to claim 5, wherein, If the first CPLD module does not receive the first main / standby status confirmation information, it is confirmed that the first board card is the main board card.

7. The CPLD-based centralized OLT board card switching management method according to claim 2, wherein, After the first CPLD module sends the second verification information including the confirmed first board card master-slave identity to the first software system, the first software system verifies the received confirmed first board card master-slave identity with the initial master-slave state of the first board card, and if the verification is passed, the first CPLD module sends second master-slave identity confirmation information to the first CPLD module, thereby completing the first software system's confirmation of the master-slave identity of the first board card. After the second CPLD module sends the third verification information including the confirmed second board card master-slave identity to the second software system, the second software system verifies the received confirmed second board card master-slave identity with the initial master-slave state of the second board card, and if the verification is passed, the second CPLD module sends third master-slave identity confirmation information to the second CPLD module, thereby completing the second software system's confirmation of the master-slave identity of the second board card.

8. The CPLD-based centralized OLT board card switching management method according to claim 2, wherein, After the master board card and the standby board card are obtained, all management data of the service board are handed over to the master board card, and the standby board card enters a standby state.

9. The CPLD-based centralized OLT board card switching management method according to claim 2, wherein, If the master board card is abnormal, including: If the standby CPLD module does not receive communication from the master CPLD module or the communication information from the master CPLD module fails to pass verification after exceeding a preset time, it is determined that the master board card is abnormal.

10. The CPLD-based centralized OLT board card switching management method according to any one of claims 2 to 9, characterized in that, The master software system and the master CPLD module perform real-time fixed-period communication, if the communication between the master software system and the master CPLD module is interrupted or the communication information of the master CPLD module to the master software system fails to pass verification, the master CPLD module sends a preset private protocol to the master software system for information confirmation, if the master software system fails to reply or the reply information fails to pass verification, it is determined that the master software system is abnormal, the master CPLD module interacts with the standby CPLD module, switches the master-slave identity, informs the standby software system of the switching of the master-slave identity, and simultaneously completes data service switching.

Citation Information

Patent Citations

  • Main / standby switching system and method of dual-wan PORT network apparatus

    CN104753710A