A method for detecting a rack server cable connection and related device

By obtaining the identity information and encoding table or information carrier of the connector unit, and combining it with LLDP message parsing, the problem of server nodes being unable to identify slot numbers was solved, and accurate identification of slot numbers and troubleshooting were achieved.

CN116048889BActive Publication Date: 2026-02-27XFUSION DIGITAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211518945.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2026-02-27
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

In rack-mount servers, server nodes cannot identify the location of the connector units they are connected to in the cable backplane, resulting in an inability to accurately identify the slot number.

Method used

The server node obtains the identity information of the connector unit, determines the slot number using detection circuits or information carriers, and, in conjunction with the encoding table or LLDP message parsing, the rack management board sends alarm information to confirm the consistency of the slot number.

Benefits of technology

This enables server nodes to accurately identify the location of connector units in the cable backplane, ensuring the accuracy of slot numbers, and to troubleshoot cable connection faults or LLDP message parsing faults through alarm information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116048889B_ABST
    Figure CN116048889B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a kind of detection method and related device of cabinet server cable connection. Wherein, cabinet server includes at least one server node and cable backplane, cable backplane includes the connector unit for being connected with each server node, each connector unit is located in each slot of server cabinet;Wherein method includes: server node obtains the identity information of the connector unit connected in cable backplane, server node is for at least one server node in any one;Server node determines the first slot number of server node in server cabinet according to identity information, first slot number is used to indicate the position of the connector unit connected in cable backplane of server node. Visible, by obtaining the accurate identity information of the connector unit connected in cable backplane of itself, using the embodiments of the present application, server node can determine the accurate slot number in server cabinet.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to a detection method for cabinet server cable connection and related device. BACKGROUND

[0002] In the whole cabinet server, in order to avoid blind insertion of cable, a cable backboard is usually used for networking between computing nodes and switching nodes. The whole cabinet server includes at least one server node and a cable backboard, and the cable backboard includes a backboard main body, a cable group, and at least one connector unit. The backboard main body is used for fixing the at least one connector unit. The cable group includes at least one cable. The connector units are connected by the at least one cable. Each connector unit is connected with one external chip in one-to-one correspondence. However, when the connector units in the cable backboard are connected with the connector units in the server node, the server node cannot identify the position (or referred to as slot position) of the connector unit connected in the cable backboard, because the cable backboard has no in-place signal. Therefore, how the server node accurately identifies the position of the connector unit connected in the cable backboard is a problem to be solved. SUMMARY

[0003] Embodiments of the present application provide a detection method for cabinet server cable connection and related device, which can enable the server node to accurately identify the position of the connector unit connected in the cable backboard and obtain an accurate node slot position number.

[0004] In a first aspect, embodiments of the present application provide a detection method for cabinet server cable connection. The cabinet server includes at least one server node and a cable backboard. The cable backboard includes a connector unit for connecting with each server node. Each connector unit is located in each slot position of the server cabinet. The method includes:

[0005] The server node acquires identity information of the connector unit connected in the cable backboard. The server node is any one of the at least one server node.

[0006] The server node determines a first slot position number of the server node in the server cabinet according to the identity information. The first slot position number is used to indicate the position of the connector unit connected in the cable backboard.

[0007] It can be seen that, by using the embodiments of the present application, the server node can acquire the identity information of the connector unit connected in the cable backboard, and thus the accurate slot position number of the server node in the server cabinet can be determined according to the identity information.

[0008] In an optional implementation, the server node acquires the identity information of the connector unit connected in the cable backboard, including:

[0009] The server node detects the code of the connector unit connected in the online cable backplane, and the code is used to indicate the on-off state of a preset number of pins in the connector unit.

[0010] The server node takes the code as the identity information of the connector unit connected in the online cable backplane.

[0011] It can be seen that in this embodiment, the server node can automatically obtain the code corresponding to the connector unit in the cable backplane by detecting the on-off state of the connector connected in the cable backplane, and take the code as the identity information of the connector unit connected in the cable backplane.

[0012] In an optional embodiment, the server node determines the first slot number of the server node in the server cabinet according to the identity information, including:

[0013] The server node queries the code table according to the identity information to determine the first slot number of the server node in the cabinet; the code table includes the correspondence between the on-off code of each connector in the cable backplane and the slot number of each connector.

[0014] It can be seen that in this embodiment, the server node can obtain the slot number corresponding to the code by querying the code table according to the code, so that the server node can accurately determine the slot number of itself in the server cabinet.

[0015] In an optional embodiment, the code table is preset before the server node detects the on-off code of the connector connected in the online cable backplane.

[0016] In an optional embodiment, the preset number of pins is determined based on the data amount of the slot number code, including:

[0017] If the slot number code is N bits, the preset number of pins is determined to be 2N.

[0018] In an optional embodiment, the server node obtains the identity information of the connector unit connected in the online cable backplane, including:

[0019] The server node obtains the information carrier of the target slot in the server cabinet, and the target slot in the server cabinet includes the connector unit connected in the online cable backplane of the server node, and the information carrier is used to indicate the identity information of the connector unit connected in the online cable backplane of the server node; the information carrier is preset outside each slot in the server cabinet.

[0020] The information carrier includes one or more of near field communication technology (NFC) tag, bar code or two-dimensional code.

[0021] In an optional implementation, the server node determines, according to the identity information, a first slot number of the server node in the server cabinet, comprising:

[0022] The server node identifies the information carrier and determines the first slot number of the server node in the server cabinet.

[0023] In an optional implementation, the method further comprises:

[0024] The server node sends the first slot number to the cabinet management board, and the cabinet management board is configured to determine, according to the first slot number and a second slot number of the server node in the server cabinet, whether to send alarm information, the alarm information being used to indicate that the first slot number and the second slot number are inconsistent, and the second slot number being determined by the cabinet management board by analyzing a Link Layer Discovery Protocol (LLDP) message of the switch.

[0025] In a second aspect, an embodiment of the present application provides a detection method for a cabinet server cable connection, the cabinet server comprising a cabinet management board, and the method comprising:

[0026] The cabinet management board receives a first slot number from a server node, the first slot number being determined by the server node according to identity information of a connector unit connected in a cable backplane, and the first slot number being used to indicate a position of the connector unit connected in the cable backplane by the server node;

[0027] The cabinet management board analyzes a Link Layer Discovery Protocol (LLDP) message of a switch, and determines a switch port identifier corresponding to the server node based on the analyzed LLDP message, wherein the switch is connected with the server node.

[0028] The cabinet management board queries a preset list according to the switch port identifier, obtains a slot number corresponding to the switch port identifier, and takes the slot number corresponding to the switch port as a second slot number corresponding to the server node, the slot number corresponding to the switch port being used to indicate a position of a connector unit connected in the cable backplane by the switch, and the preset list comprising a correspondence between each switch port identifier and each slot number.

[0029] The cabinet management board determines, according to the first slot number and the second slot number, whether to send alarm information, the alarm information being used to indicate that the first slot number and the second slot number are inconsistent.

[0030] It can be seen that in this embodiment, the cabinet management board can receive the first slot number from the server node, determine the second slot number corresponding to the server node, and compare the first slot number (or the actually obtained physical slot number information) with the second slot number to determine whether to send the alarm information. Therefore, the staff can determine whether it is necessary to troubleshoot the cable connection failure (for example, cable misplug) or LLDP message analysis failure according to whether the alarm information is received, and then eliminate the corresponding failure through relevant operations.

[0031] In an optional embodiment, the cabinet management board determines whether to send the alarm information according to the first slot number and the second slot number, including:

[0032] determining whether the first slot number is consistent with the second slot number;

[0033] if not consistent, determining to send the alarm information.

[0034] It can be seen that in this embodiment, the staff can perform relevant checks (for example, checking whether the cable is misplugged or checking whether the LLDP message exists analysis failure) after receiving the alarm information, so as to perform corresponding modification measures based on the check result.

[0035] In an optional embodiment, the reasons for the inconsistency between the first slot number and the second slot number include cable connection failure or LLDP message analysis failure.

[0036] In a third aspect, the embodiments of the present application provide a detection device for cabinet server cable connection. The cabinet server includes at least one server node and a cable backboard. The cable backboard includes a connector unit for connecting each server node, wherein each connector unit is located in each slot of the server cabinet. The device includes:

[0037] an obtaining unit configured to obtain identity information of the connector unit connected in the cable backboard, the server node being any one of the at least one server node;

[0038] a determining unit configured to determine a first slot number of the server node in the server cabinet according to the identity information, the first slot number being used to indicate the position of the connector unit connected in the cable backboard by the server node.

[0039] In this aspect, the optional embodiments and beneficial effects of the detection device for cabinet server cable connection can be referred to the related content in the first aspect described above, which will not be described in detail here.

[0040] In a fourth aspect, the embodiments of the present application provide a detection device for cabinet server cable connection. The cabinet server includes a cabinet management board. The device includes:

[0041] The communication unit is configured to receive a first slot number from a server node, the first slot number being determined by the server node according to identity information of a connector unit connected in a cable backplane, and the first slot number being used to indicate a position of the connector unit connected by the server node in the cable backplane.

[0042] The determination unit is configured to parse a link layer discovery protocol (LLDP) packet of a switch, and determine a switch port identifier corresponding to the server node based on the parsed LLDP packet, wherein the switch and the server node are connected.

[0043] The acquisition unit is configured to query a preset list according to the switch port identifier, obtain a slot number corresponding to the switch port identifier, and take the slot number corresponding to the switch port as a second slot number corresponding to the server node, wherein the slot number corresponding to the switch port is used to indicate a position of a connector connected by the switch in the cable backplane, and the preset list includes a correspondence between each switch port identifier and each slot number.

[0044] The determination unit is further configured to determine whether to send an alarm information according to the first slot number and the second slot number, wherein the alarm information is used to indicate that the first slot number and the second slot number are inconsistent.

[0045] In this aspect, the optional implementation and beneficial effects of the detection device for the cable server of the cabinet can be referred to the related content of the second aspect, which will not be described in detail here.

[0046] In a fifth aspect, the embodiments of the present application provide a server cabinet, characterized in that the server cabinet comprises a cable backplane and at least one slot, the cable backplane comprises at least one connector unit for connecting with at least one server node, wherein each pin of the at least one connector unit in the cable backplane is connected to a corresponding pin of a connector unit in the at least one server node.

[0047] Each connector unit in the at least one connector is located in each slot in the at least one slot.

[0048] The connector unit in each slot is marked with identity information, and the identity information is used to determine a first slot number in the server cabinet by a server node connected to the connector unit in the slot, wherein the first slot number is used to indicate a position of a connector unit connected by the server node in the cable backplane.

[0049] In an alternative embodiment, the identity information of the connector unit in each slot is marked based on the on-off state of a preset number of pins in the connector unit, the on-off state of the preset number of pins in the connector unit is designed according to a preset coding table, and the coding table includes the correspondence between the coding of each connector unit in the cable backplane and the slot number; the coding of each connector unit is used to indicate the on-off state of the preset number of pins in the connector unit.

[0050] In an alternative embodiment, each of the at least one server node includes a detection circuit, the detection circuit being used to detect the coding of the connector unit connected by the server node in the cable backplane;

[0051] The detection circuit includes a pull-up resistor and a pull-down resistor, a first end of the pull-up resistor being connected to a first pin of the connector unit in the server node, a second end of the pull-up resistor being connected to a power supply, a first end of the pull-down resistor being connected to a second pin of the connector unit in the server node, and a second end of the pull-down resistor being grounded;

[0052] The first pin and the second pin of the connector unit in the server node are connected between the pull-up resistor and the pull-down resistor, wherein the first pin and the second pin of the connector unit in the server node are respectively connected to the first pin and the second pin of the connector unit connected by the server node in the cable backplane;

[0053] The pull-down resistor is further connected to a processing unit of the server node, and the processing unit is used to determine the coding of the connector unit connected by the server node in the cable backplane according to the detected information; the detected information includes a first level and / or a second level, the first level being used to indicate that the first pin and the second pin of the connector unit connected by the server node in the cable backplane are in a connected state, and the second level being used to indicate that the first pin and the second pin of the connector unit connected by the server node in the cable backplane are in a disconnected state.

[0054] Here, the first level can be a high level, and the second level can be a low level.

[0055] In an alternative embodiment, the identity information of the connector unit in each slot is marked based on an information carrier, the information carrier being preset outside each slot in the server cabinet, the information carrier being used to indicate the identity information of the connector unit in each slot, and the information carrier including one or more of a near field communication (NFC) tag, a bar code, or a two-dimensional code.

[0056] In a sixth aspect, an apparatus is provided, which includes one or more processors, one or more memories; the one or more memories are coupled to the one or more processors, and are configured to store computer program codes, the computer program codes include computer instructions, when the one or more processors execute the computer instructions, the apparatus is caused to perform the method in the first aspect.

[0057] In a seventh aspect, an apparatus is provided, which includes one or more processors, one or more memories; the one or more memories are coupled to the one or more processors, and are configured to store computer program codes, the computer program codes include computer instructions, when the one or more processors execute the computer instructions, the apparatus is caused to perform the method in the second aspect.

[0058] In an eighth aspect, a computer readable storage medium is provided, which stores a computer program, the computer program includes program instructions, when the program instructions are executed by a server node, the method in the first aspect is implemented.

[0059] In a ninth aspect, a computer readable storage medium is provided, which stores a computer program, the computer program includes program instructions, when the program instructions are executed by a cabinet management board, the method in the second aspect is implemented.

[0060] In a tenth aspect, a computer program product is provided, when the computer program product is executed by a server node, the method in the first aspect or the second aspect is implemented. BRIEF DESCRIPTION OF DRAWINGS

[0061] Figure 1 FIG. 1 is a schematic diagram of a detection system for a cabinet server cable connection provided by an embodiment of the present application;

[0062] Figure 2 FIG. 2 is a flowchart of a detection method 100 for a cabinet server cable connection provided by an embodiment of the present application;

[0063] Figure 3 FIG. 3 is a flowchart of a detection method 101 for a cabinet server cable connection provided by an embodiment of the present application;

[0064] Figure 4 FIG. 4 is a detection diagram of using a pull-up resistor and a pull-down resistor in a detection circuit provided by an embodiment of the present application;

[0065] Figure 5 FIG. 5 is a flowchart of a detection method 102 for a cabinet server cable connection provided by an embodiment of the present application;

[0066] Figure 6a is a schematic diagram of an information carrier for setting a node slot in a server cabinet according to an embodiment of the present application;

[0067] Figure 6b is a schematic diagram of another information carrier for setting a node slot in a server cabinet according to an embodiment of the present application;

[0068] Figure 7 is a flowchart of a method 200 for detecting a cable connection of a cabinet server according to an embodiment of the present application;

[0069] Figure 8 is a structural diagram of a device for detecting a cable connection of a cabinet server according to an embodiment of the present application;

[0070] Figure 9 is a structural diagram of a device according to an embodiment of the present application. DETAILED DESCRIPTION

[0071] The server cabinet according to an embodiment of the present application is described below.

[0072] In an embodiment of the present application, the server cabinet comprises a cable backplane and at least one slot, the cable backplane comprises at least one connector unit for connecting with at least one server node, wherein each pin of the at least one connector unit in the cable backplane is connected to a corresponding pin of a connector unit in the at least one server node; each connector unit in the at least one connector is located in each slot in the at least one slot; the connector unit in each slot is marked with identity information, the identity information is used to determine a first slot number of the server node in the server cabinet, the first slot number is used to indicate the position of the connector unit connected by the server node in the cable backplane.

[0073] In an optional embodiment, the identity information of the connector unit in each slot is marked based on the on-off state of a preset number of pins in the connector unit, the on-off state of the preset number of pins in the connector unit is designed according to a preset coding table, the coding table comprises the corresponding relationship between the coding of each connector unit in the cable backplane and the slot number; the coding of each connector unit is used to indicate the on-off state of the preset number of pins in the connector unit.

[0074] In an optional embodiment, each server node in the at least one server node comprises a detection circuit, the detection circuit is used to detect the coding of the connector unit connected by the server node in the cable backplane.

[0075] The detection circuit comprises a pull-up resistor and a pull-down resistor, a first end of the pull-up resistor is connected to a first pin of the connector unit in the server node, a second end of the pull-up resistor is connected to a power supply, a first end of the pull-down resistor is connected to a second pin of the connector unit in the server node, and a second end of the pull-down resistor is grounded;

[0076] The first pin and the second pin of the connector unit in the server node are connected between the pull-up resistor and the pull-down resistor, wherein the first pin and the second pin of the connector unit in the server node are respectively connected to the first pin and the second pin of the connector unit connected in the cable backplane of the server node;

[0077] The pull-down resistor is further connected to a processing unit of the server node, and the processing unit is configured to determine the code of the connector unit connected in the cable backplane of the server node according to the detected information; the detected information comprises a first level and / or a second level, the first level is used to indicate that the first pin and the second pin of the connector unit connected in the cable backplane of the server node are in a connected state, and the second level is used to indicate that the first pin and the second pin of the connector unit connected in the cable backplane of the server node are in a disconnected state.

[0078] It should be noted that the above description of the detection circuit is based on one pull-up resistor, one pull-down resistor and the connection / disconnection of two pins of the connector unit, so that the connection / disconnection of the two pins can encode two slot numbers. Optionally, the number of pull-up resistors, the number of pull-down resistors and the number of pins of the connector unit in the detection circuit are not limited in the embodiments of the present application. For example, the detection circuit can further comprise two pull-up resistors, two pull-down resistors and four pins of the connector unit, wherein the connection relationship of the pull-up resistors, the pull-down resistors and the pins of the connector unit can be referred to the above description, and will not be described here again. In this case, the connection / disconnection of the four pins can encode four slot numbers.

[0079] In an optional embodiment, the identity information of the connector unit in each slot is based on a marker of an information carrier, the information carrier is preset outside each slot in the server cabinet, the information carrier is used to indicate the identity information of the connector unit in each slot, and the information carrier comprises one or more of a near field communication (NFC) tag, a bar code or a two-dimensional code.

[0080] Optionally, a schematic diagram of the server cabinet can be referred to Figure 1 in the server cabinet 101.

[0081] Please refer to Figure 1 , Figure 1 is a schematic diagram of a detection system for a server cabinet cable connection provided by the embodiments of the present application. As shown in Figure 1As shown, the system can include a server cabinet 101 and a server node 102. Illustratively, the server cabinet 101 is deployed with a cable backboard and three slots (i.e., slot N, slot N+1 and slot N+2), the cable backboard includes a first connector unit 1011, a second connector unit 1012 and a third connector unit 1013, and the first connector unit 1011, the second connector unit 1012 and the third connector unit 1013 are respectively located in the slot N, the slot N+1 and the slot N+2 in the server cabinet 101. The server node 102 includes a connector unit 1021.

[0082] In an implementation manner, the first connector unit 1011, the second connector unit 1012 and the third connector unit 1013 can be collectively referred to as a backboard end connector unit. The first connector unit 1011, the second connector unit 1012 and the third connector unit 1013 can be respectively connected with a server node. For example, Figure 1 In the implementation manner, the first connector unit 1011 in the cable backboard is connected with the server node 102. In the implementation manner, the first connector unit 1011 in the cable backboard is connected with the server node 102, including that each pin of the first connector unit 1011 in the cable backboard and each pin of the connector unit 1021 in the server node 102 are connected one by one.

[0083] Optionally, at least one connector can be included in the above-mentioned connector unit. That is, one connector unit can be composed of one or more connectors.

[0084] In the implementation manner, the server node 102 can first acquire identity information of the connector unit connected in the cable backboard. According to the identity information, a first slot number of the server node 102 in the server cabinet 101 is determined, and the first slot number is used to indicate the position of the server node 102 in the connector unit connected in the cable backboard. It can be seen that by acquiring the accurate identity information of the connector unit connected in the cable backboard, the server node can determine the accurate slot number in the server cabinet.

[0085] The detection method of the cabinet server cable connection provided by the embodiment of the application will be described below in combination with the accompanying drawings.

[0086] Please refer to Figure 2 , Figure 2 is a flowchart of a detection method 100 of a cabinet server cable connection provided by the embodiment of the application, wherein the cabinet server includes at least one server node and a cable backboard, the cable backboard includes a connector unit for connecting with each server node, and each connector unit is located in each slot of the server cabinet. As shown in Figure 2As shown, the cabinet server cable connection detection method 100 can include, but is not limited to, the following steps:

[0087] S201, the server node acquires identity information of the connector unit connected in the cable backplane.

[0088] The server node is any one of at least one server node included in the cabinet server.

[0089] S202, the server node determines a first slot number of the server node in the server cabinet according to the identity information, and the first slot number is used to indicate the position of the connector unit connected in the cable backplane.

[0090] In an optional embodiment, the server node acquiring the identity information of the connector unit connected in the cable backplane can include: the server node detecting a code of the connector unit connected in the cable backplane, and the code being used to indicate the on-off state of a preset number of pins in the connector unit; and taking the code as the identity information of the connector unit connected in the cable backplane.

[0091] In this embodiment, the server node determining the first slot number of the server node in the server cabinet according to the identity information can include: querying a code table according to the identity information to determine the first slot number of the server node in the cabinet; and the code table including a corresponding relationship between the code of each connector unit in the cable backplane and the slot number. Optionally, the code table is preset before the server node detects the on-off code of the connector connected in the cable backplane. Optionally, the server node can store the preset code table.

[0092] In another optional embodiment, the server node acquiring the identity information of the connector unit connected in the cable backplane can include: acquiring an information carrier of a target slot in the server cabinet, the target slot in the server cabinet including the connector unit connected in the cable backplane by the server node, and the information carrier being used to indicate the identity information of the connector unit connected in the cable backplane by the server node; the information carrier being preset outside each slot in the server cabinet; and the information carrier including one or more of a near field communication (NFC) tag, a bar code, or a two-dimensional code.

[0093] In the embodiment, the server node determines the first slot number of the server node in the server cabinet according to the identity information, which can include: identifying the information carrier to determine the first slot number in the server cabinet. Optionally, the server node identifies the information carrier to obtain information in the information carrier, and the information includes the corresponding slot number of the information carrier in the server cabinet, so that the server node can determine the corresponding slot number of the information carrier in the server cabinet as the first slot number of the server node in the server cabinet.

[0094] It can be seen that, by using the embodiment of the application, the server node can determine the accurate slot number of the server node in the server cabinet by obtaining the accurate identity information of the connector unit connected to the server node in the cable backboard.

[0095] Please refer to Figure 3 , Figure 3 is a flowchart of a cabinet server cable connection detection method 101 provided by the embodiment of the application. Compared with the method shown in Figure 2 , the method shown in Figure 3 specifically describes the case that the identity information of the connector unit connected to the server node in the cable backboard is the code of the connector unit. As Figure 3 shown, the cabinet server cable connection detection method 101 can include but is not limited to the following steps:

[0096] S301, the server node detects the code of the connector unit connected to the cable backboard, and the code is used to indicate the on-off state of a preset number of pins in the connector unit;

[0097] S302, the server node takes the code as the identity information of the connector unit connected to the cable backboard;

[0098] S303, the server node queries the code table according to the identity information to determine the first slot number of the server node in the server cabinet.

[0099] The first slot number is used to indicate the position of the connector unit connected to the cable backboard, and the code table includes the correspondence between the codes of the connector units in the cable backboard and the slot numbers.

[0100] In an optional embodiment, the code table is preset before the server node detects the on-off code of the connector connected to the cable backboard.

[0101] In an optional embodiment, before step S301, the staff can disconnect or connect the additional pins (PINs) in the connector unit on the end connector of the cable backboard according to the code table.

[0102] In an alternative embodiment, the preset number of pins is determined based on the amount of data coded by the slot number. For example, if the slot number is coded by N bits, then the preset number of pins is determined as 2N.

[0103] For example, if the slot number is coded by 2 bits, then 4 pins are used to code 4 slot numbers, as shown in Table 1 below. Table 1 is an encoding table provided by an embodiment of the present application, in which the identity number (ID) represents the slot number, PIN02 represents that the 0th pin and the 2nd pin are connected, PIN13 represents that the 1st pin and the 3rd pin are connected, and the disconnected or connected state represents the connection state of the pin pair.

[0104] Table 1 Encoding table

[0105] ID value 00 01 10 11 PIN 02 Off On Off On PIN 13 Off Off On On

[0106] As shown in Table 1, the slot number 00 represents that the PIN02 and PIN13 of the connector unit in the slot are disconnected, the slot number 01 represents that the PIN02 and PIN13 of the connector unit in the slot are connected, the slot number 10 represents that the PIN02 and PIN13 of the connector unit in the slot are disconnected, and the slot number 11 represents that the PIN02 and PIN13 of the connector unit in the slot are connected.

[0107] Alternatively, the user can also set the correspondence between the connection state of PIN01 and PIN23 and the slot number when presetting the encoding table.

[0108] In an alternative embodiment, the server node can use a detection circuit to detect the code of the connector connected in the cable backplane. Alternatively, the detection circuit can be implemented by using a pull-up resistor and a pull-down resistor, or by using a transistor, a Metal Oxide Semiconductor (MOS) tube, or even an Integrated Circuit (IC).

[0109] In an alternative embodiment, the step of determining the first slot number of the server node in the server cabinet according to the identity information by the server node can be performed by a processing unit of a mainboard in the server node. Optionally, the processing unit can be a Microcontroller Unit (MCU) or a Complex Programmable Logic Device (CPLD) or the like processing unit of the mainboard.

[0110] As shown in FIG. 8, for example, the pull-up resistor and the pull-down resistor are used in the detection circuit, i.e., in the up-down pull mode (e.g., the pull-up resistor is about 10 ohms (Ω) and the pull-down resistor is about 200 Ω), to detect the on-off state of the PIN in the connector unit at the cable backplane end. Figure 4 As shown in FIG. 9, the four pins (e.g., pins 0, 1, 2, and 3 in FIG. 9) in the connector unit in the cable backplane are respectively connected to the four pins (e.g., pins a, b, c, and d in FIG. 9) in the connector unit in the server node in a one-to-one correspondence, i.e., pin 0 is connected to pin a, pin 1 is connected to pin b, pin 2 is connected to pin c, and pin 3 is connected to pin d; R01 and R03 are pull-up resistors and are connected to the Collector Voltage (or the power supply VCC) of the detection circuit; R02 and R04 are pull-down resistors and are connected to the ground GND; the pull-down resistors R02 and R04 are also connected to the BMC or the MCU or the CPLD or the like processing unit in the server node, and the processing unit is configured to determine the code of the connector unit connected to the server node in the cable backplane according to the ID1-ID0 information, wherein the ID0 information is used to represent the result of the on-off detection of PIN02, and the ID1 information is used to represent the result of the on-off detection of PIN13. Figure 4 As shown in FIG. 10, assuming that the detection circuit in the server node obtains ID0 as low and ID1 as low by detecting the on-off state of PIN02 and PIN13, the processing unit will determine that the on-off state of PIN02 in the connector unit connected to the server node in the cable backplane is disconnected and the on-off state of PIN13 is disconnected according to ID0 as low and ID1 as low. Assuming that the code table is the code table shown in Table 1, the processing unit can query the code table shown in Table 1 according to the code of PIN02 and PIN13, so that the ID value corresponding to the code is 00, and thus the slot number of the server node in the server cabinet can be determined as 00. Figure 4 Figure 4 Figure 4

[0111] ​​​It can be seen that, by using the embodiment of the application, the server node can automatically acquire the pass / fail code corresponding to the connector unit in the cable backplane by detecting the pass / fail of the connector unit connected in the cable backplane, and can acquire the slot number corresponding to the pass / fail code by querying the code table, so that the server node can accurately determine the slot number of itself in the server cabinet.

[0112] Please refer to Figure 5 , Figure 5 is a flowchart of a detection method 102 of a cabinet server cable connection provided by the embodiment of the application. Different from the method shown in Figure 2 and Figure 3 , the method shown in Figure 5 specifically describes that the identity information of the connector unit connected by the server node in the cable backplane is the information carrier outside the target slot in the server cabinet. As Figure 5 shown, the detection method 102 of the cabinet server cable connection can include but is not limited to the following steps:

[0113] S501, the server node acquires the information carrier of the target slot in the server cabinet, and the information carrier is used to indicate the identity information of the connector unit connected by the server node in the cable backplane;

[0114] Among the target slot in the server cabinet, the connector unit connected by the server node in the cable backplane is included; the information carrier is preset outside the target slot in the server cabinet.

[0115] Optionally, the information carrier includes an NFC tag, a bar code, a two-dimensional code, etc.

[0116] It can be understood that the server cabinet includes at least one slot, and one information carrier is respectively preset outside each slot.

[0117] S502, the server node identifies the information carrier to determine the first slot number of the server node in the server cabinet.

[0118] Optionally, when the information carrier is an NFC tag, an NFC reader can be placed in the server node, so that the server node can acquire the information in the NFC tag through the NFC reader.

[0119] Exemplarily, please refer to Figure 6a , Figure 6a is a schematic diagram of an information carrier for setting a node slot in a server cabinet provided by the embodiment of the application. As Figure 6aAs shown in the figure, the information carrier of the node slot is on the right side of the whole server cabinet; the information carrier is an NFC tag; and the server node end is provided with an NFC reader. The server node can obtain the NFC tag through the NFC reader, identify the NFC tag, and obtain information in the NFC tag. The information includes the slot number corresponding to the NFC tag in the whole server cabinet. Thus, the server node can determine that the slot number corresponding to the NFC tag in the server cabinet is the first slot number of the server node in the server cabinet.

[0120] Optionally, when the information carrier is a bar code or a two-dimensional code, a micro code scanner can be arranged in the server node, so that the server node obtains information in the bar code or the two-dimensional code through the micro code scanner.

[0121] For example, refer to Figure 6b , Figure 6b Another schematic diagram of the information carrier of the node slot provided in the server cabinet is provided in the embodiments of the present application. As shown in the figure, Figure 6b The information carrier of the node slot is on the right side of the server cabinet; the information carrier is a bar code or a two-dimensional code; and the server node end is provided with a micro code scanner. The server node can scan the bar code or the two-dimensional code through the code scanner, obtain the bar code or the two-dimensional code, identify the bar code or the two-dimensional code, and obtain information in the bar code or the two-dimensional code. The information includes the slot number corresponding to the bar code or the two-dimensional code in the whole cabinet. Thus, the server node can determine that the slot number corresponding to the bar code or the two-dimensional code in the server cabinet is the first slot number of the server node in the server cabinet. Optionally, the bar code or the two-dimensional code can be pre-stuck on a position with a certain degree of recess in the cabinet. In this way, on the one hand, enough scanning distance can be left to enable the micro code scanner in the server node to scan the bar code or the two-dimensional code; on the other hand, the bar code or the two-dimensional code can be prevented from being damaged due to human or environmental reasons.

[0122] As can be seen, in the embodiments of the present application, the server node can obtain the information carrier of the node slot, identify the information carrier, and thus determine the first slot number of the server node in the server cabinet.

[0123] Optionally, the methods shown in the above Figure 2 , Figure 3 and Figure 5 can be applied to the whole cabinet server using a cable backplane, so that the server node can accurately determine the position of the connector unit connected by the server node in the cable backplane, and thus obtain the accurate node slot number of the server node in the server cabinet.

[0124] For example, refer to Figure 7 , Figure 7is a flowchart of a method for detecting a server cabinet cable connection 200 provided by an embodiment of the present application. Compared with the method for detecting a server cabinet cable connection shown in Figure 2 or Figure 3 or Figure 5 the method shown in Figure 7 the method shown in Figure 7 the method for detecting a server cabinet cable connection 200 can include but is not limited to the following steps:

[0125] S701, the server node sends a first slot number to the cabinet management board, and correspondingly, the cabinet management board receives the first slot number from the server node.

[0126] The cabinet management board is configured to determine whether to send an alarm information according to the first slot number and a second slot number of the server node in the server cabinet, and the alarm information is used to indicate that the first slot number and the second slot number are inconsistent, and the second slot number is determined by the cabinet management board by analyzing a link layer discovery protocol (LLDP) message of a switch.

[0127] The first slot number is determined by the server node according to identity information of a connector unit connected in a cable backplane, and the first slot number is used to indicate a position of the connector unit connected in the cable backplane.

[0128] Optionally, before step S701, the server node can also determine the first slot number. Optionally, the server node can determine the first slot number by the method shown in Figure 3 or Figure 4 Optionally, the first slot number can also be called an accurate slot number.

[0129] S702, the cabinet management board analyzes a link layer discovery protocol (LLDP) message of a switch, and determines a switch port identifier corresponding to the server node based on the analyzed LLDP message, wherein the switch and the server node are connected.

[0130] S703, the cabinet management board queries a preset list according to the switch port identifier, obtains a slot number corresponding to the switch port identifier, and takes the slot number corresponding to the switch port as a second slot number of the server node in the server cabinet.

[0131] The slot number corresponding to the switch port identifier is used to indicate a position of a connector connected in a cable backplane, and the preset list includes a corresponding relationship between each switch port identifier and each slot number.

[0132] Optionally, the second slot number can also be referred to as an analyzed slot number.

[0133] Optionally, in a specific implementation, steps S702 and S703 can be performed first, and then step S701 is performed, which is not limited here.

[0134] S704, the cabinet management board determines whether to send an alarm information according to the first slot number and the second slot number, the alarm information being used to indicate that the first slot number and the second slot number are inconsistent.

[0135] In an optional embodiment, the cabinet management board determining whether to send an alarm information according to the first slot number and the second slot number can include: determining whether the first slot number and the second slot number are consistent, if consistent, not doing any processing; and if inconsistent, determining to send the alarm information.

[0136] For example, assuming that the cabinet management board determines that the first slot number corresponding to the server node is 00 and the second slot number is 01, it can be determined that the first slot number and the second slot number are inconsistent, at this time, the cabinet management board can send the alarm information. In this way, the staff can perform relevant checks (such as checking whether the cable is inserted incorrectly, or checking whether the LLDP packet exists an analysis failure) after receiving the alarm information, so as to perform corresponding modification measures based on the check result.

[0137] In an optional embodiment, the server node can not perform step S701. In this embodiment, the cabinet management board can send the second slot number corresponding to the server node determined by the cabinet management board to the server node, so that the server node can determine whether to send an alarm information according to the first slot number and the second slot number.

[0138] It can be seen that in the embodiment of the application, the cabinet management board can determine the second slot number (or referred to as the analyzed slot number) of the server node in the server cabinet, and receive the first slot number (i.e. accurate slot information) from the server node, and determine whether to send an alarm information according to the first slot number and the second slot number, so that the staff can determine whether it is necessary to troubleshoot the cable connection failure (such as cable misinsertion) or LLDP packet analysis failure according to whether the alarm information is received, and eliminate the corresponding failure through relevant operations after receiving the alarm information.

[0139] Please refer to Figure 8 , Figure 8 is a structural schematic diagram of a detection device for cabinet server cable connection provided by the embodiment of the application. The cabinet server includes at least one server node and a cable backboard, and the cable backboard includes a connector unit for connecting each server node, wherein each connector unit is located in each slot of the server cabinet. Figure 8As shown, the apparatus can include an acquisition unit 801, a determination unit 802, and a communication unit 803.

[0140] In an optional implementation, the cabinet server cable connection detection apparatus can be used to perform the operation of the server node in the cabinet server cable connection detection method described above, for example:

[0141] The acquisition unit 801 is configured to acquire identity information of the connector unit connected in the cable backplane.

[0142] The determination unit 802 is configured to determine, according to the identity information, a first slot number of the server node in the server cabinet, the first slot number being used to indicate a position of the connector unit connected in the cable backplane.

[0143] In this implementation, when the acquisition unit 801 is used to acquire the identity information of the connector unit connected in the cable backplane, the acquisition unit 801 is specifically configured to:

[0144] Detect a code of the connector unit connected in the cable backplane, the code being used to indicate an on-off state of a preset number of pins in the connector unit.

[0145] Use the code as the identity information of the connector unit connected in the cable backplane.

[0146] In this implementation, when the determination unit 802 is used to determine, according to the identity information, the first slot number of the server node in the server cabinet, the determination unit 802 is specifically configured to:

[0147] Query a code table according to the identity information to determine the first slot number of the server node in the server cabinet; the code table includes a correspondence between codes of the connector units in the cable backplane and slot numbers.

[0148] In this implementation, the preset number of pins is determined based on a data amount of the slot number code, and the determination of the preset number of pins based on the data amount of the slot number code includes:

[0149] If the slot number code is N bits, the preset number of pins is determined as 2N.

[0150] In this implementation, when the acquisition unit 801 is used to acquire the identity information of the connector unit connected in the cable backplane, the acquisition unit 801 is specifically configured to:

[0151] Acquire an information carrier of a target slot in the server cabinet, the target slot in the server cabinet including the connector unit connected in the cable backplane by the server node, the information carrier being used to indicate the identity information of the connector unit connected in the cable backplane by the server node; the information carrier being preset outside the target slot in the server cabinet.

[0152] The information carrier comprises one or more of a near field communication (NFC) tag, a bar code, or a two-dimensional code.

[0153] In this embodiment, the determining unit 802, when determining the first slot number of the server node in the server cabinet according to the identity information, is specifically configured to:

[0154] The information carrier is identified to determine the first slot number of the server node in the server cabinet.

[0155] In this embodiment, the communication unit 803 is configured to:

[0156] The first slot number is sent to the cabinet management board, and the cabinet management board is configured to determine whether to send an alarm information according to the first slot number and a second slot number of the server node in the server cabinet, the alarm information being used to indicate that the first slot number and the second slot number are inconsistent, and the second slot number being determined by the cabinet management board by analyzing a link layer discovery protocol (LLDP) message of the switch.

[0157] In another optional embodiment, the cabinet server cable connection detection device can be configured to perform the operations of the cabinet management board in the cabinet server cable connection detection method shown in the above Figure 7 For example, the communication unit 803 is configured to receive the first slot number from the server node, the first slot number being determined by the server node according to the identity information of the connector unit connected in the cable backboard, and the first slot number being used to indicate the position of the connector unit connected in the cable backboard by the server node.

[0158] The communication unit 803 is configured to receive the first slot number from the server node, the first slot number being determined by the server node according to the identity information of the connector unit connected in the cable backboard, and the first slot number being used to indicate the position of the connector unit connected in the cable backboard by the server node.

[0159] The determining unit 802 is configured to analyze a link layer discovery protocol (LLDP) message of the switch, and determine a switch port identifier corresponding to the server node based on the LLDP message, wherein the switch and the server node are connected.

[0160] The obtaining unit 801 is further configured to query a preset list according to the switch port identifier, obtain a slot number corresponding to the switch port identifier, and take the slot number corresponding to the switch port as a second slot number of the server node in the server cabinet, the slot number corresponding to the switch port identifier being used to indicate the position of the connector unit connected in the cable backboard by the switch, and the preset list comprising a corresponding relationship between each switch port identifier and each slot number.

[0161] The determining unit 802 is configured to determine whether to send an alarm information according to the first slot number and the second slot number, the alarm information being used to indicate that the first slot number and the second slot number are inconsistent.

[0162] In this embodiment, the determining unit 802 is specifically configured to:

[0163] determine whether the first slot number and the second slot number are consistent;

[0164] if not, determine to send the alarm information.

[0165] In this embodiment, the reasons for the inconsistency between the first slot number and the second slot number include cable connection failure or LLDP packet analysis failure.

[0166] It can be understood that the specific implementation of each unit in the cabinet server cable connection detection device provided by the embodiments of the present application and the beneficial effects that can be achieved can refer to the description of the foregoing related cabinet server cable connection detection method embodiments, which will not be described here.

[0167] Please refer to Figure 9 , Figure 9 is a structural schematic diagram of a device provided by the embodiments of the present application. It includes a processor 901, a memory 902, and a transceiver 903.

[0168] The processor 901, the memory 902, and the transceiver 903 can be connected through a bus. The bus can be divided into an address bus, a data bus, and a control bus. For the convenience of representation, Figure 9 only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.

[0169] The transceiver 903 is configured to receive and send data.

[0170] The memory 902 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a compact disc read-only memory (CD-ROM). The memory 902 is configured to store executed computer programs or instructions, and transmitted data.

[0171] The processor 901 can be one or more central processing units (CPUs). In the case of a CPU, the CPU can be a single-core CPU or a multi-core CPU.

[0172] In an alternative embodiment, the processor 901 can be configured to invoke the computer program or instructions stored in the memory 902 to perform the above-mentioned Figure 3 The server node in the detection method of the cabinet server cable connection shown above performs operations such as:

[0173] Obtain the identity information of the connector unit connected in the cable backplane;

[0174] According to the identity information, determine the first slot number of the server node in the server cabinet, the first slot number being used to indicate the position of the connector unit connected by the server node in the cable backplane.

[0175] In this embodiment, when the processor 901 performs the operation of obtaining the identity information of the connector unit connected in the cable backplane, it specifically performs:

[0176] Detect the code of the connector unit connected in the cable backplane, the code being used to indicate the on-off state of a preset number of pins in the connector unit;

[0177] The code is used as the identity information of the connector unit connected in the cable backplane.

[0178] In this embodiment, when the processor 901 performs the operation of determining the first slot number of the server node in the server cabinet according to the identity information, it specifically performs:

[0179] According to the identity information, query the code table to determine the first slot number of the server node in the server cabinet; the code table includes the correspondence between the code of each connector unit in the cable backplane and the slot number.

[0180] In this embodiment, the preset number of pins is determined based on the data amount of the slot number code, and the preset number of pins is determined based on the data amount of the slot number code, including:

[0181] If the slot number code is N bits, the preset number of pins is determined to be 2N.

[0182] In this embodiment, when the processor 901 performs the operation of obtaining the identity information of the connector unit connected in the cable backplane, it specifically performs:

[0183] Obtain the information carrier of the target slot in the server cabinet, the target slot in the server cabinet including the connector unit connected by the server node in the cable backplane, the information carrier being used to indicate the identity information of the connector unit connected by the server node in the cable backplane; the information carrier is preset outside the target slot in the server cabinet;

[0184] The information carrier includes one or more of near field communication technology (NFC) tags, barcodes, or two-dimensional codes.

[0185] In this embodiment, the processor 901, when determining the first slot number of the server node in the server cabinet according to the identity information, specifically performs:

[0186] identifying the information carrier to determine the first slot number of the server node in the server cabinet.

[0187] In this embodiment, the processor 901 further performs:

[0188] sending the first slot number to the cabinet management board, the cabinet management board being configured to determine whether to send an alarm information according to the first slot number and a second slot number of the server node in the server cabinet, the alarm information being configured to indicate that the first slot number and the second slot number are inconsistent, and the second slot number being determined by the cabinet management board by analyzing a Link Layer Discovery Protocol (LLDP) message of the switch.

[0189] In another optional embodiment, the processor 901 can be configured to call a computer program or instructions stored in the memory 902 to perform the above Figure 7 The operations of the cabinet management board in the cabinet server cable connection detection method shown in the figure, for example:

[0190] receiving the first slot number from the server node, the first slot number being determined by the server node according to identity information of the connector unit connected in the cable backboard, and the first slot number being configured to indicate the position of the connector unit connected in the cable backboard by the server node;

[0191] analyzing a Link Layer Discovery Protocol (LLDP) message of the switch, and determining a switch port identifier corresponding to the server node based on the LLDP message, the switch being connected with the server node;

[0192] querying a preset list according to the switch port identifier to obtain a slot number corresponding to the switch port identifier, and taking the slot number corresponding to the switch port as a second slot number of the server node in the server cabinet, the slot number corresponding to the switch port identifier being configured to indicate the position of the connector unit connected in the cable backboard by the switch, and the preset list including a correspondence between each switch port identifier and each slot number;

[0193] determining whether to send an alarm information according to the first slot number and the second slot number, the alarm information being configured to indicate that the first slot number and the second slot number are inconsistent.

[0194] In this embodiment, the processor 901, when determining whether to send an alarm information according to the first slot number and the second slot number, specifically performs:

[0195] determining whether the first slot number and the second slot number are consistent;

[0196] If not, it is determined to send the alarm information.

[0197] In this embodiment, the reason that the first slot number and the second slot number are inconsistent includes cable connection failure or LLDP message analysis failure.

[0198] It can be understood that the specific implementation of the processor 901 and the beneficial effects that can be achieved can refer to the description of the foregoing cabinet server cable connection detection method embodiments, which will not be described here.

[0199] Those skilled in the art can also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application can be implemented by electronic hardware, computer software, or a combination of the two. Whether the function is implemented by hardware or software depends on the specific application and the design requirements of the whole system. Those skilled in the art can use various methods to implement the function for each specific application, but such implementation should not be understood as beyond the scope of protection of the embodiments of the present application.

[0200] The present application also provides a computer readable storage medium having a computer program stored thereon, the computer program comprising program instructions which, when executed by a computer, implement the functions of any of the above method embodiments.

[0201] The above computer readable storage medium includes but is not limited to flash memory, hard disk, solid state disk.

[0202] The present application also provides a computer program product which, when executed by a computer, implements the functions of any of the above method embodiments.

[0203] The solutions described in this application can be implemented in various ways. For example, these techniques can be implemented in hardware, software, or a combination of hardware and software. For a hardware implementation, the processing units used to perform these techniques at a relevant device can be implemented within one or more general purpose processors, digital signal processors (DSPs), digital signal processing devices, application specific integrated circuits (ASICs), programmable logic devices, field programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination thereof. The general purpose processor can be a microprocessor, but in the alternative, the general purpose processor can be any conventional processor, controller, microcontroller, or state machine. A processor can also be implemented as a combination of computing devices, such as a combination of a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other such configuration.

[0204] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The devices or computing devices involved in the embodiments of the present application can be general purpose computers, special purpose computers, computer networks, or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium.

[0205] In this application, the use of singular terms is intended to include the "one or more" unless otherwise specifically stated. In this application, "at least one" is intended to mean "one or more" and "more than one" is intended to mean "two or more" unless otherwise specifically stated.

[0206] In addition, the term "and / or" in this application is only used to describe the associated relationship of associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone, where A can be singular or plural, and B can be singular or plural.

[0207] Those skilled in the art can understand that, for the convenience and brevity of description, the specific working processes of the system, device and unit described above can refer to the corresponding processes in the foregoing method embodiments, which will not be described herein again.

[0208] The same or similar parts among various embodiments in the present application can be referred to each other. In the various embodiments in the present application, and the various implementation manners / implementation methods / realization methods in each embodiment, if there is no special description and logical conflict, the terms and / or descriptions among different embodiments, and among the various implementation manners / implementation methods / realization methods in each embodiment are consistent and can be referred to each other, and the technical features in different embodiments, and in the various implementation manners / implementation methods / realization methods in each embodiment can be combined to form new embodiments, implementation manners, implementation methods or realization methods according to the inherent logical relationship. The above implementation manners of the present application do not constitute a limitation on the protection scope of the present application.

Claims

1. A method for detecting the connection of server rack cables, characterized in that, The rack server comprises at least one server node, a rack management board and a cable backplane, the cable backplane comprises a connector unit for connecting with each server node, wherein each connector unit is located in each slot of the server rack; the method comprises: The server node acquires identity information of the connector unit connected in the cable backplane, the server node being any one of the at least one server node; The server node determines a first slot number of the server node in the server rack according to the identity information, the first slot number being used to indicate the position of the connector unit connected in the cable backplane by the server node; The server node receives a second slot number determined by the rack management board through analyzing a link layer discovery protocol (LLDP) message of the switch, and determines whether to send alarm information according to the first slot number and the second slot number, the alarm information being used to indicate that the first slot number and the second slot number are inconsistent.

2. The method of claim 1, wherein, The server node acquires identity information of the connector unit connected in the cable backplane, comprising: The server node detects a code of the connector unit connected in the cable backplane, the code being used to indicate the on-off state of a preset number of pins in the connector unit; The server node takes the code as the identity information of the connector unit connected in the cable backplane.

3. The method of claim 2, wherein, The server node determines a first slot number of the server node in the server rack according to the identity information, comprising: The server node queries a code table according to the identity information to determine the first slot number of the server node in the server rack; the code table comprises a corresponding relationship between the code of each connector unit in the cable backplane and the slot number.

4. The method of claim 2, wherein, The preset number of pins is determined based on the data amount of the slot number code, and the preset number of pins is determined based on the data amount of the slot number code, comprising: If the slot number code is N bits, the preset number of pins is determined as 2N.

5. The method of claim 1, wherein, The server node acquires identity information of the connector unit connected in the cable backplane, comprising: The server node acquires an information carrier of a target slot in the server rack, the target slot in the server rack comprising the connector unit connected in the cable backplane by the server node, the information carrier being used to indicate the identity information of the connector unit connected in the cable backplane by the server node; the information carrier is preset outside the target slot in the server rack; The information carrier comprises one or more of a near field communication (NFC) tag, a bar code or a two-dimensional code.

6. The method of claim 5, wherein, The server node determines a first slot number of the server node in the server rack according to the identity information, comprising: The server node identifies the information carrier to determine the first slot number of the server node in the server rack.

7. The method according to any one of claims 1 to 6, wherein, The method further comprises: The server node sends the first slot number to a cabinet management board, and the cabinet management board determines whether to send alarm information according to the first slot number and a second slot number of the server node in the server cabinet, the alarm information being used to indicate that the first slot number and the second slot number are inconsistent, and the second slot number being determined by the cabinet management board by analyzing a link layer discovery protocol (LLDP) message of a switch.

8. A method for detecting the connection of a rack server cable, characterized in that, The cabinet server comprises a cabinet management board, and the method comprises: The cabinet management board receives a first slot number from a server node, the first slot number being determined by the server node according to identity information of a connector unit connected in a cable backboard, and the first slot number being used to indicate a position of the connector unit connected in the cable backboard by the server node; The cabinet management board analyzes a link layer discovery protocol (LLDP) message of a switch, and determines a switch port identifier corresponding to the server node based on the analyzed LLDP message, wherein the switch and the server node are connected; The cabinet management board queries a preset list according to the switch port identifier, obtains a slot number corresponding to the switch port identifier, and takes the slot number corresponding to the switch port as a second slot number of the server node in a server cabinet, the slot number corresponding to the switch port being used to indicate a position of a connector unit connected in the cable backboard by the switch, and the preset list comprising a correspondence between each switch port identifier and each slot number; The cabinet management board determines whether to send alarm information according to the first slot number and the second slot number, the alarm information being used to indicate that the first slot number and the second slot number are inconsistent.

9. A server cabinet characterized by The server cabinet comprises a cable backboard and at least one slot, the cable backboard comprising at least one connector unit for connecting with at least one server node, wherein each pin of at least one connector unit in the cable backboard is connected with a corresponding pin of a connector unit in at least one server node; Each connector unit in the at least one connector is located in each slot in the at least one slot; The connector unit in each slot is marked with identity information, the identity information being used by a server node connected with the connector unit in the slot to determine a first slot number in the server cabinet, and the first slot number being used to indicate a position of a connector unit connected in the cable backboard by the server node.

10. The server cabinet of claim 9, wherein, Identity information of the connector unit in each slot is marked based on on-off states of a preset number of pins in the connector unit, the on-off states of the preset number of pins in the connector unit being designed according to a preset coding table, and the coding table comprising a correspondence between a coding of each connector unit in the cable backboard and a slot number; The coding of each connector unit is used to indicate the on-off states of the preset number of pins in the connector unit.

11. The server cabinet of claim 10, wherein, Each of the at least one server node comprises a detection circuit for detecting the code of the connector unit connected in the cable backplane of the server node; The detection circuit comprises a pull-up resistor and a pull-down resistor, a first end of the pull-up resistor is connected to a first pin of the connector unit in the server node, a second end of the pull-up resistor is connected to a power supply, a first end of the pull-down resistor is connected to a second pin of the connector unit in the server node, and a second end of the pull-down resistor is grounded; The first pin and the second pin of the connector unit in the server node are connected between the pull-up resistor and the pull-down resistor, wherein the first pin and the second pin of the connector unit in the server node are respectively connected to the first pin and the second pin of the connector unit connected in the cable backplane of the server node; The pull-down resistor is also connected to a processing unit of the server node, and the processing unit is configured to determine the code of the connector unit connected in the cable backplane of the server node according to the detected information, wherein the detected information comprises a first level and / or a second level, the first level is used to indicate that the first pin and the second pin of the connector unit connected in the cable backplane of the server node are in a connected state, and the second level is used to indicate that the first pin and the second pin of the connector unit connected in the cable backplane of the server node are in a disconnected state.

12. The server cabinet of claim 9, wherein, The identity information of the connector unit in each slot is marked based on an information carrier, the information carrier is preset outside each slot in the server cabinet, the information carrier is used to indicate the identity information of the connector unit in each slot, and the information carrier comprises one or more of a near field communication (NFC) tag, a bar code, or a two-dimensional code.

Citation Information

Patent Citations

  • Port mapping method, device and equipment

    CN110855471A

  • Immersed liquid-cooled server cabinet and node slot plug-in mounting identification system thereof

    CN114138576A

  • Physical server location identification

    US9461715B1