Method, device, system and server for determining connectivity of connection line

The network address and data are obtained and verified in the connection line connectivity detection system through the smart network card and the powered erasable programmable read-only memory, and the connection line connectivity is automatically determined, which solves the problems of low efficiency and high error rate in the existing technology. Efficient connectivity detection is achieved.

CN118138499BActive Publication Date: 2024-08-23INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410532216.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-08-23
Estimated Expiration
2044-04-29

AI Technical Summary

Technical Problem

Determining the connectivity of connecting lines in the prior art is inefficient and difficult to automate, easily leading to manual inspection errors.

Method used

By using smart network cards and electrically erasable programmable read-only memory in the connection line connectivity detection system, network addresses, data and identification information are obtained and verified, and the connectivity of the connection line is automatically determined.

Benefits of technology

It achieves efficient determination of connection line connectivity without manual verification, improves detection efficiency, reduces error rates, and ensures the normal operation and stability of network equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118138499B
    Figure CN118138499B
Patent Text Reader

Abstract

The embodiment of the present application provides a method, device, system and server for determining the connectivity of a connection line, wherein the method includes: obtaining a first network address of a system chip included in a smart network card, and obtaining a second network address of each node; verifying the first network address and the second network address to obtain a first verification result; when the target node is connected to a powered erasable programmable read-only memory in a local area network switch, obtaining first data of a target quantity in the powered erasable programmable read-only memory, and obtaining second data of a target quantity in a firmware included in the local area network switch; verifying the first data and the second data to obtain a second verification result; determining the connectivity of the connection lines connecting multiple nodes to the local area network switch based on the first verification result, the second verification result and the obtained target identification information. Through the present application, the effect of improving the determination of the connectivity of the connection line is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the computer field, and specifically, to a method, device, system and server for determining the connectivity of a connection line, a storage medium, an electronic device, and a computer program product. Background Art

[0002] When the LAN switch Lan Switch1 is connected to multiple nodes, the LAN switch is connected to each node through a connecting line. During production, it is necessary to ensure that the connecting line is not connected in reverse (i.e., the line connected to node 0 and node 1 is connected in reverse) and that there are no problems with the cable. In the related art, workers need to check one by one after the whole machine is installed. This inspection method cannot ensure that the cables are not damaged. Secondly, since there are many cables after the whole machine is installed, and the cables have no difference in appearance, it is time-consuming and prone to errors.

[0003] It can be seen from this that the related art has the problem of low efficiency in determining the connectivity of the connection lines.

[0004] Currently, no effective solution has been proposed for the above-mentioned problems existing in the related technologies. Summary of the invention

[0005] The embodiments of the present application provide a method, device, system, server, storage medium, electronic device, and computer program product for determining the connectivity of a connection line, so as to at least solve the problem of low efficiency in determining the connectivity of a connection line existing in the related art.

[0006] According to an embodiment of the present application, a method for determining the connectivity of a connection line is provided, comprising: applying to a connection line connectivity detection system, the connection line connectivity detection system comprising a local area network switch, a plurality of nodes and a smart network card, each of the plurality of nodes being connected to the local area network switch via a connection line, different nodes being connected to the local area network switch via different connection lines, a target node included in the plurality of nodes allowing access to a powered erasable programmable read-only memory in the local area network switch via a target bus, the local area network switch being connected to the smart network card, the method comprising: obtaining a first network address of a system chip included in the smart network card, and obtaining Take the second network address of each of the nodes; verify the first network address and the second network address to obtain a first verification result; when the target node is connected to the electrically erasable programmable read-only memory in the local area network switch, obtain first data of the target quantity in the electrically erasable programmable read-only memory, and obtain second data of the target quantity in the firmware included in the local area network switch; verify the first data and the second data to obtain a second verification result; determine the connectivity of the connection lines connecting the multiple nodes to the local area network switch based on the first verification result, the second verification result and the obtained target identification information.

[0007] In an exemplary embodiment, the connectivity of the connecting lines connecting the multiple nodes to the local area network switch is determined based on the first verification result, the second verification result and the acquired target identification information, including: when the first verification result indicates that the network signal of the connecting line is normal, the second verification result indicates that the communication of the connecting line is normal, and the target identification information indicates that the connecting line is correctly connected, the connectivity is determined to be that the network signal in the connecting line is normal, the connecting line is correctly connected and the connectivity is normal; when the first verification result indicates that the network signal of the connecting line is normal, the second verification result indicates that the communication of the connecting line is normal, and the target identification information indicates that the connecting line is connected reversely, the connectivity is determined to be that the network signal in the connecting line is normal, the connecting line is connected reversely and the connectivity is normal; in the case including at least one of the following, the connectivity is determined to be other abnormalities: the first verification result indicates that the network signal of the connecting line is abnormal; the second verification result indicates that the communication of the connecting line is abnormal; the target identification information indicates an identification abnormality.

[0008] In an exemplary embodiment, the method further includes: when the target identification information is identification information of the target node, determining that the target identification information indicates that the connecting line is correctly connected; when the target identification information is identification information of other nodes other than the target node, determining that the target identification information indicates that the connecting line is connected reversely.

[0009] In an exemplary embodiment, the verification of the first network address and the second network address to obtain a first verification result includes: determining a first network segment where the first network address is located; determining a second network segment where the second network address is located; when the first network segment and the second network segment belong to the same network segment, determining that the first verification result is that the network signal of the connecting line is normal; when the first network segment and the second network segment belong to different network segments, determining that the first verification result is that the network signal of the connecting line is abnormal.

[0010] In an exemplary embodiment, before obtaining first data of a target quantity existing in the electrically erasable programmable read-only memory, the method further includes: when the electrically erasable programmable read-only memory is connected to the local area network switch, controlling the target port to output a first level to connect the electrically erasable programmable read-only memory to a baseboard management controller of the target node.

[0011] In an exemplary embodiment, after determining the connectivity of the connection lines connecting the plurality of nodes to the local area network switch based on the first verification result, the second verification result and the acquired target identification information, the method further includes: controlling the target port to output a second level to connect the electrically erasable programmable read-only memory to the local area network switch.

[0012] In an exemplary embodiment, obtaining first data of a target quantity existing in the electrically erasable programmable read-only memory includes: receiving a target request sent through a preset interface; and obtaining the first data when the target request is a verification request.

[0013] In an exemplary embodiment, before obtaining the first network address of the system chip included in the smart network card and obtaining the second network address of each of the nodes, the method further includes: setting the first network address for the system chip; and setting the second network address for each of the nodes.

[0014] In an exemplary embodiment, after determining the connectivity of the connecting lines connecting the multiple nodes to the local area network switch based on the first verification result, the second verification result and the acquired target identification information, the method further includes: outputting a first value when the connectivity is that the network signal in the connecting line is normal, the connecting line is correctly connected and the connectivity is normal; outputting a second value when the connectivity is that the network signal in the connecting line is normal, the connecting line is connected reversely and the connectivity is normal; and outputting a third value when the connectivity is other abnormalities.

[0015] According to another embodiment of the present application, a system for determining the connectivity of a connection line is provided, which is used to execute the method described in any of the above embodiments, including a local area network switch, including multiple first ports and a second port; multiple nodes, each of the multiple nodes includes a third port, and the third port is connected to the first port through a connection line, so that each of the multiple nodes is connected to the local area network switch through one of the first ports, and the first port connected to each node is different, the multiple nodes include a target node, and the connection line connecting the third port of the target node and the first port of the local area network switch is a target bus, and the target node allows access to the electrically erasable programmable read-only memory in the local area network switch through the target bus; a smart network card, including a fourth port, and the smart network card is connected to the second port through the fourth port, so that The smart network card is connected to the local area network switch; the target node is used to perform a target operation, and the target operation includes: obtaining a first network address of a system chip included in the smart network card, and obtaining a second network address of each of the nodes; verifying the first network address and the second network address to obtain a first verification result; when the target node is connected to the electrically erasable programmable read-only memory in the local area network switch, obtaining first data of a target quantity existing in the electrically erasable programmable read-only memory, and obtaining second data of the target quantity existing in the firmware included in the local area network switch; verifying the first data and the second data to obtain a second verification result; and determining the connectivity of the connection lines connecting the multiple nodes to the local area network switch based on the first verification result, the second verification result and the obtained target identification information.

[0016] In an exemplary embodiment, the target node further includes: a baseboard management controller, which is connected to the third port and is used to perform the target operation.

[0017] In an exemplary embodiment, the target node further includes an integrated chip, and the baseboard management controller is connected to the third port through the integrated chip.

[0018] In an exemplary embodiment, the system for determining the connectivity of the connection line also includes: a multiplexer, a first end of the multiplexer is connected to the electrically erasable programmable read-only memory, a second end of the multiplexer is connected to the local area network switch, and a third end of the multiplexer is connected to the baseboard management controller of the target node, and is used to connect the electrically erasable programmable read-only memory to the baseboard management controller when the multiplexer outputs a first level, and to connect the electrically erasable programmable read-only memory to the local area network switch when the multiplexer outputs a second level.

[0019] In an exemplary embodiment, the smart network card further includes: a fifth port, through which an external device accesses the smart network card.

[0020] In an exemplary embodiment, the smart network card further includes: a network interface for connecting to a target network, and after the network interface establishes a connection with the target network, external devices are allowed to access the smart network card.

[0021] In an exemplary embodiment, the system for determining the connectivity of the connection line further includes: a mainboard, which is connected to the target node and is used to send target identification information to the baseboard management controller when the baseboard management controller of the target node is started.

[0022] In an exemplary embodiment, the mainboard includes an editable logic device, the mainboard is connected to the target node through the editable logic device, and is used to send target identification information to the baseboard management controller when the baseboard management controller of the target node is started.

[0023] According to another embodiment of the present application, a server is provided, comprising the system for determining the connectivity of a connection line as described in any of the above embodiments.

[0024] According to another embodiment of the present application, a device for determining the connectivity of a connection line is also provided, which is applied to a connection line connectivity detection system. The connection line connectivity detection system includes a local area network switch, multiple nodes and a smart network card. Each of the multiple nodes is connected to the local area network switch via a connection line, and different nodes are connected to the local area network switch via different connection lines. The target node included in the multiple nodes allows access to the electrically erasable programmable read-only memory in the local area network switch through a target bus. The local area network switch is connected to the smart network card. The device includes: a first acquisition module, which is used to acquire a first network address of a system chip included in the smart network card, and to acquire a second network address of each of the nodes; a first A verification module, used to verify the first network address and the second network address to obtain a first verification result; a second acquisition module, used to obtain first data of a target quantity existing in the electrically erasable programmable read-only memory in the local area network switch when the target node is connected to the electrically erasable programmable read-only memory, and a second acquisition module, used to obtain second data of the target quantity existing in the firmware included in the local area network switch; a second verification module, used to verify the first data and the second data to obtain a second verification result; a determination module, used to determine the connectivity of the connection lines connecting the multiple nodes to the local area network switch based on the first verification result, the second verification result and the obtained target identification information.

[0025] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0026] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0027] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0028] Through the present application, a method for determining the connectivity of a connection line can be applied to a connection line connectivity detection system, wherein the connection line connectivity detection system includes a local area network switch, multiple nodes, and a smart network card, each of the multiple nodes is connected to the local area network switch through a connection line, different nodes are connected to the local area network switch by different connection lines, a target node included in the multiple nodes allows access to a powered erasable programmable read-only memory in the local area network switch through a target bus, and the local area network switch is connected to the smart network card. The method includes: obtaining a first network address of a system chip included in the smart network card, and obtaining a second network address of each node; verifying the first network address and the second network address to obtain a first verification result; when the target node is connected to the powered erasable programmable read-only memory in the local area network switch, obtaining first data of a target number existing in the powered erasable programmable read-only memory, and obtaining second data of a target number existing in a firmware included in the local area network switch; verifying the first data and the second data to obtain a second verification result; and determining the connectivity of the connection lines connecting the multiple nodes to the local area network switch based on the first verification result, the second verification result, and the obtained target identification information. The connectivity of the connection line can be verified by verifying the first network address of the system chip included in the smart network card and the second network address of each node, by verifying the first data of the target number in the electrically erasable programmable read-only memory and the second data of the target number in the firmware included in the local area network switch, and by verifying the acquired target identification information, without the need for manual verification. Therefore, the problem of low efficiency in determining the connectivity of the connection line existing in the related art can be solved, thereby achieving the effect of improving the effect of determining the connectivity of the connection line. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a hardware structure block diagram of a server device of a method for determining connectivity of a connection line according to an embodiment of the present application;

[0030] Figure 2 is a flow chart of a method for determining connectivity of a connection line according to an embodiment of the present application;

[0031] Figure 3 is a schematic diagram of the structure of a connection line connectivity detection system according to an embodiment of the present application;

[0032] Figure 4 is a flow chart of a method for determining connectivity of a connection line according to a specific embodiment of the present invention;

[0033] Figure 5 is a structural diagram of a system for determining connectivity of connection lines according to an embodiment of the present invention;

[0034] Figure 6It is a structural block diagram of a device for determining connectivity of a connection line according to an embodiment of the present application. DETAILED DESCRIPTION

[0035] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0037] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a method for determining the connectivity of a connection line according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0038] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for determining the connectivity of the connection line in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0039] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0040] In this embodiment, a method for determining connectivity of a connection line is provided, which is applied to a connection line connectivity detection system. The connection line connectivity detection system includes a local area network switch, multiple nodes, and a smart network card. Each of the multiple nodes is connected to the local area network switch via a connection line, and different nodes are connected to the local area network switch via different connection lines. A target node included in the multiple nodes allows access to a powered erasable programmable read-only memory in the local area network switch through a target bus. The local area network switch is connected to the smart network card. Figure 2 is a flow chart of a method for determining connectivity of a connection line according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:

[0041] Step S202, obtaining a first network address of a system chip included in the smart network card, and obtaining a second network address of each of the nodes;

[0042] Step S204, verifying the first network address and the second network address to obtain a first verification result;

[0043] Step S206, when the target node is connected to the electrically erasable programmable read-only memory in the local area network switch, obtaining first data of the target quantity in the electrically erasable programmable read-only memory, and obtaining second data of the target quantity in the firmware included in the local area network switch;

[0044] Step S208, verifying the first data and the second data to obtain a second verification result;

[0045] Step S210: determining the connectivity of the connection lines connecting the plurality of nodes to the local area network switch based on the first verification result, the second verification result and the acquired target identification information.

[0046] In the above embodiment, the connection line connectivity detection system can be a system applied in a server, which is used to detect the connectivity of the connection line. The connection line connectivity detection system may include a local area network switch Lan switch, an intelligent network card and multiple nodes, and the local area network switch Lan switch is respectively connected to the multiple nodes through the connection line. When a single intelligent network card manages multiple nodes, it is necessary to be able to access the network connection. Therefore, it is necessary to detect whether the network signal of the connection line is normal, whether the connection line can communicate normally, and whether the connection line is connected normally. In order to reduce hardware resources, among multiple nodes, a target node can be set to access the local area network switch Lan switch through a sideband cable (II2C signal). For example, the local area network switch lan switch can only access the BMC in node 0 through the sideband cable (II2C signal). This design is because if the firmware FW of the local area network switch lan switch needs to be upgraded, although multiple nodes share the local area network switch lan switch, as long as one node can align the firmware upgrade. Second, the LAN switch has only one set of SDA / SCL signals. If both nodes need to access it, an additional dual-master time-sharing multiplexing chip is required, which wastes resources. Therefore, setting a target node to access the LAN switch through the sideband cable (II2C signal) can not only realize the estimation and upgrade of the LAN switch, but also save resources.

[0047] In the above embodiment, when the multiple nodes are two nodes, the schematic diagram of the connection line connectivity detection system can be found in the attached Figure 3 ,like Figure 3As shown, the connection line connectivity detection system may include node 0 and node 1, wherein node 0 may be a target node. Node 0 is connected to the LAN switch via connection line 1, node 1 is connected to the LAN switch via connection line 2, and the smart network card is connected to the LAN switch. The electrically erasable programmable read-only memory EEPROM of the Lan Switch may be connected to the Lan Switch, and the firmware of the Lan Switch is stored in this EEPROM. When the power is first supplied, the LanSwitch loads the firmware from this area into the running memory ROM, and then the configuration takes effect and performs normal operation. When the EEPROM of the Lan Switch is connected to the Lan Switch, the EEPROM of the Lan Switch may also be switched to the baseboard management controller BMC in the node through the multiplexer mux. In this way, the firmware of the Lan Switch may also be upgraded through the BMC. When the EEPROM of the LanSwitch is connected to the BMC of the node, it may also be switched to the Lan Switch through the multiplexer mux.

[0048] In the above embodiment, see the attached Figure 3 Node 0 and node 1 are connected to port 2 and port 3 of Lan switch 1 respectively, and port 1 is connected to port 2 of the smart network card. The external network is connected to port 1 of the smart network card. The smart network card contains system chip SOC, ast2500 (BMC) chip and lan switch2. By designing the firmware of lan switch1 and lanswitch2, setting the VLAN ID for network isolation, and realizing the red link for external access to the BMC of the smart network card and the blue link for internal connection, the SOC / AST2500 (BMC) in the blue link and the AST2600 (BMC) in the two nodes can access each other. By setting port forwarding rules for the SOC / AST2500 (BMC) of the smart network card, access to the BMC in node 0 / 1 can be achieved.

[0049] In the above embodiment, the connection of the connecting line can be verified from two aspects: whether the network signal and the IIC signal are normal. The first network address of the system chip SOC of the smart network card and the second network address of each node can be verified to obtain the first verification result. The first verification result verifies whether the network signal in the connecting line is normal. It is also possible to read the first data of the target quantity stored in the electrically erasable programmable read-only memory EEPROM in the LAN switch, and obtain the second data of the target quantity stored in the firmware in the LAN switch, and compare and verify the first data and the second data to determine the second verification result. The connection and communication status of the connecting line are verified by the second verification result. Among them, the first data of the target quantity can be the first 10 data stored in the EEPROM, and the second data of the target quantity can be the first 10 data stored in the firmware. It should be noted that the target quantity of 10 is only an exemplary description, and the present invention is not limited to this. For example, it can also be 5, 8, 15, 20, etc. For example, the BMC of the target node can access the EEPROM of the Lan switch through the I2C command, read the first 10 bytes in the EEPROM, and compare them with the first 10 bytes in the LanSwitch firmware. If the read values ​​are consistent, the I2C communication is considered normal. If they are inconsistent, the I2C communication is considered abnormal.

[0050] In the above embodiment, the target identification information may be an identification obtained by the BMC in the target node. For example, when the BMC in the target node is started, the target identification information may be obtained from the programmable logic device CPLD chip on the mainboard to determine whether the current node is node 0 or node 1 according to the target identification information, and further determine whether the connection line is connected in reverse.

[0051] Through the present application, a method for determining the connectivity of a connection line can be applied to a connection line connectivity detection system, wherein the connection line connectivity detection system includes a local area network switch, multiple nodes, and a smart network card, each of the multiple nodes is connected to the local area network switch through a connection line, different nodes are connected to the local area network switch by different connection lines, a target node included in the multiple nodes allows access to a powered erasable programmable read-only memory in the local area network switch through a target bus, and the local area network switch is connected to the smart network card. The method includes: obtaining a first network address of a system chip included in the smart network card, and obtaining a second network address of each node; verifying the first network address and the second network address to obtain a first verification result; when the target node is connected to the powered erasable programmable read-only memory in the local area network switch, obtaining first data of a target number existing in the powered erasable programmable read-only memory, and obtaining second data of a target number existing in a firmware included in the local area network switch; verifying the first data and the second data to obtain a second verification result; and determining the connectivity of the connection lines connecting the multiple nodes to the local area network switch based on the first verification result, the second verification result, and the obtained target identification information. The connectivity of the connection line can be verified by verifying the first network address of the system chip included in the smart network card and the second network address of each node, by verifying the first data of the target number in the electrically erasable programmable read-only memory and the second data of the target number in the firmware included in the local area network switch, and by verifying the acquired target identification information, without the need for manual verification. Therefore, the problem of low efficiency in determining the connectivity of the connection line existing in the related art can be solved, thereby achieving the effect of improving the effect of determining the connectivity of the connection line.

[0052] The execution subject of the above steps may be a connection line connectivity detection system, etc., but is not limited thereto.

[0053] In an exemplary embodiment, the determining of the connectivity of the connection lines for connecting the plurality of nodes to the LAN switch based on the first verification result, the second verification result, and the acquired target identification information includes: when the first verification result indicates that the network signal of the connection line is normal, the second verification result indicates that the communication of the connection line is normal, and the target identification information indicates that the connection line is correctly connected, determining that the connectivity is that the network signal in the connection line is normal, the connection line is correctly connected, and the connectivity is normal; when the first verification result indicates that the network signal of the connection line is normal, the second verification result indicates that the communication of the connection line is normal, and the target identification information indicates that the connection line is reversely connected, determining that the connectivity is that the network signal in the connection line is normal, the connection line is reversely connected, and the connectivity is normal; in the case of at least one of the following, determining that the connectivity is other abnormalities: the first verification result indicates that the network signal of the connection line is abnormal; the second verification result indicates that the communication of the connection line is abnormal; the target identification information indicates an identification abnormality. In this embodiment, the connection line may have a normal network signal and an abnormal network information, a normal communication and an abnormal communication, and a normal connection and a reverse connection. In addition to the above situations, other situations can be determined as other abnormal conditions of the connecting line, whether the network information of the connecting line is normal can be determined through the first verification result, whether the communication of the connecting line is normal can be verified through the second verification result, and whether the connection of the connecting line is normal can be verified through the target identification information.

[0054] In the above embodiment, determining the connectivity between multiple nodes and the LAN switch connection line can help users to promptly discover and solve network connection problems and ensure the normal operation of network devices. This helps to improve the stability and reliability of the network, enhance the user's network experience, and reduce the impact of network failures on work and life. At the same time, determining connectivity through the first verification result, the second verification result, and the target identification information can also help users to more comprehensively understand the network topology and device connection status, and provide a useful reference for network planning and optimization.

[0055] In an exemplary embodiment, the method further includes: when the target identification information is the identification information of the target node, determining that the target identification information indicates that the connection line is correctly connected; when the target identification information is the identification information of other nodes other than the target node, determining that the target identification information indicates that the connection line is connected in reverse. In this embodiment, the BMC of the target node can obtain the target identification information from the CPLD chip on the mainboard. When the BMC receives the ipmitool command / Redfish request, it can first determine whether the current node is node 0 or node 1, and this information is provided by the CPLD chip on the mainboard. After the BMC is started, it will interact with the mainboard CPLD to obtain information, and the information obtained needs to include this information. Since this information is static information, in order to save access resources, it is only obtained once and stored in a variable. If the target identification information is the identification information of the target node, it can be determined that the connection line is correctly connected. If the target identification information is the identification information of other nodes, it can be determined that the connection line is connected in reverse.

[0056] In the above embodiment, it is possible to determine whether the connection line is connected in reverse according to the target identification information fed back by the GPIO chip on the mainboard, without having to manually determine whether the connection line is connected in reverse, thereby improving the efficiency of verification. In addition, if the connection line is connected in reverse, it may cause circuit damage or data error. Accurately determining whether the connection line is connected in reverse can help protect the security of the device and data.

[0057] In an exemplary embodiment, the verification of the first network address and the second network address to obtain a first verification result includes: determining a first network segment where the first network address is located; determining a second network segment where the second network address is located; when the first network segment and the second network segment belong to the same network segment, determining the first verification result to be that the connection line network signal is normal; when the first network segment and the second network segment belong to different network segments, determining the first verification result to be that the connection network signal is abnormal. In this embodiment, it can be determined whether the first network address and the second network address are in the same network segment. If they are in the same network segment, it can be determined that the first verification result is that the connection line network signal is normal. If they are in different network segments, it can be determined that the first verification result is that the connection network information is abnormal.

[0058] In the above embodiment, for the network signal connection verification in the connecting line, a static IP can be set for the soc in the smart network card. For example, IP: 192.167.1.1, mask: 255.255.255.0, gateway: 192.167.1.1. Set the IP for the BMC (AST2600) of node 0 under the OS of node 0: IP: 192.167.1.10, mask: 255.255.255.0, gateway: 192.167.1.1. Set the IP for the BMC (AST2600) of node 1 under the OS of node 1: IP: 192.167.1.11, mask: 255.255.255.0, gateway: 192.167.1.1. You can ping 192.167.1.10 in the SOC in the smart network card. If it can be pinged, it proves that the network signal in the connection line 1 of node 0 is normal; ping 192.167.1.11. If it can be pinged, it proves that the network signal in the connection line 2 of node 1 is normal. The pinging can include that the first network address and the second network address are in the same network segment.

[0059] In the above embodiment, whether the connection line is normal can be verified by determining whether the network address of the smart network card and the node are in the same network segment, which can improve the efficiency of verifying the connection network signal of the connection line. If the two are in different network segments, it may mean that the connection line is connected incorrectly or there is a network configuration problem. Therefore, this method can help eliminate connection line failures and ensure normal network connection. It plays a good auxiliary role in network troubleshooting.

[0060] In an exemplary embodiment, before obtaining the first data of the target quantity existing in the electrically erasable programmable read-only memory, the method further includes: when the electrically erasable programmable read-only memory is connected to the LAN switch, controlling the target port to output a first level to connect the electrically erasable programmable read-only memory to the baseboard management controller of the target node. In this embodiment, the target port can be a general purpose input and output port GPIO, and the EEPROM of the Lan switch can be switched to the BMC of the target node through a mux. The BMC of the target node can control a GPIO and switch it to the BMC when the GPIO is pulled low. Among them, the first level can be a low level.

[0061] In the above embodiment, the target port is controlled to output a first level to connect the electrically erasable programmable read-only memory to the baseboard management controller of the target node, thereby facilitating the BMC of the target node to obtain the first data of the target quantity in the EEPROM, and the communication status information of the connection line is verified based on the first data and the second data, thereby improving the efficiency of determining the connectivity of the connection line.

[0062] In an exemplary embodiment, after determining the connectivity of the connection lines connecting the plurality of nodes to the LAN switch based on the first verification result, the second verification result and the acquired target identification information, the method further includes: controlling the target port to output a second level to connect the electrically erasable programmable read-only memory to the LAN switch. In this embodiment, after verifying the connectivity of the connection line between the target node and the LAN switch, the EEPROM of the Lan switch can be switched to be connected to the Lan Switch through a mux so as not to affect the loading of the LanSwitch firmware next time.

[0063] In an exemplary embodiment, obtaining first data of a target quantity existing in the electrically erasable programmable read-only memory includes: receiving a target request sent through a preset interface; and obtaining the first data when the target request is a verification request. In this embodiment, the preset interface may be an intelligent platform management interface, and the target request may be an ipmitool command / Redfish request. An IPMI / Redfish interface may be provided to display that the IIC signal in the current connection line is normal and that connection lines 1 / 2 are not reversed. ipmitool raw 0x32 0x61, a return value of 00 indicates that the connection line is correctly connected and connectivity is normal, a return value of 01 may indicate that the connection line is reversed and connectivity is normal, and a return value of 02 may indicate other errors. Among them, the Redfish interface definition may be:

[0064] https: / / bmc_ip / redfish / v1 / Chassis / {ChssisID} / LanSwitchConnect GET

[0065] {

[0066] "LanSwitchConnect":1 / 0 / 2.

[0067] In an exemplary embodiment, before obtaining the first network address of the system chip included in the smart network card and obtaining the second network address of each of the nodes, the method further includes: setting the first network address for the system chip; setting the second network address for each of the nodes. In this embodiment, the first network address can be set for the system chip of the smart network card in advance, and the second network address can be set for each node. For example, a static IP can be set for the soc in the smart network card: 192.167.1.1, mask: 255.255.255.0, gateway: 192.167.1.1. Set the IP for the BMC (AST2600) of node 0 under the OS of node 0: IP: 192.167.1.10, mask: 255.255.255.0, gateway: 192.167.1.1. The specific instructions can be: Ipmitool lan set 1 ipsrc static; Ipmitool lan set 1ipaddr 192.167.1.10; Ipmitool lan set 1 netmask 255.255.255.0; Ipmitool lan set1 gateway 192.167.1.1. Set the IP for the BMC (AST2600) of node 1 under the OS of node 1: IP: 192.167.1.11, mask: 255.255.255.0, gateway: 192.167.1.1. The specific instructions can be: Ipmitool lanset 1 ipsrc static; Ipmitool lan set 1 ipaddr 192.167.1.11; Ipmitool lan set 1netmask 255.255.255.0; Ipmitool lan set 1 gatway 192.167.1.1.

[0068] In an exemplary embodiment, after determining the connectivity of the connection lines connecting the multiple nodes to the LAN switch based on the first verification result, the second verification result, and the acquired target identification information, the method further includes: outputting a first value when the connectivity is that the network signal in the connection line is normal, the connection line is correctly connected, and the connectivity is normal; outputting a second value when the connectivity is that the network signal in the connection line is normal, the connection line is reversed, and the connectivity is normal; outputting a third value when the connectivity is other abnormalities. In this embodiment, the first value may be 00, indicating that the connection line is correctly connected and the connectivity is normal, and ipmicommand / redfish returns 00. The second value may be 01, indicating that the connection line is reversed, the connectivity is normal, and the entire ipmicommand / redfish returns 01. The third value may be 02, and the entire ipmi command / redfish returns 02, indicating other errors. Only if the network signal connection verification in the connection line passes and the IIC signal connection verification in the connection line is normal, it means that the entire connection line verification passes, otherwise the production workers need to change the line or exchange the connection line for re-testing.

[0069] In the above embodiment, different connectivity can be represented by different values ​​to intuitively display the connectivity of the connection line.

[0070] The following describes a method for determining the connectivity of a connection line in conjunction with a specific implementation. In this embodiment, two nodes are used as an example for description:

[0071] Figure 4 is a flow chart of a method for determining connectivity of a connection line according to a specific embodiment of the present invention. Figure 4 As shown, the process includes:

[0072] Step S402, externally send IPMI Command (corresponding to the above target request) to BMC, or externally send Redfish request (corresponding to the above target request) to BMC. When BMC receives ipmitool command / Redfish request, it first determines whether it is currently node 0 or node 1. This information is provided by the CPLD chip on the motherboard. After BMC is started, it will interact with the motherboard CPLD to obtain information. The information obtained needs to include this information. Since this information is static information, in order to save access resources, it is only obtained once and stored in a variable.

[0073] Step S404, Command processing function.

[0074] Step S406, switch the EEPROM in the LAN switch to the BMC. Switch the EEPROM in the LAN switch to connect to the BMC through the mux. The BMC can control a GPIO and switch it to the BMC when the GPIO is pulled low.

[0075] Step S408, access EEPROM through IIC to read 10 bytes of data.

[0076] Step S410, compare with the first 10 bytes of firmware data to see if they are consistent. If they are consistent, execute step S414; if they are inconsistent, execute step S420.

[0077] Access the EEPROM of the Lan switch through the I2C command, read the first 10 bytes in the EEPROM and compare them with the first 10 bytes in the LanSwitch firmware. If the read values ​​are consistent, the I2C communication is considered normal. The function returns 0, otherwise it returns -1.

[0078] Step S412, the mainboard CPLD monitoring program obtains node information (corresponding to the above-mentioned target identification information).

[0079] Step S414, determine whether it is node 0, if the determination result is 0, execute step S416, if the determination result is no, execute step S418.

[0080] Step S416, return to 00.

[0081] Step S418, return to 01.

[0082] Step S420, return to 02.

[0083] When the function returns 0 in step S410, it is determined whether the node is node 0 or node 1 according to the information in step S402. If it is node 0, the entire ipmicommand / redfish returns 00 (the connection line is correctly connected and the connectivity is normal); when the function returns -1 in step S410, it is determined whether the node is node 0 or node 1 according to the information in step S402. If it is node 1, the entire ipmicommand / redfish returns 01 (the connection line is connected reversely and the connectivity is normal); if any step returns an exception, the entire ipmi command / redfish returns 02 (other errors).

[0084] In the above embodiment, a dual-node LAN Switch connection line connectivity detection function based on BMC provides a friendly IPMI command / Redfish interface for factory production to query and obtain the detection results. It can detect whether the network signal and II2C in the LAN Switch connection line are normal and whether the connection line is not connected reversely. Compared with the hardware engineer's one-by-one signal inspection and the manual inspection of whether the cable is connected reversely during factory production, this method greatly saves manpower, contributes to large-scale rapid and stable production, and has objective economic benefits.

[0085] In this embodiment, a system for determining the connectivity of a connection line is also provided, which is used to execute the method described in any of the above embodiments. The structure diagram of the system for determining the connectivity of a connection line in the embodiment of the present invention can be found in the attached Figure 5 ,like Figure 5 As shown, the structure includes:

[0086] A local area network switch 52, comprising a plurality of first ports and a second port;

[0087] A plurality of nodes 54, each of the plurality of nodes comprises a third port, the third port is connected to the first port through a connecting line, so that each of the nodes is connected to the LAN switch through one of the first ports, the first port connected to each of the nodes is different, the plurality of nodes comprises a target node, the connecting line connecting the third port of the target node and the first port of the LAN switch is a target bus, and the target node allows access to the electrically erasable programmable read-only memory in the LAN switch through the target bus;

[0088] The smart network card 56 comprises a fourth port, and the smart network card is connected to the second port through the fourth port, so that the smart network card is connected to the local area network switch;

[0089] The target node is used to perform a target operation, which includes: obtaining a first network address of a system chip included in the smart network card, and obtaining a second network address of each of the nodes; verifying the first network address and the second network address to obtain a first verification result; when the target node is connected to the electrically erasable programmable read-only memory in the local area network switch, obtaining first data of a target quantity existing in the electrically erasable programmable read-only memory, and obtaining second data of the target quantity existing in the firmware included in the local area network switch; verifying the first data and the second data to obtain a second verification result; and determining the connectivity of the connection lines connecting multiple nodes to the local area network switch based on the first verification result, the second verification result and the obtained target identification information.

[0090] In the above embodiment, the connection line connectivity detection system may include a local area network switch Lan switch, a smart network card and multiple nodes, and the local area network switch Lan switch is connected to the multiple nodes respectively through the connection line. When a single smart network card manages multiple nodes, it needs to be able to access the network connection. Therefore, it is necessary to detect whether the network signal of the connection line is normal, whether the connection line can communicate normally, and whether the connection line is connected normally. In order to reduce hardware resources, among multiple nodes, a target node can be set to access the local area network switch Lan switch through a sideband cable (II2C signal). For example, the local area network switch lan switch can only access the BMC in node 0 through the sideband cable (II2C signal). This design is because if the firmware FW of the local area network switch lan switch needs to be upgraded, although multiple nodes share the local area network switch lan switch, as long as one node can align the firmware upgrade. Second, the local area network switch lan switch has only one set of SDA / SCL signals. If both nodes need to access, it is necessary to add an additional dual-master time-sharing multiplexing chip, which wastes resources. Therefore, setting a target node to access the LAN switch through the sideband cable (II2C signal) can not only realize the estimation and upgrade of the LAN switch, but also achieve the purpose of saving resources.

[0091] In the above embodiment, when the multiple nodes are two nodes, the schematic diagram of the connection line connectivity detection system can be found in the attached Figure 3 ,like Figure 3As shown, the connection line connectivity detection system may include node 0 and node 1, wherein node 0 may be a target node. Node 0 is connected to the LAN switch via connection line 1, node 1 is connected to the LAN switch via connection line 2, and the smart network card is connected to the LAN switch. The electrically erasable programmable read-only memory EEPROM of the Lan Switch may be connected to the Lan Switch, and the firmware of the Lan Switch is stored in this EEPROM. When the power is first supplied, the LanSwitch loads the firmware from this area into the running memory ROM, and then the configuration takes effect and performs normal operation. When the EEPROM of the Lan Switch is connected to the Lan Switch, the EEPROM of the Lan Switch may also be switched to the baseboard management controller BMC in the node through the multiplexer mux. In this way, the firmware of the Lan Switch may also be upgraded through the BMC. When the EEPROM of the LanSwitch is connected to the BMC of the node, it may also be switched to the Lan Switch through the multiplexer mux.

[0092] In the above embodiment, see the attached Figure 3 Node 0 and node 1 are connected to port 2 and port 3 of Lan switch 1 respectively, and port 1 is connected to port 2 of the smart network card. The external network is connected to port 1 of the smart network card. The smart network card contains system chip SOC, ast2500 (BMC) chip and lan switch2. By designing the firmware of lan switch1 and lanswitch2, setting the VLAN ID for network isolation, and realizing the red link for external access to the BMC of the smart network card and the blue link for internal connection, the SOC / AST2500 (BMC) in the blue link and the AST2600 (BMC) in the two nodes can access each other. By setting port forwarding rules for the SOC / AST2500 (BMC) of the smart network card, access to the BMC in node 0 / 1 can be achieved.

[0093] In the above embodiment, the connection of the connecting line can be verified from two aspects: whether the network signal and the IIC signal are normal. The first network address of the system chip SOC of the smart network card and the second network address of each node can be verified to obtain the first verification result. The first verification result verifies whether the network signal in the connecting line is normal. It is also possible to read the first data of the target quantity stored in the electrically erasable programmable read-only memory EEPROM in the LAN switch, and obtain the second data of the target quantity stored in the firmware in the LAN switch, and compare and verify the first data and the second data to determine the second verification result. The connection and communication status of the connecting line are verified by the second verification result. Among them, the first data of the target quantity can be the first 10 data stored in the EEPROM, and the second data of the target quantity can be the first 10 data stored in the firmware. It should be noted that the target quantity of 10 is only an exemplary description, and the present invention is not limited to this. For example, it can also be 5, 8, 15, 20, etc. For example, the BMC of the target node can access the EEPROM of the Lan switch through the I2C command, read the first 10 bytes in the EEPROM, and compare them with the first 10 bytes in the LanSwitch firmware. If the read values ​​are consistent, the I2C communication is considered normal. If they are inconsistent, the I2C communication is considered abnormal.

[0094] In the above embodiment, the target identification information may be an identification obtained by the BMC in the target node. For example, when the BMC in the target node is started, the target identification information may be obtained from the programmable logic device CPLD chip on the mainboard to determine whether the current node is node 0 or node 1 according to the target identification information, and further determine whether the connection line is connected in reverse.

[0095] Through the present application, a method for determining the connectivity of a connection line can be applied to a connection line connectivity detection system, wherein the connection line connectivity detection system includes a local area network switch, multiple nodes, and a smart network card, each of the multiple nodes is connected to the local area network switch through a connection line, different nodes are connected to the local area network switch by different connection lines, a target node included in the multiple nodes allows access to a powered erasable programmable read-only memory in the local area network switch through a target bus, and the local area network switch is connected to the smart network card. The method includes: obtaining a first network address of a system chip included in the smart network card, and obtaining a second network address of each node; verifying the first network address and the second network address to obtain a first verification result; when the target node is connected to the powered erasable programmable read-only memory in the local area network switch, obtaining first data of a target number existing in the powered erasable programmable read-only memory, and obtaining second data of a target number existing in a firmware included in the local area network switch; verifying the first data and the second data to obtain a second verification result; and determining the connectivity of the connection lines connecting the multiple nodes to the local area network switch based on the first verification result, the second verification result, and the obtained target identification information. The connectivity of the connection line can be verified by verifying the first network address of the system chip included in the smart network card and the second network address of each node, by verifying the first data of the target number in the electrically erasable programmable read-only memory and the second data of the target number in the firmware included in the local area network switch, and by verifying the acquired target identification information, without the need for manual verification. Therefore, the problem of low efficiency in determining the connectivity of the connection line existing in the related art can be solved, thereby achieving the effect of improving the effect of determining the connectivity of the connection line.

[0096] In an exemplary embodiment, the target node further includes: a baseboard management controller, the baseboard management controller is connected to the third port, and is used to perform the target operation. In this embodiment, each node may include a baseboard management controller, and when verifying the connectivity of the connection line between the target node and the LAN switch, the BMC of the target node may be connected to the LAN switch through the third port.

[0097] In an exemplary embodiment, the target node further includes an integrated chip, and the baseboard management controller is connected to the third port through the integrated chip. In this embodiment, the integrated chip can be a physical layer chip, which can provide a high-speed and stable network connection, facilitate the rapid transmission of data, and reduce latency. Therefore, by setting an integrated chip between the BMC and the third port, the data in the EEPROM can be obtained through the integrated chip, which can increase the speed of obtaining data and improve the efficiency of verification.

[0098] In an exemplary embodiment, the system for determining the connectivity of the connection line further includes: a multiplexer, wherein a first end of the multiplexer is connected to the electrically erasable programmable read-only memory, a second end of the multiplexer is connected to the local area network switch, and a third end of the multiplexer is connected to the baseboard management controller of the target node, and is used to connect the electrically erasable programmable read-only memory to the baseboard management controller when the multiplexer outputs a first level, and to connect the electrically erasable programmable read-only memory to the local area network switch when the multiplexer outputs a second level. In this embodiment, the multiplexer can be a mux, and the EEPROM of the LanSwitch can also be switched to the baseboard management controller BMC in the node through the multiplexer mux. In this way, the firmware of the Lan Switch can also be upgraded through the BMC. When the EEPROM of the Lan Switch is connected to the BMC of the node, it can also be switched to the Lan Switch through the multiplexer mux. The EEPROM of the Lan switch can be switched to the BMC of the target node through the mux. The BMC of the target node can control a GPIO and switch it to the BMC when the GPIO is pulled low. The first level can be a low level.

[0099] In the above embodiment, the target port is controlled to output a first level to connect the electrically erasable programmable read-only memory to the baseboard management controller of the target node, thereby facilitating the BMC of the target node to obtain the first data of the target quantity in the EEPROM, and the communication status information of the connection line is verified based on the first data and the second data, thereby improving the efficiency of determining the connectivity of the connection line.

[0100] In an exemplary embodiment, the smart network card further includes: a fifth port, through which an external device accesses the smart network card. Figure 3 , the fifth port can be port1, and the external network is connected to port1 of the smart network card. The smart network card contains system chip SOC, ast2500 (BMC) chip and lanswitch2. By designing the firmware of lan switch1 and lan switch2, setting the VLAN ID for network isolation, and realizing the red link of the BMC of the smart network card for external access and the blue link for internal connection, the SOC / AST2500 (BMC) in the blue link and the AST2600 (BMC) in the two nodes can access each other. By setting the port forwarding rules for the SOC / AST2500 (BMC) of the smart network card, the BMC in node 0 / 1 can be accessed.

[0101] In an exemplary embodiment, the smart network card further includes: a network interface for connecting to a target network, and after the network interface establishes a connection with the target network, an external device is allowed to access the smart network card. Figure 3 The network interface may include optical fiber port A and optical fiber port B. The smart network card may access the external network through optical fiber port A or B to ensure normal network communication within the system.

[0102] In an exemplary embodiment, the system for determining the connectivity of the connection line also includes: a mainboard, the mainboard is connected to the target node, and is used to send the target identification information to the baseboard management controller when the baseboard management controller of the target node is started. In this embodiment, the target identification information can be an identification obtained by the BMC in the target node. For example, when the BMC in the target node is started, the target identification information can be obtained from the programmable logic device CPLD chip on the mainboard to determine whether the current node is node 0 or node 1 according to the target identification information, and then determine whether the connection line is connected in reverse. Specifically, when the BMC receives the ipmitool command / Redfish request, it can first determine whether the current node is node 0 or node 1, and this information is provided by the CPLD chip on the mainboard. After the BMC is started, it will interact with the mainboard CPLD to obtain information, and the information obtained needs to include this information. Since this information is static information, in order to save access resources, it is only obtained once and stored in a variable.

[0103] In an exemplary embodiment, the mainboard includes: an editable logic device, the mainboard is connected to the target node through the editable logic device, and is used to send the target identification information to the baseboard management controller when the baseboard management controller of the target node is started. In this embodiment, the editable logic device can be a CPLD chip.

[0104] In this embodiment, a server is also provided, including the system for determining the connectivity of a connection line described in any one of the above embodiments.

[0105] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0106] In this embodiment, a device for determining the connectivity of a connection line is also provided, which is applied to a connection line connectivity detection system. The connection line connectivity detection system includes a local area network switch, multiple nodes, and a smart network card. Each of the multiple nodes is connected to the local area network switch via a connection line, and different nodes are connected to the local area network switch via different connection lines. The target node included in the multiple nodes allows access to the electrically erasable programmable read-only memory in the local area network switch through a target bus. The local area network switch is connected to the smart network card. The device is used to implement the above-mentioned embodiments and preferred implementation methods, and those that have been explained will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, it is also possible and conceivable to implement it in hardware, or a combination of software and hardware.

[0107] Figure 6 is a structural block diagram of a device for determining connectivity of a connection line according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:

[0108] A first acquisition module 602 is used to acquire a first network address of a system chip included in the smart network card, and to acquire a second network address of each of the nodes;

[0109] A first verification module 604, configured to verify the first network address and the second network address to obtain a first verification result;

[0110] A second acquisition module 606 is used to acquire first data of a target quantity existing in the electrically erasable programmable read-only memory in the local area network switch, and acquire second data of the target quantity existing in firmware included in the local area network switch, when the target node is connected to the electrically erasable programmable read-only memory in the local area network switch;

[0111] A second verification module 608, used to verify the first data and the second data to obtain a second verification result;

[0112] The determination module 610 is used to determine the connectivity of the connection lines connecting the plurality of nodes to the local area network switch based on the first verification result, the second verification result and the acquired target identification information.

[0113] In an exemplary embodiment, the determination module 610 can implement the connectivity of the connection lines connecting the multiple nodes to the local area network switch based on the first verification result, the second verification result and the acquired target identification information in the following manner: when the first verification result indicates that the network signal of the connection line is normal, the second verification result indicates that the communication of the connection line is normal, and the target identification information indicates that the connection line is correctly connected, the connectivity is determined to be that the network signal in the connection line is normal, the connection line is correctly connected and the connectivity is normal; when the first verification result indicates that the network signal of the connection line is normal, the second verification result indicates that the communication of the connection line is normal, and the target identification information indicates that the connection line is connected reversely, the connectivity is determined to be that the network signal in the connection line is normal, the connection line is connected reversely and the connectivity is normal; in the case of at least one of the following, the connectivity is determined to be other abnormalities: the first verification result indicates that the network signal of the connection line is abnormal; the second verification result indicates that the communication of the connection line is abnormal; the target identification information indicates an identification abnormality.

[0114] In an exemplary embodiment, the device can also be used to: when the target identification information is the identification information of the target node, determine that the target identification information indicates that the connecting line is correctly connected; when the target identification information is the identification information of other nodes other than the target node, determine that the target identification information indicates that the connecting line is connected reversely.

[0115] In an exemplary embodiment, the first verification module 604 can implement the verification of the first network address and the second network address to obtain a first verification result in the following manner: determine the first network segment where the first network address is located; determine the second network segment where the second network address is located; when the first network segment and the second network segment belong to the same network segment, determine that the first verification result is that the network signal of the connecting line is normal; when the first network segment and the second network segment belong to different network segments, determine that the first verification result is that the network signal of the connecting line is abnormal.

[0116] In an exemplary embodiment, the device can also be used to, before obtaining the first data of the target quantity present in the electrically erasable programmable read-only memory: when the electrically erasable programmable read-only memory is connected to the local area network switch, control the target port to output a first level to connect the electrically erasable programmable read-only memory to the baseboard management controller of the target node.

[0117] In an exemplary embodiment, the device can also be used to control the target port to output a second level to connect the electrically erasable programmable read-only memory to the local area network switch after determining the connectivity of the connection lines connecting the multiple nodes to the local area network switch based on the first verification result, the second verification result and the acquired target identification information.

[0118] In an exemplary embodiment, the second acquisition module 606 can obtain the first data of the target quantity existing in the electrically erasable programmable read-only memory in the following manner: receiving a target request sent through a preset interface; and obtaining the first data when the target request is a verification request.

[0119] In an exemplary embodiment, the device can also be used to set the first network address for the system chip included in the smart network card and the second network address for each of the nodes before obtaining the first network address of the system chip included in the smart network card and obtaining the second network address for each of the nodes.

[0120] In an exemplary embodiment, the device can also be used to, after determining the connectivity of the connecting lines connecting the multiple nodes to the local area network switch based on the first verification result, the second verification result and the acquired target identification information: when the connectivity is that the network signal in the connecting line is normal, the connecting line is correctly connected and the connectivity is normal, output a first value; when the connectivity is that the network signal in the connecting line is normal, the connecting line is connected reversely and the connectivity is normal, output a second value; when the connectivity is other abnormalities, output a third value.

[0121] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0122] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0123] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0124] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0125] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0126] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0127] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0128] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0129] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for determining the connectivity of a connection line, characterized in that: The invention is applied to a connection line connectivity detection system, wherein the connection line connectivity detection system comprises a local area network switch, a plurality of nodes and a smart network card, each of the plurality of nodes is connected to the local area network switch via a connection line, different nodes are connected to the local area network switch via different connection lines, a target node included in the plurality of nodes allows access to a powered erasable programmable read-only memory in the local area network switch via a target bus, and the local area network switch is connected to the smart network card, The method comprises: Acquire a first network address of a system chip included in the smart network card, and acquire a second network address of each of the nodes; Verifying the first network address and the second network address to obtain a first verification result; In a case where the target node is connected to the electrically erasable programmable read-only memory in the local area network switch, obtaining first data of the target quantity existing in the electrically erasable programmable read-only memory, and obtaining second data of the target quantity existing in firmware included in the local area network switch; Verifying the first data and the second data to obtain a second verification result; Determine connectivity of connection lines connecting the plurality of nodes to the local area network switch based on the first verification result, the second verification result, and the acquired target identification information; Among them, the first verification result is used to indicate whether the network signal of the connecting line is normal, the second verification result is used to indicate whether the communication of the connecting line is normal, and the target identification information is used to indicate whether the connecting line is connected reversely.

2. The method according to claim 1, characterized in that The determining, based on the first verification result, the second verification result, and the acquired target identification information, the connectivity of the connection lines connecting the plurality of nodes to the local area network switch includes: When the first verification result indicates that the network signal of the connection line is normal, the second verification result indicates that the communication of the connection line is normal, and the target identification information indicates that the connection line is correctly connected, the connectivity is determined as follows: the network signal in the connection line is normal, the connection line is correctly connected, and the connectivity is normal; When the first verification result indicates that the network signal of the connection line is normal, the second verification result indicates that the communication of the connection line is normal, and the target identification information indicates that the connection line is connected reversely, the connectivity is determined as follows: the network signal in the connection line is normal, the connection line is connected reversely and the connectivity is normal; In the case of at least one of the following, the connectivity is determined to be other abnormalities: the first verification result indicates that the network signal of the connection line is abnormal; the second verification result indicates that the communication of the connection line is abnormal; the target identification information indicates an identification abnormality.

3. The method according to claim 2, characterized in that The method further comprises: In a case where the target identification information is identification information of the target node, determining that the target identification information indicates that the connection line is correctly connected; In a case where the target identification information is identification information of a node other than the target node, it is determined that the target identification information indicates that the connection line is connected reversely.

4. The method according to claim 1, characterized in that: The verifying the first network address and the second network address to obtain a first verification result includes: Determine a first network segment where the first network address is located; Determine a second network segment where the second network address is located; In the case where the first network segment and the second network segment belong to the same network segment, determining that the first verification result is that the network signal of the connection line is normal; When the first network segment and the second network segment belong to different network segments, it is determined that the first verification result is that the connection network signal is abnormal.

5. The method according to claim 1, characterized in that Before acquiring the target amount of first data existing in the electrically erasable programmable read-only memory, the method further includes: When the electrically erasable programmable read-only memory is connected to the local area network switch, the target port is controlled to output a first level to connect the electrically erasable programmable read-only memory to a baseboard management controller of the target node.

6. The method according to claim 1, characterized in that After determining the connectivity of the connection lines connecting the plurality of nodes to the local area network switch based on the first verification result, the second verification result and the acquired target identification information, the method further includes: The target port is controlled to output a second electrical level to connect the electrically erasable programmable read-only memory to the local area network switch.

7. The method according to claim 1, characterized in that Acquiring first data of a target quantity existing in the electrically erasable programmable read-only memory, comprising: receiving a target request sent through a preset interface; In a case where the target request is a verification request, the first data is obtained.

8. The method according to claim 1, characterized in that Before obtaining the first network address of the system chip included in the smart network card and obtaining the second network address of each of the nodes, the method further includes: Setting the first network address for the system chip; The second network address is set for each of the nodes.

9. The method according to claim 1, characterized in that: After determining the connectivity of the connection lines connecting the plurality of nodes to the local area network switch based on the first verification result, the second verification result and the acquired target identification information, the method further includes: When the connectivity is that the network signal in the connection line is normal, and the connection line is correctly connected and connected normally, outputting a first value; When the connectivity is that the network signal in the connecting line is normal, and the connecting line is connected reversely and the connectivity is normal, a second value is output; When the connectivity is otherwise abnormal, a third value is output.

10. A system for determining connectivity of a connection line, characterized in that: For executing the method according to any one of claims 1 to 9, include: A local area network switch, comprising a plurality of first ports and a second port; A plurality of nodes, each of the plurality of nodes comprises a third port, the third port is connected to the first port through a connecting line, so that each of the nodes is connected to the local area network switch through one of the first ports, the first port connected to each of the nodes is different, the plurality of nodes comprises a target node, the connecting line connecting the third port of the target node and the first port of the local area network switch is a target bus, and the target node allows access to the electrically erasable programmable read-only memory in the local area network switch through the target bus; The smart network card comprises a fourth port, the smart network card is connected to the second port through the fourth port, so that the smart network card is connected to the local area network switch; The target node is used to perform a target operation, and the target operation includes: obtaining a first network address of a system chip included in the smart network card, and obtaining a second network address of each of the nodes; verifying the first network address and the second network address to obtain a first verification result; when the target node is connected to the electrically erasable programmable read-only memory in the local area network switch, obtaining first data of a target quantity in the electrically erasable programmable read-only memory, and obtaining second data of the target quantity in the firmware included in the local area network switch; verifying the first data and the second data to obtain a second verification result; determining the connectivity of the connection lines connecting the multiple nodes to the local area network switch based on the first verification result, the second verification result and the obtained target identification information; Among them, the first verification result is used to indicate whether the network signal of the connecting line is normal, the second verification result is used to indicate whether the communication of the connecting line is normal, and the target identification information is used to indicate whether the connecting line is connected reversely.

11. The system for determining the connectivity of a connection line according to claim 10, characterized in that: The target node also includes: A baseboard management controller is connected to the third port and is used to perform the target operation.

12. The system for determining the connectivity of a connection line according to claim 11, characterized in that: The target node further includes an integrated chip, and the baseboard management controller is connected to the third port via the integrated chip.

13. The system for determining the connectivity of a connection line according to claim 10, characterized in that: The system for determining the connectivity of the connection line further includes: A multiplexer, wherein a first end of the multiplexer is connected to the electrically erasable programmable read-only memory, a second end of the multiplexer is connected to the local area network switch, and a third end of the multiplexer is connected to a baseboard management controller of the target node, and is used to connect the electrically erasable programmable read-only memory to the baseboard management controller when the multiplexer outputs a first level, and to connect the electrically erasable programmable read-only memory to the local area network switch when the multiplexer outputs a second level.

14. The system for determining the connectivity of a connection line according to claim 10, characterized in that: The smart network card also includes: A fifth port, through which an external device accesses the smart network card.

15. The system for determining the connectivity of a connection line according to claim 10, characterized in that: The smart network card also includes: The network interface is used to connect to the target network, and after the network interface establishes a connection with the target network, an external device is allowed to access the smart network card.

16. The system for determining the connectivity of a connection line according to claim 10, characterized in that: The system for determining the connectivity of the connection line further includes: A mainboard is connected to the target node and is used to send target identification information to the baseboard management controller when the baseboard management controller of the target node is started.

17. The system for determining the connectivity of a connection line according to claim 16, characterized in that: The main board comprises: An editable logic device, through which the mainboard is connected to the target node, is used to send target identification information to the baseboard management controller when the baseboard management controller of the target node is started.

18. A server, characterized in that: A system for determining the connectivity of a connecting line as claimed in any one of claims 10 to 17.

19. A device for determining connectivity of a connection line, characterized in that: The invention is applied to a connection line connectivity detection system, wherein the connection line connectivity detection system comprises a local area network switch, a plurality of nodes and a smart network card, each of the plurality of nodes is connected to the local area network switch via a connection line, different nodes are connected to the local area network switch via different connection lines, a target node included in the plurality of nodes allows access to a powered erasable programmable read-only memory in the local area network switch via a target bus, and the local area network switch is connected to the smart network card, The device comprises: A first acquisition module, used to acquire a first network address of a system chip included in the smart network card, and to acquire a second network address of each of the nodes; A first verification module, used to verify the first network address and the second network address to obtain a first verification result; A second acquisition module is used to acquire first data of a target quantity existing in the electrically erasable programmable read-only memory in the local area network switch, and acquire second data of the target quantity existing in firmware included in the local area network switch, when the target node is connected to the electrically erasable programmable read-only memory in the local area network switch; A second verification module, used for verifying the first data and the second data to obtain a second verification result; a determination module, configured to determine connectivity of connection lines connecting the plurality of nodes to the local area network switch based on the first verification result, the second verification result, and the acquired target identification information; Among them, the first verification result is used to indicate whether the network signal of the connecting line is normal, the second verification result is used to indicate whether the communication of the connecting line is normal, and the target identification information is used to indicate whether the connecting line is connected reversely.

20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 9 when executed by a processor.

21. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 9 are implemented.

22. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Node server and data interaction method thereof and related device

    CN111064643A

  • Network fault monitoring method and device, storage medium and electronic equipment

    CN112584410A

  • Network monitoring method and device, storage medium and electronic device

    CN113783755A

  • Method, device and equipment for switching server of cloud desktop terminal and storage medium

    CN113992578A

  • Network communication system, data transmission method and readable storage medium

    CN114268519A