CN117033108A - Board in-place detection method, network equipment and storage medium - Google Patents

Board in-place detection method, network equipment and storage medium Download PDF

Info

Publication number
CN117033108A
CN117033108A CN202310949315.XA CN202310949315A CN117033108A CN 117033108 A CN117033108 A CN 117033108A CN 202310949315 A CN202310949315 A CN 202310949315A CN 117033108 A CN117033108 A CN 117033108A
Authority
CN
China
Prior art keywords
board
message
main control
network
control board
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310949315.XA
Other languages
Chinese (zh)
Inventor
欧海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN202310949315.XA priority Critical patent/CN117033108A/en
Publication of CN117033108A publication Critical patent/CN117033108A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Abstract

The specification provides a method for detecting the presence of a board card, network equipment and a storage medium, wherein the method comprises the following steps: when the main control board detects the plugging and unplugging interruption of the service board or the network board in the network equipment, a first message is sent to the standby main control board, the first message carries identification information for representing the service board or the network board, a second message sent by the standby main control board aiming at the first message is received, and whether the plugging and unplugging interruption processing is carried out on the service board or the network board is determined according to the second message. By the method, misjudgment of the out-of-place service board or the network board caused by the extraction of the main control board can be avoided.

Description

Board in-place detection method, network equipment and storage medium
Technical Field
The disclosure relates to the field of communication technologies, and in particular, to a method for detecting a card in place, a network device and a storage medium.
Background
Plug interrupt: when the standby main control or service board is inserted into the slot position of the frame or pulled out from the slot position, the CPLD detects the level signal of the single board in place and converts the level signal into an interrupt signal, and the interrupt signal is reported to the main control and the standby main control, which is called as 'plug interrupt' for short.
Inter-board communication: in the distributed machine frame, the control messages are communicated interactively between the single boards, and the control messages are used for synchronizing state data among the single boards, and the like, so that the management and the notification among the main control and the single boards are facilitated.
Lan Switch chip: the two layers exchange chips.
As shown in fig. 1, in a form of a chassis of a distributed router, each chassis is equipped with two main control boards (main control and standby main control), and multiple service boards or mesh boards (providing high-speed channels of mesh for completing the forwarding of the cross boards, which are separately integrated onto a single board, called a mesh board), and each single board is inserted into a corresponding slot. The on-site or off-site state of the single board of each slot position is composed of hardware connection lines of the backboard of the machine frame, on-site signals of the service board or the screen board are simultaneously connected to two main control boards, and the on-site state of the single board is identified and represented through high level or low level of the circuit.
When the main control board is pulled out, the in-place signals of the standby main control board, the service board and the screen board are separated in the pulling-out process of the main control board, so that in-place signals of other single boards are changed (actually caused by the pulling-out of the main control board), and CPLD logic of the main control board can report the processed signals to the main control CPU for one or more single board plug-in interruption. In the process of pulling out the main control board, although power is lost (power supply signal pins are separated), the survival time from the separation of the power supply pins and the power failure to the stop of the CPU often exists for 5-10ms or even longer, in the survival time, pulling out interruption of other single boards can be processed on the main control software, a single board pulling event is reported to a service module, the service module can broadcast a single board state, service switching and the like to notify other single boards in a frame, so that the single board state of a standby main control, a service board or a network board is switched into fault state, and even restarted and reset, thereby causing serious consequences such as service interruption and the like.
Disclosure of Invention
The embodiment of the disclosure provides a method for detecting the presence of a board card, by which misjudgment of the absence of a service board or a network board caused by the extraction of a main control board can be avoided.
The embodiment of the disclosure provides a method for detecting the presence of a board card, which is applied to network equipment, wherein the network equipment comprises a main control board and a standby main control board, and the method comprises the following steps:
when the main control board detects the plugging and unplugging interruption of a service board or a network board in the network equipment, a first message is sent to the standby main control board, and the first message carries identification information for representing the service board or the network board;
receiving a second message sent by the standby main control board aiming at the first message, and determining whether to perform plug interrupt processing on the service board or the network board according to the second message;
the second message is generated by the standby main control board according to the result of the in-situ detection of the service board or the network board by the identification information carried in the first message.
When detecting the plugging interruption of the service board or the network board in the network equipment, the main control board sends a first message to the standby main control board, which comprises the following steps:
when the main control board detects that the plugging and unplugging of a service board or a screen board in the network equipment are interrupted, the identification information of the service board or the screen board is obtained;
and generating a first message for inquiring whether the service board or the network board is in place, carrying the identification information in the first message and sending the identification information to the standby main control board.
Wherein the determining whether to perform the plug interrupt processing on the service board or the mesh board according to the second message includes:
acquiring an in-place detection result in the second message;
when the in-place detection result in the second message is consistent with the detection result detected by the main control board, performing plug interrupt processing on the service board or the screen board; or,
and when the in-place detection result in the second message is inconsistent with the detection result detected by the main control board, the service board or the network board is not subjected to the plug interrupt processing.
After sending the first message to the standby main control board, the method further comprises the following steps:
starting a timer;
if the timer is overtime, the main control board performs plug interrupt processing on the service board or the network board when the second message sent by the standby main control board aiming at the first message is not received.
Wherein the identification information comprises a serial number of the service board or the network board.
According to the embodiment, when the main control board recognizes that the service board or the screen board is disconnected, the standby main control board can be used for verification, so that false alarm caused by the fact that the main control board is pulled out is prevented.
The embodiment of the disclosure provides a network device, the network device includes a main control board and a standby main control board, the main control board includes:
the detection module is used for detecting the plugging interruption condition of the service board or the network board in the network equipment;
the sending module is used for sending a first message to the standby main control board when the plugging interruption of the service board or the network board in the network equipment is detected, wherein the first message carries identification information for representing the service board or the network board;
the receiving module is used for receiving a second message sent by the standby main control board aiming at the first message;
the processing module is used for determining whether to perform plug interrupt processing on the service board or the network board according to the second message;
the second message is generated by the standby main control board according to the result of the in-situ detection of the service board or the network board by the identification information carried in the first message.
The detection module is used for acquiring the identification information of the service board or the network board when the interruption of the plugging and unplugging of the service board or the network board in the network equipment is detected;
and the sending module is used for generating a first message for inquiring whether the service board or the network board is in place, carrying the identification information in the first message and sending the first message to the standby main control board.
The processing module is used for acquiring an in-place detection result in the second message, and performing plug interrupt processing on the service board or the screen board when the in-place detection result in the second message is consistent with the detection result detected by the main control board; or,
and when the in-place detection result in the second message is inconsistent with the detection result detected by the main control board, the service board or the network board is not subjected to the plug interrupt processing.
The embodiment of the disclosure provides a network device, which comprises: a memory, a processor, and a program stored on the memory and executable on the processor, which when executed by the processor, performs the method steps of any of the embodiments described above.
The disclosed embodiments provide a computer readable storage medium having a program stored thereon, which when executed by a processor, implements the method steps of any of the embodiments described above.
Drawings
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.
Fig. 1 is a logic diagram of an architecture of a network device according to an embodiment of the present disclosure.
Fig. 2 is a logic schematic diagram of a method for detecting a board card in place according to an embodiment of the disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present description as detailed in the accompanying claims.
The terminology used in the description presented herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
At present, in the process of pulling out the main control board, because the main control board is separated from in-place signals of the standby main control board, the service board and the screen board in the process of pulling out the main control board, in-place signals of other single boards are changed (actually caused by pulling out the main control board), CPLD logic of the main control board can report the signals to one or more single boards of the CPU of the main control board for plugging and breaking after processing the signals. In the process of pulling out the main control board, although power is lost (power supply signal pins are separated), the survival time from the separation of the power supply pins and the power failure to the stop of the CPU often exists for 5-10ms or even longer, in the survival time, the software of the main control board processes the pulling-out interruption of other single boards, the service module reports the single board pulling-out event to the service module, the service module can broadcast the single board state, the service switching and the like to notify other single boards in the frame, so that the single board state of the standby main control board, the service board or the network board is switched into fault state, and even restarted and reset, thereby causing serious consequences such as service interruption and the like.
In order to solve the above technical problems, an embodiment of the present disclosure provides a method for detecting a board card in place, where the method is applied to a network device, and the network device includes a main control board and a standby main control board, as shown in fig. 2, and the method includes:
s201, when the main control board detects the plugging and unplugging interruption of a service board or a network board in network equipment, a first message is sent to the standby main control board, and the first message carries identification information for representing the service board or the network board;
s202, receiving a second message sent by a standby main control board aiming at the first message, and determining whether to perform plug interrupt processing on the service board or the network board according to the second message;
the second message is generated by the standby main control board according to the result of the in-situ detection of the service board or the network board by the identification information carried in the first message.
In step S201, when the master control board senses the interrupt of the service board or the mesh board, a queue message is written, after the task reads the message, it is determined whether the opposite end master control board (standby master control board) is in Normal state (when the user actually uses, a dual-master control environment is adopted), if the situation of the opposite end master control Normal is satisfied, a first message (for example, a unicast message) is sent to the opposite end master control in the frame, and identification information (for example, a serial number) for indicating the service board or the mesh board (the service board or the mesh board in which the interrupt of the service board is detected) is added into the first message for real-time verification.
In this embodiment, the standby main control board may perform high-quality analysis processing after receiving the first message, read the current in-place state of the service board or the network board according to the CPLD of the standby main control board, obtain a detection result, and send a second message (response message) to the main control board according to the detection result, and carry the identification information.
In step S202, after receiving the second message, the master control board obtains the detection result and the identification information in the second message, and further determines according to the plug interrupt result of the service board or the mesh board detected by the detection result in the second message, if the detection result is consistent, it is determined that the service board or the mesh board belongs to the plug interrupt, and then plug interrupt processing is executed. If the service board is inconsistent with the network board, the main control board is indicated to identify the plugging interrupt of the service board or the network board by mistake, and the plugging interrupt processing is not executed.
In this embodiment, the master control board may start the timer after sending the first message, if the timer is overtime and does not reach the second message, the second message may be discarded on the link, or the standby master control board fails, and at this time, the master control board processes the plug interrupt message based on the result of its detection.
According to the embodiments, the standby main control board can assist the main control board to verify the board card plug interruption detected by the main control board, so as to prevent misjudgment that the service board or the screen board is out of place caused by the main control board being pulled out.
The embodiment of the disclosure also provides a network device, which comprises a main control board and a standby main control board, wherein the main control board comprises:
the detection module is used for detecting the plugging interruption condition of the service board or the network board in the network equipment;
the sending module is used for sending a first message to the standby main control board when the plugging interruption of the service board or the network board in the network equipment is detected, wherein the first message carries identification information for representing the service board or the network board;
the receiving module is used for receiving a second message sent by the standby main control board aiming at the first message;
the processing module is used for determining whether to perform plug interrupt processing on the service board or the network board according to the second message;
the second message is generated by the standby main control board according to the result of the in-situ detection of the service board or the network board by the identification information carried in the first message.
In this embodiment, the network device may be a transmission device such as a router or a switch.
The detection module is used for acquiring the identification information of the service board or the network board when the interruption of the plugging and unplugging of the service board or the network board in the network equipment is detected;
and the sending module is used for generating a first message for inquiring whether the service board or the network board is in place, carrying the identification information in the first message and sending the first message to the standby main control board.
The processing module is used for acquiring an in-place detection result in the second message, and performing plug interrupt processing on the service board or the screen board when the in-place detection result in the second message is consistent with the detection result detected by the main control board; or,
and when the in-place detection result in the second message is inconsistent with the detection result detected by the main control board, the service board or the network board is not subjected to the plug interrupt processing.
The embodiment of the disclosure provides a network device, which comprises: a memory, a processor, and a program stored on the memory and executable on the processor, which when executed by the processor, performs the method steps of any of the embodiments described above.
The disclosed embodiments provide a computer readable storage medium having a program stored thereon, which when executed by a processor, performs the method steps of any of the embodiments described above
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It is to be understood that the present description is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, 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.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.

Claims (10)

1. The method for detecting the presence of the board card is characterized by being applied to network equipment, wherein the network equipment comprises a main control board and a standby main control board, and the method comprises the following steps:
when the main control board detects the plugging and unplugging interruption of a service board or a network board in the network equipment, a first message is sent to the standby main control board, and the first message carries identification information for representing the service board or the network board;
receiving a second message sent by the standby main control board aiming at the first message, and determining whether to perform plug interrupt processing on the service board or the network board according to the second message;
the second message is generated by the standby main control board according to the result of the in-situ detection of the service board or the network board by the identification information carried in the first message.
2. The method of claim 1, wherein the sending, by the active master control board, a first message to the standby master control board when detecting a service board or a mesh board plug interrupt in the network device, comprises:
when the main control board detects that the plugging and unplugging of a service board or a screen board in the network equipment are interrupted, the identification information of the service board or the screen board is obtained;
and generating a first message for inquiring whether the service board or the network board is in place, carrying the identification information in the first message and sending the identification information to the standby main control board.
3. The method of claim 1, wherein determining whether to perform plug interrupt processing on the service board or the mesh board according to the second message comprises:
acquiring an in-place detection result in the second message;
when the in-place detection result in the second message is consistent with the detection result detected by the main control board, performing plug interrupt processing on the service board or the screen board; or,
and when the in-place detection result in the second message is inconsistent with the detection result detected by the main control board, the service board or the network board is not subjected to the plug interrupt processing.
4. The method of claim 1, wherein after sending the first message to the standby master control board, the method further comprises:
starting a timer;
if the timer is overtime, the main control board performs plug interrupt processing on the service board or the network board when the second message sent by the standby main control board aiming at the first message is not received.
5. The method of claim 1, wherein the identification information comprises a serial number of a service board or a mesh board.
6. The utility model provides a network equipment, its characterized in that, network equipment includes active main control board and reserve main control board, active main control board includes:
the detection module is used for detecting the plugging interruption condition of the service board or the network board in the network equipment;
the sending module is used for sending a first message to the standby main control board when the plugging interruption of the service board or the network board in the network equipment is detected, wherein the first message carries identification information for representing the service board or the network board;
the receiving module is used for receiving a second message sent by the standby main control board aiming at the first message;
the processing module is used for determining whether to perform plug interrupt processing on the service board or the network board according to the second message;
the second message is generated by the standby main control board according to the result of the in-situ detection of the service board or the network board by the identification information carried in the first message.
7. The network device of claim 6, wherein the network device,
the detection module is used for acquiring the identification information of the service board or the network board when the interruption of the plugging and unplugging of the service board or the network board in the network equipment is detected;
and the sending module is used for generating a first message for inquiring whether the service board or the network board is in place, carrying the identification information in the first message and sending the first message to the standby main control board.
8. The network device of claim 6, wherein the network device is further configured to
The processing module is used for acquiring the in-place detection result in the second message, and performing plug interrupt processing on the service board or the screen board when the in-place detection result in the second message is consistent with the detection result detected by the main control board; or,
and when the in-place detection result in the second message is inconsistent with the detection result detected by the main control board, the service board or the network board is not subjected to the plug interrupt processing.
9. A network device, the network device comprising: memory, a processor and a program stored on the memory and executable on the processor, which when executed by the processor, performs the method steps of any one of claims 1 to 5.
10. A computer readable storage medium, characterized in that it has stored thereon a program which, when executed by a processor, implements the method steps of any of claims 1 to 5.
CN202310949315.XA 2023-07-28 2023-07-28 Board in-place detection method, network equipment and storage medium Pending CN117033108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310949315.XA CN117033108A (en) 2023-07-28 2023-07-28 Board in-place detection method, network equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310949315.XA CN117033108A (en) 2023-07-28 2023-07-28 Board in-place detection method, network equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117033108A true CN117033108A (en) 2023-11-10

Family

ID=88643987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310949315.XA Pending CN117033108A (en) 2023-07-28 2023-07-28 Board in-place detection method, network equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117033108A (en)

Similar Documents

Publication Publication Date Title
CN104579774B (en) The switching method and apparatus of main control device
CN101296135A (en) Fault information processing method and device
CN105824775A (en) Electronic equipment and information processing method
CN109525434B (en) Redundancy backup method based on onboard equipment board card
CN101257391B (en) Single board managing method for miniature electric communication computing structure standard
CN110445932B (en) Abnormal card dropping processing method and device, storage medium and terminal
CN112527582A (en) Detection method, detection device, detection equipment and storage medium of server cable
CN111090658B (en) Abnormal transaction processing method, system and equipment
CN101854263B (en) Method, system and management server for analysis processing of network topology
CN117033108A (en) Board in-place detection method, network equipment and storage medium
CN101136756B (en) Electric self-checking method, system and BMC chip on network long-range control host machine
US6528901B1 (en) Automatic protection switching
CN112311621B (en) Communication detection method and device
CN101834748A (en) Method and device for main and standby competition
CN115098342A (en) System log collection method, system, terminal and storage medium
CN110519098B (en) Method and device for processing abnormal single board
CN112178881A (en) Self-checking method and device of RS485 network
CN111865631A (en) Fault information reporting method and device, electronic equipment and readable storage medium
CN112187937A (en) Method and device for removing pairing, terminal equipment and storage medium
CN111208804A (en) Dust remover ash removal system and disconnection fault safety hot standby hard connection method
CN100588161C (en) Information processing device, method and programme
CN115484219B (en) Method, equipment and medium for avoiding port association of domestic SRIO exchange chip
CN117687491A (en) Power failure processing method, system, terminal and storage medium
CN115587005A (en) Battery plugging and unplugging state monitoring method, device, equipment and medium
JP2007026038A (en) Path monitoring system, path monitoring method and path monitoring program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination