CN117376197A - Out-of-band detection network card method and device, electronic equipment and readable storage medium - Google Patents

Out-of-band detection network card method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117376197A
CN117376197A CN202311330467.8A CN202311330467A CN117376197A CN 117376197 A CN117376197 A CN 117376197A CN 202311330467 A CN202311330467 A CN 202311330467A CN 117376197 A CN117376197 A CN 117376197A
Authority
CN
China
Prior art keywords
signal
tested
network card
network port
serial
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
CN202311330467.8A
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.)
China Great Wall Technology Group Co ltd
Original Assignee
China Great Wall Technology Group 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 China Great Wall Technology Group Co ltd filed Critical China Great Wall Technology Group Co ltd
Priority to CN202311330467.8A priority Critical patent/CN117376197A/en
Publication of CN117376197A publication Critical patent/CN117376197A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application is applicable to the technical field of computers, and provides a method, a device, electronic equipment and a readable storage medium for out-of-band detection of a network card, which are applied to a baseboard management controller and comprise the following steps: receiving a serial target network port state signal sent by a signal conversion chip; and determining the network port state of the target network port based on the corresponding relation and the serial target network port state signal, wherein the corresponding relation is the corresponding relation between the serial target network port state signal and the network port state. According to the method, the device and the system, the substrate management controller converts the parallel target network port state signals output by the network card to be detected through the signal conversion chip, receives the serial target network port state signals transmitted after the signal conversion chip is converted, then determines the target network port state according to the serial target network port state signals and the corresponding relation among the serial target network port state signals and the network port state, realizes out-of-band detection of the target network port state, does not depend on an operating system, a CPU and third party software, and is convenient to realize.

Description

Out-of-band detection network card method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a method and a device for detecting a network card out of band, electronic equipment and a readable storage medium.
Background
Network card failure is one of the most common causes of failure of a wired network. Once the network card fails, the connection speed is slow, the connection is intermittent or even lost or the network cannot be connected, so that if the network card failure condition is to be avoided, the network card needs to be subjected to failure detection.
At present, the fault detection of the network card is mainly an in-band detection mode. After the third-party Agent software is installed and operated on the operating system in-band detection, the Agent software can communicate with the network card, acquire various data from the network card, such as the state, transmission rate and the like of the network card, and send the data to a monitoring tool on the operating system so that the operating system can analyze the state and performance of the network card and realize fault detection of the network card.
However, since the existing in-band detection depends on the operating system, the CPU and the Agent software to implement fault detection, the problems that the overall performance of the operating system is negatively affected due to the adaptation of the operating system, the occupation of the CPU resources, the installation and configuration of the Agent software, and the like need to be considered, so a more independent network card fault detection method is needed to reduce the dependence on the operating system, the CPU and the third party software.
Disclosure of Invention
The embodiment of the application provides a method, a device, electronic equipment and a readable storage medium for out-of-band detection of a network card, wherein a baseboard management controller converts parallel target network port state signals output by the network card to be detected through a signal conversion chip, receives serial target network port state signals transmitted after conversion of the signal conversion chip, then determines target network port states according to corresponding relations among the serial target network port state signals, the serial target network port state signals and the network port states, realizes detection of out-of-band target network port states, and can solve the problem that the fault detection of the network card has too high dependence on an operating system, a CPU (central processing unit) and third party software.
In a first aspect, an embodiment of the present application provides a method for detecting a network card out of band, which is applied to a baseboard management controller, including:
the method comprises the steps of receiving serial target network port state signals sent by a signal conversion chip, wherein the signal conversion chip is used for receiving parallel target network port state signals output by a target network port on a network port chip of a network card to be tested, converting the parallel target network port state signals into the serial target network port state signals, and sending the serial target network port state signals to a baseboard management controller;
And determining the network port state of the target network port based on a first corresponding relation and the serial target network port state signal, wherein the first corresponding relation is the corresponding relation between the serial target network port state signal and the network port state.
By adopting the technical scheme, the substrate management controller determines the target network port state through the corresponding relation among the serial target network port state signal, the serial target network port state signal and the network port state, realizes the detection of the target network port state out of band, does not depend on an operating system, a CPU and third party software, and is convenient to realize.
In a possible implementation manner of the first aspect, the serial target port status signal includes a serial LED level signal, and the port status includes a connection status of the target port and a connection rate of the target port.
By adopting the technical scheme, the substrate management controller determines the connection state of the target network port and the connection rate of the target network port according to the LED level signal by receiving the LED level signal sent by the signal conversion chip, thereby realizing remote monitoring of the network state of the network card to be tested, further timely finding and processing the fault problem and ensuring the stability and reliability of the network.
In a possible implementation manner of the first aspect, before the step of receiving the serial target port status signal sent by the signal conversion chip, the method includes:
the on-site signal of the network card to be tested, the reset signal of the network card to be tested and the wake-up signal of the network card to be tested, which are output by the network port chip to be tested on the network card to be tested, are subjected to validity detection;
if the input signals are valid, the IO pins of the signal conversion chip are configured to be of an input type according to the ID type of the network card to be tested, and the IO pins of the signal conversion chip are configured to be of a polarity non-inversion type according to the level signal type output by the network port chip to be tested.
By adopting the technical scheme, under the condition that the on-site signal of the network card to be tested, the reset signal of the network card to be tested and the wake-up signal of the network card to be tested are all effective, the IO pin type and the IO pin polarity of the signal conversion chip are configured so as to ensure that the network port chip to be tested can normally send signals, and the signal conversion chip can accurately receive and process the signals output by the network port chip to be tested, namely, the accuracy of signal transmission between the network port chip to be tested and the signal conversion chip is ensured.
In a possible implementation manner of the first aspect, the method further includes:
Receiving a serial network card status signal to be tested, which is sent by the signal conversion chip, wherein the serial network card status signal to be tested comprises a serial network card type signal to be tested, the signal conversion chip is also used for receiving a parallel network card type signal to be tested, which is output by the network port chip to be tested, performing signal conversion on the parallel network card type signal to obtain the serial network card type signal to be tested, and sending the serial network card type signal to be tested to the baseboard management controller;
and determining the type of the network card to be tested based on a second corresponding relation and the serial network card type signal to be tested, wherein the second corresponding relation is the corresponding relation between the serial network card type signal to be tested and the network card type to be tested.
By adopting the technical scheme, the baseboard management controller determines the type of the network card to be tested according to the acquired serial network card type signal to be tested, the corresponding relation between the serial network card type signal to be tested and the type of the network card to be tested, and the out-of-band detection of the type of the network card to be tested is realized.
In a possible implementation manner of the first aspect, the serial network card status signal to be measured further includes a serial network card power status signal to be measured, and the method further includes:
And determining the power state of the network card to be tested based on a third corresponding relation and the serial network card power state signal to be tested, wherein the third corresponding relation is the corresponding relation between the serial network card power state signal to be tested and the network card power state to be tested.
By adopting the technical scheme, the baseboard management controller determines the power state information of the network card to be tested according to the acquired corresponding relation among the serial power state signal of the network card to be tested, the serial power state signal of the network card to be tested and the power state of the network card to be tested, so that the out-of-band monitoring of the power state of the network card to be tested is realized.
In a possible implementation manner of the first aspect, the method further includes:
acquiring the state of the network port on the network port chip to be tested based on a preset query strategy;
the inquiry strategy is used for configuring and inquiring the moment of each network port on the network port chip to be tested for the baseboard management controller; or,
the baseboard management controller is configured to inquire the time interval of the network port on the network port chip to be tested;
if the states of the target network ports obtained by the preset times are consistent, setting the states of the target network ports as final states of the target network ports.
By adopting the technical scheme, the baseboard management controller acquires the state of each network port on the network card chip to be tested in turn through the preset inquiry strategy, so that the state of each network port can be flexibly detected, and the timeliness of detecting the state of the network port is ensured.
In a second aspect, an embodiment of the present application provides an out-of-band detection network card device, which is applied to a baseboard management controller, including:
the network port state signal receiving module is used for receiving the serial target network port state signal sent by the signal conversion chip, the signal conversion chip is used for receiving the parallel target network port state signal output by the target network port on the network port chip of the network card to be tested, carrying out format conversion on the parallel target network port state signal to obtain the serial target network port state signal, and sending the serial target network port state signal to the baseboard management controller;
the network port state determining module is used for determining the network port state of the target network port based on a first corresponding relation and the serial target network port state signal, wherein the first corresponding relation is the corresponding relation between the serial target network port state signal and the network port state.
In a possible implementation manner of the second aspect, the serial target port status signal includes a serial LED level signal, and the port status includes a connection status of the target port and a connection rate of the target port.
In a possible implementation manner of the second aspect, the apparatus further includes:
the signal detection module is used for detecting the validity of the on-site signal of the network card to be detected, the reset signal of the network card to be detected and the wake-up signal of the network card to be detected, which are output by the network port chip to be detected on the network card to be detected;
and the data configuration module is used for configuring the IO pin of the signal conversion chip as an input type according to the ID type of the network card to be tested and configuring the IO pin of the signal conversion chip as a polarity non-inversion according to the level signal type output by the network port chip to be tested if the data configuration module is valid.
In a possible implementation manner of the second aspect, the apparatus further includes:
the network card type signal receiving module is used for receiving the serial network card type signal to be detected sent by the signal conversion chip, wherein the serial network card type signal to be detected comprises a serial network card type signal to be detected, the signal conversion chip is also used for receiving a parallel network card type signal to be detected output by the network port chip to be detected, performing signal conversion on the parallel network card type signal to obtain the serial network card type signal to be detected, and sending the serial network card type signal to be detected to the baseboard management controller;
The network card type determining module is used for determining the type of the network card to be tested based on a second corresponding relation and the serial network card type signal to be tested, wherein the second corresponding relation is the corresponding relation between the serial network card type signal to be tested and the network card type to be tested.
In a possible implementation manner of the second aspect, the serial network card status signal to be measured further includes a serial network card power status signal to be measured, and the apparatus further includes:
the network card power state determining module is used for determining the power state of the network card to be tested based on a third corresponding relation and the serial network card power state signal to be tested, wherein the third corresponding relation is the corresponding relation between the serial network card power state signal to be tested and the network card power state to be tested.
In a possible implementation manner of the second aspect, the apparatus further includes:
the network port state query module is used for acquiring the state of the network port on the network port chip to be tested based on a preset query strategy;
the inquiry strategy is used for configuring and inquiring the moment of each network port on the network port chip to be tested for the baseboard management controller; or,
the baseboard management controller is configured to inquire the time interval of the network port on the network port chip to be tested;
If the states of the target network ports obtained by the preset times are consistent, setting the states of the target network ports as final states of the target network ports.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the out-of-band detection network card method as in any optional implementation of the first aspect when the computer program is executed.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, where the computer program when executed by a processor implements the steps of the out-of-band detection network card method according to any one of the first aspects.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a terminal device, causes the terminal device to perform the out-of-band detection network card method according to any one of the first aspects.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a method for detecting a network card out of band according to an embodiment of the present application;
FIG. 2 is a second flowchart of a method for detecting a network card out of band according to an embodiment of the present application;
FIG. 3 is a third flow chart of a method for detecting a network card out of band according to the embodiment of the present application;
fig. 4 is a schematic structural diagram of an out-of-band detection apparatus according to an embodiment of the present application;
fig. 5 is a schematic system diagram for implementing a method for detecting a network card out of band according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
And the in-band detection network card is communicated with the network card to be detected by installing third-party software on the operating system, so that the information of the network card to be detected is obtained, and finally, the operating system determines the state of the network card based on the information of the network card to be detected. In the detection process, the in-band detection needs to rely on a CPU and an operating system for detection, so that operating system resources are occupied, and the overall performance of the system is negatively influenced, especially under the condition of high load; and installing Agent software on an operating system for detection introduces issues such as compatibility issues, security issues (if the Agent software has vulnerabilities), and complexity of management and maintenance.
Based on the above problems, the embodiment of the application provides a method for out-of-band detection of a network card, which is realized based on a system composed of a network interface chip, a signal conversion chip and a substrate management controller, and specifically comprises the following steps: after the substrate management controller receives the serial target network port state signal sent by the signal conversion chip through the system management bus, the state of the target network port can be determined according to the corresponding relation between the preset parallel target network port state signal and the network port state and the received serial target network port state signal. The out-of-band detection network card method mainly determines the state of the target network port through the independently operated baseboard management controller, does not need to depend on an operating system, a CPU and third-party software, is more convenient to realize, does not need to consider the adaptation of the operating system, the occupation of CPU resources, the installation and configuration of Agent software and the like, and further avoids the problem that the overall performance of the operating system can be negatively influenced.
Referring to fig. 1, fig. 1 is a flow chart of an out-of-band detection network card method provided in an embodiment of the present application, applied to a baseboard management controller, the out-of-band detection network card method includes the following steps:
Step 101, receiving a serial target port status signal sent by a signal conversion chip, where the signal conversion chip is configured to receive a parallel target port status signal output by a target port on a port chip of a network card to be tested, perform signal conversion on the parallel target port status signal to obtain a serial target port status signal (i.e. convert the parallel signal into a serial signal), and send the serial target port status signal to a baseboard management controller.
It should be noted that, in the embodiment of the present application, the baseboard management controller receives the serial target port status signal sent by the signal conversion chip through the system management bus. The acquisition process of the serial target state signal comprises the following steps: the method comprises the steps that a target network port on a network port chip of a network card to be tested outputs a parallel target network port state signal, the parallel target network port state signal is sent to a signal conversion chip, the signal conversion chip converts the parallel target network port state signal into a serial target network port state signal on a universal input/output interface after receiving the parallel target network port state signal output by the target network port on the network port chip to be tested, so that the network port chip to be tested on an integrated circuit bus is in communication connection with a baseboard management controller on the universal input/output interface, and the serial target network port state signal is sent to the baseboard management controller through a system management bus. It should be noted that the signal conversion chip may be a PCA9555 chip.
Step 102, determining a network port state of the target network port based on the first corresponding relation and the serial target network port state signal, wherein the first corresponding relation is a corresponding relation between the serial target network port state signal and the network port state.
It should be noted that, in the embodiment of the present application, after receiving the serial target port status signal, the baseboard management controller can determine the target port status according to the preset correspondence between the serial target port status signal and the port status and the received serial target port status signal.
According to the method and the device, the substrate management controller obtains the serial target network port state signal through the signal conversion chip, and determines the target network port state according to the corresponding relation among the serial target network port state signal, the serial target network port state signal and the network port state information, so that out-of-band detection of the target network port state is realized, the detection is independent of an operating system, a CPU and third party software, and the realization is convenient.
Optionally, the serial target portal status signal includes a serial LED level signal, and the target portal status includes a connection status of the target portal and a connection rate of the target portal.
Each network port on the network port chip to be tested is provided with a programmable LED pin, the LED pin can be defined by programming through firmware, and the corresponding relation between serial LED level signals and network port states is generated according to the programming definition. As shown in table 1, an interface on a network interface chip to be tested on a network card to be tested has 3 LED pins, the pin numbers are LED1, LED2 and LED3 respectively, LED1 is defined to complete a hundred megarate (normally 1 or normally 0;1 indicates that the interface supports completing the connection of the hundred megarate, 0 indicates that the interface does not support completing the connection of the hundred megarate), LED2 is defined to complete a gigarate (normally 1 or normally 0;1 indicates that the interface supports completing the connection of the gigarate, 0 indicates that the interface does not support completing the connection of the gigarate), LED3 is defined to be active (0 and 1 alternate; 1 indicates that the interface is connected, data is currently being transmitted, 0 indicates that the interface is not connected, and the corresponding relationship formed is: the LED level signal output by the LED1 is 0, and the network port state is that the connection of hundred megaspeeds is not supported; and if the LED level signal output by the LED1 is 1, the network port state is that the connection with hundred megaspeeds is supported. The LED level signal output by the LED2 is 0, and the network port state is the connection supporting the completion of gigabit rate; the LED level signal output by the LED2 is 1, and the network port state is that the connection of the gigabit rate is not supported; the LED level signal output by the LED3 is 0, the network port state is connected, and data are currently transmitted; and if the LED level signal output by the LED3 is 1, the network port state is unconnected, and data is not transmitted currently. It should be noted that, the definition of the LED pins of the network port on the network port chip to be tested in the present application is not limited to the definition shown in table 1.
TABLE 1
After receiving the serial LED level signal, the baseboard management controller can inquire from the corresponding relation between the serial LED level signal and the network port state defined in advance according to the serial LED level signal, so as to determine the connection state of the target network port and the connection rate of the target network port. For example: the parallel LED level signal output by the pin LED1 provided by the target Port0 is 1, the parallel LED level signal output by the pin LED2 is 0, the parallel LED level signal output by the pin LED3 is 1, the signal conversion chip performs signal conversion on the received parallel LED level signal to generate a serial LED level signal, then the serial LED level signal received by the baseboard management controller is 1, 0 and 1, the corresponding relation between the serial LED level signal and the Port state is obtained by inquiring the predefined corresponding relation, the connection state of the target Port0 is connected, data is currently being transmitted, and the connection rate of the target Port0 is the connection supporting hundred megabits.
According to the method and the device, the base plate management controller determines the connection state of the target network port and the connection rate of the target network port according to the LED level signal sent by the receiving signal conversion chip, so that the network state of the network card to be tested is monitored remotely, the fault problem can be found and processed timely, and the stability and the reliability of the network are ensured.
Further, in the embodiment of the present application, as shown in fig. 2, the following steps may be further included before step 101:
step 201, validity detection is performed on the network card on-site signal to be detected, the network card reset signal to be detected and the network card wake-up signal to be detected, which are output by the network port chip to be detected on the network card to be detected.
Step 202, if both are valid, configuring the IO pin of the signal conversion chip as an input type according to the ID type of the network card to be tested, and configuring the IO pin of the signal conversion chip as a polarity non-inversion according to the level signal type output by the network port chip to be tested.
It should be noted that, in this embodiment of the present application, before executing step 101, the baseboard management controller needs to perform validity detection on the on-site signal of the network card to be tested, the reset signal of the network card to be tested, and the wake signal of the network card to be tested in advance, specifically, receives the on-site signal of the network card to be tested, the reset signal of the network card to be tested, and the wake signal of the network card to be tested, and respectively determines whether the on-site signal of the network card to be tested is at a high level, determines whether the reset signal of the network card to be tested is at a high level, and determines whether the wake signal of the network card to be tested is at a high level. If the network card on-site signal to be tested is high level, the network card on-site signal to be tested is valid; if the network card on-site signal to be tested is low level, the network card on-site signal to be tested is invalid; if the reset signal of the network card to be tested is high level, the reset signal of the network card to be tested is valid; if the reset signal of the network card to be tested is low level, the reset signal of the network card to be tested is invalid; if the wake-up signal of the network card to be tested is high level, the wake-up signal of the network card to be tested is valid; if the wake-up signal of the network card to be tested is low level, the wake-up signal of the network card to be tested is invalid. The method comprises the steps of detecting the on-site signal of a network card to be detected, detecting whether the network card to be detected is installed or not, and detecting the reset signal of the network card to be detected and the wake-up signal of the network card to be detected, wherein the validity detection is used for detecting whether the network card to be detected can work normally or not.
And under the condition that the on-site signal of the network card to be tested, the reset signal of the network card to be tested and the wake-up signal of the network card to be tested are all high levels, namely under the condition that the on-site signal of the network card to be tested, the reset signal of the network card to be tested and the wake-up signal of the network card to be tested are all effective, the network card to be tested is currently installed and normally works, and the signal conversion chip is configured. Specifically, the method comprises the following steps: configuring an IO pin of a signal conversion chip as an input type according to the ID type of the network card to be tested, so that the signal conversion chip can receive and process signals sent by the network card to be tested, and further establishing communication connection between the network card to be tested and the signal conversion chip; configuring the polarity of the IO pin of the signal conversion chip according to the type of the level signal output by the network port chip to be tested without inversion, namely, if the polarity of the level signal output by the IO pin of the signal conversion chip is the same as the polarity of the level signal output by the network port chip to be tested, if the level signal output by the network port chip to be tested is high level, the IO pin of the signal conversion chip also outputs the high level signal; if the signal output by the network port chip to be tested is low level, the IO pin of the signal conversion chip will also output a low level signal; therefore, the signal conversion chip can be ensured to accurately receive and process the signals output by the network port chip to be tested, and the signals are transmitted to the baseboard management controller for processing.
If any one of the to-be-detected network card in-place signal, the to-be-detected network card reset signal and the to-be-detected network card wake-up signal is invalid, the steps in the out-of-band detection network card method provided by the embodiment of the application are not executed.
Illustratively, as shown in table 2, the IO pins of the signal conversion chip are io0_0, io0_1, io0_2, and io0_3, respectively, and each of the IO pins is configured respectively. Note that, the configuration of the IO pins of the signal conversion chip in the present application is not limited to the configuration shown in table 2.
TABLE 2
The IO pin type and the IO pin polarity of the signal conversion chip are configured under the condition that the network card to be tested is effective in the in-place signal, the network card to be tested is reset signal and the network card to be tested is wake-up signal, so that the network port chip to be tested can normally send signals, the signal conversion chip can accurately receive and process the signals output by the network port chip to be tested, and the accuracy of signal transmission between the network port chip to be tested and the signal conversion chip is guaranteed.
Further, in an embodiment of the present application, as shown in fig. 3, the method may further include the following steps:
step 301, receiving a serial network card status signal to be tested sent by a signal conversion chip, where the serial network card status signal to be tested includes a serial network card type signal to be tested, where the signal conversion chip is further configured to receive a parallel network card type signal to be tested output by a network port chip to be tested, perform signal conversion on the parallel network card type signal to obtain the serial network card type signal to be tested, and send the serial network card type signal to a baseboard management controller.
It should be noted that, in the embodiment of the present application, the baseboard management controller receives, through the system management bus, the serial network card status signal to be tested sent by the signal conversion chip, where the serial network card status signal to be tested includes a serial network card type signal to be tested, and the process of obtaining the serial network card type signal to be tested is: the network interface chip to be tested outputs parallel network card type signals to be tested and sends the parallel network card type signals to the signal conversion chip, the signal conversion chip converts the parallel network card type signals to be tested into serial network card type signals to be tested on the universal input and output interface after receiving the parallel network card type signals to be tested output by the network interface chip to be tested, and sends the serial network card type signals to be tested to the baseboard management controller through the system management bus.
Step 302, determining the type of the network card to be tested based on the second corresponding relationship and the serial network card type signal to be tested, wherein the second corresponding relationship is the corresponding relationship between the serial network card type signal to be tested and the network card type to be tested.
It should be noted that, in the embodiment of the present application, after receiving the serial network card type signal to be tested, the baseboard management controller can query from the preset corresponding relationship between the serial network card type signal to be tested and the network card type to be tested according to the serial network card type signal to be tested, so as to determine the type of the network card to be tested. For example: as shown in table 3, the corresponding relationship between the serial network card type signal to be tested and the network card type to be tested is: the type of the serial network card to be tested is 0, and the type of the network card to be tested is a card-inserting type network card; and if the serial network card type signal to be tested is 1, the network card type to be tested is a disposal network card. If the received serial network card type signal to be tested is 0, the corresponding relation between the preset serial network card type signal to be tested and the network card type to be tested can be obtained, and the network card type to be tested is the card-inserting network card. It should be noted that, the definition of the serial network card type signal to be tested in the present application is not limited to the definition shown in table 3.
TABLE 3 Table 3
Serial network card type signal to be tested Network card type to be tested
0 Card-inserting type network card
1 Disposal network card
According to the method and the device, the baseboard management controller determines the type of the network card to be tested according to the acquired serial network card type signal to be tested, the preset corresponding relation between the serial network card type signal to be tested and the type of the network card to be tested, so that out-of-band detection of the type of the network card is realized.
Further, in the embodiment of the present application, the serial network card status signal to be tested further includes a serial network card power status signal to be tested, and the method may further include the following steps: and determining the power state of the network card to be tested based on the third corresponding relation and the serial network card power state signal to be tested, wherein the third corresponding relation is the corresponding relation between the serial network card power state signal to be tested and the network card power state to be tested.
It should be noted that, in the embodiment of the present application, after receiving the serial network card power state signal to be tested, the baseboard management controller can query from the preset corresponding relationship between the serial network card power state signal to be tested and the network card power state to be tested according to the serial network card power state signal to be tested, so as to determine the network card power state to be tested. For example: as shown in table 4, the corresponding relationship between the serial network card power state signal to be tested and the network card power state to be tested is: the serial network card power state signal to be tested is 0, and the network card power state to be tested is that the power is not connected; and if the serial network card power state signal to be tested is 1, the network card power state to be tested is that the power is turned on. If the received serial network card power state signal to be detected is 1, the corresponding relation between the preset serial network card power state signal to be detected and the network card power state to be detected can be obtained, and the network card power state to be detected is that the power is turned on. It should be noted that, the definition of the power status signal of the serial network card to be tested in the present application is not limited to the definition shown in table 4.
TABLE 4 Table 4
Serial network card power state signal to be tested Network card power state to be tested
0 The power is not turned on
1 The power is turned on
According to the method and the device, the baseboard management controller determines the power state of the network card to be tested according to the acquired serial power state signal of the network card to be tested, the preset corresponding relation between the serial power state signal of the network card to be tested and the power state of the network card to be tested, so that out-of-band monitoring of the power state of the network card to be tested is realized.
Further, in an embodiment of the present application, the method may further include the following steps: acquiring the state of an internet access on a network access chip to be tested based on a preset query strategy; the inquiry strategy is used for configuring and inquiring the moment of each network port on the network port chip to be tested for the baseboard management controller; or the baseboard management controller is configured to inquire the time interval of the network port on the network port chip to be tested; if the states of the target network ports obtained by the preset times are consistent, setting the states of the target network ports as the final states of the target network ports.
It should be noted that, in the embodiment of the present application, the baseboard management controller may set a query policy in advance, and through the query policy, the baseboard management controller may obtain the status of each network port on the network port chip to be tested. The query policy may specifically include: configuring and inquiring specific time of each network port on the network port chip to be tested or configuring and inquiring time interval between the network ports on the network port chip to be tested; and if the states of the target network ports acquired by the substrate management controller under the preset times are consistent, taking the acquired states of the target network ports as the final states of the target network ports.
According to the method and the device, the substrate management controller acquires the state of each network port on the network card chip to be tested in turn through the preset inquiry strategy, so that the state of each network port can be flexibly detected, and the timeliness of detecting the state of the network port is ensured.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an out-of-band detection network card device according to an embodiment of the present application, where the device includes a network port status signal receiving module 401 and a network port status determining module 402.
The network port state signal receiving module 401 is configured to receive a serial target network port state signal sent by the signal conversion chip, where the signal conversion chip is configured to receive a parallel target network port state signal output by a target network port on a network port chip of a network card to be tested, perform format conversion on the parallel target network port state signal to obtain a serial target network port state signal, and send the serial target network port state signal to the baseboard management controller;
the network port state determining module 402 is configured to determine a network port state of the target network port based on a first correspondence and a serial target network port state signal, where the first correspondence is a correspondence between the serial target network port state signal and the network port state.
In one possible implementation, the serial target portal status signal comprises an LED level signal, and the target portal status comprises a connection status of the target portal and a connection rate of the target portal.
In one possible implementation, the apparatus further includes:
the signal detection module is used for detecting the validity of the network card on-site signal to be detected, the network card reset signal to be detected and the network card wake-up signal to be detected;
and the data configuration module is used for configuring the IO pin of the signal conversion chip as an input type according to the ID type of the network card to be tested and configuring the IO pin of the signal conversion chip as a polarity non-inversion according to the level signal type output by the network port chip to be tested if the data configuration module is valid.
In one possible implementation, the apparatus further includes:
the network card type signal receiving module is used for receiving the serial network card type signal to be detected sent by the signal conversion chip, wherein the serial network card type signal to be detected comprises a serial network card type signal to be detected, the signal conversion chip is also used for receiving a parallel network card type signal to be detected output by the network port chip to be detected, converting the parallel network card type signal to obtain the serial network card type signal to be detected, and sending the serial network card type signal to be detected to the baseboard management controller;
the network card type determining module is used for determining the type of the network card to be tested based on a second corresponding relation and the serial network card type signal to be tested, wherein the second corresponding relation is the corresponding relation between the serial network card type signal to be tested and the network card type to be tested.
In one possible implementation, the serial network card status signal to be tested further includes a serial network card power status signal to be tested, and the apparatus further includes:
the network card power state determining module is used for determining the power state of the network card to be tested based on a third corresponding relation and the serial network card power state signal to be tested, wherein the third corresponding relation is the corresponding relation between the serial network card power state signal to be tested and the network card power state to be tested.
In one possible implementation, the apparatus further includes:
the network port state query module is used for acquiring the state of the network port on the network port chip to be tested based on a preset query strategy;
the inquiry strategy is used for configuring and inquiring the moment of each network port on the network port chip to be tested for the baseboard management controller; or,
the baseboard management controller is configured to inquire the time interval of the network port on the network port chip to be tested;
if the states of the target network ports obtained by the preset times are consistent, setting the states of the target network ports as the final states of the target network ports.
The embodiment of the application also provides a system schematic diagram for realizing the out-of-band detection method, as shown in fig. 5, the system comprises a network interface chip, a signal conversion chip and a baseboard management controller, wherein the network interface chip is positioned on the network card.
The embodiment of the present application further provides an electronic device, as shown in fig. 6, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 perform communication with each other through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to execute the program stored in the memory 603, and implement the following steps:
the method comprises the steps that a serial target network port state signal sent by a signal conversion chip is received, the signal conversion chip is used for receiving a parallel target network port state signal output by a target network port on a network port chip to be tested, performing signal conversion on the parallel target network port state signal to obtain the serial target network port state signal, and sending the serial target network port state signal to a substrate management controller;
and determining the network port state of the target network port based on the first corresponding relation and the serial target network port state signal, wherein the first corresponding relation is the corresponding relation between the serial target network port state signal and the network port state.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided herein, a computer readable storage medium is provided, where instructions are stored, which when executed on a computer, cause the computer to perform the out-of-band detection network card method according to any one of the above embodiments.
In yet another embodiment provided herein, a computer program product containing instructions that, when executed on a computer, cause the computer to perform the out-of-band detection network card method of any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (10)

1. An out-of-band detection network card method, which is applied to a baseboard management controller, the method comprising:
the method comprises the steps of receiving serial target network port state signals sent by a signal conversion chip, wherein the signal conversion chip is used for receiving parallel target network port state signals output by a target network port on a network port chip of a network card to be tested, converting the parallel target network port state signals into the serial target network port state signals, and sending the serial target network port state signals to a baseboard management controller;
and determining the network port state of the target network port based on a first corresponding relation and the serial target network port state signal, wherein the first corresponding relation is the corresponding relation between the serial target network port state signal and the network port state.
2. The method of claim 1, wherein the serial target portal status signal comprises a serial LED level signal, the portal status comprising a connection status of the target portal and a connection rate of the target portal.
3. The method of claim 1, comprising, prior to the step of receiving the serial target portal status signal sent by the signal conversion chip:
the on-site signal of the network card to be tested, the reset signal of the network card to be tested and the wake-up signal of the network card to be tested, which are output by the network port chip to be tested on the network card to be tested, are subjected to validity detection;
if the input signals are valid, the IO pins of the signal conversion chip are configured to be of an input type according to the ID type of the network card to be tested, and the IO pins of the signal conversion chip are configured to be of a polarity non-inversion type according to the level signal type output by the network port chip to be tested.
4. The method according to claim 1, wherein the method further comprises:
receiving a serial network card status signal to be tested, which is sent by the signal conversion chip, wherein the serial network card status signal to be tested comprises a serial network card type signal to be tested, the signal conversion chip is also used for receiving a parallel network card type signal to be tested, which is output by the network port chip to be tested, performing signal conversion on the parallel network card type signal to obtain the serial network card type signal to be tested, and sending the serial network card type signal to be tested to the baseboard management controller;
And determining the type of the network card to be tested based on a second corresponding relation and the serial network card type signal to be tested, wherein the second corresponding relation is the corresponding relation between the serial network card type signal to be tested and the network card type to be tested.
5. The method of claim 4, wherein the serial network card under test status signal further comprises a serial network card under test power status signal, the method further comprising:
and determining the power state of the network card to be tested based on a third corresponding relation and the serial network card power state signal to be tested, wherein the third corresponding relation is the corresponding relation between the serial network card power state signal to be tested and the network card power state to be tested.
6. The method according to claim 1, wherein the method further comprises:
acquiring the state of the network port on the network port chip to be tested based on a preset query strategy;
the inquiry strategy is used for configuring and inquiring the moment of each network port on the network port chip to be tested for the baseboard management controller; or,
the baseboard management controller is configured to inquire the time interval of the network port on the network port chip to be tested;
if the states of the target network ports obtained by the preset times are consistent, setting the states of the target network ports as final states of the target network ports.
7. An out-of-band detection network card device, which is applied to a baseboard management controller, comprising:
the network port state signal receiving module is used for receiving the serial target network port state signal sent by the signal conversion chip, the signal conversion chip is used for receiving the parallel target network port state signal output by the target network port on the network port chip of the network card to be tested, carrying out format conversion on the parallel target network port state signal to obtain the serial target network port state signal, and sending the serial target network port state signal to the baseboard management controller;
the network port state determining module is used for determining the network port state of the target network port based on a first corresponding relation and the serial target network port state signal, wherein the first corresponding relation is the corresponding relation between the serial target network port state signal and the network port state.
8. The apparatus of claim 7, wherein the serial target portal status signal comprises a serial LED level signal, the portal status comprising a connection status of the target portal and a connection rate of the target portal.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of out-of-band detection network card of any of claims 1-6 when the computer program is executed by the processor.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements a method of out-of-band detection of a network card as claimed in any one of claims 1 to 6.
CN202311330467.8A 2023-10-13 2023-10-13 Out-of-band detection network card method and device, electronic equipment and readable storage medium Pending CN117376197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311330467.8A CN117376197A (en) 2023-10-13 2023-10-13 Out-of-band detection network card method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311330467.8A CN117376197A (en) 2023-10-13 2023-10-13 Out-of-band detection network card method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117376197A true CN117376197A (en) 2024-01-09

Family

ID=89401733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311330467.8A Pending CN117376197A (en) 2023-10-13 2023-10-13 Out-of-band detection network card method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117376197A (en)

Similar Documents

Publication Publication Date Title
CN108768730B (en) Method and device for operating intelligent network card
US7830690B2 (en) Memory module thermal management
US9082242B2 (en) Vehicle network health assessment
US11696159B2 (en) Method, apparatus, and non-transitory computer readable medium for testing terminals
CN107239372B (en) Electronic device and detection method thereof
CN102053898A (en) Method for testing bus interface on PCIE (Peripheral Component Interface Express) slot of host and read-write test method thereof
CN101909310A (en) Electronic device testing method
CN117376197A (en) Out-of-band detection network card method and device, electronic equipment and readable storage medium
CN115792583B (en) Method, device, equipment and medium for testing vehicle-gauge chip
US20230367508A1 (en) Complex programmable logic device and communication method
CN115914327B (en) Control method, device, equipment and storage medium
WO2023030275A1 (en) Monitoring device address management method and apparatus, baseboard management controller, and device
CN114564334B (en) MRPC data processing method, system and related components
CN116521460A (en) Screen unlocking method and device for test equipment, electronic equipment and storage medium
CN116126613A (en) Position detection method and device of PCIe (peripheral component interconnect express) equipment, electronic equipment and storage medium
US20110270970A1 (en) Network device testing system and method
CN110572225B (en) Receiver direct current offset monitoring system, method, electronic device and storage medium
CN111966617B (en) Sensing information communication method, central processing unit and substrate management controller
CN113009246B (en) PSE device detection device and PSE device detection method
CN117452176B (en) Device power resistance test system, method and fixture
US11367339B2 (en) System and method for startup of a detector loop
CN110995495A (en) Network fault detection method and device, electronic equipment and storage medium
CN112881992B (en) Channel amplitude and phase consistency self-checking method and device and computer equipment
CN113778939B (en) Marine light chip management method, device and equipment based on substrate management controller
CN113515507B (en) Method and system applied to dam water seepage detection

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