CN110958132A - Method for monitoring network card equipment, substrate management controller and network card equipment - Google Patents

Method for monitoring network card equipment, substrate management controller and network card equipment Download PDF

Info

Publication number
CN110958132A
CN110958132A CN201911056425.3A CN201911056425A CN110958132A CN 110958132 A CN110958132 A CN 110958132A CN 201911056425 A CN201911056425 A CN 201911056425A CN 110958132 A CN110958132 A CN 110958132A
Authority
CN
China
Prior art keywords
mctp
ncsi
request message
network card
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201911056425.3A
Other languages
Chinese (zh)
Inventor
袁传博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911056425.3A priority Critical patent/CN110958132A/en
Publication of CN110958132A publication Critical patent/CN110958132A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40052High-speed IEEE 1394 serial bus
    • H04L12/40078Bus configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history

Landscapes

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

Abstract

The embodiment of the invention discloses a method for monitoring a network card device, a Baseboard Management Controller (BMC) and a network card device, wherein one of the methods comprises the following steps: the method comprises the steps that a baseboard management controller BMC sends a device management protocol MCTP request message to a network card device; the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment. Therefore, the network card equipment can be monitored through the MCTP message, and the monitoring capability of the BMC is improved.

Description

Method for monitoring network card equipment, substrate management controller and network card equipment
Technical Field
The present disclosure relates to a network card monitoring technology for a server, and more particularly, to a method for monitoring a network card device, a BMC and a network card device.
Background
With the rapid development of information technology and the landing of cloud computing and the internet of things, users have higher requirements on the reliability and the information processing capacity of the server. Compared with the traditional server, the new generation server has great advantages in computing performance and reliability compared with the traditional server, and is more and more widely applied in the field with strict requirements on real-time performance, reliability and availability, so that the new generation server has higher requirements on network services. Therefore, various types of network card devices are generated according to different service requirements: an Open Computing Project (OCP) network card, a Peripheral Component Interconnect Express (PCIE) network card, an onboard network card, an intelligent network card, and the like.
In a conventional scheme, a BMC (Baseboard Management Controller) sends an NCSI command through an NCSI (Network Controller Sideband Interface) physical link to acquire Network card information. However, because the BMC has only one NCSI physical link, only one network card can be monitored at the same time, and information of multiple network cards cannot be monitored simultaneously, which cannot meet the requirements of the current service.
Disclosure of Invention
In view of this, an embodiment of the present invention provides a method for monitoring a network card device, including:
the method comprises the steps that a baseboard management controller BMC sends a device management protocol MCTP request message to a network card device;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment.
The embodiment of the invention also provides a method for monitoring the network card equipment, which comprises the following steps:
the network card equipment receives an equipment management protocol MCTP request message sent by a baseboard management controller BMC;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment;
the network card equipment analyzes the MCTP request message to obtain the NCSI command request message;
acquiring the information of the network card equipment according to the NCSI command request message and generating an NCSI command response message of the NCSI command request message;
generating an MCTP response message of the MCTP request message according to the NCSI command response message, and sending the MCTP response message to the BMC;
the MCTP response message carries the NCSI command response message, and the NCSI command response message carries the information of the network card equipment.
An embodiment of the present invention further provides a BMC, including:
the sending unit is used for sending a device management protocol MCTP request message to the network card device by the BMC;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment.
An embodiment of the present invention further provides a network card device, including:
the device comprises a receiving unit, a base plate management controller BMC and a processing unit, wherein the receiving unit is used for receiving a device management protocol MCTP request message sent by the base plate management controller BMC;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment;
the analyzing unit is used for analyzing the MCTP request message to obtain the NCSI command request message;
a generating unit, configured to generate an NCSI command response packet of the NCSI command request packet according to the NCSI command request packet and the information of the network card device;
the sending unit is used for generating an MCTP response message of the MCTP request message according to the NCSI command response message and sending the MCTP response message to the BMC;
the MCTP response message carries the NCSI command response message, and the NCSI command response message carries the information of the network card equipment.
The technical scheme provided by the embodiment of the invention can monitor the network card equipment through the MCTP message, thereby improving the monitoring capability of the BMC.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. Other advantages of the application may be realized and attained by the instrumentalities and combinations particularly pointed out in the specification, claims, and drawings.
Drawings
The accompanying drawings are included to provide an understanding of the present disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the examples serve to explain the principles of the disclosure and not to limit the disclosure.
Fig. 1 is a schematic flowchart of a method for monitoring a network card device according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for monitoring a network card device according to another embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for monitoring a network card device according to another embodiment of the present invention;
fig. 4 is a schematic flowchart of a method for monitoring a network card device according to another embodiment of the present invention;
fig. 5 is a schematic flowchart of a method for monitoring a network card device according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a BMC according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a network card device according to an embodiment of the present invention.
Detailed Description
The present application describes embodiments, but the description is illustrative rather than limiting and it will be apparent to those of ordinary skill in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are possible. Any feature or element of any embodiment may be used in combination with or instead of any other feature or element in any other embodiment, unless expressly limited otherwise.
The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in this application may also be combined with any conventional features or elements to form a unique inventive concept as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive aspects to form yet another unique inventive aspect, as defined by the claims. Thus, it should be understood that any of the features shown and/or discussed in this application may be implemented alone or in any suitable combination. Accordingly, the embodiments are not limited except as by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
Further, in describing representative embodiments, the specification may have presented the method and/or process as a particular sequence of steps. However, to the extent that the method or process does not rely on the particular order of steps set forth herein, the method or process should not be limited to the particular sequence of steps described. Other orders of steps are possible as will be understood by those of ordinary skill in the art. Therefore, the particular order of the steps set forth in the specification should not be construed as limitations on the claims. Further, the claims directed to the method and/or process should not be limited to the performance of their steps in the order written, and one skilled in the art can readily appreciate that the sequences may be varied and still remain within the spirit and scope of the embodiments of the present application.
Fig. 1 is a schematic flowchart of a method for monitoring a network card device according to an embodiment of the present invention, where as shown in fig. 1, the method includes:
step 101, a baseboard management controller BMC sends a device management protocol MCTP request message to a network card device;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment.
The BMC sends the MCTP request message through a PCIE link or a two-wire serial bus I2C link of a high-speed serial computer expansion bus.
Before the BMC sends a device management protocol MCTP request message to the network card device, the method further includes:
and the BMC forms the NCSI command request message according to an NCSI protocol, and generates the MCTP request message on the NCSI command request message according to an MCTP protocol.
The MCTP request message comprises an MCTP message header and an MCTP message body, and the MCTP message body carries the NCSI command request message.
Wherein, the method also comprises:
the BMC receives MCTP response messages returned by the network card equipment;
the MCTP response message carries an NCSI command response message of the NCSI command request message, and the NCSI command response message carries the information of the network card equipment;
analyzing the MCTP response message to obtain the NCSI command response message;
and obtaining the information of the network card equipment according to the NCSI command response message.
When the BMC sends a corresponding MCTP request message to a plurality of network card devices, the NCSI command request message carried by each MCTP request message is used for requesting to acquire the information of the corresponding network card device.
The technical scheme provided by the embodiment of the invention can monitor the network card equipment through the MCTP message. The monitoring capability of the BMC is improved.
Furthermore, because a plurality of MCTP request messages can be simultaneously sent through a PCIE link or a two-wire serial bus I2C link of a high-speed serial computer expansion bus, a plurality of network card devices can be monitored simultaneously, the problem that only one network card can be monitored at the same time when NCSI commands are sent through an NCSI physical link to acquire network card information is avoided, and the requirement of the current service is met.
Fig. 2 is a schematic flowchart of a method for monitoring a network card device according to another embodiment of the present invention, as shown in fig. 2, the method includes:
step 201, a network card device receives a device management protocol MCTP request message sent by a baseboard management controller BMC;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment;
step 202, the network card device analyzes the MCTP request message to obtain the NCSI command request message;
step 203, acquiring the information of the network card device according to the NCSI command request message and generating an NCSI command response message of the NCSI command request message;
step 204, generating an MCTP response message of the MCTP request message according to the NCSI command response message, and sending the MCTP response message to the BMC;
the MCTP response message carries the NCSI command response message, and the NCSI command response message carries the information of the network card equipment.
The network card device receives the MCTP request message sent by the BMC through a high-speed serial computer expansion bus PCIE link or a two-wire serial bus I2C link;
and the network card device sends the MCTP response message to the BMC through the PCIE link or the I2C link.
The technical scheme provided by the embodiment of the invention can monitor the network card equipment through the MCTP message. The monitoring capability of the BMC is improved.
Fig. 3 is a schematic flowchart of a method for monitoring a network card device according to another embodiment of the present invention, as shown in fig. 3, the method includes:
step 301, the BMC composes an NCSI command request message according to the NCSI protocol, and generates an MCTP request message on the NCSI command request message according to the MCTP protocol;
the specific way in which the BMC composes the NCSI command request message according to the NCSI protocol is not described herein in detail for the prior art.
When the BMC simultaneously sends corresponding MCTP request messages to multiple network card devices, multiple NCSI command request messages need to be formed, and each NCSI command request message is used to request to acquire information of the corresponding network card device.
The MCTP (Management Component Transport Protocol) is a Protocol designed by DMTF (Distributed Management Task Force) and used to support communication between different intelligent hardware components constituting a platform Management subsystem, and the Protocol is independent of the attributes of a physical bus at the bottom layer and the message transfer of a data link layer used on the bus.
Wherein, generating the MCTP request message according to the MCTP protocol on the NCSI command request message includes:
and taking the NCSI command request message as a message body of the MCTP request message, and then adding an MCTP message header to jointly form the MCTP request message.
When the BMC simultaneously sends corresponding MCTP request messages to a plurality of network card devices, a plurality of NCSI command request messages are respectively used as message bodies of each MCTP request message, and then MCTP message headers are added to jointly form the MCTP request message.
Step 302, the baseboard management controller BMC sends a device management protocol MCTP request message to the network card device;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment.
Specifically, the BMC sends the MCTP request message through a high-speed serial computer expansion bus pcie (peripheral component interconnect express) link or a two-wire serial bus I2C (Intel-Integrated Circuit) link.
The BMC may simultaneously send corresponding MCTP request messages to a plurality of network card devices, where an NCSI command request message carried in each MCTP request message is used to request to acquire information of the corresponding network card device.
Step 303, the network card device receives a device management protocol MCTP request message sent by a baseboard management controller BMC;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment.
Specifically, the MCTP request packet includes an MCTP header and an MCTP body, and the MCTP body carries the NCSI command request packet.
Specifically, the network card device receives the MCTP request message sent by the BMC through a high-speed serial computer expansion bus PCIE link or a two-wire serial bus I2C link.
Step 304, the network card device analyzes the MCTP request message to obtain the NCSI command request message;
the analyzing, by the network card device, the MCTP request packet to obtain the NCSI command request packet includes:
stripping an MCTP message header from the received MCTP request message, and obtaining the NCSI command request message from a message body of the MCTP request message.
305, the network card device acquires the information of the network card device according to the NCSI command request message and generates an NCSI command response message of the NCSI command request message;
wherein, the information of the network card device includes: network card temperature, optical module temperature, network card rate, network port connection state, network card FW (Firmware) version and the like.
The network card equipment acquires the information of the network card according to the NCSI command in the NCSI command request message and generates an NCSI command response message, wherein the NCSI command response message carries the information of the network card equipment. The specific way in which the network card device acquires the information of the network card according to the NCSI command and generates an NCSI command response message is not described herein again in the prior art.
Step 306, the network card device generates an MCTP response message of the MCTP request message according to the NCSI command response message, and sends the MCTP response message to the BMC;
wherein, the network card device generates an MCTP response message of the MCTP request message according to the NCSI command response message, and includes:
and taking the NCSI command response message as a message body of the MCTP response message, and adding an MCTP message header to generate the MCTP response message.
Specifically, the network card device sends the MCTP response message to the BMC through the PCIE link or the I2C link.
Step 307, the BMC receives an MCTP response message returned by the network card device;
the MCTP response message carries an NCSI command response message of the NCSI command request message, and the NCSI command response message carries information of the network card equipment;
step 308, analyzing the MCTP response message to obtain the NCSI command response message;
wherein, the analyzing the MCTP response packet to obtain the NCSI command response packet includes:
and stripping an MCTP message header from the received MCTP response message, and obtaining the NCSI command response message from the message body of the MCTP response message.
Step 309, obtaining the information of the network card device according to the NCSI command response message.
The NCSI command response message carries the information of the network card equipment, and the information of the network card equipment can be obtained by analyzing the NCSI command response message.
The technical scheme provided by the embodiment of the invention is based on MCTP protocol to network card equipment information, and can be independent of the traditional NCSI physical link, thereby improving the monitoring management capability of the server and improving the product competitiveness.
Fig. 4 is a schematic flowchart of a method for monitoring a network card device according to another embodiment of the present invention, as shown in fig. 4, the method includes:
step 401, the BMC composes an NCSI command request message according to the NCSI protocol, and generates an MCTP request message on the NCSI command request message according to the MCTP protocol;
the specific way in which the BMC composes the NCSI command request message according to the NCSI protocol is not described herein in detail for the prior art.
When the BMC simultaneously sends corresponding MCTP request messages to multiple network card devices, multiple NCSI command request messages need to be formed, and each NCSI command request message is used to request to acquire information of the corresponding network card device.
Wherein, generating the MCTP request message according to the MCTP protocol on the NCSI command request message includes:
and taking the NCSI command request message as a message body of the MCTP request message, and then adding an MCTP message header to form the MCTP request message.
Specifically, only a layer of MCTP header is encapsulated in the NCSI command packet according to the MCTP protocol standard, and a corresponding MCTP request packet is generated.
When the BMC simultaneously sends corresponding MCTP request messages to a plurality of network card devices, a plurality of NCSI command request messages are respectively used as message bodies of each MCTP request message, and then MCTP message headers are added to jointly form the MCTP request message.
Step 402, the BMC sends an MCTP request message to the network card device through a PCIE link of a high-speed serial computer expansion bus or an I2C link of a two-wire serial bus;
the MCTP request message carries an NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment.
The BMC may send corresponding MCTP request messages to the multiple network card devices through the PCIE link or the I2C link at the same time, where an NCSI command request message carried in each MCTP request message is used to request to acquire information of the corresponding network card device.
Specifically, the BMC only needs to encapsulate a layer of MCTP header on the NCSI command request message according to the MCTP protocol standard, and can transmit the MCTP message through the PCIE link/I2C link.
Step 403, the network card device receives an MCTP request message sent by the BMC through the PCIE link or the I2C link;
the MCTP request message carries an NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment.
Specifically, the MCTP request packet includes an MCTP header and an MCTP body, and the MCTP body carries the NCSI command request packet.
Step 404, the network card device analyzes the MCTP request message to obtain the NCSI command request message;
the analyzing, by the network card device, the MCTP request packet to obtain the NCSI command request packet includes:
stripping an MCTP message header from the received MCTP request message, and obtaining the NCSI command request message from a message body of the MCTP request message.
Specifically, after receiving the MCTP request message, the network card strips the MCTP header, identifies a specific NCSI command request message, and returns corresponding data according to the command request.
Step 405, the network card device acquires the information of the network card device according to the NCSI command request message and generates an NCSI command response message of the NCSI command request message;
wherein, the information of the network card device includes: network card temperature, optical module temperature, network card rate, network port connection state, network card FW (Firmware) version and the like.
The network card equipment acquires network card information according to an NCSI command in the NCSI command request message to generate an NCSI command response message, wherein the NCSI command response message carries the information of the network card equipment. The specific way in which the network card device acquires the network card information according to the NCSI command to generate the NCSI command response message is not described herein again for the prior art.
Step 406, the network card device generates an MCTP response message of the MCTP request message according to the NCSI command response message, and sends the MCTP response message to the BMC through a PCIE link or an I2C link;
wherein, the network card device generates an MCTP response message of the MCTP request message according to the NCSI command response message, and includes:
and taking the NCSI command response message as a message body of the MCTP response message, and adding an MCTP message header to generate the MCTP response message.
Specifically, the network card device only needs to encapsulate a layer of MCTP header on the NCSI command response packet according to the MCTP protocol standard, and can transmit the MCTP response packet through the PCIE link/I2C link.
Step 407, the BMC receives an MCTP response message returned by the network card device through a PCIE link or an I2C link;
the MCTP response message carries an NCSI command response message of the NCSI command request message, and the NCSI command response message carries information of the network card equipment;
step 408, analyzing the MCTP response message to obtain the NCSI command response message;
wherein, the analyzing the MCTP response packet to obtain the NCSI command response packet includes:
and stripping an MCTP message header from the received MCTP response message, and obtaining the NCSI command response message from the message body of the MCTP response message.
Step 409, obtaining the information of the network card device according to the NCSI command response message.
The NCSI command response message carries the information of the network card equipment, and the information of the network card equipment can be obtained by analyzing the NCSI command response message.
Specifically, after receiving the MCTP response message, the BMC strips the MCTP header to obtain a specific NCSI command response message, and then identifies the information of the network card device carried in the NCSI command response message.
According to the technical scheme provided by the embodiment of the invention, the NCSI command message is sent on the PCIE link/I2C link through the MCTP protocol, the information of the network card equipment is monitored, and the monitoring capability of the BMC is improved. Furthermore, the information of a plurality of different types of network card equipment can be monitored simultaneously, the monitoring management capacity of the server is improved, and the product competitiveness is improved.
Fig. 5 is a flowchart illustrating a method for monitoring a network card device according to another embodiment of the present invention, where the embodiment is applied to a scenario where a BMC needs to monitor multiple network card devices at the same time.
As shown in fig. 5, the method includes:
step 501, the BMC forms a plurality of corresponding NCSI command request messages according to the NCSI protocol;
specifically, before that, the BMC may identify that all network card devices are currently plugged into the server according to the asset information sent to the BMC by the BIOS. The BMC is used as a Bus Owner to firstly distribute unique Eid for each network card device, and the EID of the device is used as an address for subsequently receiving and returning MCTP messages.
The method comprises the steps of generating a plurality of NCSI command request messages corresponding to network card equipment, wherein the NCSI command request messages are used for requesting to acquire information of the corresponding network card equipment when the network card equipment needs to be monitored simultaneously.
The specific implementation of the BMC forming the corresponding NCSI command message according to the NCSI protocol is the prior art, and is not described herein again.
Step 502, the BMC packages MCTP headers on the NCSI command request messages, respectively, and generates a plurality of corresponding MCTP request messages;
and the destination address in the MCTP message header is the EID of the corresponding network card equipment.
When the BMC simultaneously monitors a plurality of network card devices, it may generate a corresponding NCSI command request message for each network card device when a preset monitoring period comes, and further generate a corresponding MCTP request message, where a destination address in a header of each MCTP request message is the EID of the corresponding network card device.
The specific structure of the MCTP header is the existing standard content, and is not described herein again.
Step 503, the BMC sends a corresponding MCTP request message to the multiple network card devices through the PCIE link or the I2C link;
specifically, the MCTP request message includes an MCTP message header and an MCTP message body, a destination address in the MCTP message header is an EID of the corresponding network card device, the MCTP message body carries a corresponding NCSI command request message, and the corresponding NCSI command request message is used to obtain information of the network card device corresponding to the EID in the message body.
Step 504, the network card device receives an MCTP request message sent by the BMC through a PCIE link or an I2C link;
the MCTP request message carries an NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment.
Specifically, the MCTP request packet includes an MCTP packet header and an MCTP packet body, where the MCTP packet body carries the NCSI command request packet, and a destination address of the MCTP packet header is the EID of the network card device.
Step 505, the network card device strips the MCTP header from the received MCTP request message, and obtains the NCSI command request message from the MCTP request message body;
step 506, the network card device identifies an NCSI command from the NCSI command request message, acquires information of the network card device according to the NCSI command, and generates an NCSI command response message;
wherein, the information of the network card device includes: network card temperature, optical module temperature, network card rate, network port connection state, network card FW (Firmware) version and the like.
The network card equipment collects information of the network card equipment according to an NCSI command in the NCSI command request message to generate an NCSI command response message, wherein the NCSI command response message carries the information of the network card equipment. The specific way in which the network card device collects information of the network card device according to the NCSI command and generates the NCSI command response message is the prior art and is not described herein again.
Step 507, the network card device packages an MCTP message header on the NCSI command response message to generate an MCTP response message, and sends the MCTP response message to the BMC through a PCIE link or an I2C link;
and generating the MCTP response message by taking the NCSI command response message as a message body of the MCTP response message and adding an MCTP message header.
Specifically, the network card device only needs to encapsulate a layer of MCTP header on the NCSI command response packet according to the MCTP protocol standard, and can transmit the MCTP response packet through the PCIE link/I2C link.
Step 508, the BMC receives an MCTP response message returned by the network card device through a PCIE link or an I2C link;
the MCTP response message carries an NCSI command response message of the NCSI command request message, and the NCSI command response message carries information of the network card equipment;
step 509, the BMC strips the MCTP header from the MCTP response packet received, and obtains the NCSI command response packet from the MCTP response packet body;
and step 510, obtaining the information of the network card device according to the NCSI command response message.
Specifically, after receiving the MCTP response message, the BMC strips the MCTP header to obtain a specific NCSI command response message, and then identifies the information of the network card device carried in the NCSI command response message.
According to the technical scheme provided by the embodiment of the invention, the NCSI command message is sent on the PCIE link/I2C link through the MCTP, so that the information of a plurality of different types of network card equipment can be monitored simultaneously, the monitoring management capability of the server is improved, and the product competitiveness is improved.
Fig. 6 is a schematic structural diagram of a BMC according to an embodiment of the present invention, and as shown in fig. 6, the BMC includes:
the sending unit is used for sending a device management protocol MCTP request message to the network card device by the BMC;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment.
The sending unit is specifically configured to send the MCTP request packet through a high-speed serial computer expansion bus PCIE link or a two-wire serial bus I2C link.
Wherein the apparatus further comprises:
and the generating unit is used for forming the NCSI command request message according to an NCSI protocol and generating the MCTP request message on the NCSI command request message according to an MCTP protocol.
The MCTP request message comprises an MCTP message header and an MCTP message body, and the MCTP message body carries the NCSI command request message.
Wherein, the device still includes:
a receiving unit, configured to receive an MCTP response packet returned by the network card device;
the MCTP response message carries an NCSI command response message of the NCSI command request message, and the NCSI command response message carries the information of the network card equipment;
the analyzing unit is used for analyzing the MCTP response message to obtain the NCSI command response message; and obtaining the information of the network card equipment according to the NCSI command response message.
When the BMC sends a corresponding MCTP request message to a plurality of network card devices, the NCSI command request message carried by each MCTP request message is used for requesting to acquire the information of the corresponding network card device.
Fig. 7 is a schematic structural diagram of a network card device according to an embodiment of the present invention, and as shown in fig. 7, the network card device includes:
the device comprises a receiving unit, a base plate management controller BMC and a processing unit, wherein the receiving unit is used for receiving a device management protocol MCTP request message sent by the base plate management controller BMC;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment;
the analyzing unit is used for analyzing the MCTP request message to obtain the NCSI command request message;
a generating unit, configured to acquire information of the network card device according to the NCSI command request message and generate an NCSI command response message of the NCSI command request message;
the sending unit is used for generating an MCTP response message of the MCTP request message according to the NCSI command response message and sending the MCTP response message to the BMC;
the MCTP response message carries the NCSI command response message, and the NCSI command response message carries the information of the network card equipment.
The receiving unit is specifically configured to receive the MCTP request message sent by the BMC through a high-speed serial computer expansion bus PCIE link or a two-wire serial bus I2C link;
the sending unit is specifically configured to send the MCTP response packet to the BMC through the PCIE link or the I2C link.
An embodiment of the present invention further provides a BMC, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the method steps performed by any of the BMCs described above.
An embodiment of the present invention further provides a network card device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the method steps performed by any of the network card devices described above.
The embodiment of the present invention further provides a computer-readable storage medium, where an information processing program is stored on the computer-readable storage medium, and when the information processing program is executed by a processor, the information processing program implements the steps of any one of the methods for monitoring a network card device.
The scheme for acquiring the information of the network card based on the MCTP provided by the embodiment of the invention can also extend to other devices supporting the MCTP.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (10)

1. A method of monitoring a network card device, comprising:
the method comprises the steps that a baseboard management controller BMC sends a device management protocol MCTP request message to a network card device;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment.
2. The method of claim 1,
and the BMC sends the MCTP request message through a PCIE link or a two-wire serial bus I2C link of a high-speed serial computer expansion bus.
3. The method of claim 1, wherein before the BMC sends the MCTP request message to the network card device, the method further comprises:
and the BMC forms the NCSI command request message according to an NCSI protocol, and generates the MCTP request message on the NCSI command request message according to an MCTP protocol.
4. The method of claim 3,
the MCTP request message comprises an MCTP message header and an MCTP message body, and the MCTP message body carries the NCSI command request message.
5. The method of claim 1, further comprising:
the BMC receives MCTP response messages returned by the network card equipment;
the MCTP response message carries an NCSI command response message of the NCSI command request message, and the NCSI command response message carries the information of the network card equipment;
analyzing the MCTP response message to obtain the NCSI command response message;
and obtaining the information of the network card equipment according to the NCSI command response message.
6. The method of claim 1,
when the BMC sends a corresponding MCTP request message to a plurality of network card devices, the NCSI command request message carried by each MCTP request message is used for requesting to acquire the information of the corresponding network card device.
7. A method of monitoring a network card device, comprising:
the network card equipment receives an equipment management protocol MCTP request message sent by a baseboard management controller BMC;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment;
the network card equipment analyzes the MCTP request message to obtain the NCSI command request message;
acquiring the information of the network card equipment according to the NCSI command request message and generating an NCSI command response message of the NCSI command request message;
generating an MCTP response message of the MCTP request message according to the NCSI command response message, and sending the MCTP response message to the BMC;
the MCTP response message carries the NCSI command response message, and the NCSI command response message carries the information of the network card equipment.
8. The method of claim 7,
the network card equipment receives the MCTP request message sent by the BMC through a PCIE link or a two-wire serial bus I2C link;
and the network card device sends the MCTP response message to the BMC through the PCIE link or the I2C link.
9. A baseboard management controller, BMC, comprising:
the sending unit is used for sending a device management protocol MCTP request message to the network card device by the BMC;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment.
10. A network card device, comprising:
the device comprises a receiving unit, a base plate management controller BMC and a processing unit, wherein the receiving unit is used for receiving a device management protocol MCTP request message sent by the base plate management controller BMC;
the MCTP request message carries a network controller sideband interface NCSI command request message, and the NCSI command request message is used for requesting to acquire the information of the network card equipment;
the analyzing unit is used for analyzing the MCTP request message to obtain the NCSI command request message;
a generating unit, configured to generate an NCSI command response packet of the NCSI command request packet according to the NCSI command request packet and the information of the network card device;
the sending unit is used for generating an MCTP response message of the MCTP request message according to the NCSI command response message and sending the MCTP response message to the BMC;
the MCTP response message carries the NCSI command response message, and the NCSI command response message carries the information of the network card equipment.
CN201911056425.3A 2019-10-31 2019-10-31 Method for monitoring network card equipment, substrate management controller and network card equipment Withdrawn CN110958132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911056425.3A CN110958132A (en) 2019-10-31 2019-10-31 Method for monitoring network card equipment, substrate management controller and network card equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911056425.3A CN110958132A (en) 2019-10-31 2019-10-31 Method for monitoring network card equipment, substrate management controller and network card equipment

Publications (1)

Publication Number Publication Date
CN110958132A true CN110958132A (en) 2020-04-03

Family

ID=69976060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911056425.3A Withdrawn CN110958132A (en) 2019-10-31 2019-10-31 Method for monitoring network card equipment, substrate management controller and network card equipment

Country Status (1)

Country Link
CN (1) CN110958132A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764818A (en) * 2021-01-26 2021-05-07 曙光信息产业(北京)有限公司 Device management method and device, electronic device and readable storage medium
CN113010381A (en) * 2021-03-12 2021-06-22 山东英信计算机技术有限公司 Method and equipment for managing components
CN114826962A (en) * 2022-03-30 2022-07-29 新华三信息技术有限公司 Link fault detection method, device, equipment and machine readable storage medium
CN115733729A (en) * 2022-09-29 2023-03-03 超聚变数字技术有限公司 Communication fault processing method, system and equipment
CN116094954A (en) * 2022-09-28 2023-05-09 苏州浪潮智能科技有限公司 Network card state monitoring method, device, equipment and medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764818A (en) * 2021-01-26 2021-05-07 曙光信息产业(北京)有限公司 Device management method and device, electronic device and readable storage medium
CN112764818B (en) * 2021-01-26 2024-05-24 曙光信息产业(北京)有限公司 Device management method, device, electronic device and readable storage medium
CN113010381A (en) * 2021-03-12 2021-06-22 山东英信计算机技术有限公司 Method and equipment for managing components
CN114826962A (en) * 2022-03-30 2022-07-29 新华三信息技术有限公司 Link fault detection method, device, equipment and machine readable storage medium
CN116094954A (en) * 2022-09-28 2023-05-09 苏州浪潮智能科技有限公司 Network card state monitoring method, device, equipment and medium
CN116094954B (en) * 2022-09-28 2024-10-15 苏州浪潮智能科技有限公司 Network card state monitoring method, device, equipment and medium
CN115733729A (en) * 2022-09-29 2023-03-03 超聚变数字技术有限公司 Communication fault processing method, system and equipment
CN115733729B (en) * 2022-09-29 2023-09-01 超聚变数字技术有限公司 Communication fault processing method, system and equipment

Similar Documents

Publication Publication Date Title
CN110958132A (en) Method for monitoring network card equipment, substrate management controller and network card equipment
CN109213600B (en) GPU resource scheduling method and device based on AI cloud
CN107295110B (en) Processing method of computing task, edge node, service server and system
CN108924221B (en) Method and device for allocating resources
US20180335958A1 (en) Method and apparatus for fine tuning and optimizing nvme-of ssds
CN103607428B (en) A kind of method and apparatus for accessing shared drive
CN111324363A (en) Equipment upgrading method, upgrading terminal, equipment and storage medium
CN109995839B (en) Load balancing method, system and load balancer
CN111464419B (en) Data transmission control method based on bus network communication
CN110138753B (en) Distributed message service system, method, apparatus, and computer-readable storage medium
CN112579622B (en) Method, device and equipment for processing service data
CN109104368B (en) Connection request method, device, server and computer readable storage medium
US20230161541A1 (en) Screen projection method and system
CN109039803A (en) A kind of method, system and the computer equipment of processing readjustment notification message
CN105847352A (en) Distributed cache system-based capacity expansion method, device and distributed cache system
CN115794423A (en) Management method and device of intelligent machine room, electronic equipment and storage medium
CN117041147B (en) Intelligent network card equipment, host equipment, method and system
CN113010381A (en) Method and equipment for managing components
CN106790354B (en) Communication method and device for preventing data congestion
CN112527192A (en) Data acquisition method and device and service equipment
US10951732B2 (en) Service processing method and device
CN109582242B (en) Address determination method and device for cascade memory array system and electronic equipment
CN116578316A (en) Firmware updating method, device, server and storage medium of equipment
CN110784510A (en) Method for accessing target service node to bus and information interaction method of service node
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20200403

WW01 Invention patent application withdrawn after publication