CN117692354A - Cable detection method and computing device - Google Patents

Cable detection method and computing device Download PDF

Info

Publication number
CN117692354A
CN117692354A CN202311460790.7A CN202311460790A CN117692354A CN 117692354 A CN117692354 A CN 117692354A CN 202311460790 A CN202311460790 A CN 202311460790A CN 117692354 A CN117692354 A CN 117692354A
Authority
CN
China
Prior art keywords
network card
cable
identification
connector
target network
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
CN202311460790.7A
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.)
XFusion Digital Technologies Co Ltd
Original Assignee
XFusion Digital 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 XFusion Digital Technologies Co Ltd filed Critical XFusion Digital Technologies Co Ltd
Priority to CN202311460790.7A priority Critical patent/CN117692354A/en
Publication of CN117692354A publication Critical patent/CN117692354A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the application provides a cable detection method and computing equipment, wherein the method comprises the following steps: responding to the cable access of the target network card, and reading the identification signal of the target network card; the identification signal is generated by accessing the cable into the target network card through the connector, and the identification signal is used for indicating the identification of the cable accessed into the target network card; and carrying out cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card. According to the embodiment of the application, the cable at the network card end can be detected rapidly, and the cable detection efficiency is improved.

Description

Cable detection method and computing device
Technical Field
The embodiment of the application relates to the technical field of computing equipment, in particular to a cable detection method and computing equipment.
Background
At present, there are many cases of cables in network connection between a network card of a computing device and a switch, and when networks are interconnected, one-to-one connection is generally required between the network card and a port of the switch, and cross errors are avoided. However, after the network connection is performed between the network card and the switch, whether the cable connection between the network card and the switch is correct can only be checked manually, or whether the cable connection between the network card and the switch is problematic can be identified through network inquiry in a network communication state under the condition that the model and the port address of the network card and the switch are known in advance, so that the cable detection cannot be performed quickly in the two modes, and the problem of low cable detection efficiency exists.
Disclosure of Invention
The embodiment of the application provides a cable detection method and computing equipment, which can be used for rapidly detecting a cable at a network card end and improving the cable detection efficiency.
In a first aspect, an embodiment of the present application provides a cable detection method, including:
responding to the cable access of the target network card, and reading the identification signal of the target network card; the identification signal is generated by the cable accessing the target network card through the connector, and the identification signal is used for indicating the identification of the cable accessing the target network card;
and carrying out cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card.
In the implementation mode, the identification signal of the target network card can be directly read, and the cable detection is carried out on the target network card based on the identification signal, so that the cable detection is carried out without inquiring the network after network communication, the cable at the network card end can be rapidly detected, and the cable detection efficiency at the network card end is improved.
In some implementations, the identification signal may be determined from one or more level signals, which may be high level signals or low level signals. For example, the identification signal is determined based on a level signal, and then the identification signal is a high level signal or a low level signal. For another example, the identification signal is determined according to two level signals, and then the identification signal is composed of two high level signals, or the identification signal is composed of one high level signal and one level signal, or the identification signal is composed of two low level signals.
In some implementations, performing cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card, including: judging whether the identification indicated by the identification signal is matched with the target identification of the target network card or not; and generating a cable detection result of the cable access error of the target network card in response to the fact that the identifier indicated by the identifier signal is not matched with the target identifier of the target network card.
In some implementations, performing cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card, and further including: and generating a cable detection result of correct cable access of the target network card in response to the fact that the identifier indicated by the identifier signal is matched with the target identifier of the target network card.
In the implementation mode, the target identification of the target network card is known in advance, so that the identification indicated by the identification signal can be quickly matched with the target identification, whether the cable access of the target network card end is wrong or not is determined, and the efficiency of detecting the cable at the network card end is improved.
In some implementations, performing cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card, including: based on the corresponding relation between the network card slot number and the cable identification, determining the network card slot number corresponding to the identification indicated by the identification signal; judging whether the network card slot number corresponding to the identification indicated by the identification signal is matched with the network card slot number of the target network card; and generating a correct cable detection result of the target network card cable access in response to the matching of the network card slot number corresponding to the identifier indicated by the identifier signal and the network card slot number of the target network card.
In some implementations, performing cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card, and further including: and generating a cable detection result of the access error of the cable of the target network card in response to the fact that the network card slot number corresponding to the identifier indicated by the identifier signal is not matched with the network card slot number of the target network card.
In the implementation manner, the corresponding relation between the network card slot position number and the cable identification is established, the network card slot position number corresponding to the identification indicated by the identification signal can be rapidly determined, whether the cable access of the target network card end is wrong or not is determined by comparing the network card slot position number, cable detection is carried out after network communication is not needed, and the efficiency of network card end cable detection is improved.
In some implementations, before reading the identification signal of the target network card in response to the cable access of the target network card, the method further includes: reading an in-place detection signal of the target network card; the in-place detection signal of the target network card is used for indicating whether the target network card has cable access or not; and determining that the target network card is in cable access in response to the bit detection signal being a low level signal.
In the implementation manner, before the identification signal is read, the in-place detection signal of the target network card is read, so that whether the target network card has the cable access or not is judged, and the cable access detection can be realized rapidly. In addition, when it is determined that there is no cable access, it is unnecessary to continue reading the identification signal, and unnecessary detection can be reduced.
In a second aspect, embodiments of the present application provide a cable detection apparatus, including:
the reading unit is used for responding to the cable access of the target network card and reading the identification signal of the target network card; the identification signal is generated by the cable accessing the target network card through a connector, and is used for indicating the identification of the cable accessing the target network card;
and the processing unit is used for carrying out cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card.
In some implementations, the processing unit is to:
judging whether the identification indicated by the identification signal is matched with the target identification of the target network card or not;
and generating a cable detection result of the cable access error of the target network card in response to the fact that the identifier indicated by the identifier signal is not matched with the target identifier of the target network card.
In some implementations, the processing unit is further to:
and generating a cable detection result of correct cable access of the target network card in response to the fact that the identifier indicated by the identifier signal is matched with the target identifier of the target network card.
In one implementation, a processing unit is configured to:
Based on the corresponding relation between the network card slot number and the cable identification, determining the network card slot number corresponding to the identification indicated by the identification signal;
judging whether the network card slot number corresponding to the identification indicated by the identification signal is matched with the network card slot number of the target network card;
and generating a cable detection result of the correct access of the target network card cable in response to the matching of the network card slot number corresponding to the identification indicated by the identification signal and the network card slot number of the target network card.
In some implementations, the processing unit is further to:
and generating a cable detection result of the access error of the target network card cable in response to the fact that the network card slot number corresponding to the identification indicated by the identification signal is not matched with the network card slot number of the target network card.
In one implementation, the reading unit is further configured to read an in-place detection signal of the target network card; the in-place detection signal of the target network card is used for indicating whether the target network card has cable access or not;
and the processing unit is also used for determining that the cable access exists in the target network card in response to the bit detection signal being a low-level signal.
In a third aspect, an embodiment of the present application provides a computing device, including a target network card and a connector module; the connector module comprises a connector, wherein the connector is used for realizing the connection between the target network card and the cable;
The system comprises a target network card, a connector and a network interface module, wherein the target network card is used for generating an identification signal when a cable accesses the target network card through the connector, and the identification signal is used for indicating the identification of the cable accessed to the target network card; the identification signal is used for cable detection of the target network card.
In the implementation mode, the identification signal is generated when the cable is accessed to the target network card through the connector, and the cable detection is carried out on the target network card through the identification signal, so that the cable detection is carried out after the cable is not communicated through a network, the cable at the network card end is rapidly detected, and the cable detection efficiency at the network card end is improved.
In some implementations, the target network card is further configured to generate an in-place detection signal, where the in-place detection signal is used to detect whether the target network card has a cable access.
In the implementation manner, the target network card generates the in-place detection signal so as to judge whether the target network card has cable access or not, thereby improving the cable access detection efficiency. In addition, after determining that no cable access exists, the identification signal does not need to be read continuously, so that detection overhead can be reduced.
In some implementations, the connector includes N connector pin sets, and the destination network card includes N network card pin sets; n is an integer greater than or equal to 2;
The in-place connector pin group in the N connector pin groups is used for wiring with the in-place network card pin group in the N network card pin groups so as to generate in-place detection signals;
the identification connector pin sets of the N connector pin sets are used for wiring with the identification network card pin sets of the N network card pin sets to generate identification signals.
In the implementation manner, the in-place detection signal can be generated by wiring between the in-place connector pin group and the in-place network card pin group in the N network card pin groups, so that the detection of whether the target network card has cable access or not and the cable detection of the target network card are realized.
In some implementations, the N connector pin sets include one or more identification connector pin sets, and the identification signal is determined according to a level signal generated when the one or more identification connector pin sets are respectively connected with the corresponding identification network card pin sets;
the target network card is used for generating a low-level signal when the pins in the pin group of the identification connector are connected with the pins in the pin group of the identification network card and the cable is connected with the target network card through the connector;
Or the pins in the pin group of the identification connector are not connected in a loop, and the target network card is used for generating a high-level signal when the pins in the pin group of the identification connector are connected with the pins in the pin group of the identification network card and the cable is connected into the target network card through the connector.
In the implementation manner, the pins in the pin group of the identification connector are connected in a loop-back manner and are not connected in a loop-back manner, so that the target network card can generate different level signals when the cable is connected to the target network card through the connector, and the identification signal can be determined according to the level signals.
In some implementations, the computing device further includes a management controller configured to read an identification signal of the target network card and perform cable detection on the target network card based on the identification signal of the target network card.
In some implementations, the management controller is further configured to read an in-place detection signal of the target network card, and detect whether the target network card has a cable access based on the in-place detection signal.
In this implementation, the out-of-band cable detection can be quickly achieved by the management controller reading the identification signal and the in-place detection signal.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program loaded by a processor and performing a cable detection method as described above.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program or computer instructions which, when executed by a processor, implement the above-described cable detection method.
Drawings
Fig. 1 is a schematic diagram of a communication system according to an embodiment of the present application;
fig. 2 is a schematic diagram of a connection of a cable detection according to an embodiment of the present application;
fig. 3 is a schematic diagram of a pin of a network card according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another cable detection according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a computing device according to an embodiment of the present application;
fig. 6 is a schematic flow chart of a cable detection method according to an embodiment of the present application;
fig. 7 is a flow chart of another cable detection method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a cable detection device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments.
Fig. 1 is a schematic diagram of a communication system according to an embodiment of the present application. As one implementation, the communication system may be provided in a computing device. Illustratively, in fig. 1, the communication system may include at least one switch 101 and at least one server node 102. As one implementation, the server node 102 and the switch 101 may be located in one cabinet.
The server node 102 may include one or more network cards, where the one or more network cards in the server node 102 are connected to ports of the switch 101 through cables to implement network communications. Illustratively, in fig. 1, 4 network cards in the server node 102 may be respectively connected to ports of the switch 101 through cables, for example, the port 1 of the switch 101 is connected to a first network card through cables, the port 2 of the switch 101 is connected to a second network card through cables, the port 3 of the switch 101 is connected to a third network card through cables, and the port 4 of the switch 101 is connected to a fourth network card through cables.
Server node 102 may also include a single board (or motherboard), management controller, and so forth. One or more network card slots are arranged on the single board, and each network card slot can be inserted with one network card. One network card slot corresponds to one network card slot number. The network card may include IB (InfiniBand) network card, ETH (Ethernet) network card, etc., which is not limited in any way in the embodiments of the present application.
The management controller 103 is disposed on the board and electrically connected to the board. The management controller 103 may be a controller with a monitoring management function, and in this embodiment of the present application, the management controller 103 may perform cable detection on the network card. The management controller 103 may be a baseboard management controller (baseboard management controller, BMC), or the management controller 103 may be another management controller, and in this embodiment, the management controller 103 is taken as a BMC for example.
It should be noted that, different manufacturers name out-of-band management controllers differently; the out-of-band management controllers are typically named BMC, iLO (integrated lights-out, integrated remote management port), IDRAC (integrated dell remote access, remote control card), HDM (hardware device management ), IMM (integrated management module, integrated management module), etc. Whether called iLO or IDRAC, HDM, IMM, are understood to be BMCs in embodiments of the present application.
When the network card end is connected with the cable, the connector module can realize connection between the cable and the network card. The connector module may include a 1 min M cable module, M being a positive integer greater than 1, illustratively, the connector module includes a 1 min 7 cable module (i.e., m=7). The connector module provides M connectors through the cable backboard ports, the cable can be connected with the network card through the connectors, and the connectors in the connector module can be directly spliced or buckled on the single board, so that the connection between the cable and the network card is realized. Illustratively, the connector module includes a 1:2 cable module, the connector module provides two connectors through the cable backplane port, a first connector in the connector module can realize connection of a first network card in the server node 102 with a first cable, and a second connector in the connector module can realize connection of a second network card in the server node 102 with a second cable. The connector comprises a plurality of pins, and the cable access of network communication can be realized through the pins in the connector, so that the network communication function is realized.
In the embodiment of the application, in order to realize detection of the cable accessed by the network card end, under the condition that normal network signals are not affected (i.e. normal cable access is not affected or normal network wiring is not affected), a PIN (PIN) for detecting the cable accessed by the network card end can be defined by a connector of the cable end (or a connector module end) and a network card of the single board end, and an identifier of the cable accessed by the network card end is defined. Further, in the embodiment of the application, the connection design is performed on the network card and the connector respectively, and corresponding special signals are defined so as to realize detection of the cable accessed by the network card. Wherein the special signal may include: bit detection signals and identification signals. The in-place detection signal can be used for indicating whether the network card has cable access or not, or the in-place detection signal is used for indicating whether the cable accessed by the network card is firmly connected or not (the connection is stable and understood as that the cable connection is not loosened, and the cable connection is not loosened means that the signal can be normally transmitted); the identification signal is used for indicating the identification of the cable accessed to the network card, and can be used for judging whether the cable accessed to the network card has the condition of cable access error or not.
The connector may include a plurality of pins, and the network card may also include a plurality of pins. Part of the pins in the connector and part of the pins in the network card can be used for realizing cable access during network communication. And the connector and the network card also have partial idle pins (or unused pins) which can be used for wiring design during the detection of the network card end cable access.
Next, the wiring design between the network card end and the connector end will be described by taking cable detection for the cable accessed by two network cards (such as the first network card and the second network card in fig. 1) as an example. In some implementations, the first network card and the second network card may be located at the same server node 102. In other implementations, the first network card and the second network card may be located in different server nodes. Please refer to fig. 2, which is a schematic diagram of a cable detection connection according to an embodiment of the present application. Wherein:
as shown in fig. 2, a first connector in the connector module is used for realizing connection between the first network card and the first cable, and a second connector in the connector module is used for realizing connection between the second network card and the second cable. In the embodiments of the present application, the identification of the cable may be defined by a binary number, which is represented by a low level signal and a high level signal. Illustratively, the identifier of the first cable is defined as a low-level signal (e.g., the level signal is 0), the identifier of the second cable is defined as a high-level signal (e.g., the high-level signal is 1), and the identifier of the first cable may be defined as a high-level signal. In some other implementations, the identification of the cable may also be defined using a decimal number, such as an identification of a first cable defined as 0 and an identification of a second cable defined as 1. It should be appreciated that the embodiments are described in connection with the example of defining the identity of a cable by one or more level signals. The wiring design of the network card end and the connector module end is as follows:
(1) Wiring design of the first connector end and the first network card end:
for the definition of the first connector, the cable sensing wire connection is made with 4 pins in the first connector that are not used. As shown in fig. 2, pins 211, 212, 213 and 214 are 4 pins that are not used in the first connector, where pins 211 and 212 may be a set of in-place connector pins and pins 213 and 214 may be a set of identification connector pins. The wiring connection of the first connector includes: performing loop-back connection on the pin 211 and the pin 212 in the pin group of the bit connector, wherein the wiring between the pin 211 and the pin 212 can be called as a bit detection signal line; the loop-back connection is also made to pins 213 and 214 in the identification connector pin set, and the wiring between pins 213 and 214 may be referred to as an identification signal line. The loop-back connection is to connect two pins connected to each other by a loop-back line, and illustratively, an in-place detection signal line between a pin 211 and a pin 212 is connected by a loop-back line 21.
For the first network card, 4 pins corresponding to the 4 pins that are not used in the first connector are defined, and the defined 4 pins are pins that are not used in the first network card. Illustratively, in fig. 2, pin 201, pin 202, pin 203, and pin 204 are unused pins in the first network card, where pin 201 and pin 202 may be an in-place network card pin set and pin 203 and pin 204 may be an identification network card pin set. Meanwhile, 4 signals are defined, and the 4 signals are respectively two grounding signals, namely an on-site detection signal (PRESENT 1) and an identification signal (READID 1). Wherein pins 201 and 203 are in one-to-one correspondence with two ground signals, i.e., in fig. 2, pins 201 are used for ground and pins 203 are also used for ground. Pin 202 is connected to power supply 26 through pull-up resistor 27 and is used to generate a bit detection signal (PRESENT 1), and pin 204 is connected to power supply 25 through pull-up resistor 22 and is used to generate an identification signal (READID 1). It will be appreciated that power supply 25 and power supply 26 may be the same power supply in the server node where the first network card is located. In a specific implementation, a pin 202 for generating an in-place detection signal and a pin 201 corresponding to one of the ground signals are connected with an in-place detection signal line of the first connector; a pin 204 for generating an identification signal and a pin 203 corresponding to another ground signal are connected to the identification signal line of the first connector.
Referring to fig. 3, a pin schematic diagram of a network card is provided in an embodiment of the present application, where the network card may include a plurality of pins. The network card includes unused pins, illustratively, in fig. 3, where the unused pins in the network card include pins 7-10 (i.e., 7-10 in fig. 3), pins 7-10 may be defined as corresponding to 4 pins in the connector. Wherein pin 7 is for grounding (i.e., corresponding to a grounded signal) and pin 10 is for grounding (i.e., corresponding to a grounded signal); pin 8 is used for power on and for access management controller 103 to read the bit detection signal, pin 9 is used for power on and for access management controller 103 to read the identification signal. In the cable detection, the management controller 103 can acquire an in-place detection signal and an identification signal by reading the pins 8 and 9.
After the wiring design of the first connector end and the first network card end is completed, as in fig. 2, the bit detection signal is pulled up to the high level signal in advance by using the pull-up resistor 27. When the first cable is connected to the first network card through the first connector, the in-place detection signal wire of the first connector is looped and shorted, so that the in-place detection signal is pulled to a low-level signal (or referred to as a ground signal). The management controller 103 may read the on-line detection signal of the first network card as a low level signal, and determine that the first network card is connected to the cable according to the read on-line detection signal of the first network card as the low level signal. Here, the loop-back shorting refers to shorting the bit detection signal line through a loop-back line (such as loop-back line 21 in fig. 2). The principle of loop-back shorting is as follows: when the first cable is connected to the first network card through the first connector, communication connection can be realized through the male and female connectors or the elastic sheets of the connector, so that the in-place detection signal wire is looped and shorted. The principle of the subsequent loop-back short circuit can be referred to herein as the loop-back short circuit principle, and will not be described herein.
In addition, the embodiment of the present application may also pull up the identification signal to the high level signal in advance by using the pull-up resistor 22. When the first cable is connected to the first network card through the first connector, the identification signal line of the first connector is also looped and shorted due to the wiring design of the first connector, so that the identification signal of the first network card is pulled from a high level signal (for example, the high level signal is 1) to a low level signal (for example, the low level signal is 0). Correspondingly, the identification signal read by the management controller 103 is 0, and the identification signal is used for indicating that the identification of the first cable is 0, so that whether the first network card has a cable fault problem can be determined according to the identification signal.
(2) Wiring design of the second connector end and the second network card end:
similarly, for the definition of the second connector, the cable detection wiring connection is made with 4 pins in the second connector that are not used. In fig. 2, pins 221, 222, 223, and 224 are 4 pins that are not used in the second connector, where pins 221 and 222 may be a bit connector pin set and pins 223 and 224 may be an identification connector pin set. The wiring connection of the second connector includes: the pin 221 and the pin 222 in the pin group of the bit connector are connected in a loop, the wiring between the pin 221 and the pin 222 may be referred to as a bit detection signal line, the pin 223 and the pin 224 in the pin group of the identification connector are not connected in a loop, and the wiring between the pin 223 and the pin 224 is an identification signal line.
For the second network card, 4 pins corresponding to the 4 pins that are not used in the second connector are defined, and the defined 4 pins are pins that are not used in the second network card. Illustratively, in fig. 2, pin 231, pin 232, pin 233, and pin 234 are unused pins in the second network card, where pin 231 and pin 232 may be an in-place network card pin set and pin 233 and pin 234 may be an identification network card pin set. Meanwhile, 4 signals are defined, wherein the 4 signals are respectively two grounding signals, a presence detection signal (presence 2) and an identification signal (read 2). Here, the pins 231 and 333 are in one-to-one correspondence with two ground signals, that is, in fig. 2, the pin 231 is used for grounding and the pin 233 is also used for grounding. Pin 232 is connected to power supply 29 through pull-up resistor 30 and is used to generate a bit detection signal (PRESENT 2) and pin 234 is connected to power supply 31 through pull-up resistor 23 and is used to generate an identification signal (READID 2). It will be appreciated that the power source 29 and the power source 31 may be the same power source in the server node where the second network card is located. In a specific implementation, the pin 232 for generating the in-place detection signal and the pin 231 corresponding to one of the ground signals are connected with the in-place detection signal line of the second connector; a pin 234 for generating an identification signal and another pin 233 corresponding to a ground signal are connected to the identification signal line of the second connector.
After the wiring design of the second connector end and the second network card end is completed, as in fig. 2, the bit detection signal is pulled up to the high level signal in advance by using the pull-up resistor 30. When the second cable is connected to the second network card through the second connector, the on-site detection signal line of the second connector is looped and shorted, so that the on-site detection signal is pulled to a low-level signal, and the management controller 103 can read that the on-site detection signal of the second network card is the low-level signal, thereby determining that the second network card is connected to the cable.
In addition, the embodiment of the present application may also pull up the corresponding identification signal to the high level signal in advance by using the pull-up resistor 23. When the second cable accesses the second network card through the second connector, due to the wiring design of the second connector end, the identification signal line of the second connector end is not looped and shorted, so that the identification signal of the second network card keeps a high-level signal, and accordingly, the management controller 103 reads that the identification signal is a high-level signal (for example, the high-level signal is 1), the identification signal is used for indicating that the identification of the second cable is 1, and then whether the second network card has a cable access error problem can be determined according to the identification signal.
It should be understood that the connection corresponding to the bit detection signal may be referred to as a bit detection signal line and the connection corresponding to the identification signal may be referred to as an identification signal line. When the identifier of the first cable and the identifier of the second cable are defined as decimal numbers, decimal conversion is required to be performed on the identifier signal (such as 0) of the first cable, so that the identifier of the first cable is 0; and performing decimal conversion on the identification signal (such as 1) of the second cable to obtain the identification of the second cable as 1.
It should be noted that, the wiring design of the first network card end and the first connector end and the wiring design of the second network card end and the second connector end may be exchanged, when the wiring design of the first network card end and the first connector end is exchanged for the wiring design of the second network card end and the second connector end, the identifier of the corresponding first cable may be defined as 1, and the identifier of the second cable may be defined as 0. The embodiments of the present application are not limited in this regard. In addition, the above-mentioned example of performing cable detection by using two network cards for wiring design is given, and the embodiment of the present application is also applicable when performing cable connection to a network card including more than two in a server node.
Next, taking cable detection for cables accessed by four network cards included in the server node as an example, the wiring design between the 4 network cards and the corresponding connectors is as follows: fig. 4 is a schematic diagram of another cable detection according to an embodiment of the present application. In fig. 4, a first connector in the connector module realizes connection between the first network card and the first cable, a second connector in the connector module realizes connection between the second network card and the second cable, a third connector in the connector module realizes connection between the third network card and the third cable, and a fourth connector in the connector module realizes connection between the fourth network card and the fourth cable. In one implementation, the first network card, the second network card, the third network card, and the fourth network card may all be located at the same server node 102. In another implementation, the first network card, the second network card, the third network card, and the fourth network card may be located at different server nodes. The identification of the first network card to be accessed to the first cable is defined as 00; the identification of the second cable to be accessed by the second network card is defined as 01; the identification of the third cable to be accessed by the third network card is defined as 10, and the identification of the fourth cable to be accessed by the fourth network card is defined as 11. The wiring design at each network card end and the corresponding connector end is as follows:
For the definition of the first connector, the cable sensing wire connection is made with 6 pins in the first connector that are not used. In fig. 4, pins 411, 412, 413, 414, 415, and 416 are pins that are unused in the first connector, where pins 411 and 412 may be a set of in-place connector pins, pins 413 and 414 may be a set of first identification connector pins, and pins 415 and 416 may be a set of second identification connector pins. The wiring connection of the first connector includes: making a loop-back connection to pin 411 and pin 412 in the bit connector pin set, the connection between pin 411 and pin 412 may be referred to as a bit detection signal line; the pin 413 and the pin 414 in the first identification connector pin group are connected in a loop, and the pin 415 and the pin 416 in the second identification connector pin group are connected in a loop, and at this time, the connection between the pin 413 and the pin 414 is called a first identification signal line, and the connection between the pin 415 and the pin 416 is called a second identification signal line.
Accordingly, for the first network card, 6 pins corresponding to the unused 6 pins in the first connector are defined, and the defined 6 pins are pins that are unused in the first network card, and illustratively, pin 421, pin 422, pin 423, pin 424, pin 425, and pin 426 are pins that are unused in the first network card, where pin 421 and pin 422 may be an in-place network card pin group, pin 423 and pin 424 may be a first identification network card pin group, and pin 425 and pin 426 may be a second identification network card pin group. Meanwhile, 5 signals are defined, and the 5 signals are three grounding signals, namely an on-site detection signal (PRESENT 1) and an identification signal (READID 1). Here, the pins 421, 423, 425 are in one-to-one correspondence with three ground signals, that is, in fig. 4, the pins 421, 423, 425 are all used for grounding. Pin 422 is used to power up through a pull-up resistor and to generate a bit sense signal (PRESENT 1), and pins 424 and 426 are each used to power up through a pull-up resistor and to generate an identification signal (READID 1). In one implementation, the identification signal (READID 1) includes a first identification signal and a second identification signal, pin 424 is used to generate the first identification signal and pin 426 is used to generate the second identification signal. Pins 421 and 422 are connected to the in-place detection signal line of the first connector, pins 423 and 424 are connected to the first identification signal line of the first connector, and pins 425 and 426 are connected to the second identification signal line of the first connector.
After the wiring design of the first connector end and the first network card end is completed, as in fig. 4, the bit detection signal is pulled up to the high level signal in advance by using a pull-up resistor. When the first cable accesses the first network card through the first connector, the on-line detection signal line of the first connector is looped and shorted, so that the on-line detection signal of the first network card is pulled to a low level signal (for example, a ground signal), the management controller 103 can read the on-line detection signal as a low level signal (for example, a ground signal), and it can be determined that the first network card is accessed according to the read on-line detection signal as the low level signal. And on the first network card, the embodiment of the application utilizes the pull-up resistor to pull up the first identification signal and the second identification signal to the high-level signal in advance, when the first cable is connected into the first network card through the first connector, the first identification signal wire and the second identification signal wire of the first connector end are all looped and shorted due to the wiring design of the first connector end, so that the first identification signal and the second identification signal are pulled down to the low-level signal from the high-level signal. Accordingly, the management controller 103 reads that the first identification signal is 0, the second identification signal is 0, and based on the first identification signal and the second identification signal, the identification signal (read 1) can be determined to be 00, and the identification signal is used for indicating that the identification of the first cable is 00, so that whether the first network card has a cable access error problem can be determined according to the identification signal.
Similarly, for the definition of the second connector, the cable detection wiring connection is made with 6 pins in the second connector that are not used. In fig. 4, pins 431, 432, 433, 434, 435 and 436 are all pins that are unused in the second connector, where pins 431 and 432 may be a set of in-place connector pins, pins 433 and 434 may be a set of first identification connector pins, and pins 435 and 436 may be a set of second identification connector pins. The wiring connection of the second connector includes: the pins 431 and 432 in the bit connector pin set are connected in a loop, and the connection between the pins 431 and 432 may be referred to as a bit detection signal line. The pins 433 and 434 in the first identification connector pin group are connected in a loop, and the pins 436 and 435 in the second identification connector pin group are not connected in a loop, and at this time, the wiring between the pins 433 and 434 is referred to as a first identification signal line, and the wiring of the pins 435 and 436 is referred to as a second identification signal line.
Accordingly, for the second network card, 6 pins corresponding to the 6 pins that are not used in the second connector are defined, and the defined 6 pins are pins that are not used in the first network card, and illustratively, pin 441, pin 442, pin 443, pin 444, pin 445, and pin 446 are pins that are not used in the second network card. Wherein pin 441 and pin 442 may be an in-place network card pin set, pin 443 and pin 444 may be a first identification network card pin set, and pin 445 and pin 446 may be a second identification network card pin set. Meanwhile, 5 signals are defined, and the 5 signals are three grounding signals, namely an on-site detection signal (PRESENT 2) and an identification signal (READID 2). Here, the pins 441, 443, and 445 are in one-to-one correspondence with three ground signals, that is, in fig. 4, the pins 441, 443, and 445 are all used for grounding. Pin 442 is used to power on and to generate a bit sense signal (PRESENT 2), and pins 444 and 446 are each connected to power on through a pull-up resistor and to generate an identification signal (READID 2). In one implementation, identification signal (READID 2) includes a first identification signal and a second identification signal, pin 444 is used to generate the first identification signal and pin 446 is used to generate the second identification signal. Pins 441 and 442 are connected to the bit detection signal line of the second connector, pins 443 and 444 are connected to the first identification signal line of the second connector, and pins 445 and 446 are connected to the second identification signal line of the second connector.
After the wiring design of the second connector end and the second network card end is completed, as in fig. 4, the bit detection signal is pulled up to the high level signal in advance by using a pull-up resistor. When the second cable is connected to the second network card through the second connector, the in-place detection signal line of the second connector is looped and shorted, so that the in-place detection signal is pulled to the grounding signal, the management controller 103 can read the in-place detection signal of the second network card as the grounding signal, and the second network card can be determined to be connected to the cable according to the read in-place detection signal of the second network card. Further, in the embodiment of the application, the first identification signal and the second identification signal are pulled up to the high-level signal in advance by using the pull-up resistor on the second network card, when the second cable is connected to the second network card through the second connector, the first identification signal wire of the second connector end is looped back to be short-circuited due to the wiring design of the second connector end, so that the first identification signal in the second network card is pulled down to the low-level signal from the high-level signal, and the second identification signal wire of the second connector end is not looped back to be short-circuited, so that the second identification signal is still the high-level signal. Accordingly, the management controller 103 reads that the first identification signal is 0, the second identification signal is 1, and based on the first identification signal and the second identification signal, the identification signal (read 2) can be determined to be 01, and the identification signal is used for indicating that the identification of the second cable is 01, so that whether the second network card has a cable access error problem can be determined according to the identification signal.
Similarly, for the definition of the third connector, the cable detection wiring connection is made with 6 pins that are not used in the third connector. In fig. 4, pins 451, 452, 453, 454, 455, and 456 are pins that are unused in the third connector. Wherein pins 451 and 452 may be a set of in-place connector pins, pins 453 and 454 may be a set of first identification connector pins, and pins 455 and 456 may be a set of second identification connector pins. The wiring connection of the third connector includes: the pins 451 and 452 in the bit connector pin set are connected in a loop, and the connection between the pins 451 and 452 may be referred to as a bit detection signal line. The pin 453 and the pin 454 in the first identification connector pin group are not connected in a loop, and the pin 455 and the pin 456 in the second identification connector pin group are connected in a loop, and at this time, the connection between the pin 453 and the pin 454 is called a first identification signal line, and the connection between the pin 455 and the pin 456 is called a second identification signal line.
Accordingly, for the third network card, 6 pins corresponding to the 6 pins unused in the third connector are defined, and the defined 6 pins are pins unused in the third network card, illustratively, in fig. 4, pins 461, 462, 463, 464, 465, and 466 are pins unused in the third network card. Wherein, pin 461 and pin 462 may be an in-place network card pin set, pin 463 and pin 464 may be a first identification network card pin set, and pin 465 and pin 466 may be a second identification network card pin set. Meanwhile, 5 signals are defined, and the 5 signals are three grounding signals, namely an on-site detection signal (PRESENT 3) and an identification signal (READID 3). Here, the pins 461, 463 and 465 are in one-to-one correspondence with three ground signals, that is, in fig. 4, the pins 461, 463 and 465 are all used for grounding. Pin 462 is used to power on and to generate a bit detect signal (PRESENT 3), and pins 464 and 466 are each connected to power on through a pull-up resistor and to generate an identification signal (READID 3). In one implementation, the identification signal (READID 3) includes a first identification signal and a second identification signal, pin 464 is used to generate the first identification signal and pin 466 is used to generate the second identification signal. Pins 461 and 462 are connected to the bit detection signal line of the third connector, pins 463 and 464 are connected to the first identification signal line of the third connector, and pins 465 and 466 are connected to the second identification signal line of the third connector.
After the connection design of the third connector and the third network card is completed, as shown in fig. 4, the bit detection signal is pulled up to the high level signal in advance by using a pull-up resistor. When the third cable accesses the third network card through the third connector, the in-place detection signal line of the third connector is looped and shorted, so that the in-place detection signal of the third network card is pulled to a low level signal (for example, a ground signal), the management controller 103 may read that the in-place detection signal of the third network card is a low level signal (for example, a ground signal), and determine that the third network card has cable access according to the read in-place detection signal of the third network card is the low level signal. Further, in the embodiment of the present application, the first identification signal and the second identification signal are pulled up to the high level signal in advance by using a pull-up resistor on the third network card. When the third cable is connected to the third network card through the third connector, the first identification signal wire of the third connector end cannot be looped back to be short-circuited due to the wiring design of the third connector end, so that the first identification signal in the third network card still keeps high-level signals, and the second identification signal wire of the third connector end is looped back to be short-circuited, and the second identification signal in the third network card is pulled down from high-level signals to low-level signals. Accordingly, the management controller 103 reads that the first identification signal is 1, the second identification signal is 0, and based on the first identification signal and the second identification signal, the identification signal (read 3) may be determined to be 10, where the identification signal is used to indicate that the identification of the third cable accessing the third network card through the third connector is 10, and further it may be determined whether the third network card has a cable access error problem according to the identification signal.
Similarly, for the definition of the fourth connector, the cable detection wiring connection is made with 6 pins that are not used in the fourth connector. In fig. 4, pins 471, 472, 473, 474, 475 and 476 are all pins that are unused in the fourth connector. Wherein pins 471 and 472 may be one set of in-place connector pins, pins 473 and 474 are a first set of identification connector pins, and pins 475 and 476 are a second set of identification connector pins. The wiring connection of the fourth connector includes: the pins 471 and 472 in the bit connector pin set are connected in a loop, and the connection between the two pins 471 and 472 is called a bit detection signal line. No loopback connection is made to pin 473 and pin 474 in the first identification connector pin and no loopback connection is made to pin 476 and pin 475 in the second identification connector pin, the connection of pin 473 and pin 474 being referred to as the first identification signal line, the connection of pin 475 and pin 476 being referred to as the second identification signal line.
Accordingly, for the fourth network card, 6 pins corresponding to the 6 pins that are not used in the fourth connector are defined, and the 6 pins defined are pins that are not used in the fourth network card. Illustratively, in fig. 4, pin 481, pin 482, pin 483, pin 484, pin 485, and pin 486 are unused pins in the fourth network card, where pin 481 and pin 482 may be an in-place network card pin set, pin 483 and pin 484 may be a first identification network card pin set, and pin 485 and pin 486 may be a second identification network card pin set. Meanwhile, 5 signals are defined, and the 5 signals are three grounding signals, namely an on-site detection signal (PRESENT 4) and an identification signal (READID 4). Here, the pins 481, 483, and 485 are in one-to-one correspondence with three ground signals, that is, in fig. 4, the pins 481, 483, and 485 are all used for grounding. Pin 482 is used to power on and to generate a bit detect signal (PRESENT 4), and pins 484 and 486 are each connected to power on via pull-up resistors and to generate an identification signal (READID 4). In one implementation, the identification signal (READID 4) includes a first identification signal and a second identification signal, pin 484 is used to generate the first identification signal and pin 486 is used to generate the second identification signal. And pin 481 and pin 482 are connected to the in-place detection signal line of the fourth connector, pin 483 and pin 484 are connected to the first identification signal line of the fourth connector, and pin 485 and pin 486 are connected to the second identification signal line of the fourth connector.
After the wiring design of the fourth connector end and the fourth network card end is completed, as in fig. 4, the bit detection signal is pulled up to the high level signal in advance by using a pull-up resistor. When the fourth cable accesses the fourth network card through the fourth connector, the on-line detection signal line of the fourth connector is looped and shorted, so that the on-line detection signal of the fourth network card is pulled to a low level signal (for example, a ground signal), the management controller 103 may read that the on-line detection signal of the fourth network card is a low level signal (for example, a ground signal), and determine that the fourth network card has cable access according to the read on-line detection signal of the fourth network card is the low level signal. Further, in the embodiment of the present application, the first identification signal and the second identification signal are pulled up to the high level signal in advance by using a pull-up resistor on the fourth network card. When the fourth cable is connected to the fourth network card through the fourth connector, the first identification signal wire of the fourth connector end is not looped back to be short-circuited due to the wiring design of the fourth connector end, so that the first identification signal in the fourth network card still keeps high-level signals, and the second identification signal wire of the fourth connector end is not looped back to be short-circuited, so that the second identification signal in the second network card still keeps high-level signals. Correspondingly, the first identification signal is 1, the second identification signal is 1, the identification signal (read 4) can be determined to be 11 based on the first identification signal and the second identification signal, the identification signal is used for indicating that the identification of the fourth cable is 11, and whether the fourth network card end has a cable access error problem can be determined according to the identification signal.
It should be noted that, in the embodiment of the present application, the number of cables in the communication system is not limited, for example, the number of cables may be 2,4, 8, 16, etc., and accordingly, the identification signal for detecting the cable is not limited at all. In addition, the above-mentioned multiple network cards are all exemplified by being located in the same server node, and in the actual application process, the multiple network cards may also be located in different server nodes. At this time, the management controller in each server node may perform cable detection on the network cards in the respective server nodes.
The embodiment of the application provides a wiring design between network card and connector, provides a cable detection scheme, and this cable detection scheme includes: based on the wiring design of the network card and the connector end, the management controller directly reads the in-situ detection signal and the identification signal of any network card (such as a target network card) in the communication system, whether the network card is accessed by a cable or not can be determined according to the in-situ detection signal, and whether the cable of the target network card is accessed by the cable or not can be determined according to the identification signal. Through the wiring design and the cable detection scheme between the target network card and the connector, the following effective effects can be realized: (1) Under the condition of not influencing the networking use of the standard network line, only the unused pins in the connector and the target network card are used for definition, and the in-place detection signal and the identification signal are defined, so that the cable connection between the network card and the switch port can be observed without manual work. In addition, whether the network cable is correctly accessed can be identified through network inquiry without the condition of network communication, so that the cable detection process is simplified, and the cable detection efficiency is improved. (2) The cable access can be detected quickly without relying on devices such as an edge optical module, an electrical module and the like.
It should be appreciated that embodiments of the present application may be applied to the following scenarios: (1) A scenario of a specific network connection relationship, where a specific network relationship refers to: network cards of different servers need to be connected to fixed switch ports or external fixed network interfaces; or different network cards of the same server need to be connected to a fixed switch port or an external fixed network interface, as shown in fig. 1, different network cards need to be connected to different switch interfaces, and at this time, the cable detection at the network card end can be realized by using the cable detection scheme provided by the embodiment of the present application. (2) The network cable is fast plugged in and out of the blind-mate server system, network connection is required to provide network communication interface function and cable connection error is avoided in the blind-mate server system, and whether cable connection error exists or not can be detected through the connection design between the network card and the connector. Specifically, the blind-mate server system comprises a plurality of switches and a server, when the switches are connected with the server through cables, the switches can be connected with the network card of the server through the connector module, and at the moment, the cable connection can be directly carried out at the network card end of the server by utilizing the cable detection scheme provided by the application, so that the cable connection detection of the network card end is fast carried out.
In some possible implementations, the computing device may be a complete cabinet server including a cabinet, and the at least one switch and at least one server node disposed in the cabinet. The server node here may be the same as the server node in the previous implementation as shown in fig. 1, or may be different from the server node in the previous implementation as shown in fig. 1. Fig. 5 is a schematic structural diagram of a computing device according to an embodiment of the present application. Illustratively, the computing device includes a cabinet, and a plurality of switches (such as switch 1 and switch 2) and 2n server nodes (such as server node 1, server node 2 …, server node 2n-1, n is an integer greater than or equal to 1) disposed in the cabinet, in fig. 5, server node 1, server node 3 …, server node 2n-1 are odd numbered server nodes in the cabinet, and server node 1, server node 3 …, server node 2n-1 need to be connected with switch 1 by cable to implement network communication; server node 2, server node 4 … server node 2n are the even numbered server nodes in the rack, server node 2, server node 4 … server node 2n are the even numbered server nodes in the rack, and need to be connected with the switch 2 by cables to realize network communication. In this scenario, the embodiment of the present application may perform cable detection from the switch end in addition to cable detection from the network card end as described above. Specifically, the target switch can acquire node asset information of the server node connected with the target switch through the asset information acquisition command, if the node asset information indicates that the number of the server node connected with the target switch is odd, but the target switch needs to be connected with the even numbered server through a cable, the target switch determines that the cable connection between the target switch and the odd numbered server node is wrong; if the node asset information indicates that the number of the server node connected with the target switch is even, and the target switch needs to be connected with the even-numbered server node through a cable, the target switch determines that the cable connection between the target switch and the even-numbered server node is correct.
In other implementations, the computing device may be a complete cabinet server that includes a cabinet and switches and server nodes disposed in the cabinet, where, unlike the cabinet shown in fig. 5 in which 1U accommodates two server nodes, the cabinet in this implementation may also accommodate one server node. At this time, the cable detection can still be performed through the wiring design between the network card and the connector and the cable detection scheme provided by the embodiment of the application.
The cable detection method provided by the embodiment of the application is described in the following, and the cable detection method can be applied to a computing device, wherein the computing device comprises a target network card and a connector module, and the connector module comprises a connector for realizing connection between the target network card and a cable. The target network card can be used for generating an identification signal when the cable is connected to the target network card through the connector, wherein the identification signal is used for indicating the identification of the cable connected to the target network card; the identification signal is used for cable detection of the target network card. In addition, the target network card may be further configured to generate an in-place detection signal, where the in-place detection signal is used to detect whether the target network card has a cable access. In one implementation, the target network card may be any of the above-mentioned network cards, such as the first network card, the second network card, the third network card, the fourth network card, and so on.
Wherein the connector includes N connector pin sets, which may include one in-place connector pin set, and further includes one or more identification connector pin sets. For example, taking the target network card as the first network card in fig. 2 as an example, the connector herein may be a first connector, such as in fig. 2, where the first connector includes 2 (i.e., n=2) connector pin sets, and the 2 connector pin sets include one in-place connector pin set and one identification connector pin set. For another example, the destination network card is the first network card in fig. 4, the first connector includes 3 (i.e., n=3) connector pin sets, and the 3 connector pin sets include one in-place connector pin set and 2 identification connector pin sets (i.e., a first identification connector pin set and a second identification connector pin set).
The target network card may include N network card pin sets including one in-place network card pin set. In addition, the N network card pin groups further comprise one or more identification network card pin groups, and N is an integer greater than or equal to 2. For example, taking the target network card as the first network card in fig. 2 as an example, in fig. 2, the target network card includes 2 (i.e., n=2) network card pin groups, and the 2 network card pin groups include an in-place network card pin group and an identification network card pin group. For another example, the target network card is the first network card in fig. 4, the target network card includes 3 network card pin groups, and the 3 network card pin groups include an in-place network card pin group and 2 identification network card pin groups (i.e., the first identification network card pin group and the second identification network card pin group corresponding to the first network card in fig. 3).
In one implementation, the in-place connector pin set of the N connector pin sets is configured to wire with the in-place network card pin set of the N network card pin sets to generate the in-place detection signal. For example, the target network card is the first network card in fig. 2, and the in-place connector pin set of the N connector pin sets and the in-place network card pin set of the N network card pin sets are wired as shown in fig. 2.
In one implementation, the identification connector pin set of the N connector pin sets is configured to wire with the identification network card pin set of the N network card pin sets to generate the identification signal.
The method comprises the steps of triggering a target network card to generate different identification signals through wiring design of whether the pins in the pin group of the identification connector in the target network card are connected in a loop-back mode. Specifically, the pins in the pin group of the identification connector are connected in a loop, and the target network card is used for generating a low-level signal when the pins in the pin group of the identification connector are connected with the pins in the pin group of the identification network card and the cable is connected to the target network card through the connector. The pins in the pin group of the identification connector are not connected in a loop-back manner, and the target network card is used for generating a high-level signal when the pins in the pin group of the identification connector are connected with the pins in the pin group of the identification network card and the cable is connected into the target network card through the connector. For example, the target network card is the first network card in fig. 2, the connector is the first connector, the cable is the first cable, the first connector includes a pin loop-back connection in the pin group of the identification connector, and the first network card in fig. 2 is used for generating a low-level signal when the pin in the pin group of the identification connector is connected with the pin in the pin group of the identification network card and the first cable is connected with the first network card through the first connector. For another example, the target network card is the second network card in fig. 2, the connector is the second connector, the second connector includes pins in the pin group of the identification connector that are not connected in a loop, and the second network card in fig. 2 is used for generating a high-level signal when the pins in the pin group of the identification connector are connected with the pins in the pin group of the identification network card and the second cable is connected to the second network card through the second connector.
In one implementation, the N connector pin sets include one or more identification connector pin sets, and the identification signal is determined based on a level signal generated when the one or more identification connector pin sets are respectively connected to corresponding identification network card pin sets. It should be understood that when the number of the identification connector pin sets is plural, the number of the identification network card pin sets is plural accordingly, and one identification connector pin set is connected to one identification network card pin set. For example, the target network card is the first network card in fig. 4, the connector is the first connector in fig. 4, where N connector pin groups in the first connector include a first identification connector pin group and a second identification connector pin group, and correspondingly, N network card pin groups in the first network card include a first identification network card pin group and a second identification network card pin group. The first identification connector pin group is connected with the first identification network card pin group, and the second identification connector pin group is connected with the second identification network card pin group, and the connection mode is shown in fig. 4.
When the N connector pins include an identification connector pin set, the identification signal is determined based on a level signal generated when the identification connector pin set is connected to a corresponding identification network card pin set. For example, when the target network card is the first network card in fig. 2, the cable is the first cable, and the connector is the first connector, pins in the pin group of the identification connector in the first connector are connected in a loop, as in fig. 2, pins in the pin group of the identification connector in the first connector are connected with pins in the pin group of the corresponding identification network card, and the first cable is connected to the first network card through the first connector, the first network card generates a low-level signal, and the identification signal of the first network card is determined according to the low-level signal generated by the first network card. In one implementation, the low level signal generated by the first network card may be directly determined as the identification signal of the first network card. When the target network card is the second network card in fig. 2, the cable is the second cable, and the connector is the second connector, the pins of the pin group of the identification connector in the second connector are not connected in a loop, as in fig. 2, the pins of the pin group of the identification connector in the second connector are connected with the pins of the corresponding identification network card pin group, and the second cable is connected to the second network card through the second connector, the second network card generates a high-level signal, and the identification signal of the second network card is determined according to the high-level signal generated by the second network card. In one implementation, the high level signal generated by the second network card may be directly determined as the identification signal of the second network card.
When the N connector pin sets comprise a plurality of identification connector pin sets, the identification signals are determined according to level signals generated when the plurality of identification connector pin sets are connected with the corresponding identification network card pin sets. For example, when the target network card is the second network card in fig. 4, the cable is the second cable, and the connector is the second connector, the N connector pin groups in the second connector include the first identification connector pin group and the second identification connector pin group. As shown in fig. 4, when the first identifier connector pin set in the second connector is connected to the first identifier network card pin set in the second network card and the second cable is connected to the second network card through the second connector, the second network card is used for generating a low-level signal (i.e., the first identifier signal of the second network card), and when the second identifier connector pin set in the second connector is connected to the second identifier network card pin set in the second network card and the second cable is connected to the second network card through the second connector, the second network card is also used for generating a high-level signal (i.e., the second identifier signal of the second network card). At this time, the identification signal of the second network card is determined according to the low-level signal and the high-level signal generated by the second network card. In one implementation manner, the low level signal (e.g. 0) and the high level signal (e.g. 1) generated by the second network card may be combined to obtain the identification signal of the second network card, that is, the identification signal of the second network card obtained by combining is 01. The connection between the second identification connector pin set in the second connector and the second identification network card pin set in the second network card may be shown in fig. 4, which is not described herein again.
For example, when the target network card is the third network card in fig. 4, the cable is a third cable, and the connector is a third connector, the N connector pin groups in the third connector include the first identification connector pin group and the second identification connector pin group. As shown in fig. 4, when the first identifier connector pin set in the third connector is connected to the first identifier network card pin set in the third network card and the third cable is connected to the third network card through the third connector, the third network card is used for generating a high level signal (i.e., the first identifier signal of the third network card), and when the second identifier connector pin set in the third connector is connected to the second identifier network card pin set in the third network card and the third cable is connected to the third network card through the third connector, the third network card is also used for generating a low level signal (i.e., the second identifier signal of the third network card). At this time, the identification signal of the third network card may be determined according to the high level signal and the low level signal generated by the third network card. In one implementation manner, the high level signal (e.g., 1) and the low level signal (e.g., 0) generated by the third network card may be combined to obtain the identification signal of the third network card, that is, the identification signal of the third network card obtained by combining is 10. The connection between the second identifier connector pin set in the third connector and the second identifier network card pin set in the third network card may be shown in fig. 4, which is not described herein again.
Fig. 6 is a schematic flow chart of a cable detection method according to an embodiment of the present application. Based on the wiring design between the target network card and the connector provided by the foregoing implementation manner, the cable detection method may be executed by a management controller in the computing device, the cable detection method may perform cable detection from the network card end, and the cable detection method may include the following steps S601-S602:
s601, responding to cable access of a target network card, and reading an identification signal of the target network card; the identification signal is generated by the cable accessing the target network card through the connector, and the identification signal is used for indicating the identification of the cable accessing the target network card.
The number of the target network cards may be one or more, and the target network cards may be the first network card, the second network card, the third network card or the fourth network card. When the number of the target network cards is multiple, in one implementation, the computing device includes a server node, the multiple target network cards may be located in the same server node, and a management controller in the server node may read an identification signal of each target network card in response to cable access of each target network card. In another implementation, the plurality of target network cards may be located in different server nodes, and the management controller in the server node where each target network card is located may read the identification signal of the target network card in the server node where each target network card is located in response to the cable access of the target network card.
It should be appreciated that the identification signal may be represented by one or more level signals, and that the identification indicated by the identification signal may be determined from the one or more level signals. In one implementation, the identification signal may be directly determined as the identification of the cable of the access target network card, where the identification of the cable of the target network card is a binary number. For example, the identification signal is a low level signal (e.g., the low level signal is 0), and the low level signal may be determined as the identification of the cable accessing the target network card, that is, the identification of the cable accessing the target network card is 0. For another example, the identification signal 01 may be determined as the identification of the cable accessing the target network card, that is, the identification of the cable accessing the target network card is 01. In another implementation manner, the identification signal may be decimal converted to obtain the identification of the cable accessing the target network card. For example, the identification signal is a low level signal (e.g., the low level signal is 0), and the low level signal may be decimal converted to obtain the identification 0 of the cable accessing the target network card, that is, the identification 0 of the cable accessing the target network card. For another example, the identification signal 01 may be decimal converted to obtain the identification 1 of the cable accessing the target network card, that is, the identification 1 of the cable accessing the target network card.
In one implementation, the management controller may read the identification signal of the target network card from the first network card pin of the target network card. Illustratively, the target network card is the first network card in fig. 2, the first network card pin is the pin 204 in the identification network card pin group, and the management controller may read the low-level signal from the pin 204 as the identification signal of the first network card. In another implementation, the identification signal includes a first identification signal and a second identification signal, the first identification signal may be read from a first network card pin of the target network card, the second identification signal may be read from a second network card pin of the target network card, and the identification signal of the target network card may be generated based on the first identification signal and the second identification signal. Illustratively, the target network card is the first network card in fig. 4, the first network card pin is the pin 424 in the first identification network card pin group, and the second network card pin is the pin 426 in the second identification network card pin group; the management controller may read the low level signal from the pin 424 as a first identification signal of the first network card, read the low level signal from the pin 426 as a second identification signal of the first network card, and then generate an identification signal of the target network card according to the first identification signal and the second identification signal.
S602, performing cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card.
As an implementation manner, the management controller stores the target identifier of the target network card, where the target identifier refers to an identifier of a cable to be accessed to the target network card, and the cable to be accessed to the target network card may be understood as a cable actually to be accessed to the target network card. The target identification of the cable to be accessed can be determined in advance according to the wiring design between the target network card and the corresponding connector. Schematically, the target network card is the first network card in fig. 2, the cable to be connected to the first network card is the first cable, and the target identifier of the first cable can be determined according to the wiring design between the first network card and the first connector.
The specific implementation manner of step S602 includes: judging whether the identification indicated by the identification signal is matched with the target identification of the target network card, if the management controller determines that the identification indicated by the identification signal is not matched with the target identification of the target network card, indicating that the accessed cable is not the cable which should be actually accessed, and generating a cable detection result of the access error of the cable of the target network card in response to the fact that the identification indicated by the identification signal is not matched with the target identification of the target network card. If the management controller determines that the identification indicated by the identification signal is matched with the target identification, the cable accessed to the target network card is the cable which should be actually accessed, and a cable detection result of correct cable access of the cable accessed to the target network card is generated in response to the fact that the identification indicated by the identification signal is matched with the target identification of the target network card. Taking the target network card as the first network card in fig. 2 as an example, the target identifier of the first network card is 0; if the identification indicated by the identification signal is 1 and is not matched with the target identification of the first network card, indicating that the cable accessed to the first network card is not the first cable, and generating a cable access error cable detection result of the first network card in response to the fact that the identification indicated by the identification signal is not matched with the target identification of the first network card. If the identification indicated by the identification signal is 0 and is matched with the target identification of the first network card, the cable connected to the first network card is the first cable, and a cable connection correct cable detection result of the first network card is generated in response to the fact that the identification indicated by the identification signal is matched with the target identification of the first network card.
As another implementation manner, the management controller stores the correspondence between the network card slot number and the cable identification, and step S602 may be: and determining a cable detection result of the target network card based on the identification signal of the target network card and the corresponding relation between the network card slot number and the cable identification. Specifically, based on the corresponding relation between the network card slot number and the cable identification, determining the network card slot number corresponding to the identification indicated by the identification signal, judging whether the network card slot number corresponding to the identification indicated by the identification signal is matched with the network card slot number of the target network card, if the network card slot number corresponding to the identification indicated by the identification signal is not matched with the network card slot number of the target network card, indicating that the cable accessed to the target network card is not the cable which should be actually accessed, and generating a cable detection result of the access error of the target network card cable in response to the fact that the network card slot number corresponding to the identification indicated by the identification signal is not matched with the network card slot number of the target network card; if the network card slot number corresponding to the identification indicated by the identification signal is matched with the network card slot number of the target network card, indicating that the cable accessed to the target network card is the cable which should be actually accessed, and generating a correct cable detection result for the access of the target network card cable in response to the matching of the network card slot number corresponding to the identification indicated by the identification signal with the network card slot number of the target network card.
For example, taking the target network card as the first network card in fig. 2 as an example, setting the network card slot number of the first network card as 2, if the network card slot number corresponding to the identifier indicated by the identifier signal is determined to be 3 based on the correspondence between the network card slot number and the cable identifier, it may be determined that the network card slot number of the first network card is not matched with the network card slot number corresponding to the identifier indicated by the identifier signal, which indicates that the cable accessing the first network card is not the first cable, and generating a cable detection result of the first network card cable access error in response to the mismatch between the network card slot number corresponding to the identifier indicated by the identifier signal and the network card slot number of the first network card. If the network card slot number corresponding to the identifier indicated by the identifier signal is determined to be 2 based on the corresponding relation between the network card slot number and the cable identifier, it can be determined that the network card slot number of the first network card is matched with the network card slot number corresponding to the identifier indicated by the identifier signal, the cable accessing the first network card is indicated to be the first cable, and the network card slot number corresponding to the identifier indicated by the identifier signal is responded to be matched with the network card slot number of the first network card, so that a correct cable detection result of the first network card cable accessing is generated.
In the embodiment of the application, the identification signal of the target network card is read in response to the cable access of the target network card; the identification signal is generated by accessing the cable into the target network card through the connector, and the identification signal is used for indicating the identification of the cable accessed into the target network card; and carrying out cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card. Therefore, the embodiment of the application can directly read the identification signal from the network card for cable detection, and the cable detection is carried out after the network communication is not needed, so that the cable detection is realized rapidly, and the efficiency of the cable detection at the network card end is improved.
Fig. 7 is a schematic flow chart of a cable detection method according to an embodiment of the present application. Based on the wiring design between the target network card and the connector provided by the foregoing implementation manner, the cable detection method may be executed by a management controller in the computing device, the cable detection method may perform cable detection from the network card end, and the cable detection method may include the following steps S701-S705:
s701, reading an in-place detection signal of the target network card. The in-place detection signal of the target network card is used for indicating whether the target network card has cable access or not.
As an implementation manner, the management controller may read the in-place detection signal of the target network card from a third network card pin in the target network card, where the third network card pin is one network card pin in the in-place network card pin group in the target network card. Illustratively, when the target network card is the first network card in fig. 2, the third network card pin is the pin 202 in the bit network card pin group, and the management controller may read the bit detection signal of the first network card from the pin 202 in the first network card. When the target network card is the second network card in fig. 2, the third network card pin is the pin 232 in the pin group of the bit network card, and the management controller can read the bit detection signal of the second network card from the pin 232 in the second network card.
It should be understood that, the above only takes the target network card as the first network card or the second network card in fig. 2 as an example, and the target network card may also be the first network card, the second network card, the third network card or the fourth network card in fig. 4, which is not limited in any way in the embodiment of the present application.
S702, judging whether the bit detection signal of the target network card is a low level signal.
As one implementation manner, if the in-place detection signal of the target network card is a low-level signal (e.g., the low-level signal is 0), it is determined that the target network card has cable access, step S704 is executed, and if the in-place detection signal of the target network card is not a low-level signal, it is determined that the target network card does not have cable access, step S703 is executed.
S703, determining that the target network card does not have cable access in response to the in-place detection signal not being a low-level signal, and outputting prompt information, wherein the prompt information is used for indicating that the target network card does not have cable access.
S704, determining that the cable access exists in the target network card in response to the in-place detection signal being a low-level signal, and reading an identification signal of the target network card, wherein the identification signal is generated by accessing the cable to the target network card through the connector, and the identification signal is used for indicating the identification of the cable accessed to the target network card.
And S705, performing cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card. The cable detection result is used for indicating that the cable of the target network card is correctly accessed or the cable is incorrectly accessed.
The specific implementation of S705 may refer to the specific implementation of S602, which is not described herein.
In the embodiment of the application, the in-place detection signal of the target network card is read, whether the in-place detection signal of the target network card is a low-level signal is judged, the in-place detection signal of the target network card is responded to the low-level signal, the existence of the cable access of the target network card is determined, the identification signal of the target network card is read, and the identification signal of the target network card is used for indicating the cable identification accessed by the target network card. And carrying out cable detection on the target network card based on the identification signal of the target network card to obtain a cable detection result of the target network card. And responding to the condition that the in-place detection signal of the target network card is not a low-level signal, and determining that the target network card has no cable access. According to the embodiment of the application, cable access detection can be performed in advance through the in-place detection signal, and if no cable access exists, cable detection on the target network card is not needed, so that detection cost is saved. If the cable is connected, the identification signal is read, and the cable detection is carried out on the target network card, so that the detection and identification of the cable outside the network can be realized rapidly, the cable detection is not needed after the network communication is carried out, and the efficiency of the cable detection at the network card end is improved.
The cable detection device provided in the embodiments of the present application will be explained in the following.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a cable detection device according to an embodiment of the present application, where the cable detection device may be a computer program (including program code) in a computing device, for example, the cable detection device may be an application software in the computing device; the cable detection device may be used to perform some or all of the steps in the method embodiments shown in fig. 6 and 7. Referring to fig. 8, the cable detection device includes the following units:
a reading unit 801, configured to read an identification signal of a target network card in response to a cable access of the target network card; the identification signal is generated by the cable accessing the target network card through a connector, and is used for indicating the identification of the cable accessing the target network card;
and the processing unit 802 is configured to perform cable detection on the target network card based on the identification signal, so as to obtain a cable detection result of the target network card.
In some implementations, the processing unit 802 is specifically configured to:
judging whether the identification indicated by the identification signal is matched with the target identification of the target network card or not;
And generating a cable detection result of the cable access error of the target network card in response to the fact that the identifier indicated by the identifier signal is not matched with the target identifier of the target network card.
In some implementations, the processing unit 802 is specifically configured to:
and generating a cable detection result of correct cable access of the target network card in response to the fact that the identifier indicated by the identifier signal is matched with the target identifier of the target network card.
In some implementations, the processing unit 802 is specifically configured to:
based on the corresponding relation between the network card slot number and the cable identification, determining the network card slot number corresponding to the identification indicated by the identification signal;
judging whether the network card slot number corresponding to the identification indicated by the identification signal is matched with the network card slot number of the target network card;
and generating a cable detection result of the correct access of the target network card cable in response to the matching of the network card slot number corresponding to the identification indicated by the identification signal and the network card slot number of the target network card.
In some implementations, the processing unit 802 is specifically configured to:
and generating a cable detection result of the access error of the target network card cable in response to the fact that the network card slot number corresponding to the identification indicated by the identification signal is not matched with the network card slot number of the target network card.
In some implementations, before reading the identification signal of the target network card, the reading unit 801 is further configured to read an in-place detection signal of the target network card in response to the cable access of the target network card; the in-place detection signal is used for indicating whether the target network card has cable access or not;
the processing unit 802 is further configured to determine that the target network card has a cable access in response to the in-place detection signal being a low level signal.
In the embodiment of the application, the identification signal of the target network card is read in response to the cable access of the target network card; the identification signal is generated by accessing the cable into the target network card through the connector, and the identification signal is used for indicating the identification of the cable accessed into the target network card; and carrying out cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card. Therefore, the embodiment of the application can directly read the identification signal from the network card for cable detection, and the cable detection is carried out after the network communication is not needed, so that the cable detection is realized rapidly, and the efficiency of the cable detection at the network card end is improved.
Furthermore, it should be noted here that: the embodiment of the present application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program, where the computer program includes program instructions, when executed by a processor, can perform the method in the embodiment corresponding to fig. 6 and fig. 7, and therefore, a detailed description will not be given here. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application. As an example, the program instructions may be deployed on one computing device or executed on multiple computing devices at one site or, alternatively, distributed across multiple sites and interconnected by a communication network.
According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program stored in a computer readable storage medium. The processor of the computing device reads the computer program from the computer readable storage medium, and the processor executes the computer program, so that the computing device can perform the method in the corresponding embodiment of fig. 6 and fig. 7, which will not be described in detail here.

Claims (10)

1. A cable detection method, comprising:
responding to the cable access of a target network card, and reading an identification signal of the target network card; the identification signal is generated by the cable accessing the target network card through a connector, and is used for indicating the identification of the cable accessing the target network card;
and carrying out cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card.
2. The method of claim 1, wherein the performing cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card comprises:
judging whether the identification indicated by the identification signal is matched with the target identification of the target network card or not;
And generating a cable detection result of the cable access error of the target network card in response to the fact that the identifier indicated by the identifier signal is not matched with the target identifier of the target network card.
3. The method of claim 2, wherein the performing cable detection on the target network card based on the identification signal, to obtain a cable detection result of the target network card, further comprises:
and generating a cable detection result of correct cable access of the target network card in response to the fact that the identifier indicated by the identifier signal is matched with the target identifier of the target network card.
4. The method of claim 1, wherein the performing cable detection on the target network card based on the identification signal to obtain a cable detection result of the target network card comprises:
based on the corresponding relation between the network card slot number and the cable identification, determining the network card slot number corresponding to the identification indicated by the identification signal;
judging whether the network card slot number corresponding to the identification indicated by the identification signal is matched with the network card slot number of the target network card;
and generating a cable detection result of the correct access of the target network card cable in response to the matching of the network card slot number corresponding to the identification indicated by the identification signal and the network card slot number of the target network card.
5. The method of claim 4, wherein the performing cable detection on the target network card based on the identification signal, to obtain a cable detection result of the target network card, further comprises:
and generating a cable detection result of the access error of the target network card cable in response to the fact that the network card slot number corresponding to the identification indicated by the identification signal is not matched with the network card slot number of the target network card.
6. The method of claim 1, wherein prior to the reading the identification signal of the target network card in response to the cable access of the target network card, the method further comprises:
reading an in-place detection signal of the target network card; the in-place detection signal is used for indicating whether the target network card has cable access or not;
and responding to the in-place detection signal as a low-level signal, and determining that the target network card is accessed on a cable.
7. A computing device, wherein the computing device comprises a target network card and a connector module;
the connector module comprises a connector, wherein the connector is used for realizing the connection between the target network card and the cable;
the target network card is used for generating an identification signal when the cable is connected to the target network card through the connector, and the identification signal is used for indicating the identification of the cable connected to the target network card; and the identification signal is used for carrying out cable detection on the target network card.
8. The computing device of claim 7, wherein the target network card is further to generate an in-place detection signal to detect whether the target network card has a cable access.
9. The computing device of claim 7, wherein the connector comprises N connector pin sets and the target network card comprises N network card pin sets; n is an integer greater than or equal to 2;
the in-place connector pin group in the N connector pin groups is used for wiring with the in-place network card pin group in the N network card pin groups so as to generate in-place detection signals;
the identification connector pin group of the N connector pin groups is used for wiring with the identification network card pin group of the N network card pin groups so as to generate the identification signal.
10. The computing device of claim 9, wherein the N connector pin sets include one or more identification connector pin sets, the identification signal being determined based on a level signal generated when the one or more identification connector pin sets are respectively connected with a corresponding identification network card pin set;
the target network card is used for generating a low-level signal when the pins in the identification connector pin group are connected with the pins in the identification network card pin group and the cable is connected to the target network card through the connector;
Or the pins in the pin group of the identification connector are not connected in a loop, and the target network card is used for generating a high-level signal when the pins in the pin group of the identification connector are connected with the pins in the pin group of the identification network card and the cable is connected into the target network card through the connector.
CN202311460790.7A 2023-11-03 2023-11-03 Cable detection method and computing device Pending CN117692354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311460790.7A CN117692354A (en) 2023-11-03 2023-11-03 Cable detection method and computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311460790.7A CN117692354A (en) 2023-11-03 2023-11-03 Cable detection method and computing device

Publications (1)

Publication Number Publication Date
CN117692354A true CN117692354A (en) 2024-03-12

Family

ID=90137932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311460790.7A Pending CN117692354A (en) 2023-11-03 2023-11-03 Cable detection method and computing device

Country Status (1)

Country Link
CN (1) CN117692354A (en)

Similar Documents

Publication Publication Date Title
CN106603265B (en) Management method, network device, and non-transitory computer-readable medium
US5414343A (en) Permanently installed cable system with integrated multi-cable tester
CN111124775A (en) Power-on time sequence abnormality detection method and device, MCU and storage medium
CN111289922A (en) Cable plugging detection method and related equipment
CN112306766A (en) Method, electronic device, storage system and computer program product for error detection
WO2014082275A1 (en) Method and apparatus for detecting cable connection condition
CN111176913A (en) Circuit and method for detecting Cable Port in server
US8391162B2 (en) Apparatus and method for testing SMNP cards
US4042832A (en) Logic board interlock indication apparatus
CN111858222A (en) Error injection method, apparatus, data storage system and program product
CN112380066B (en) Server maintenance and debugging device based on domestic platform and server
CN111966033B (en) Detection system for connection state of high-density connector
US20030050010A1 (en) Method and apparatus for providing wireless diagnostics, authentication, and redundancy of wired circuitry
CN117692354A (en) Cable detection method and computing device
CN115729872A (en) Computing device and detection method for PCIE cable connection
CN116048889A (en) Detection method and related device for cable connection of cabinet server
CN116627729A (en) External connection cable, external connection cable in-place detection device, startup self-checking method and system
CN114996069A (en) Mainboard test method, device and medium
CN112596983A (en) Monitoring method for connector in server
CN113138951A (en) Method, system and medium for connecting multiple devices through SGPIO
CN112035304A (en) Plug-in detection method and server system
CN216673033U (en) Network equipment
CN113407470B (en) Method, device and equipment for multiplexing low pin count interface and universal asynchronous receiver-transmitter interface
CN117667818B (en) Signal transmission structure, server and signal transmission method
CN113271223B (en) Unified communication management method for charging module and terminal equipment

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