A main control board soft start processing method and device

By detecting the soft start of the main control board in the network equipment and switching the working modes of the service board and optical protection board, the traffic interruption and network security problems caused by the soft start of the main control board are solved, and traffic control and network continuity are achieved.

CN112350771BActive Publication Date: 2024-08-27NAT COMP NETWORK & INFORMATION SECURITY MANAGEMENT CENT +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011360953.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2024-08-27
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

In network equipment, when the main control board performs a soft start due to software upgrade or failure, how to make the service board and optical protection board work in a reasonable working state to avoid traffic interruption and network security problems.

Method used

By detecting the soft start of the main control board, the service board and optical protection board switch working modes, switch from the serial access mode to the shutdown access mode, interrupt the traffic, and detect the completion of the soft start of the main control board within the preset time. If If it is not completed, it switches to the bypass protection state and transparently transmits traffic to avoid interruption.

Benefits of technology

It realizes the control of traffic, improves network security, avoids long traffic interruption due to soft start failure, and ensures network continuity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112350771B
    Figure CN112350771B
Patent Text Reader

Abstract

The present application provides a method and device for processing the soft start of a main control board. The method and device can achieve, on the one hand, within the preset time period from the time when the main control board is soft started, the service board switches from the serial access mode to the shutdown access mode, interrupting the flow entering the network to the greatest extent, realizing the control of the flow and improving the network security; on the other hand, when the soft start of the main control board exceeds the preset time period, the service board confirms that an abnormality has occurred in the soft start process, switches from the shutdown access mode to the bypass protection state, and transparently transmits the flow into the network, thereby realizing the intelligent switching of the working mode of the service board and avoiding the interruption of user flow for too long.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network technology, and in particular to a method and device for soft-starting a main control board. Background Art

[0002] The network equipment contains a main control board, a service board and an optical protection board.

[0003] The main control board is used to manage the business board and the optical protection board, such as controlling the business board and the optical protection board to switch working modes.

[0004] The service board is used to process the received traffic, such as identifying abnormal traffic and filtering abnormal traffic.

[0005] The optical protection board is used to forward the received traffic to the business board so that the business board can process the traffic, or to transparently transmit the traffic when the business board cannot process the traffic due to an abnormality of the main control board or the business board to ensure that the traffic is not interrupted.

[0006] Normally, the main control board controls the working status of the business board and the optical protection board. However, when the main control board is offline due to software upgrade or soft start due to a fault, how to make the business board and the optical protection board work in a reasonable working state becomes an urgent problem to be solved. Summary of the invention

[0007] In view of this, the present application provides a method for soft-start processing of a main control board.

[0008] According to a first aspect of the present application, a main control board soft start processing method is provided, the method is applied to a service board on a network device, the network device further comprising: a main control board and an optical protection board, the method comprising:

[0009] When the soft start of the main control board is detected, the working mode of the business board in the serial access working state is switched from the serial access mode to the shutdown access mode. The serial working state is used to indicate that the business board receives and processes the traffic sent by the optical protection board, and sends the processed traffic to the optical protection board for forwarding. The serial access mode is used to indicate that the business board works in the serial access working state and maintains the connection with the optical protection board. The shutdown access mode is used to indicate that the business board works in the serial working state and cuts off the connection with the optical protection board.

[0010] Detecting whether the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started;

[0011] If so, upon receiving the working mode switching instruction sent by the main control board, the working mode of the service board is switched from the shutdown access mode to the working mode indicated by the working mode switching instruction.

[0012] Optionally, the method further includes:

[0013] If the completion of the soft start of the main control board is not detected within the preset time from the time when the soft start of the main control board is determined, the working state of the business board is switched to the bypass protection state, and the bypass protection state is used to trigger the business board to receive the traffic sent by the optical protection board for processing, and prohibit the processed traffic from being sent to the optical protection board for forwarding.

[0014] Optionally, the detecting whether the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started includes:

[0015] If a timeout notification sent by the light protection board is received, it is determined that the main control board has not been detected to have completed the soft start within a preset time period from when the main control board is determined to be soft started; the timeout notification is sent by the light protection board when a preset time period has passed since the main control board is determined to be soft started, and the main control board has not been detected to have completed the soft start within the preset time period;

[0016] If an online indication signal is received from the main control board and a timeout notification is not received from the optical protection board, it is determined that the main control board has completed the soft start within a preset time period from the time when the main control board is soft started; the online indication signal is sent after the main control board soft start is completed.

[0017] According to a second aspect of the present application, a main control board soft start processing method is provided, the method is applied to an optical protection board on a network device, the network device further comprising: a main control board and a service board, the method comprising:

[0018] When it is detected that the main control board is restarting the software, the working mode of the optical protection board in the serial access working state is switched from the serial access mode to the shutdown access mode. The serial working state is used to instruct the business board to receive and process the traffic sent by the optical protection board, and send the processed traffic to the optical protection board for forwarding. The serial access mode is used to instruct the business board to maintain the connection with the optical protection board in the serial access working state, and the shutdown access mode is used to instruct the business board to cut off the connection with the optical protection board in the serial working state;

[0019] Detecting whether the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started;

[0020] If so, upon receiving the working mode switching instruction sent by the main control board, the working mode of the optical protection board is switched from the off access mode to the working mode indicated by the working mode switching instruction.

[0021] Optionally, the method further includes:

[0022] If the main control board soft start is not detected within the preset time from the time when the main control board soft start is determined, the working state of the optical protection board is switched to the bypass protection state, and the bypass protection state is used to trigger the optical protection board to transmit traffic to the network and send traffic to the business board for reception.

[0023] Optionally, the method further includes:

[0024] If a preset time period has passed since the soft start of the main control board is determined, and the main control board is not detected to have completed the soft start within the preset time period, a timeout notification is sent to the business board. The timeout notification is used to trigger the business board to determine, based on the timeout notification, that the main control board has not been detected to have completed the soft start within the preset time period from the soft start of the main control board.

[0025] According to a third aspect of the present application, a main control board soft start processing device is provided, the device is applied to a service board on a network device, the network device further includes: a main control board and an optical protection board, the device includes:

[0026] A first switching unit is used to switch the working mode of the business board in the serial access working state from the serial access mode to the shutdown access mode when detecting a soft restart of the main control board. The serial working state is used to indicate that the business board receives and processes the traffic sent by the optical protection board, and sends the processed traffic to the optical protection board for forwarding. The serial access mode is used to indicate that the business board works in the serial access working state and maintains the connection with the optical protection board. The shutdown access mode is used to indicate that the business board works in the serial working state and cuts off the connection with the optical protection board;

[0027] A detection unit, used to detect whether the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started;

[0028] The second switching unit is used to switch the working mode of the business board from the access shutdown mode to the working mode indicated by the working mode switching instruction when receiving the working mode switching instruction sent by the main control board if it is detected that the main control board has completed the soft start within a preset time period from the time when the main control board is determined to be soft started.

[0029] Optionally, the device further comprises:

[0030] The third switching unit, if the main control board soft start completion is not detected within the preset time from the time when the main control board soft start is determined, the working state of the business board is switched to the bypass protection state, and the bypass protection state is used to trigger the business board to receive the traffic sent by the optical protection board for processing, and prohibit the processed traffic from being sent to the optical protection board for forwarding.

[0031] According to a fourth aspect of the present application, a main control board soft start processing device is provided, the device is applied to an optical protection board on a network device, the network device further includes: a main control board and a service board, the device includes:

[0032] The first switching unit switches the working mode of the optical protection board in the serial access working state from the serial access mode to the shutdown access mode when detecting that the main control board is restarting the software. The serial working state is used to instruct the business board to receive and process the traffic sent by the optical protection board, and send the processed traffic to the optical protection board for forwarding. The serial access mode is used to instruct the business board to maintain the connection with the optical protection board in the serial access working state, and the shutdown access mode is used to instruct the business board to cut off the connection with the optical protection board in the serial working state;

[0033] A detection unit, detecting whether the main control board has completed the soft start within a preset time period from when the main control board is determined to be soft started;

[0034] The second switching unit switches the working mode of the optical protection board from the shutdown access mode to the working mode indicated by the working mode switching instruction when receiving the working mode switching instruction sent by the main control board, if it is detected that the main control board completes the soft start within the preset time from the time when the main control board is determined to be soft started.

[0035] Optionally, the device further comprises:

[0036] The third switching unit, if the main control board soft start is not detected to be completed within the preset time from the time when the main control board is determined to be soft started, the working state of the optical protection board is switched to the bypass protection state, and the bypass protection state is used to trigger the optical protection board to transmit traffic to the network and send traffic to the business board for reception.

[0037] Through the above process and device, on the one hand, within the preset time from the soft start of the main control board, the business board switches from the serial access mode to the shutdown access mode, interrupting the traffic entering the network to the greatest extent, realizing the control of the traffic and improving network security.

[0038] On the other hand, when the soft start of the main control board exceeds the preset time, the business board confirms that an abnormality has occurred in the soft start process and switches from the access shutdown mode to the bypass protection state, transparently transmitting the traffic into the network, thereby realizing intelligent switching of the working mode of the business board and avoiding interrupting user traffic for too long. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a traffic flow diagram of a network device in a working state shown in an exemplary embodiment of the present application;

[0040] Figure 2It is a traffic flow diagram of a network device in a working state shown in an exemplary embodiment of the present application;

[0041] Figure 3 is a flow chart of a main control board soft start processing method according to an exemplary embodiment of the present application;

[0042] Figure 4 is a flow chart of a main control board soft start processing method according to an exemplary embodiment of the present application;

[0043] Figure 5 is a block diagram of a main control board soft start processing device according to an exemplary embodiment of the present application;

[0044] Figure 6 It is a block diagram of a main control board soft start processing device according to an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0045] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0046] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0047] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0048] The internal structure of network equipment can be found in Figure 1 and Figure 2 ,The network equipment contains a main control board, a service board and an optical protection board.

[0049] Among them: the main control board is used to manage the business board and the optical protection board, such as controlling the business board and the optical protection board to switch working modes;

[0050] The service board is used to process the received traffic, such as identifying abnormal traffic and filtering abnormal traffic.

[0051] The optical protection board is used to forward the received traffic to the business board so that the business board can process the traffic, or to transparently transmit the traffic when the business board cannot process the traffic due to an abnormality of the main control board or the business board to ensure that the traffic is not interrupted.

[0052] In order to realize the above different functions, in the network device, the working states of the service board and the optical protection board at least include: bypass protection state and series working state.

[0053] The flow direction of the traffic in bypass protection state is as follows: Figure 1 , the specific process is:

[0054] After receiving the traffic, the optical protection board will transparently transmit the traffic, that is, forward it directly without processing the traffic. At the same time, the optical protection board will copy a copy of the traffic and send it to the business board for processing. The business board receives and processes the traffic sent by the optical protection board, and the connection between the business board and the optical protection board remains disconnected, and the optical protection board will not receive the processed traffic.

[0055] The flow direction of the flow in the serial working state is as follows Figure 2 , the specific process is:

[0056] The optical protection board receives traffic and forwards it to the service board for processing. The service board receives and processes traffic forwarded by the optical protection board and sends the processed traffic to the optical protection board. The optical protection board receives the processed traffic and forwards it out.

[0057] In the embodiment of the present application, the serial working state may include multiple working modes, such as serial access mode and shutdown access mode.

[0058] The serial access mode is: the service board and the optical protection board work in the serial working state, and the service board and the optical protection board remain connected. Because the service board and the optical protection board remain connected, the optical protection board and the service board can smoothly forward traffic. The traffic forwarding process is that the optical protection board receives traffic and forwards it to the service board for processing, the service board receives and processes the traffic forwarded by the optical protection board, and sends the processed traffic to the optical protection board, and the optical protection board receives the processed traffic and transfers it out.

[0059] The shutdown access mode is: the service board and the optical protection board work in a serial working state, but the service board is disconnected from the optical protection board. The service board is disconnected from the optical protection board by disconnecting the connection from the service board to the optical protection board. At this time, the service board receives and processes the traffic forwarded by the optical protection board, but cannot forward the processed traffic to the optical protection board.

[0060] Normally, the service board and optical protection board of the network equipment work in the serial access mode, and the traffic can be processed and forwarded to the network smoothly.

[0061] However, the main control board may perform soft restart and hard restart for some reasons. No matter the main control board is soft restart or hard restart, when the main control board is restarted, the traffic processing of the service board may be abnormal. Therefore, in order to prevent the abnormality from occurring, the optical protection board and the service board will enter other working states and other working modes.

[0062] The following is a detailed introduction from two aspects: main control board soft start and main control board hard start.

[0063] 1) Soft start of main control board

[0064] Soft restart can also be called hot restart, which usually means restarting the main control board when it is powered on. For example, the main control board needs to be restarted because of software upgrade.

[0065] When the main control board is soft-started, the main control board will send a soft-start notification to the service board and the optical protection board. After receiving the soft-start notification, the service board and the optical protection board can know that the main control board needs to be soft-started. In the traditional technical solution, when the service board and the optical protection board determine that the main control board is soft-started, the service board and the optical protection board will switch from the serial access mode to the bypass protection state, and transmit the received traffic to the network to ensure that the traffic is not interrupted.

[0066] 2) Main control board hard start

[0067] A hard restart can also be called a cold restart, which usually refers to the process of powering on the main control board after it is powered off. For example, the main control board is unplugged and then reinserted.

[0068] The online main control board will periodically send hardware signals to the optical protection board and the service board. When the optical protection board and the service board do not receive the hardware signals sent by the main control board, they will think that the main control board is abnormal, but they do not know the reason for the abnormality of the main control board. Therefore, in order to ensure network security, the optical protection board and the service board will switch from the serial access mode to the shutdown access mode, and the service board will disconnect from the optical protection board to block the received traffic from being sent to the network.

[0069] This application is mainly to solve the problems generated during the soft start of the main control board.

[0070] Specifically, in the traditional technical solution, when the business board and the optical protection board detect that the main control board is in soft start, the business board and the optical protection board enter bypass protection, that is, the optical protection board transmits the traffic and sends the traffic to the business board for processing. The business board is disconnected from the optical protection board, and only the transmitted traffic enters the network to ensure that the network traffic is not interrupted. However, the traffic transmitted to the network is not controlled and may contain abnormal traffic, which may cause network security problems.

[0071] Based on this, the present application proposes a main control board soft start processing method applied to the above-mentioned network device, which can control the traffic during the soft start of the main control board by switching the working modes of the optical protection board and the service board.

[0072] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application and to make the features and advantages of the embodiments of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.

[0073] like Figure 3 As shown, Figure 3 This is a flowchart of a method according to an exemplary embodiment of the present specification, which is applied to a service board in the above network device, and includes the following steps:

[0074] Step 302: When the business board detects that the main control board is soft-started, the working mode of the business board in the serial access working state is switched from the serial access mode to the shutdown access mode. The serial working state is used to instruct the business board to receive and process the traffic sent by the optical protection board, and send the processed traffic to the optical protection board for forwarding. The serial access mode is used to instruct the business board to maintain the connection with the optical protection board in the serial access working state, and the shutdown access mode is used to instruct the business board to cut off the connection with the optical protection board in the serial working state.

[0075] Generally, the service board and the optical protection board are in the serial access mode under the serial access working state. The serial access mode is used to indicate that the service board works in the serial access state and maintains the connection with the optical protection board. In the serial access mode, since there is a connection between the service board and the optical protection board, when the optical protection board receives the traffic, it can forward the traffic to the service board for processing. The service board can smoothly receive and process the traffic sent by the optical protection board, and send the processed traffic to the optical protection board for subsequent forwarding.

[0076] At this time, if the main control board starts soft start, the main control board will send a soft start indication signal to the business board.

[0077] Correspondingly, the service board will receive the soft start indication signal sent by the main control board and determine that the main control board is soft starting. The service board can also use other methods to determine that the main control board is offline due to soft starting, which is not limited in this application.

[0078] After determining that the main control board is soft-starting, the service board switches from the serial access mode in the serial access working state executed under normal circumstances to the shutdown access mode. The shutdown access mode is used to instruct the service board to cut off the connection with the optical protection board in the serial working state. Since the interface from the service board to the optical protection board is disconnected, the optical protection board forwards the received traffic to the service board for processing. After processing, the service board cannot send the traffic to the optical protection board for forwarding, thereby interrupting the traffic entering the network.

[0079] Step 304: The service board detects whether the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started.

[0080] In the embodiment of the present application, the optical protection board will also receive the soft start notification from the main control board. After receiving the soft start notification, the optical protection board determines that the main control board is soft started and starts timing. After exceeding the preset time from the time when the main control board is soft started, the optical protection board switches its own working mode from the shutdown access mode to the bypass protection state, and sends a timeout notification to the business board (see the following description for details).

[0081] When the business board detects whether the main control board has completed the soft start within the preset time from the time when the main control board is determined to be soft started, if it receives a timeout notification sent by the optical protection board, it determines that the main control board has not been detected to have completed the soft start within the preset time from the time when the main control board is determined to be soft started; if it receives an online indication signal sent by the main control board and does not receive a timeout notification sent by the optical protection board, it determines that the main control board has been detected to have completed the soft start within the preset time from the time when the main control board is determined to be soft started.

[0082] Step 306: If yes, upon receiving the working mode switching instruction sent by the main control board, the working mode of the service board is switched from the shutdown access mode to the working mode indicated by the working mode switching instruction.

[0083] In an embodiment of the present application, if the main control board soft start is detected to be completed within a preset time from the time when the main control board soft start is determined, the control of the working mode of the service board and the optical protection board is returned to the main control board.

[0084] Specifically, after the main control board is soft-started and comes back online, the main control board will send a working mode switching instruction to the service board and the optical protection board to restore control over the service board and the optical protection board.

[0085] Correspondingly, the service board will receive the working mode switching instruction sent by the main control board. The service board can switch itself to the corresponding working mode according to the working mode switching instruction. For example, the main control board sends a serial access mode switching instruction, and the service board switches from the shutdown access mode to the serial access mode.

[0086] In addition, if the service board does not detect that the main control board soft start is completed within the preset time from the time when the main control board soft start is determined, the main control board soft start time is too long, and it can be determined that an abnormality occurs in the main control board soft start process, and step 308 is executed.

[0087] Step 308: If the business board does not detect that the soft start of the main control board is completed within the preset time from the time when the soft start of the main control board is determined, the working state of the business board is switched to the bypass protection state, and the bypass protection state is used to trigger the business board to receive the traffic sent by the optical protection board, while keeping the connection from the business board to the optical protection board disconnected.

[0088] If the service board does not detect that the soft start of the main control board is completed within the preset time from when the soft start of the main control board is determined, then the soft start time of the main control board is too long, and it can be determined that the soft start of the main control board has failed.

[0089] In order to avoid the shutdown access mode being entered too long due to soft start failure, and the network traffic being disconnected for too long, the business board will switch the working mode to the bypass protection state. At this time, the optical protection board receives and transparently transmits the traffic, and copies the traffic to send to the business board for processing. Because the business board is disconnected from the optical protection board, the traffic processed by the business board cannot be sent to the optical protection board for subsequent forwarding, so only the transparently transmitted traffic enters the network, thereby restoring the network traffic and recovering user services.

[0090] After the service board switches to the bypass protection state, if the main control board soft-start is completed, the main control board will send an online indication signal and a working mode switching instruction to the service board and the optical protection board. After receiving the online indication signal sent by the main control board, the service board can confirm that the main control board soft-start is completed, and switch to the corresponding working mode according to the received working mode switching instruction, and accept the control of the main control board.

[0091] Through the above process, on the one hand, within the preset time from the time when the main control board is soft-started, the business board switches from the serial access mode to the shutdown access mode, interrupting the traffic entering the network to the greatest extent, realizing the control of the traffic and improving network security.

[0092] On the other hand, when the soft start of the main control board exceeds the preset time, the business board confirms that an abnormality has occurred in the soft start process and switches from the access shutdown mode to the bypass protection state, transparently transmitting the traffic into the network, thereby avoiding interrupting user traffic for too long.

[0093] like Figure 4 As shown, Figure 4 This is a flowchart of a method according to an exemplary embodiment of the present specification, which is applied to a service board in the above network device, and includes the following steps:

[0094] Step 402: When the optical protection board detects that the main control board is soft starting, the working mode of the optical protection board in the serial access working state is switched from the serial access mode to the shutdown access mode. The serial working state is used to instruct the business board to receive and process the traffic sent by the optical protection board, and send the processed traffic to the optical protection board for forwarding. The serial access mode is used to instruct the business board to maintain the connection with the optical protection board in the serial access working state, and the shutdown access mode is used to instruct the business board to cut off the connection with the optical protection board in the serial working state.

[0095] Generally, the optical protection board and the service board are in the serial access mode under the serial access working state. The serial access mode is used to indicate that the service board works in the serial access state and maintains the connection with the optical protection board. Since there is a connection between the service board and the optical protection board, when the optical protection board receives the traffic, it can forward the traffic to the service board for processing. The service board can smoothly receive and process the traffic sent by the optical protection board, and send the processed traffic to the optical protection board for subsequent forwarding.

[0096] At this time, if the main control board starts soft start, the main control board will send a soft start indication signal to the light protection board.

[0097] Correspondingly, the optical protection board will receive the soft start indication signal sent by the main control board and determine that the main control board is soft starting. The optical protection board can also use other methods to determine that the main control board is offline due to soft starting, which is not limited in this application.

[0098] After confirming that the main control board is soft-starting, the optical protection board switches from the serial access mode in the serial access working state executed under normal circumstances to the shutdown access mode. The shutdown access mode is used to indicate that the optical protection board is disconnected from the service board in the serial working state. Since the interface from the service board to the optical protection board is disconnected, the optical protection board receives traffic and forwards it to the service board for processing. After processing, the service board cannot send traffic to the optical protection board for forwarding, thereby interrupting the traffic entering the network.

[0099] Step 404: the light protection board detects whether the main control board has completed the soft start within a preset time period from when the main control board is determined to be soft started.

[0100] After the optical protection board determines that the main control board has soft-restarted, in addition to switching the working mode to the shutdown access mode, it will also determine whether the main control board is detected to have completed the soft start within the preset time from the soft start of the main control board. If so, step 406 is executed; if not, the optical protection board executes step 408 on the one hand, and sends a timeout notification to the business board on the other hand.

[0101] The preset duration can be freely set, and is generally not less than the duration required for the main control board to successfully complete the soft start.

[0102] The following introduces a specific implementation method of "detecting whether the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started".

[0103] Usually, after the main control board soft-start is completed, the main control board can work normally. When the main control board is working normally, it will periodically send online indication signals to the service board and the optical protection board.

[0104] The optical protection board can start the timer when determining that the main control board is soft-started, and the timeout duration of the timer is a preset duration.

[0105] If the light protection board receives an online indication signal sent by the main control board before the timer times out, it is determined that the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started;

[0106] If the light protection board does not receive the online indication signal sent by the main control board before the timer times out, it is determined that the main control board has not been detected to complete the soft start within the preset time period from when the main control board is determined to be soft started.

[0107] Step 406: If yes, upon receiving the working mode switching instruction sent by the main control board, the working mode of the optical protection board is switched from the off access mode to the working mode indicated by the working mode switching instruction.

[0108] In an embodiment of the present application, if the main control board soft start is detected to be completed within a preset time from the time when the main control board soft start is determined, the control of the working mode of the service board and the optical protection board is returned to the main control board.

[0109] Specifically, after the main control board soft-start is completed and the re-soft-start is completed, the main control board will send a working mode switching instruction to the service board and the optical protection board to restore control over the service board and the optical protection board.

[0110] Correspondingly, the optical protection board will receive the working mode switching instruction sent by the main control board. The optical protection board can switch itself to the corresponding working mode according to the working mode switching instruction. For example, the main control board sends a serial access mode switching instruction, and the optical protection board switches from the shutdown access mode to the serial access mode.

[0111] In addition, if the light protection board does not detect that the main control board soft start is completed within the preset time from the time when the main control board soft start is determined, the main control board soft start time is too long, and it can be determined that the main control board soft start process is abnormal, and step 408 is executed.

[0112] Step 408: If the business board does not detect that the main control board has completed the soft start within the preset time from the time when the main control board is determined to be soft started, the working state of the optical protection board is switched to the bypass protection state, and the bypass protection state is used to trigger the optical protection board to transmit traffic to the network and send traffic to the business board for reception.

[0113] If the service board does not detect that the soft start of the main control board is completed within the preset time from when the soft start of the main control board is determined, then the soft start time of the main control board is too long, and it can be determined that the soft start of the main control board has failed.

[0114] In order to avoid the shutdown access mode being entered too long due to soft start failure, and the network traffic being disconnected for too long, the optical protection board will switch the working mode to the bypass protection state. At this time, the optical protection board receives and transparently transmits the traffic, and copies the traffic to send to the business board for processing. Because the business board is disconnected from the optical protection board, the optical protection board cannot receive the traffic processed by the business board and cannot perform subsequent forwarding. Only the transparently transmitted traffic enters the network, thereby restoring the network traffic and recovering user services.

[0115] After the optical protection board switches to the bypass protection state, if the main control board soft-start is completed, the main control board will send an online indication signal and a working mode switching instruction to the business board and the optical protection board. After receiving the online indication signal sent by the main control board, the optical protection board can confirm that the main control board soft-start is completed, and switch to the corresponding working mode according to the received working mode switching instruction, and accept the control of the main control board.

[0116] In addition, it should be noted that the above steps 402-408 may be performed by a CPLD (Complex Programmable Logic Device) on the light protection board, or other devices on the light protection board, and this application does not limit this.

[0117] Through the above process, on the one hand, within the preset time from the time when the main control board is soft-started, the optical protection board switches from the serial access mode to the shutdown access mode, interrupting the traffic entering the network to the greatest extent, realizing the control of the traffic and improving network security.

[0118] On the other hand, when the soft start of the main control board exceeds the preset time, the optical protection board confirms that an abnormality has occurred in the soft start process and switches from the access shutdown mode to the bypass protection state, transparently transmitting the traffic into the network, thereby realizing intelligent switching of the working mode of the optical protection board and avoiding interrupting user traffic for too long.

[0119] Corresponding to the above-mentioned embodiment of the main control board soft start processing method, the present application also provides an embodiment of the main control board soft start processing device.

[0120] Please refer to Figure 5 This is a block diagram of a main control board soft start processing device shown in an exemplary embodiment of the present application. The device shown is applied to a service board in a network device, including:

[0121] The first switching unit 502 is used to switch the working mode of the business board in the serial access working state from the serial access mode to the shutdown access mode when detecting the soft restart of the main control board. The serial working state is used to indicate that the business board receives and processes the traffic sent by the optical protection board, and sends the processed traffic to the optical protection board for forwarding. The serial access mode is used to indicate that the business board works in the serial access working state and maintains the connection with the optical protection board. The shutdown access mode is used to indicate that the business board works in the serial working state and cuts off the connection with the optical protection board;

[0122] The detection unit 504 is used to detect whether the main control board has completed the soft start within a preset time period from when the main control board is determined to be soft started;

[0123] The second switching unit 506 is used to switch the working mode of the business board from the access shutdown mode to the working mode indicated by the working mode switching instruction when receiving the working mode switching instruction sent by the main control board if it is detected that the main control board has completed the soft start within a preset time period from the time when the main control board is determined to be soft started.

[0124] Optionally, the device also includes a third switching unit, which is used to switch the working state of the business board to a bypass protection state if the completion of the soft start of the main control board is not detected within a preset time period from the time when the soft start of the main control board is determined. The bypass protection state is used to trigger the business board to receive the traffic sent by the optical protection board for processing, and prohibit the processed traffic from being sent to the optical protection board for forwarding.

[0125] Optionally, the detection unit 504, if receiving a timeout notification sent by the light protection board, determines that the main control board is not detected to have completed the soft start within a preset time length from when the main control board is determined to be soft started; the timeout notification is sent by the light protection board when a preset time length has passed since the main control board is determined to be soft started, and the main control board is not detected to have completed the soft start within the preset time length;

[0126] If an online indication signal is received from the main control board and a timeout notification is not received from the optical protection board, it is determined that the main control board has completed the soft start within a preset time period from the time when the main control board is soft started; the online indication signal is sent after the main control board soft start is completed.

[0127] Please refer to Figure 6 This is a block diagram of a main control board soft start processing device shown in an exemplary embodiment of the present application. The device is applied to an optical protection board in a network device, including:

[0128] The first switching unit 602 is used to switch the working mode of the optical protection board in the serial access working state from the serial access mode to the shutdown access mode when detecting that the main control board is restarting the software. The serial working state is used to instruct the business board to receive and process the traffic sent by the optical protection board, and send the processed traffic to the optical protection board for forwarding. The serial access mode is used to instruct the business board to maintain the connection with the optical protection board in the serial access working state, and the shutdown access mode is used to instruct the business board to cut off the connection with the optical protection board in the serial working state;

[0129] The detection unit 604 is used to detect whether the main control board has completed the soft start within a preset time period from when the main control board is determined to be soft started;

[0130] The second switching unit 606 is used to switch the working mode of the optical protection board from the shutdown access mode to the working mode indicated by the working mode switching instruction when receiving the working mode switching instruction sent by the main control board if it is detected that the main control board completes the soft start within a preset time period from the time when the main control board is determined to be soft started.

[0131] Optionally, the device also includes a third switching unit, which is used to switch the working state of the optical protection board to a bypass protection state if the completion of the soft start of the main control board is not detected within a preset time from the time when the soft start of the main control board is determined. The bypass protection state is used to trigger the optical protection board to transmit traffic to the network and send traffic to the business board for reception.

[0132] Optionally, the device also includes a notification unit, which is used to send a timeout notification to the business board if a preset time period has passed since the main control board is determined to be soft-started, and the main control board is not detected to have completed the soft start within the preset time period. The timeout notification is used to trigger the business board to determine, based on the timeout notification, that the main control board has not been detected to have completed the soft start within the preset time period from the time the main control board is soft-started.

[0133] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0134] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0135] The embodiments of the subject matter and functional operations described in this specification may be implemented in the following: digital electronic circuits, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules in computer program instructions encoded on a tangible non-temporary program carrier to be executed by a data processing device or to control the operation of the data processing device. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagation signal, such as a machine-generated electrical, optical or electromagnetic signal, which is generated to encode information and transmit it to a suitable receiver device for execution by a data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.

[0136] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application-specific integrated circuits), and the apparatus can also be implemented as special purpose logic circuits.

[0137] Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices (e.g., EPROM, EEPROM and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0138] Although this specification includes many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of the specific embodiments of specific inventions. Certain features described in multiple embodiments in this specification may also be implemented in combination in a single embodiment. On the other hand, the various features described in a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. In addition, although features may work in certain combinations as described above and even initially claim protection, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may point to a sub-combination or a variation of a sub-combination.

[0139] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that these operations be performed in the particular order shown or performed sequentially, or requiring that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product, or packaged into multiple software products.

[0140] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.

[0141] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A main control board soft start processing method, characterized in that: The method is applied to a service board on a network device, the network device further comprising: a main control board and an optical protection board, and the method comprises: When the soft start of the main control board is detected, the working mode of the business board in the serial working state is switched from the serial access mode to the shutdown access mode. The serial working state is used to instruct the business board to receive and process the traffic sent by the optical protection board, and send the processed traffic to the optical protection board for forwarding. The serial access mode is used to instruct the business board to work in the serial working state and maintain the connection with the optical protection board. The shutdown access mode is used to instruct the business board to work in the serial working state and cut off the connection with the optical protection board. Detecting whether the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started; If the main control board soft start is detected to be completed within the preset time from the time when the main control board is determined to be soft started, then upon receiving the working mode switching instruction sent by the main control board, the working mode of the service board is switched from the shutdown access mode to the working mode indicated by the working mode switching instruction; If the completion of the soft start of the main control board is not detected within the preset time from the time when the soft start of the main control board is determined, the working state of the business board is switched to the bypass protection state, and the bypass protection state is used to trigger the business board to receive the traffic sent by the optical protection board for processing, and prohibit the processed traffic from being sent to the optical protection board for forwarding.

2. The method according to claim 1, characterized in that The detecting whether the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started includes: If a timeout notification sent by the light protection board is received, it is determined that the main control board has not been detected to have completed the soft start within a preset time period from when the main control board is determined to be soft started; the timeout notification is sent by the light protection board when a preset time period has passed since the main control board is determined to be soft started, and the main control board has not been detected to have completed the soft start within the preset time period; If an online indication signal is received from the main control board and a timeout notification is not received from the optical protection board, it is determined that the main control board has completed the soft start within a preset time period from the time when the main control board is soft started; the online indication signal is sent after the main control board soft start is completed.

3. A main control board soft start processing method, characterized in that: The method is applied to an optical protection board on a network device, wherein the network device further comprises: a main control board and a service board, and the method comprises: When it is detected that the main control board is restarting the software, the working mode of the optical protection board in the serial working state is switched from the serial access mode to the shutdown access mode. The serial working state is used to instruct the business board to receive and process the traffic sent by the optical protection board, and send the processed traffic to the optical protection board for forwarding. The serial access mode is used to instruct the business board to maintain the connection with the optical protection board in the serial working state, and the shutdown access mode is used to instruct the business board to cut off the connection with the optical protection board in the serial working state; Detecting whether the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started; If the main control board soft start is detected to be completed within the preset time from the time when the main control board is determined to be soft started, then when the working mode switching instruction sent by the main control board is received, the working mode of the optical protection board is switched from the shutdown access mode to the working mode indicated by the working mode switching instruction; If the main control board soft start is not detected within the preset time from the time when the main control board soft start is determined, the working state of the optical protection board is switched to the bypass protection state, and the bypass protection state is used to trigger the optical protection board to transmit traffic to the network and send traffic to the business board for reception.

4. The method according to claim 3, characterized in that The method further comprises: If a preset time period has passed since the soft start of the main control board is determined, and the main control board is not detected to have completed the soft start within the preset time period, a timeout notification is sent to the business board. The timeout notification is used to trigger the business board to determine, based on the timeout notification, that the main control board has not been detected to have completed the soft start within the preset time period from the soft start of the main control board.

5. A main control board soft start processing device, characterized in that: The device is applied to a service board of a network device, the network device further comprising: a main control board and an optical protection board, the device comprising: A first switching unit is used to switch the working mode of the business board in the serial working state from the serial access mode to the shutdown access mode when detecting a soft restart of the main control board. The serial working state is used to indicate that the business board receives and processes the traffic sent by the optical protection board, and sends the processed traffic to the optical protection board for forwarding. The serial access mode is used to indicate that the business board works in the serial working state and maintains the connection with the optical protection board. The shutdown access mode is used to indicate that the business board works in the serial working state and cuts off the connection with the optical protection board; A detection unit, used to detect whether the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started; A second switching unit is configured to switch the working mode of the service board from the off access mode to the working mode indicated by the working mode switching instruction when receiving a working mode switching instruction sent by the main control board if it is detected that the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started; The third switching unit is used to switch the working state of the business board to the bypass protection state if the completion of the soft start of the main control board is not detected within a preset time from the time when the soft start of the main control board is determined. The bypass protection state is used to trigger the business board to receive the traffic sent by the optical protection board for processing, and prohibit the processed traffic from being sent to the optical protection board for forwarding.

6. A main control board soft start processing device, characterized in that: The device is applied to an optical protection board on a network device, the network device further comprising: a main control board and a service board, and the device comprises: A first switching unit is used to switch the working mode of the optical protection board in the serial working state from the serial access mode to the shutdown access mode when detecting that the main control board is undergoing a software restart. The serial working state is used to instruct the business board to receive and process the traffic sent by the optical protection board, and send the processed traffic to the optical protection board for forwarding. The serial access mode is used to instruct the business board to maintain the connection with the optical protection board in the serial working state, and the shutdown access mode is used to instruct the business board to cut off the connection with the optical protection board in the serial working state; A detection unit, used to detect whether the main control board completes the soft start within a preset time period from when the main control board is determined to be soft started; A second switching unit is used for, if it is detected that the main control board completes the soft start within a preset time period from when the main control board is determined to be soft-started, then upon receiving a working mode switching instruction sent by the main control board, switching the working mode of the optical protection board from the shutdown access mode to the working mode indicated by the working mode switching instruction; The third switching unit is used to switch the working state of the optical protection board to the bypass protection state if the completion of the soft start of the main control board is not detected within the preset time from the time when the soft start of the main control board is determined. The bypass protection state is used to trigger the optical protection board to transmit traffic to the network and send traffic to the business board for reception.