Data transmission method and computing device

Through the serial communication between the management controller and the network card, the LLDP packets and port identifiers are directly obtained, which solves the problem of OS running status limitations, realizes stable and real-time acquisition of network topology connection information, and improves the independence of the management controller Sex and efficiency.

CN119052099APending Publication Date: 2024-11-29XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410984712.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In the prior art, the management controller needs to rely on the operating system (OS) to obtain network topology connection information between the network card and the network device, resulting in limited application scenarios, especially when the OS is in standby state.

Method used

Through the serial clock line SCL and serial data line SDA connection between the management controller and the network card, the link layer discovery protocol (LLDP) packets are directly obtained from the network card, and the port identifier corresponding to the LLDP packet is determined, thereby determining the network topology Connection information does not need to depend on the operating status of the OS.

Benefits of technology

It improves the stability and real-timeness of the management controller to obtain network topology connection information between network devices and network cards, reduces the dependence of OS intervention, and enhances the independence and efficiency of the management controller.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052099A_ABST
    Figure CN119052099A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data transmission method and computing equipment, relates to the technical field of computers, and can improve the stability of acquiring network topology connection information between network equipment in network connection with the computing equipment and a network card. The method is applied to a management controller of the computing device, the management controller is connected with a network card through a serial clock line SCL and a serial data line SDA, the network card is used for connecting the computing device with an external network, and the method comprises the following steps: the management controller obtains a link layer discovery protocol LLDP message from a first network card based on the serial clock line SCL and the serial data line SDA, the method comprises the following steps: receiving an LLDP message, determining a port identifier of a first network card corresponding to the LLDP message, and determining network topology connection information based on equipment information of network equipment in the LLDP message and the port identifier of the first network card corresponding to the LLDP message, the network topology connection information being used for being displayed in a management interface of a management controller. Therefore, the topological connection relation between the port of the network card and the network equipment is displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a data transmission method and a computing device. Background Art

[0002] With the continuous development of server technology, the management controller in the server (such as the baseboard management controller) needs to manage the network topology connection information between the network card in the server and the network device (such as the switch) connected to the network card; based on this, the management controller needs to obtain the network topology connection information between the network card and the network device connected to the network card.

[0003] In a common method for a management controller to obtain the above-mentioned network topology connection information, the management controller obtains the message received by the network card in the server from the network through the server's operating system (OS), and obtains the switch information (such as: the name of the switch, the port number, etc.) that sends the message to the network card based on the message, so that the management controller determines the network topology connection information indicated by the network card and the switch information based on the switch information.

[0004] However, the above method for obtaining the network topology connection information between the network card and the network device connected to the network card requires the intervention of the OS, that is, it depends on the running state of the OS, so the application scenario is relatively limited. Summary of the invention

[0005] The embodiment of the present application provides a data transmission method and a computing device, which achieve the goal of not relying on the running state of the OS. Even if the OS is in the standby state, the management controller of the computing device can obtain the LLDP message from the network card and determine the port identifier of the first network card corresponding to the LLDP message, and then determine the network topology connection information based on the device information of the network device in the LLDP message and the port identifier of the first network card corresponding to the LLDP message. The network topology connection information is used to be displayed in the management interface of the management controller to show the topological connection relationship between the port of the network card and the network device, thereby improving the stability of obtaining the network topology connection information between the network device connected to the computing device network and the network card.

[0006] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a management controller of a computing device, wherein the management controller is connected to a network card via a serial clock line SCL and a serial data line SDA, and the network card is used to connect the computing device to an external network. The method comprises: the management controller obtains a link layer discovery protocol LLDP message from a first network card based on the serial clock line SCL and the serial data line SDA, and determines a port identifier of the first network card corresponding to the LLDP message; the LLDP message is sent by a network device connected to the computing device network to a target port indicated by a port identifier on the first network card; the LLDP message includes device information of the network device; the management controller determines network topology connection information based on the device information of the network device in the LLDP message and the port identifier of the first network card corresponding to the LLDP message, and the network topology connection information is used to be displayed in a management interface of the management controller to show the topological connection relationship between the port of the network card and the network device.

[0007] It can be understood that the management controller obtains the link layer discovery protocol LLDP message from the first network card based on the serial clock line SCL and the serial data line SDA, and determines the port identifier of the first network card corresponding to the LLDP message, without relying on the running state of the OS of the computing device. That is to say, even if the OS is in standby state, the management controller can obtain the LLDP message from the first network card, determine the port identifier of the first network card corresponding to the LLDP message, and then determine the network topology connection information, which improves the stability of the management controller in obtaining the network topology connection information between the network device and the network card connected to the computing device network.

[0008] In a possible implementation, the management controller obtains a link layer discovery protocol LLDP message from the network card based on the serial clock line SCL and the serial data line SDA, and determines the port identifier of the first network card corresponding to the LLDP message, including: the management controller sends a first instruction to the first network card based on the serial clock line SCL and the serial data line SDA; the first instruction is used to instruct the network card to return the LLDP message; if the management controller receives a response signal to the first instruction, it determines the port identifier and sends the port identifier to the first network card; the management controller receives the LLDP message corresponding to the port identifier returned by the first network card.

[0009] It can be understood that when the management controller receives a response signal to the first instruction, it determines the port identifier and sends it to the first network card, thereby instructing the first network card to return the LLDP message corresponding to the specified port identifier, thereby improving communication efficiency and reducing the delay in the management controller determining and / or updating the network topology connection information.

[0010] In a possible implementation, the management controller sends a first instruction to the network card based on the serial clock line SCL and the serial data line SDA, including: the management controller sends the first instruction and an identifier of the first network card to the network card on the serial clock line SCL and the serial data line SDA based on the serial clock line SCL and the serial data line SDA; the network card is used to determine whether to respond to the first instruction according to the identifier of the first network card.

[0011] It can be understood that the management controller sends the first instruction and the identifier of the first network card together to the network card on the serial clock line SCL and the serial data line SDA, which can reduce the number of times the control of the serial data line SDA is exchanged back and forth between the management controller and the network card, reduce communication delays, and improve communication efficiency. In addition, the management controller instructs the designated network card to return the LLDP message by sending the identifier of the first network card, thereby further improving communication efficiency.

[0012] In a possible implementation, before the management controller sends the first instruction and the identifier of the first network card based on the serial clock line SCL and the serial data line SDA, the method also includes: the management controller sends a broadcast instruction to the network card on the serial clock line SCL and the serial data line SDA, and then the management controller sends the first instruction and the identifier of the first network card to the network card on the serial clock line SCL and the serial data line SDA based on the serial clock line SCL and the serial data line SDA, including: when the management controller receives a response signal to the broadcast instruction from at least one network card, the management controller sends the first instruction and the identifier of the first network card to the network card on the serial clock line SCL and the serial data line SDA.

[0013] It is understandable that before sending the first instruction and the identifier of the first network card, the management controller determines that a response signal of at least one network card to the broadcast instruction sent to it is received, which can reduce the invalid occupation of the serial data line SDA by the management controller and improve communication efficiency.

[0014] In a possible implementation, the management controller sends a first instruction to the network card based on the serial clock line SCL and the serial data line SDA, including: the management controller sends a verification message to the network card on the serial clock line SCL and the serial data line SDA based on the serial clock line SCL and the serial data line SDA, the verification message including the identification of the first network card; the network card is used to return a response signal when the identification verification is successful; if the management controller receives the response signal of the first network card, the first instruction is sent to the first network card.

[0015] It can be understood that the management controller sends a verification message to the network card on the serial clock line SCL and the serial data line SDA, and sends the first instruction to the first network card when receiving a response signal from the first network card, thereby increasing the possibility of the first instruction being responded to, while reducing the possibility of the first instruction being responded to by other non-designated network cards, thereby improving the reliability of communication, and further improving the accuracy of the management controller in acquiring or updating network topology connection information.

[0016] In a possible implementation, the management controller obtains a link layer discovery protocol LLDP message from the network card based on a serial clock line SCL and a serial data line SDA, and determines a port identifier of the first network card corresponding to the LLDP message, including: if the management controller receives an interrupt request sent by the first network card and accepts the interrupt request, sending an interrupt enable signal to the first network card; the management controller receives interrupt data sent by the first network card based on the serial clock line SCL and the serial data line SDA; the interrupt data includes the LLDP message and the port identifier of the first network card corresponding to the LLDP message; the management controller obtains the LLDP message and the port identifier of the first network card corresponding to the LLDP message from the interrupt data.

[0017] It can be understood that, when the management controller receives and accepts an interrupt request, it allows the interrupt request initiated by the network card to ensure orderly data transmission and improve the stability and reliability of communication. The LLDP message is first sent to the network card by the network device connected to the computing device network. The management controller receives the LLDP message actively sent by the network card and the interrupt data of the port identifier of the first network card corresponding to the LLDP message, which can improve the real-time performance of the management controller in obtaining or updating the network topology connection information.

[0018] In a possible implementation, the interrupt data also includes an interrupt required data byte target MDB; the interrupt required data byte target MDB is used to indicate the content type of the interrupt data, and the management controller obtains the LLDP message and the port identifier of the first network card corresponding to the LLDP message from the interrupt data, including: if the combination of the interrupt group number and the interrupt number value in the interrupt required data byte target MDB meets the first combination, the management controller obtains the LLDP message and the port identifier of the first network card corresponding to the LLDP message from the interrupt data; the first combination is used to indicate that the content type of the interrupt data is the transmission LLDP message type.

[0019] It can be understood that when the management controller receives interrupt data actively sent by the network card, it can correctly parse the interrupt data according to the indication of the interrupt required data byte target MDB, thereby improving the accuracy of the management controller in obtaining the LLDP message and the port identifier of the first network card corresponding to the LLDP message from the interrupt data, thereby improving the accuracy of the management controller in determining the network topology connection information.

[0020] In a possible implementation, the identifier includes address information that complies with an integrated circuit bus I2C or an improved integrated circuit bus I3C protocol specification.

[0021] It is understandable that the management controller and the network card communicate based on the I2C or I3C protocol. By sending address information that complies with the I2C or I3C protocol specification, the accuracy of the network card in verifying the identifier can be guaranteed, thereby improving the reliability of communication.

[0022] In the second aspect, an embodiment of the present application provides a data transmission method, which is applied to a network card, wherein the network card is connected to a management controller of a computing device via a serial clock line SCL and a serial data line SDA, and the network card is used to connect the computing device to an external network. The method includes: the network card determines a port identifier, and based on the serial clock line SCL and the serial data line SDA, sends a link layer discovery protocol LLDP message corresponding to the port identifier to the management controller; the LLDP message is sent by a network device connected to the computing device network to a target port indicated by the port identifier on the network card; the LLDP message includes device information of the network device.

[0023] It can be understood that the network card determines the port identifier and directly sends the LLDP message corresponding to the port identifier to the management controller based on the serial clock line SCL and the serial data line SDA, so that the management controller can determine the network topology connection information without relying on the running status of the OS of the computing device, thereby improving the stability of the management controller in obtaining the network topology connection information between the network device connected to the computing device network and the network card.

[0024] In a possible implementation, the network card determines the port identifier, and based on the serial clock line SCL and the serial data line SDA, sends a link layer discovery protocol LLDP message corresponding to the port identifier to the management controller, including: if the network card receives a first instruction sent by the management controller based on the serial clock line SCL and the serial data line SDA, sending a response signal for the first instruction to the management controller; the first instruction is used to instruct the network card to return the LLDP message; if the network card receives the port identifier sent by the management controller, obtaining the LLDP message corresponding to the port identifier; based on the serial clock line SCL and the serial data line SDA, returning the LLDP message to the management controller.

[0025] It can be understood that the network card returns the LLDP message corresponding to the received port identifier in accordance with the instructions of the first instruction, which can avoid the situation where the network card receives LLDP messages on multiple ports, reduce the transmission of invalid data that is not needed by the management controller, improve communication efficiency, and reduce the delay in the management controller determining / updating the network topology connection information of the port specified by the network card.

[0026] In one possible implementation, the network card sends a response signal to the management controller for the first instruction, including: if the network card receives the first instruction and the identifier of the first network card sent by the management controller based on the serial clock line SCL and the serial data line SDA, and determines to respond to the first instruction based on the identifier of the first network card, sending a response signal to the management controller for the first instruction.

[0027] It is understandable that the network card determines whether to respond to the first instruction according to the identifier of the first network card, and sends a response signal for the first instruction to the management controller when it is determined to respond to the first instruction, which can improve the reliability of communication.

[0028] In a possible implementation, before the network card sends a response signal to the management controller for the first instruction, the method also includes: if the network card receives a broadcast instruction sent by the management controller based on the serial clock line SCL and the serial data line SDA, sending a response signal to the management controller for the broadcast instruction; then the network card sends a response signal to the management controller for the first instruction, including: if the network card receives the first instruction and the identifier of the first network card sent by the management controller based on the serial clock line SCL and the serial data line SDA, and determines to respond to the first instruction based on the identifier of the first network card, sending a response signal to the first instruction to the management controller.

[0029] It can be understood that the network card sends a response signal to the management controller for the broadcast instruction, which can ensure that the management controller sends the first instruction and the identifier of the first network card after determining that it has received a response signal from at least one network card for the broadcast instruction sent to it, thereby reducing the invalid occupation of the serial data line SDA by the management controller and improving communication efficiency.

[0030] In one possible implementation, if the network card receives a first instruction sent by the management controller based on the serial clock line SCL and the serial data line SDA, before sending a response signal to the management controller for the first instruction, the method also includes: if the network card receives a verification message sent by the management controller based on the serial clock line SCL and the serial data line SDA, if the identifier verification is passed, sending a response signal to the management controller for the verification message; the verification message includes the identifier of the first network card.

[0031] It can be understood that, when the network card passes the identification verification, it sends a response signal for the verification message to the management controller, thereby ensuring that the first instruction matches the network card that responds to the instruction, thereby improving the reliability of communication.

[0032] In a possible implementation, the network card determines the port identifier, and based on the serial clock line SCL and the serial data line SDA, sends a link layer discovery protocol LLDP message corresponding to the port identifier to the management controller, including: the network card sends an interrupt request to the management controller based on the serial clock line SCL and the serial data line SDA; the network card receives an interrupt enable signal returned by the management controller, and the network card sends interrupt data to the management controller based on the serial clock line SCL and the serial data line SDA; the interrupt data includes the LLDP message and the port identifier of the first network card corresponding to the LLDP message.

[0033] It can be understood that the network card sends interrupt data to the management controller only after receiving the interrupt enable signal returned by the management controller, which can ensure that no errors will occur in data transmission, thereby improving the stability and reliability of communication. In addition, the network card actively sends to the management controller the interrupt data including the LLDP message and the port identifier of the first network card corresponding to the LLDP message, which can improve the real-time nature of the management controller in acquiring or updating the network topology connection information.

[0034] In a possible implementation, the interrupt data sent by the network card to the management controller based on the serial clock line SCL and the serial data line SDA includes: the interrupt required data byte target MDB and the interrupt data content sent by the network card to the management controller based on the serial clock line SCL and the serial data line SDA; the combination of the interrupt group number and the interrupt number value in the interrupt required data byte target MDB conforms to the first combination; the first combination is used to indicate that the content type of the interrupt data is the LLDP message type for transmitting; the interrupt data content includes the LLDP message and the port identifier of the first network card corresponding to the LLDP message.

[0035] It can be understood that the network card requires the indication of the interrupt data byte target MDB, so that the management controller can correctly parse the interrupt data, thereby improving the accuracy of the management controller obtaining the LLDP message and the port identifier of the first network card corresponding to the LLDP message from the interrupt data, and improving the accuracy of the management controller in determining the network topology connection information.

[0036] In one possible implementation, after the target port receives an LLDP message sent by a network device connected to the computing device network, the method further includes: writing the LLDP message and the port identifier of the target port into a first table entry; the first table entry is used to store the correspondence between the LLDP message and the port identifier.

[0037] It can be understood that the network card records the LLDP message, the port identifier of the target port and the correspondence between the two through the first table entry, so as to ensure the accuracy of the sent data when it is necessary to send the LLDP message corresponding to the specified port, thereby improving the accuracy of the management controller in determining the network topology connection information through the reliability of communication.

[0038] In a possible implementation, the identification of the network card includes address information that complies with the protocol specification of the integrated circuit bus I2C or the improved integrated circuit bus I3C.

[0039] It is understandable that the management controller and the network card communicate based on the I2C or I3C protocol. By sending address information that complies with the I2C or I3C protocol specification, the accuracy of the network card in verifying the identifier can be guaranteed, thereby improving the reliability of communication.

[0040] In a third aspect, an embodiment of the present application provides a data transmission device, which is used to execute any one of the data transmission methods provided in the first aspect above.

[0041] In a possible implementation, the embodiment of the present application may divide the data transmission device into functional modules according to the method provided in the first aspect above. For example, each functional module may be divided according to each function, or two or more functions may be integrated into one processing module. Exemplarily, the embodiment of the present application may divide the data transmission device into an acquisition module, a determination module, etc. according to the function. The description of the possible technical solutions and beneficial effects executed by each of the functional modules divided above can refer to the technical solutions provided by the first aspect above or its corresponding possible implementation, which will not be repeated here.

[0042] In a fourth aspect, an embodiment of the present application provides a computing device, which includes a management controller and a memory, and a processor is coupled to the memory; the memory is used to store computer instructions, and the computer instructions are loaded and executed by the processor to enable the computing device to implement the data transmission method described in the above aspects.

[0043] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores at least one computer program instruction, and the computer program instruction is loaded and executed by a management controller in a computing device to implement the data transmission method as described in the above aspects.

[0044] In a sixth aspect, an embodiment of the present application provides a computer program product, the computer program product including computer instructions, the computer instructions stored in a computer-readable storage medium. A management controller of a computing device reads the computer instructions from the computer-readable storage medium, and the management controller executes the computer instructions, so that the computing device executes the data transmission method provided in various optional implementations of the first aspect above.

[0045] For the specific description of the third to sixth aspects and their various implementations in the embodiments of the present application, reference can be made to the detailed description in the first and second aspects and their various implementations; and for the beneficial effects of the third to sixth aspects and their various implementations, reference can be made to the analysis of the beneficial effects in the first and second aspects and their various implementations, which will not be repeated here.

[0046] These and other aspects of the embodiments of the present application will be more clearly understood in the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 is a schematic diagram of a system architecture according to an exemplary embodiment;

[0048] Figure 2 is a schematic diagram of a hardware structure of a computing device according to an exemplary embodiment;

[0049] Figure 3 is a flowchart of a data transmission method according to an exemplary embodiment;

[0050] Figure 4 yes Figure 3 A schematic diagram of a topological connection relationship involved in the illustrated embodiment;

[0051] Figure 5 It is a schematic diagram of the command timing of an I3C write-read operation;

[0052] Figure 6 is a flowchart of a data transmission method according to an exemplary embodiment;

[0053] Figure 7 It is a schematic diagram of the command timing of an I2C write-read operation;

[0054] Figure 8 is a flowchart of a data transmission method according to an exemplary embodiment;

[0055] Fig. 9 It is a schematic diagram of the command timing of an I3C interrupt operation;

[0056] Fig.10is a flowchart of a data transmission method according to an exemplary embodiment;

[0057] Fig.11 It is a structural diagram of a data transmission device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0059] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0060] Furthermore, in the description of the embodiments of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0061] In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the differences. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.

[0062] The following is an explanation of some concepts involved in a data transmission method and a computing device provided in an embodiment of the present application, which are as follows:

[0063] I2C: Inter Integrated Circuit (I2C) is a bidirectional two-wire synchronous serial bus with a master-slave communication mechanism. It uses a serial clock line (SCL) and a serial data line (SDA) for communication. It supports multiple nodes connected to the same bus and distinguishes different nodes by physical addresses.

[0064] In some feasible embodiments, the management controller is connected to one or more network cards via a serial clock line SCL and a serial data line SDA, wherein the management controller serves as a master node and the network card serves as a slave node. The master node controls the serial clock line SCL to output a clock signal, and the clock signal is used to ensure synchronous transmission of data, and the master node and the slave node take turns to control the serial data line SDA (who controls depends on the transmission direction of the data) to transmit data.

[0065] I3C: Improved Inter Integrated Circuit (I3C), is an improved version of the I2C bus. Its physical form is consistent with the I2C bus. It also uses the serial clock line SCL and the serial data line SDA for communication, and I3C is backward compatible with I2C. Compared with I2C, the data transmission rate of I3C has been greatly improved, and I3C can support the master node to assign dynamic addresses to the slave nodes, so that multiple nodes with the same physical address can also be connected to the same bus. I3C also supports an interrupt mechanism, so that the slave node can actively send data to the master node without waiting for the response to the command issued by the master node.

[0066] In some feasible embodiments, the network card sends the port identifier of the network card and the received LLDP message to the management controller through an I3C interrupt operation. For the specific implementation of the I3C interrupt operation, see the following embodiment.

[0067] Network card: The full name is network interface card (NIC), which is a piece of computer hardware designed to allow computers to communicate on a computer network. Because it has a media access control (MAC) address, it contains the functions of layer 1 (physical layer) and layer 2 (link layer) of the OSI model. It allows users to connect to each other via cables or wirelessly. Among them, a network card with a peripheral component interconnect express (PCIE) interface is also called a PCIE network card.

[0068] Among them, PCIE is a high-speed serial computer expansion bus standard. Since the signal definition of the connector includes I2C in the PCIE network card specification definition, and because I3C and I2C are compatible in physical signals, in some feasible embodiments, the PCIE network card and the device management module are physically connected through the existing I2C channel, or through the serial clock line SCL and the serial data line SDA, and communicate based on the I2C or I3C protocol without the need to add additional physical signals.

[0069] Link layer discovery protocol (LLDP): It is a data link layer protocol. LLDP is used by network devices to notify other devices of their own status by sending link layer discovery protocol data units (LLDPDU) in the local network. LLDP is a protocol that enables devices in the network to discover each other and notify each other of their status and exchange information.

[0070] Port: Port is the literal translation of the English word "port", which can be considered as the outlet for the device to communicate with the outside world. Ports can be divided into virtual ports and physical ports. Virtual ports can refer to ports inside the computer, which are usually invisible. For example, port 80 in a computer. Physical ports are also called interfaces, which are visible ports, such as the common RJ45 network port on the computer panel. Among them, a network card generally has one or more ports, and a switch has two or more ports.

[0071] Switch: A network device used for forwarding electrical (optical) signals. It can provide an exclusive electrical signal path for any two network nodes connected to the switch. The most common switch is the Ethernet switch. Other common switches include telephone voice switches, fiber optic switches, etc.

[0072] First, the application scenarios of the embodiments of the present application are exemplarily introduced.

[0073] At present, in computer communication and data center applications, network deployment is becoming more and more complicated. In many scenarios, multiple network cards are deployed in server devices to connect to multiple networks. The complexity of networking has given rise to the need for the server's management interface to accurately display the topological connection relationship between the network devices (such as switches) and network cards connected to the computing device network. In order to meet this need, the server needs to obtain the network topology connection information between the network devices and network cards connected to the computing device network through its management controller. Among them, the management interface refers to the interface displayed by the server's management controller, which is used to display relevant information about the server, such as the server's software and hardware operating status information, and to facilitate users to set management operations on the server, which also includes an interface for displaying network topology connection information. Users can use the network topology connection information interface to perform network deployment, configuration management, operation and maintenance, and other operations.

[0074] An embodiment of the present application provides a data transmission method, in which a network card and a management controller are connected via a serial clock line SCL and a serial data line SDA, that is, the network card and the management controller can communicate based on an I2C or I3C bus, and the network card directly sends an LLDP message received by the network card from the network and a port identifier of a port in the network card that receives the LLDP message to the management controller, wherein the LLDP message includes device information of a network device (such as a switch) connected to a computing device network; that is, the management controller directly obtains the above-mentioned LLDP message from the network card by using the I2C or I3C bus, and determines the port identifier of the first network card corresponding to the LLDP message, without the intervention of the OS, thereby avoiding the problem that the management controller cannot obtain the network topology connection information between the network card and the network device due to the OS being in a non-operating state (such as a standby state), thereby improving the stability of the management controller in obtaining the network topology connection information between the network device connected to the computing device network and the network card.

[0075] In some embodiments, an embodiment of the present application provides a data transmission method, which is applied to a management controller of a computing device, the management controller is connected to a network card via a serial clock line SCL and a serial data line SDA, and the network card is used to connect the computing device to an external network, the method comprising: the management controller obtains a link layer discovery protocol LLDP message from a first network card based on the serial clock line SCL and the serial data line SDA, and determines the port identifier of the first network card corresponding to the LLDP message; the LLDP message is sent by a network device (such as a switch) connected to the computing device via a network to a target port indicated by the port identifier on the first network card; the LLDP message includes device information of the network device; the management controller determines network topology connection information based on the device information of the network device in the LLDP message and the port identifier of the first network card corresponding to the LLDP message, and the network topology connection information is used to be displayed in the management interface of the management controller to show the topological connection relationship between the port of the network card and the network device.

[0076] In the above embodiment, the management controller can obtain the LLDP message received from the first network card based on the serial clock line SCL and the serial data line SDA in two ways: active acquisition or passive reception, and determine the port identifier of the first network card corresponding to the LLDP message. Then, the management controller determines the network topology connection information between the network device connected to the computing device through the network and the first network card based on the LLDP message and the port identifier; intervention of the OS of the computing device is not required, thereby avoiding the problem that the management controller cannot obtain the network topology connection information between the network card and the network device due to the OS being in a non-running state (such as standby state), thereby improving the stability of the management controller in obtaining the network topology connection information between the network card and the network device.

[0077] Secondly, the system architecture of the embodiment of the present application is exemplarily introduced.

[0078] The data transmission method provided in the embodiment of the present application can be applied to Figure 1 In the system architecture shown, in the system architecture, the computing device 101 is connected to the external network through a connected network card, and the network includes a network device 102, wherein the computing device 101 and the network device 102 are connected through Ethernet (referred to as: network connection). As an example, the computing device 101 can be a server device; the network device 102 can be a switch; the Ethernet can specifically be an intranet of a data center, an enterprise intranet, or a school intranet, etc., which is not limited in the embodiments of the present application.

[0079] Figure 1 In the figure, the network card 1012 built into the computing device 101 is taken as an example. In other embodiments, the network card may also be external.

[0080] The computing device 101 is used to determine the network connection topology information between the computing device 101 and the network device 102 by receiving the LLDP message sent by the network device 102 .

[0081] In the embodiment of the present application, the management controller 1011 in the computing device 101 is connected to the network card 1012 via a serial clock line SCL and a serial data line SDA. The serial clock line SCL and the serial data line SDA can support I2C and I3C protocols, so data that complies with the I2C or I3C protocol can be transmitted between the management controller 1011 and the network card 1012.

[0082] The network card 1012 is used to receive the LLDP message sent by the network device 102, which includes information of the network device 102. For example, when the network device 102 is a switch, the LLDP message may include the port identifier (such as port number, port name) and MAC address of the switch.

[0083] The network card 1012 may specifically be a network card having one or more interfaces, at least one of which is a PCIE interface, or at least one I2C or I3C interface.

[0084] In a possible implementation, the network card 1012 further includes a memory ( Figure 1 (not shown), the memory is used to store the above-mentioned LLDP message and the port identifier of the first network card corresponding to the LLDP message.

[0085] The management controller 1011 is used to obtain the LLDP message received by it from the network card 1012 based on the serial clock line SCL and the serial data line SDA, and determine the port identifier of the first network card corresponding to the LLDP message. The LLDP message is sent by a network device (such as a switch) connected to the computing device network to the target port indicated by the port identifier on the first network card; and based on the device information of the network device in the LLDP message and the port identifier of the first network card corresponding to the LLDP message, determine the network topology connection information, and the network topology connection information is used to be displayed in the management interface of the management controller to show the topological connection relationship between the port of the network card and the network device.

[0086] The network device 102 is used to send LLDP messages to the computing device 101 . Specifically, the network device 102 is used to send the LLDP messages that the management controller 1011 needs to obtain to a port of the network card 1012 .

[0087] The network device 102 may specifically be a switch having one or more ports, such as an Ethernet switch.

[0088] Optionally, the data transmission system may include one network device or multiple network devices. When the data transmission system includes multiple network devices, the network card 1012 may respectively establish network connections with the multiple switches.

[0089] Optionally, the computing device 101 may be connected to one network card or multiple network cards. When the computing device is connected to multiple network cards, one of the multiple network cards may be connected to the network device 102; or the multiple network cards may be connected to the network device 102 respectively.

[0090] It should be noted that, when the computing device 101 is connected to multiple network cards, and the data transmission system includes multiple network devices, any one of the multiple network cards has a network connection with at least one of the multiple network devices.

[0091] For example, Figure 2 is the above Figure 1 The hardware structure diagram of the computing device 101 in the data transmission system shown is shown. Taking the computing device as a server as an example, the server can be a rack server or a whole cabinet server in terms of form; in terms of performance, it can be a general server, a GPU (graphics processing unit) server, etc. or an artificial intelligence (AI) server.

[0092] The hardware part of the computing device includes a processor, a network card, a management controller and a memory, and the software part includes a management control module, a processor firmware and an operating system (OS) management unit.

[0093] The management control module runs in the management controller, and the OS management unit runs on the processor (such as Figure 2 As shown in FIG. 1 ), the management control module may be a management unit of a non-business module. The management control module is completely independent of the operating system of the computing device and may communicate with the OS management unit through the management control interface of the computing device.

[0094] Exemplarily, the management control module may include a management unit for the operation mode of the computer device, a management system in a management chip outside the processor, a baseboard management controller (BMC), a system management module (SMM), etc. It should be noted that the embodiments of the present application do not limit the specific form of the management control module, and the above is only an exemplary description. In the following embodiments, only the management control module is BMC as an example for description.

[0095] It should be understood that different server manufacturers have different names for the management control module. The management control module is called BMC in some manufacturers and is called remote management module (integrated light-out, iLO) in other manufacturers. The specific embodiments of the present application will not be listed one by one.

[0096] The network card is used to receive data or messages sent by the computing device and devices other than the computing device, and based on the destination address of the data or message, send the data or message to the OS management unit in the processor through the PCIE bus, or send the data or message to the management control module through the serial clock line SCL and the serial data line SDA; the network card is also used to receive data or messages sent by the processor and / or management controller in the computing device, and send the data or message to other devices.

[0097] The storage device may be a memory installed in a memory slot on a motherboard of a computing device, and the memory and a memory controller communicate with each other via a memory channel.

[0098] It should be noted that the system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0099] The present application provides a data transmission method. Figure 2 The management controller in the computing device shown is specifically as follows Figure 3 As shown, the method includes: S110-S120.

[0100] S110: The management controller obtains an LLDP message from the first network card based on the serial clock line SCL and the serial data line SDA, and determines a port identifier of the first network card corresponding to the LLDP message.

[0101] In this step, the management controller and the first network card communicate directly through the serial clock line SCL and the serial data line SDA. In this way, even if the OS is in a non-running state (such as a standby state), the management controller can obtain the LLDP message and determine the port identifier of the first network card corresponding to the LLDP message, wherein the aforementioned LLDP message is sent by a network device connected to the computing device through a network to the target port indicated by the port identifier on the first network card, that is, when the network card receives the LLDP message, it can know the correspondence between the LLDP message and the port identifier of the target port, for example, the network card receives LLDP message A from port No. 1.

[0102] In one possible implementation, after a network device connected to a computing device via a network sends an LLDP message to a target port indicated by a port identifier on a first network card, the first network card writes the LLDP message and the port identifier of the target port into a first table entry; wherein the first table entry is used to store the correspondence between the LLDP message and the port identifier.

[0103] Specifically, after the network card receives the LLDP message through the target port, the LLDP message can be first saved in a buffer in the network card, and then a first table entry can be established to record the corresponding relationship between the LLDP message and the target port, wherein the first table entry can be stored in the table resource or register resource of the network card itself. In this way, when the network card needs to send the LLDP message corresponding to the designated port, the accuracy of the sent data can be guaranteed, the reliability of the communication can be improved, and the accuracy of the management controller in determining the network topology connection information can be improved.

[0104] Exemplarily, as shown in Table 1 below, Table 1 is a specific example of the first table item, which includes 3 port identifiers and 4 LLDP messages of the first network card. Among them, the port identifiers include: port 1, port 2 and port 3; the LLDP message includes: message A to message D. The LLDP message received by port 1 in the network card includes: message A and message B, in short: the LLDP message corresponding to port A includes message A and message B; the LLDP message corresponding to port B includes message C; the LLDP message corresponding to port C includes message D.

[0105] Table 1

[0106]

[0107] In this way, if the first network card receives an instruction from the management controller instructing the network card to send an LLDP message corresponding to a port, the first network card can search the first table entry through the port identifier of the port and return the LLDP message corresponding to the port identifier to the management controller.

[0108] Furthermore, in order to save storage resources of the first network card, the LLDP message received and saved by the network card from the target port can be the latest one, that is, the LLDP message received by the first network card this time can overwrite the LLDP message saved last time to save buffer space.

[0109] Exemplarily, based on the above Table 1, if the time when the first network card obtains message B is later than the time when it obtains message A, message B can overwrite message A, thereby obtaining the following Table 2. Table 1 is another specific example of the first table item. By comparing Table 1 and Table 2, it can be seen that the storage resources occupied by Table 2 are less than those of the above Table 1.

[0110] Table 2

[0111] Port ID of the first network card LLDP packets Port 1 Message B Port 2 Message C Port 3 Message D

[0112] For detailed description of how the management controller obtains the LLDP message from the first network card in step S110, and how the management controller determines the port identifier of the first network card corresponding to the LLDP message, see the following Figures 5 to 11 The description of the corresponding embodiments will not be repeated here.

[0113] S120: The management controller determines network topology connection information based on the device information of the network device in the LLDP message and the port identifier of the first network card corresponding to the LLDP message.

[0114] In this step, the management controller can obtain the device information of the network device by parsing the LLDP message content, where the device information may include the MAC address, model, name, port number, etc. of the network device. Combined with the port identifier corresponding to the LLDP message, the management controller can determine the connection relationship between the network device and the port of the network card, that is, the network topology connection information, and the network topology connection information can be used to display in the management interface of the management controller to show the topological connection relationship between the port of the network card and the network device.

[0115] Exemplarily, the management controller obtains the device information of the network device by parsing LLDP message C: port 1 of switch 1, and the port identifier corresponding to LLDP message C is port 2 of network card 1, so the management controller determines the network topology connection information as: port 2 of network card 1 is connected to port 1 of switch 1.

[0116] Furthermore, the management controller can display the following information in the management interface by parsing multiple LLDP messages and the port identifiers corresponding to each LLDP message: Figure 4 The topological connection diagram shown in the figure is as follows: Figure 4 for Figure 3A schematic diagram of a topological connection relationship involved in the embodiment shown in the figure specifically includes: network cards No. 1 and No. 2, switches No. 1 and No. 2, and the above four devices all include at least Figure 4 3 ports are shown: ports 1 to 3, wherein ports 1 to 3 of network card 1 are respectively connected to port 1 and port 3 of switch 1 and port 1 of switch 2; ports 2 and 3 of network card 2 are respectively connected to ports 2 and 3 of switch 2.

[0117] It should be noted that the aforementioned Figure 4 This is just one possible example. The topological connection relationship displayed in the management interface of the management controller can be customized according to actual needs. For example, if there is no need to display the topological connection relationship between specific ports, then only the topological connection relationship between the network card and the network device can be displayed (for example, network card No. 1 is connected to switch No. 1).

[0118] Through the above S110-S120, the management controller determines the network topology connection information without OS intervention based on the serial clock line SCL and the serial data line SDA, thereby improving the stability of the management controller in obtaining the network topology connection information between the network device and the network card connected to the computing device network.

[0119] The following combination Figures 5 to 11 , step S110 is described in detail. Generally speaking, the management controller obtains the LLDP message from the first network card in the following two ways:

[0120] In a first manner, the management controller actively obtains the LLDP message from the first network card; in a second manner, the management controller passively receives the LLDP message sent by the first network card.

[0121] In the first mode, the following two embodiments are specifically included:

[0122] Embodiment 1

[0123] The embodiment of the present application extends the I3C protocol, defines commands for transmitting LLDP messages and port identifiers of network cards, and provides a specific implementation method for transmitting data (including LLDP messages and / or port identifiers of network cards) through write operations and read operations in the I3C protocol, wherein the command timing of the write-read operation defined in the I3C specification is as follows: Figure 5 shown.

[0124] The method is as follows Figure 6 As shown, including: S210-S240.

[0125] Optionally, before executing step S210, the management controller sends a broadcast instruction to the network card on the serial clock line SCL and the serial data line SDA to ensure that the management controller is connected to the network card through the serial clock line SCL and the serial data line SDA, and then performs the following steps to avoid invalid communication on the serial clock line SCL and the serial data line SDA and improve the communication efficiency.

[0126] Specifically, the management controller sends an I3C reserved address to the network card on the serial clock line SCL and the serial data line SDA. Different I3C reserved addresses have different functions. For example, 7'h7E is a broadcast instruction used to address all devices.

[0127] Exemplarily, the management controller sends a broadcast instruction: 7'h7E to the network card on the serial clock line SCL and the serial data line SDA.

[0128] If at least one network card receives the broadcast instruction and returns a response signal to the management controller indicating that it has received the broadcast instruction, then when the management controller receives the response signal to the broadcast instruction, the management controller can determine that it is connected to the network card through the serial clock line SCL and the serial data line SDA, and then continue to execute the following steps S210-S240.

[0129] S210. The management controller sends a first instruction and an identifier of the first network card to the network card.

[0130] In step S210, the management controller sends the first instruction and the identifier of the first network card to the network card according to the write operation in the I3C protocol.

[0131] The first instruction is explained below: Although the I3C protocol specification does not define the scheme, command, etc. of how to transmit LLDP messages and port identifiers of the network card, the I3C protocol specification defines some common command words (common command codes), which can be represented by the I3C direct communication (I3C directed common command codes, I3C directed CCC) field, where different common command words represent different functions, for example, 0x00 represents the enable events command (enable events command), and the I3C protocol specification also defines some reserved command words, with a specific value range of 0xE0-0xFE, which can be used for expansion. The embodiment of the present application takes the 0xEA command word as an example, and uses it as the first instruction for instructing the network card to return the LLDP message, or the Get LLDPDU instruction. Among them, 0xEA is only an example, and other values ​​can also be taken from 0xE0-0xFE, which can be set according to actual needs.

[0132] In the embodiment of the present application, the identifier of the first network card may refer to the I3C address of the first network card. In the same I3C communication system, there is a one-to-one correspondence between the I3C address and the network card, that is, the management controller can only access at most one network card according to one I3C address. The identifier of the first network card may also be the MAC address of the network card, or other set identifiers, etc.

[0133] Exemplarily, the management controller sends a first instruction: 0xEA and an identifier of the first network card: 7'b1010010 to the network card through the serial clock line SCL and the serial data line SDA.

[0134] S220: The first network card returns a response signal to the management controller.

[0135] In step S210, the management controller sends the first instruction and the identifier of the first network card to the network cards connected to it through the serial clock line SCL and the serial data line SDA, so that these network cards determine whether to respond to the first instruction according to the identifier of the first network card issued by the management controller, and return a response signal to the management controller if it is determined to respond to the first instruction.

[0136] Exemplarily, if there is a network card whose identification (I3C address) is consistent with the identification (I3C address) of the first network card, then network card A is the first network card. In this case, network card A will return a response signal to the management controller. In this way, when the management controller obtains the response signal, it can determine that the first network card exists among the network cards connected to the management controller through the serial clock line SCL and the serial data line SDA.

[0137] In one possible implementation, if the management controller does not receive a response signal within a set time range, the management controller may continue to send the first instruction and the identifier of the second network card, and so on, continue to send the first instruction and the identifier of the third network card until a response signal is received. If the management controller sends the identifiers of all network cards connected to it through the serial clock line SCL and the serial data line SDA and does not receive a response signal, it may send the first instruction and the identifier of the first network card again after a set time interval, or issue an alarm message to prompt relevant personnel to check.

[0138] S230: The management controller specifies a target port identifier from the port identifiers of the first network card, and sends the target port identifier to the first network card.

[0139] In this step, the management controller specifies a specific port among multiple ports of the first network card, and then obtains the LLDP message corresponding to the port, wherein the management controller can determine the port identifier in a variety of ways, for example, the management controller can obtain the LLDP messages received by all ports on the first network card in order from small to large according to the size order of all port numbers of the first network card, if the management controller obtained port No. 1 of the first network card last time, the port identifier determined by the management controller this time can be port No. 2 of the first network card. Then the management controller identifies the target port and sends it to the first network card through the serial clock line SCL and the serial data line SDA.

[0140] The embodiment of the present application does not limit how the management controller specifies the target port identifier from the port identifier of the first network card.

[0141] S240: The first network card returns an LLDP message to the management controller.

[0142] In this step, after the first network card receives the port identifier sent by the management controller in step S230, it can obtain the LLDP message corresponding to the port identifier by looking up a table (such as Table 2 above) and return it to the management controller. From the perspective of the management controller, the management controller obtains the LLDP message corresponding to the port identifier sent in step S230 from the first network card through an I3C read operation, and then the management controller can determine the network topology connection information based on the device information of the network device in the LLDP message and the port identifier sent in step S230.

[0143] Exemplarily, the first network card returns LLDP message A to the management controller, which receives and parses LLDP message A to obtain the device information of the network device therein: port 3 of switch 2, and the port identifier sent by the management controller is: port 4 of network card 1, and then the network topology connection information determined by the management controller is: port 4 of network card 1 is connected to port 3 of switch 2. Furthermore, the management controller uses the network topology connection information to display in the management interface of the management controller to show the topological connection relationship including port 4 of network card 1 connected to port 3 of switch 2.

[0144] When the first network card determines that there is no LLDP message corresponding to the port identifier, it can return a specific value to indicate that there is no LLDP information. For example, the first network card returns 0x00, where 0x00 is only used as an example. The first network card can also return other values ​​to indicate that there is no corresponding LLDP information. The embodiment of the present application does not limit this value.

[0145] In this way, through the above steps S210-S240, it is achieved that the management controller obtains the LLDP message corresponding to the specified port number from the network card through the write-read operation of I3C without the intervention of the OS, thereby improving the stability of the management controller in obtaining the network topology connection information between the network device connected to the computing device network and the network card.

[0146] Embodiment 2

[0147] I3C is backward compatible with I2C, and since there are a large number of devices that support the I2C protocol, for the sake of availability on the device side, the present application embodiment provides a specific implementation method for transmitting data (including LLDP messages and / or port identifiers of network cards) through write and read operations in the I2C protocol. The command timing of the write-read operation defined in the I2C specification is as follows: Figure 7 shown.

[0148] The embodiment of the present application extends the I2C protocol and defines a command for transmitting LLDP messages and port identifiers of network cards. The method is specifically as follows: Figure 8 As shown, including: S310-S360.

[0149] S310: The management controller sends a verification message to the network card.

[0150] In an embodiment of the present application, the verification message includes the identifier of the first network card, and the identifier of the first network card may refer to the I2C address of the first network card (same format as the I3C address). For example, the management controller sends a verification message to the network card via the serial clock line SCL and the serial data line SDA: 7'b1010010.

[0151] S320: The first network card returns a response signal to the management controller.

[0152] In the above step S310, the management controller sends a verification message to the network card connected to it through the serial clock line SCL and the serial data line SDA, wherein, if there is a network card that has passed the verification of the identification of the first network card in the verification message, for example, if there is a network card whose identification (I2C address) of network card A is consistent with the identification (I2C address) of the first network card in the verification message, then network card A is the first network card, and the first network card returns a response signal to the management controller, so that the management controller can determine the existence of the first network card when obtaining the response signal.

[0153] If the management controller does not receive a response signal to the verification message sent in step S310 within the set time range, the management controller may continue to send the verification message of the second network card, and so on, continue to send the verification message of the third network card until a response signal is received. If the management controller sends the verification messages of all the network cards connected to it through the serial clock line SCL and the serial data line SDA and does not receive a response signal, it may send the verification message of the first network card again after a set time interval, or issue an alarm message to prompt relevant personnel to check.

[0154] S330: The management controller sends a first instruction to the first network card.

[0155] The first instruction is described below: In the embodiment of the present application, the operation command field is defined based on the I2C protocol, and 0xE0 is taken as an example, which is used as the first instruction for instructing the network card to return the LLDP message, or the Get LLDPDU instruction. Among them, 0xE0 is only an example, and other values ​​can be taken from 0x00-0xFF, which can be set according to actual needs.

[0156] Exemplarily, the management controller sends a first instruction: 0xE0 to the first network card through the serial clock line SCL and the serial data line SDA.

[0157] S340: The first network card returns a response signal to the management controller.

[0158] In this step, the first network card returns a response signal to the management controller to indicate receipt of the first instruction.

[0159] Moreover, since the first instruction is defined in the embodiment of the present application, after receiving the first instruction sent by the management controller in step S330, the first network card can determine that it needs to return an LLDP message to the management controller instead of other data, thereby improving the efficiency of communication between the management controller and the first network card.

[0160] S350: The management controller specifies a target port identifier from the port identifiers of the first network card, and sends the target port identifier to the first network card.

[0161] In this step, the management controller may refer to the above step S230, which will not be described in detail herein.

[0162] S360: The first network card returns an LLDP message to the management controller.

[0163] This step and the subsequent process of the management controller determining the network topology connection information can refer to the relevant description of the above step S240, which will not be repeated here.

[0164] In this way, through the above steps S310-S360, it is achieved that the management controller obtains the LLDP message corresponding to the specified port number from the network card through the write-read operation of I2C without the intervention of the OS, thereby improving the stability of the management controller in obtaining the network topology connection information between the network device connected to the computing device network and the network card, and this method currently has high availability on the device side and low difficulty and complexity in implementation.

[0165] In the second method, the following embodiments are specifically included:

[0166] Embodiment 3

[0167] In the aforementioned embodiment 1 and embodiment 2, the starting point of data transmission is the management controller. However, the first to receive the LLDP message sent by the network device connected to the computing device through the network is actually the network card. Therefore, in order to further improve the real-time performance of the management controller in determining the network topology connection information, the embodiment of the present application provides a specific implementation method for the network card to actively transmit data (including LLDP messages and port identifiers) to the management controller through the interrupt operation in the I3C protocol, or the management controller to passively receive data (including LLDP messages and port identifiers) sent by the network card. Among them, the command timing of the interrupt operation defined in the I3C specification is as follows: Fig. 9 shown.

[0168] The embodiment of the present application extends the I3C protocol and defines a command for transmitting LLDP messages and port identifiers of network cards. The method is specifically as follows: Fig.10 As shown, the method includes: S410-S430.

[0169] Before the network card executes the following step S410, a network device (such as a switch) connected to the computing device through a network is connected to each port of the network card, and the network card receives an LLDP message sent by the network device through the port.

[0170] Optionally, after the network card receives an LLDP message sent by a network device connected to the computing device network through a target port, the network card writes the LLDP message and the port identifier of the target port into its own buffer, wherein the LLDP message and the port identifier of the target port have a corresponding relationship.

[0171] Exemplarily, after receiving LLDP message A sent by the switch in the network through port 1, the network card writes LLDP message A and port identifier: port 1 into its own buffer, and records the corresponding relationship between LLDP message A and port 1.

[0172] Optionally, after the network card receives an LLDP message sent by a network device connected to the computing device network through a target port, the network card writes the LLDP message and the port identifier of the target port into a first table entry. Please refer to the relevant instructions in the above step S110 and will not be repeated here.

[0173] S410: The first network card sends an interrupt request to the management controller.

[0174] In this step, after receiving the LLDP message, the first network card may actively send an interrupt request to the management controller through the serial clock line SCL and the serial data line SDA, where the interrupt request indicates that the first network card wants to send data to the management controller.

[0175] S420: If an interrupt request is received and accepted, the management controller sends an interrupt enable signal to the first network card.

[0176] In this step, when the management controller receives the interrupt request in step S420, it needs to first determine whether the interrupt request can be accepted according to the I3C protocol specification. For example, the management controller determines whether there are higher priority read and write operations that need to be processed. If acceptable, the management controller sends an interrupt enable signal to the first network card; if unacceptable, the management controller does not respond, thereby ensuring the stability and accuracy of data transmission on the serial clock line SCL and the serial data line SDA.

[0177] S430: The first network card sends interrupt data to the management controller.

[0178] In this step, the first network card sends the LLDP message and the corresponding port identifier to the management controller according to the format of the interrupt data specified in the I3C protocol, and the interrupt data specifically includes: an interrupt mandatory data byte (target mandatory data byte, target MDB) and an interrupt data content target IBI data, wherein the target MDB with a word length of one byte specifically includes an interrupt group number with a word length of 3 bits (bit) and an interrupt identifier with a word length of 5 bits. Different interrupt group numbers and interrupt numbers in the I3C protocol can be used to represent different interrupt types and interrupt data contents. The target IBI data specifically includes multiple interrupt data contents with a word length of 1 byte from target IBI data1 to target IBIdataN, and each target IBI data is followed by a transition bit (transition bit, T-Bit). When the T-Bit takes 1, it indicates that the interrupt data has not ended, and when the T-Bit takes 0, it indicates that the interrupt data has ended. Some reserved interrupt group numbers and interrupt numbers are defined in the I3C protocol specification and can be used for expansion. The embodiment of the present application uses the interrupt group number: 3'b000 and the interrupt number: 5'h0E as the first combination for indicating that the content type of the interrupt data is the type of transmitting the LLDP message. Among them, 3'b000 and 5'h0E are only examples, and the interrupt group number can also take other values ​​from 3'b000, 3'b110, and 3'b111; the interrupt number can also take other values ​​from 5'h00-5'h1F, and the specific values ​​can be set according to actual needs.

[0179] Specifically, when the network card executes step S430, it first sends a target MDB and then sends a T-Bit (value is 1), and then sends one or more target IBI data, each target IBI data is followed by a T-Bit, except that the T-Bit following the last target IBI data is 0, and the rest are 1.

[0180] Exemplarily, the network card fills the port identifier into "target IBI data1", and then fills the acquired LLDP message into "target IBI data2"-"target IBI dataN" in order in bytes, and transmits them to the management controller in order. The network card can fill the port identifier into other target IBI data according to actual needs.

[0181] Furthermore, after receiving the interrupt data sent by the first network card, the management controller determines that the combination of the interrupt group number and the interrupt number value in the target MDB in the interrupt data meets the first combination, thereby determining that the content type of the interrupt data is the type of LLDP message to be transmitted, thereby ensuring that the management controller parses the interrupt data in a correct parsing manner, thereby ensuring the accuracy of the network topology connection information determined by the management controller.

[0182] In this way, through the above steps S410-S430, it is achieved that without the intervention of the OS, the network card actively sends the LLDP message and the corresponding port number information to the information management controller through the I3C interrupt operation, thereby improving the stability of the management controller in obtaining the network topology connection information between the network device connected to the computing device network and the network card, and this method has high real-time performance.

[0183] In the above embodiments, when the management controller and the network card communicate through the serial clock line SCL and the serial data line SDA, they actually control the serial clock line SCL and the serial data line SDA to produce a specific level state or a combination of level conversion states in accordance with the specifications of the I2C or I3C protocol, which is not described in detail in the embodiments of the present application.

[0184] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0185] The embodiment of the present application can divide the data transmission device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0186] In the case of dividing each functional module into corresponding functional modules, Fig.11 A possible structural diagram of the data transmission device involved in the above embodiment is shown. Fig.11As shown, the data transmission device 1100 includes: an acquisition module 1110 and a determination unit 1120.

[0187] The acquisition module 1110 is used to obtain a link layer discovery protocol LLDP message from the first network card based on the serial clock line SCL and the serial data line SDA, and determine the port identifier of the first network card corresponding to the LLDP message; the LLDP message is sent by a network device connected to the computing device network to a target port indicated by the port identifier on the first network card; the LLDP message includes device information of the network device.

[0188] The determination unit 1120 is used to determine the network topology connection information based on the device information port identifier of the network device in the LLDP message and the port identifier of the first network card corresponding to the LLDP message, and the network topology connection information is used to be displayed in the management interface of the management controller to show the topological connection relationship between the port of the first network card and the network device.

[0189] Optionally, the acquisition module 1110 is used to send a first instruction to the first network card based on the serial clock line SCL and the serial data line SDA; the first instruction is used to instruct the first network card to return the LLDP message; if a response signal from the first network card to the first instruction is received, determine the port identifier, and send the port identifier to the first network card; receive the LLDP message corresponding to the port identifier returned by the first network card.

[0190] Optionally, the acquisition module 1110 is used to send the first instruction and the identifier of the first network card to the network card on the serial clock line SCL and the serial data line SDA based on the serial clock line SCL and the serial data line SDA; the network card is used to determine whether to respond to the first instruction according to the identifier of the first network card.

[0191] Optionally, the data transmission device 1100 further includes a broadcast module. The broadcast module is used to send a broadcast instruction to the network card on the serial clock line SCL and the serial data line SDA. The acquisition module 1110 is used to send the first instruction and the identifier of the first network card to the network card on the serial clock line SCL and the serial data line SDA when receiving a response signal from at least one network card to the broadcast instruction.

[0192] Optionally, the acquisition module 1110 is used to send a verification message to the network card on the serial clock line SCL and the serial data line SDA based on the serial clock line SCL and the serial data line SDA, and the verification message includes the identifier of the first network card; the network card is used to return a response signal when the identifier verification is successful; if the response signal of the first network card is received, the first instruction is sent to the first network card.

[0193] Optionally, the acquisition module 1110 is used to send an interrupt enable signal to the first network card if an interrupt request sent by the first network card is received and the interrupt request is accepted; based on the serial clock line SCL and the serial data line SDA, receive interrupt data sent by the first network card; the interrupt data includes an LLDP message and a port identifier of the first network card corresponding to the LLDP message; and obtain the LLDP message and the port identifier of the first network card corresponding to the LLDP message from the interrupt data.

[0194] Optionally, the interrupt data also includes an interrupt required data byte Target MDB; the interrupt required data byte Target MDB is used to indicate the content type of the interrupt data; the acquisition module 1110 is used to obtain the LLDP message and the port identifier of the first network card corresponding to the LLDP message from the interrupt data if the combination of the interrupt group number and the interrupt number value in the interrupt required data byte Target MDB meets the first combination; the first combination is used to indicate that the content type of the interrupt data is a transmitted LLDP message type.

[0195] Optionally, the identification of the network card includes address information that complies with an integrated circuit bus I2C or an improved integrated circuit bus I3C protocol specification.

[0196] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function in accordance with the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instruction can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) mode or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a magnetic disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)), etc.

[0197] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0198] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0199] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0200] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0201] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk and other media that can store program codes.

[0202] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data transmission method, characterized in that: A management controller applied to a computing device, wherein the management controller is connected to a network card via a serial clock line SCL and a serial data line SDA, and the network card is used to connect the computing device to an external network; the method comprises: Based on the serial clock line SCL and the serial data line SDA, a link layer discovery protocol LLDP message is obtained from the first network card, and a port identifier of the first network card corresponding to the LLDP message is determined; the LLDP message is sent by the network device connected to the computing device network to the target port indicated by the port identifier on the first network card; the LLDP message includes device information of the network device; Based on the device information of the network device in the LLDP message and the port identifier of the first network card corresponding to the LLDP message, the network topology connection information is determined, and the network topology connection information is used to be displayed in the management interface of the management controller to show the topological connection relationship between the port of the first network card and the network device.

2. The method according to claim 1, characterized in that The acquiring a link layer discovery protocol LLDP message from the first network card based on the serial clock line SCL and the serial data line SDA, and determining a port identifier of the first network card corresponding to the LLDP message, includes: Based on the serial clock line SCL and the serial data line SDA, sending a first instruction to the first network card; the first instruction is used to instruct the first network card to return the LLDP message; If a response signal from the first network card to the first instruction is received, determining a port identifier, and sending the port identifier to the first network card; Receive an LLDP message returned by the first network card and corresponding to the port identifier.

3. The method according to claim 2, characterized in that The sending a first instruction to the first network card based on the serial clock line SCL and the serial data line SDA includes: Based on the serial clock line SCL and the serial data line SDA, the first instruction and the identifier of the first network card are sent to the network card on the serial clock line SCL and the serial data line SDA; the network card is used to determine whether to respond to the first instruction according to the identifier of the first network card.

4. The method according to claim 3, characterized in that Before sending the first instruction and the identifier of the first network card based on the serial clock line SCL and the serial data line SDA, the method further includes: Sending a broadcast instruction to the network card on the serial clock line SCL and the serial data line SDA; The sending the first instruction and the identifier of the first network card to the network card on the serial clock line SCL and the serial data line SDA based on the serial clock line SCL and the serial data line SDA includes: When a response signal of at least one network card to the broadcast instruction is received, the first instruction and the identifier of the first network card are sent to the network cards on the serial clock line SCL and the serial data line SDA.

5. The method according to claim 2, characterized in that: The sending a first instruction to the first network card based on the serial clock line SCL and the serial data line SDA includes: Based on the serial clock line SCL and the serial data line SDA, a verification message is sent to the network card on the serial clock line SCL and the serial data line SDA, wherein the verification message includes an identification of the first network card; the network card is used to return a response signal when the identification verification is successful; If a response signal from the first network card is received, the first instruction is sent to the first network card.

6. The method according to claim 1, characterized in that The acquiring a link layer discovery protocol LLDP message from the first network card based on the serial clock line SCL and the serial data line SDA, and determining a port identifier of the first network card corresponding to the LLDP message, includes: If an interrupt request sent by the first network card is received and the interrupt request is accepted, an interrupt enable signal is sent to the first network card; Based on the serial clock line SCL and the serial data line SDA, receiving interrupt data sent by the first network card; the interrupt data includes an LLDP message and a port identifier of the first network card corresponding to the LLDP message; The LLDP message and the port identifier of the first network card corresponding to the LLDP message are obtained from the interrupt data.

7. The method according to claim 6, characterized in that The interruption data also includes an interruption required data byte Target MDB; the interruption required data byte Target MDB is used to indicate the content type of the interruption data; The acquiring the LLDP message and the port identifier of the first network card corresponding to the LLDP message from the interrupt data includes: If the combination of the interrupt group number and the interrupt number value in the interrupt required data byte Target MDB meets the first combination, the LLDP message and the port identifier of the first network card corresponding to the LLDP message are obtained from the interrupt data; the first combination is used to indicate that the content type of the interrupt data is a transmission LLDP message type.

8. The method according to any one of claims 3 to 7, characterized in that: The identification of the network card includes address information that complies with the protocol specification of the integrated circuit bus I2C or the improved integrated circuit bus I3C.

9. A data transmission method, characterized in that: Applied to a network card, the network card is connected to a management controller of a computing device via a serial clock line SCL and a serial data line SDA, the network card is used to connect the computing device to an external network, the method comprising: Determine the port identifier, and based on the serial clock line SCL and the serial data line SDA, send a link layer discovery protocol LLDP message corresponding to the port identifier to the management controller; the LLDP message is sent by the network device connected to the computing device network to the target port indicated by the port identifier on the network card; the LLDP message includes device information of the network device.

10. The method according to claim 9, characterized in that The determining the port identifier and sending a link layer discovery protocol LLDP message corresponding to the port identifier to the management controller based on the serial clock line SCL and the serial data line SDA includes: If a first instruction sent by the management controller based on the serial clock line SCL and the serial data line SDA is received, a response signal for the first instruction is sent to the management controller; the first instruction is used to instruct the network card to return the LLDP message; If a port identifier sent by the management controller is received, obtaining an LLDP message corresponding to the port identifier; Based on the serial clock line SCL and the serial data line SDA, the LLDP message is returned to the management controller.

11. The method according to claim 10, characterized in that The sending a response signal to the management controller for the first instruction includes: If the first instruction and the identifier of the first network card sent by the management controller based on the serial clock line SCL and the serial data line SDA are received, and it is determined to respond to the first instruction according to the identifier of the first network card, a response signal for the first instruction is sent to the management controller.

12. The method according to claim 11, characterized in that Before sending a response signal to the management controller for the first instruction, the method further includes: If a broadcast instruction sent by the management controller based on the serial clock line SCL and the serial data line SDA is received, a response signal for the broadcast instruction is sent to the management controller; The sending a response signal to the management controller for the first instruction includes: If the first instruction and the identifier of the first network card sent by the management controller based on the serial clock line SCL and the serial data line SDA are received, and it is determined to respond to the first instruction according to the identifier of the first network card, a response signal for the first instruction is sent to the management controller.

13. The method according to claim 10, characterized in that If a first instruction sent by the management controller based on the serial clock line SCL and the serial data line SDA is received, before sending a response signal to the management controller for the first instruction, the method further includes: If a verification message is received from the management controller based on the serial clock line SCL and the serial data line SDA, and if the verification message is successfully verified, a response signal for the verification message is sent to the management controller; the verification message includes an identifier of the first network card.

14. The method according to claim 9, characterized in that The determining the port identifier and sending a link layer discovery protocol LLDP message corresponding to the port identifier to the management controller based on the serial clock line SCL and the serial data line SDA includes: Based on the serial clock line SCL and the serial data line SDA, sending an interrupt request to the management controller; Receiving an interrupt enable signal returned by the management controller; Based on the serial clock line SCL and the serial data line SDA, interrupt data is sent to the management controller; the interrupt data includes the LLDP message and the port identifier of the first network card corresponding to the LLDP message.

15. The method according to claim 14, characterized in that The interrupt data sent to the management controller based on the serial clock line SCL and the serial data line SDA includes: Based on the serial clock line SCL and the serial data line SDA, the interruption required data byte target MDB and the interruption data content are sent to the management controller; The combination of the interrupt group number and the interrupt number value in the interrupt required data byte target MDB conforms to the first combination; the first combination is used to indicate that the content type of the interrupt data is the LLDP message type for transmitting; the interrupt data content includes the LLDP message and the port identifier of the first network card corresponding to the LLDP message.

16. The method according to any one of claims 9 to 15, characterized in that: After the target port receives the LLDP message sent by the network device connected to the computing device network, the method further includes: The LLDP message and the port identifier of the target port are written into a first table entry; the first table entry is used to store the corresponding relationship between the LLDP message and the port identifier.

17. The method according to any one of claims 9 to 16, characterized in that: The identification of the network card includes address information that complies with the protocol specification of the integrated circuit bus I2C or the improved integrated circuit bus I3C.

18. A computing device, characterized in that The computing device comprises a management controller and a central processing unit; the central processing unit is connected to a network card; the network card is used to connect the computing device to an external network; the management controller is connected to the network card via a serial clock line SCL and a serial data line SDA; The management controller is used to obtain a link layer discovery protocol LLDP message from the first network card based on the serial clock line SCL and the serial data line SDA, and determine a port identifier of the first network card corresponding to the LLDP message; The LLDP message is sent by the network device connected to the computing device network to the target port indicated by the port identifier on the first network card; the LLDP message includes device information of the network device; Based on the device information of the network device in the LLDP message and the port identifier of the first network card corresponding to the LLDP message, a topological connection relationship between the port of the first network card and the network device is determined, and the topological connection relationship is used to be displayed in the management interface of the management controller.

Citation Information

Cited By

  • Data transmission method and computing device

    WO2026016562A1