Method for resetting main control board and routing equipment
By obtaining the reset signal in the router device and setting the LIPC packet switch to the off state, the "dual master" phenomenon caused by delayed reset is solved, and the data residue of the service table item and abnormal business functions are avoided, and the reliability of the equipment is improved.
Patent Information
- Application Number
- CN202411546953.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the router device, the delay reset function causes the original master to use the master to not really restart, and a short "double master" phenomenon occurs, resulting in the residual data of the business table item, and some business functions cannot respond normally, resulting in abnormal phenomena.
By obtaining the reset signal, setting the LIPC packet sending switch to the off state, terminating packet packet transmission, ensuring that the service board establishes communication with other main control boards, and avoiding the occurrence of "dual masters".
It effectively avoids abnormal communication caused by "dual masters", prevents data retention of service table items, ensures normal response to business functions, and improves the reliability of router equipment.
Smart Images

Figure CN119420632A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method for resetting a main control board and a routing device. Background Art
[0002] LIPC (Leopard Inter-process Communication) inter-board communication: In a distributed chassis, control messages are exchanged between boards to synchronize status data between boards, facilitating management and notification between the master control and boards.
[0003] Protocol flash disconnection: refers to the phenomenon that the protocol is disconnected and then quickly restored to establish a connection. Here, it specifically refers to the abnormal disconnection and reconnection of the protocol occurring within a time interval of several ms to several hundred ms.
[0004] Business anomaly: This is the phenomenon that the routing table items, interface information, etc. of the network equipment router products are incorrect or damaged, resulting in the inability to establish user services normally, or some information is lost after the service is established.
[0005] Since router products have high requirements for the maintainable fault collection function, the current devices will enable the delayed reset function by default. During the time period when the delayed reset takes effect (for example, set to 1s), the original backup master has been upgraded to the new active master, but the original active master has not actually restarted, so there is a short phenomenon of two active masters working at the same time, referred to as "dual master".
[0006] During the brief period of "dual master" existence, the service board may respond to the master-slave switch first with a low probability, actively respond to the event to disconnect the LIPC node with the original master control (LIPC messages are connected and communicated through nodes, and LIPC nodes contain specific slot information of the board, so they are unique), and start communicating with the new master control. At this time, because the communication link of the original master control is not actually disconnected, the LIPC connection can still be established and communicated normally, which will cause part of the service table data to be synchronized to the original master control and part to be synchronized to the new master control, resulting in residual service table data, and some service functions cannot respond normally, resulting in abnormal phenomena. This service abnormality will directly affect the normal use of router equipment, and the potential risk is relatively large. Summary of the invention
[0007] In order to overcome the problems existing in the related art, this specification provides a method for resetting a main control board and a routing device.
[0008] According to a first aspect of an embodiment of this specification, a method for resetting a main control board is provided, the method being applied to a routing device, the method comprising:
[0009] Obtain a reset signal, and set the LIPC packet sending switch to an off state according to the reset signal;
[0010] After the LIPC packet sending switch is set to the off state, the packet sending is terminated;
[0011] So that the service board connected to the main control board can establish communication with other main control boards.
[0012] Wherein, the method further comprises:
[0013] When the reset signal is not obtained, the reset signal sets the LIPC packet sending switch to an on state.
[0014] The step of setting the LIPC packet sending switch to an off state according to the reset signal includes:
[0015] After obtaining the reset signal, when writing the reset register of the CPLD, the delayed reset interrupt is triggered, and the disconnect switch of the LIPC packet is set to the disconnected state in the delayed reset interrupt.
[0016] The main control board includes: a main main control board and / or a standby main control board.
[0017] According to a second aspect of an embodiment of this specification, a method for resetting a main control board is provided, the method being applied to a service board, the method comprising:
[0018] Sending a first message to a first main control board;
[0019] When sending the first message fails, sending the first message to the second main control board;
[0020] After obtaining the reset signal, the first main control board sets the LIPC packet sending switch to an off state according to the reset signal.
[0021] The first message includes: a LIPC message.
[0022] It can be seen from the above embodiments that the technical solution provided by the present invention can make full use of the delayed reset interrupt process of this board, adopt the high-priority response processing of the interrupt of this board, quickly open the LIPC packet sending channel of this board, and completely isolate the LIPC message communication between this board and other boards in the frame, so as to avoid the abnormal communication caused by the "dual master", resulting in the loss of business table items and the destruction of business functions.
[0023] According to a third aspect of an embodiment of this specification, a routing device is provided, the routing device comprising: a main control board and a service board, the main control board comprising:
[0024] The acquisition module is used to obtain a reset signal and set the LIPC packet sending switch to an off state according to the reset signal:
[0025] The processing module is used to terminate the message sending after the LIPC packet sending switch is set to the off state, so that the service board connected to the main control board establishes communication with other main control boards.
[0026] Wherein, the acquisition module is further used to set the LIPC packet sending switch to an on state by the reset signal when the reset signal is not obtained.
[0027] The acquisition module is specifically used to trigger a delayed reset interrupt when writing the reset register of the CPLD after acquiring the reset signal, and set the disconnect switch of the LIPC packet to the disconnect state in the delayed reset interrupt.
[0028] The main control board includes: a main main control board and / or a standby main control board.
[0029] According to a fourth aspect of the embodiments of this specification, a routing device is provided, the routing device comprising: a main control board and a service board, the service board comprising:
[0030] A sending module, used for sending a first message to a first main control board;
[0031] The sending module is further used to send the first message to the second main control board when sending the first message fails;
[0032] After obtaining the reset signal, the first main control board sets the LIPC packet sending switch to an off state according to the reset signal.
[0033] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.
[0035] Figure 1 The present specification is a schematic diagram of inter-board communication of a frame-type router according to an exemplary embodiment.
[0036] Figure 2 The present specification is a flowchart of a method for resetting a main control board according to an exemplary embodiment.
[0037] Figure 3 This is a schematic diagram of a process of resetting a main control board according to an exemplary embodiment of the present specification.
[0038] Figure 4 The present specification is a flowchart of a method for resetting a main control board according to an exemplary embodiment. DETAILED DESCRIPTION
[0039] 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, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.
[0040] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. 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.
[0041] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this 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 this specification, 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".
[0042] like Figure 1 As shown in the figure, the physical link channel of the LIPC interactive message between the business board, the active main control board, and the standby main control board. The active main control board stores all the user's business configurations, and the active main control board interacts with the business board and the standby main control board. The standby main control board is usually only a business data backup, and in most cases does not directly participate in the synchronization of key table items of the business board.
[0043] When the main control board and other boards in the chassis work normally, LIPC messages will be exchanged between the boards at any time to synchronize various device information, business data, etc.
[0044] If the active master controller restarts during operation (due to software malfunction, hardware failure, or restart triggered by user command line), the active-standby switchover will be triggered, so that the standby master controller is upgraded to the active master controller, and the original active master controller is reset and restarted.
[0045] During the active / standby switchover process, the specific implementation details are as follows:
[0046] The main control triggers a restart, which is ultimately achieved by writing the CPLD register of this board and operating the CPU reset register of the board. The operation of resetting the CPU by writing the CPLD of this board does not take effect immediately, but implements a delayed reset function inside the CPLD. The specific function of the delayed reset is: when the software writes the CPLD register to reset the board, the CPLD does not immediately generate a low level to operate the reset pin of the CPU to trigger the reset of the board, but immediately generates a delayed reset interrupt for the software to collect the exception stack information before the restart, etc., and wait until the delayed reset time arrives (for example, the delayed reset time is usually set to 1s), then the CPU will be truly reset to achieve the purpose of resetting the board.
[0047] Depending on the situation of the main control board, line card board and network board, there are two main situations for resetting the board: one is to reset the current board, which will trigger a delayed reset interrupt; the other is that the main control board writes the CPLD of the current board to reset the standby main control board or line card or network board, and a delayed reset interrupt will be generated on the reset standby main control board, line card board or network board.
[0048] Since router products have high requirements for the maintainable fault collection function, the current devices will enable the delayed reset function by default. During the time period when the delayed reset takes effect (for example, set to 1s), the original backup master has been upgraded to the new active master, but the original active master has not actually restarted, so there is a short phenomenon of two active masters working at the same time, referred to as "dual master".
[0049] During the brief period of "dual master" existence, the service board may respond to the master-slave switch first with a low probability, actively respond to the event to disconnect the LIPC node with the original master control (LIPC messages are connected and communicated through nodes, and LIPC nodes contain specific slot information of the board, so they are unique), and start communicating with the new master control. At this time, because the communication link of the original master control is not actually disconnected, the LIPC connection can still be established and communicated normally, which will cause part of the service table data to be synchronized to the original master control and part to be synchronized to the new master control, resulting in residual service table data, and some service functions cannot respond normally, resulting in abnormal phenomena. This service abnormality will directly affect the normal use of router equipment, and the potential risk is relatively large.
[0050] In order to solve the above technical problems, the present disclosure provides a method for resetting the main control board, such as Figure 2 As shown, the method is applied to a routing device, and the method includes:
[0051] S201 obtains a reset signal, and sets the LIPC packet sending switch to an off state according to the reset signal;
[0052] S202: After the LIPC packet sending switch is set to the off state, the packet sending is terminated;
[0053] So that the service board connected to the main control board can establish communication with other main control boards.
[0054] In this embodiment, the LIPC packet sending switch can be added in a software-defined manner (eg, by soft-defining a CPLD module to add a LIPC packet sending switch).
[0055] When the main control board works normally, the LIPC packet sending switch is set to the on state to ensure that the LIPC messages between each business board and the main control board can communicate normally.
[0056] When the main control board receives a reset signal (for example, a user command line restart or software status abnormality triggers a restart), a delayed reset interrupt will be triggered immediately when writing the reset register of the CPLD. In the delayed reset interrupt, the LIPC packet sending switch is directly set to the disconnected state. At this time, the LIPC switch is in the disconnected state, which terminates the packet sending and releases the message memory, ensuring that all LIPC messages sent by this board fail.
[0057] like Figure 3 As shown, when the software restart process writes the CPLD reset, the LIPC switch is triggered to be in the disconnected state. At the same time, the CPLD performs restart preprocessing, notifies the LIPC node to delete, and records the restart stack information, etc. When the delayed reset time arrives, the single board (the main control board) is triggered to restart immediately.
[0058] When other business boards connected to the main control board send LIPC messages to the main control board, the main control board cannot respond to the messages and cannot complete the three-way handshake interaction. The LIPC communication between the business board and the main control board fails to establish a connection, and the business module message fails to be sent, thereby achieving the purpose of complete isolation and avoiding the situation where the main control board has two masters during the reset process.
[0059] In this embodiment, the main control board using the technical solution disclosed in this disclosure may be a main control board and / or a standby main control board.
[0060] On the other hand, the embodiment of the present disclosure also provides a method for resetting a main control board, the method is applied to a service board, such as Figure 4 As shown, the method includes:
[0061] S401 sends a first message to the first main control board;
[0062] S402: when sending the first message fails, sending the first message to the second main control board;
[0063] After obtaining the reset signal, the first main control board sets the LIPC packet sending switch to an off state according to the reset signal.
[0064] In step S301, if the first main control board works normally, when the service board sends a first message to the first main control board, the first main control board may respond to the first message.
[0065] When the first main control board obtains the reset signal, it will trigger a delayed reset interrupt when writing the reset register of the CPLD according to the reset signal. In the delayed reset interrupt, the LIPC packet sending switch is set to the off state. At this time, when the service board sends the first message to the first main control board, the first message will fail to be sent.
[0066] The first message includes a LIPC message.
[0067] It can be seen from the above embodiments that when the main control board is reset, the service board can be quickly disconnected from the reset main control board through the LIPC packet switch to avoid the occurrence of dual-master situations.
[0068] Based on the above method embodiments, the embodiment of the present disclosure further provides a routing device, the routing device comprising: a main control board and a service board, the main control board comprising:
[0069] The acquisition module is used to obtain a reset signal and set the LIPC packet sending switch to an off state according to the reset signal:
[0070] The processing module is used to terminate the message sending after the LIPC packet sending switch is set to the off state, so that the service board connected to the main control board establishes communication with other main control boards.
[0071] Wherein, the acquisition module is further used to set the LIPC packet sending switch to an on state by the reset signal when the reset signal is not obtained.
[0072] The acquisition module is specifically used to trigger a delayed reset interrupt when writing the reset register of the CPLD after acquiring the reset signal, and set the disconnect switch of the LIPC packet to the disconnect state in the delayed reset interrupt.
[0073] The main control board includes: a main main control board and / or a standby main control board.
[0074] On the other hand, the embodiment of the present disclosure further provides a routing device, the routing device comprising: a main control board and a service board, the service board comprising:
[0075] A sending module, used for sending a first message to a first main control board;
[0076] The sending module is further used to send the first message to the second main control board when sending the first message fails;
[0077] After obtaining the reset signal, the first main control board sets the LIPC packet sending switch to an off state according to the reset signal.
[0078] 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 modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0079] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0080] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention claimed herein. The specification is intended to cover any variations, uses or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not claimed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.
[0081] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
[0082] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A method for resetting a main control board, characterized in that: The method is applied to a routing device, and the method includes: Obtain a reset signal, and set the LIPC packet sending switch to an off state according to the reset signal; After the LIPC packet sending switch is set to the off state, the packet sending is terminated; So that the service board connected to the main control board can establish communication with other main control boards.
2. The method according to claim 1, characterized in that The method further comprises: When the reset signal is not obtained, the reset signal sets the LIPC packet sending switch to an on state.
3. The method according to claim 1, characterized in that The step of setting the LIPC packet sending switch to an off state according to the reset signal includes: After obtaining the reset signal, when writing the reset register of the CPLD, the delayed reset interrupt is triggered, and the disconnect switch of the LIPC packet is set to the disconnected state in the delayed reset interrupt.
4. The method according to claim 1, characterized in that The main control board includes: a main main control board and / or a standby main control board.
5. A method for resetting a main control board, characterized in that: The method is applied to a service board, and the method comprises: Sending a first message to a first main control board; When sending the first message fails, sending the first message to the second main control board; After obtaining the reset signal, the first main control board sets the LIPC packet sending switch to an off state according to the reset signal.
6. The method according to claim 5, characterized in that The first message includes: a LIPC message.
7. A routing device, characterized in that: The routing device includes: a main control board and a service board, and the main control board includes: The acquisition module is used to obtain a reset signal and set the LIPC packet sending switch to an off state according to the reset signal: The processing module is used to terminate the message sending after the LIPC packet sending switch is set to the off state, so that the service board connected to the main control board establishes communication with other main control boards.
8. The routing device according to claim 7, characterized in that: The acquisition module is further configured to, when the reset signal is not acquired, set the LIPC packet sending switch to an on state by the reset signal.
9. The routing device according to claim 7, characterized in that: The acquisition module is specifically used to trigger a delayed reset interrupt when writing the reset register of the CPLD after acquiring the reset signal, and set the disconnect switch of the LIPC packet to the disconnect state in the delayed reset interrupt.
10. The routing device according to claim 7, characterized in that: The main control board includes: a main main control board and / or a standby main control board.
11. A routing device, characterized in that: The routing device includes: a main control board and a service board, and the service board includes: A sending module, used for sending a first message to a first main control board; The sending module is further used to send the first message to the second main control board when sending the first message fails; After obtaining the reset signal, the first main control board sets the LIPC packet sending switch to an off state according to the reset signal.
Citation Information
Patent Citations
An implementation method and device for switching master and slave controller
CN101102177A