CN114338493A - NCSI test method, system, device and storage medium based on network protocol stack - Google Patents

NCSI test method, system, device and storage medium based on network protocol stack Download PDF

Info

Publication number
CN114338493A
CN114338493A CN202210178537.1A CN202210178537A CN114338493A CN 114338493 A CN114338493 A CN 114338493A CN 202210178537 A CN202210178537 A CN 202210178537A CN 114338493 A CN114338493 A CN 114338493A
Authority
CN
China
Prior art keywords
ncsi
network card
network
protocol stack
bmc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210178537.1A
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 CN202210178537.1A priority Critical patent/CN114338493A/en
Publication of CN114338493A publication Critical patent/CN114338493A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a NCSI testing method, a system, a device and a storage medium based on a network protocol stack, wherein the method comprises the following steps: connecting a server with a network card through an NCSI cable; connecting the network card to a switch through a network cable, and loading a network card drive through a BMC (baseboard management controller); detecting an NCSI hardware link to ensure that the server and the network card can carry out NCSI communication; disconnecting the network card from the switch, and sending an NCSI control command to communicate with the network card through the BMC; using socket to carry out NCSI communication in Linux network protocol stack; the integrity of the signal was verified by spot-testing the NCSI link using an oscilloscope. The invention only needs one server and one network card, connects the server and the network card through the NCSI cable, and realizes one-time operation of the NCSI by utilizing the socket in the NCSI data link layer, thereby completing the NCSI test.

Description

NCSI test method, system, device and storage medium based on network protocol stack
Technical Field
The invention relates to the technical field of computers, in particular to a network protocol stack-based NCSI testing method, system, device and storage medium.
Background
With the rapid development of network technology, people put forward higher requirements for managing and controlling servers out of band, engineers can manage and maintain the servers through any dielectric through out of band, and the servers are prevented from being maintained in a noisy laboratory environment for a long time. Therefore, the NCSI (network controller sideband interface) standard is proposed in the industry. NCSI is an industry standard defined by a distributed management task force for sideband interface network controllers that support server out-of-band management.
In the prior art, when testing NCSI, first, a device to be tested opens a sharelink function, sets a sharelink IP, starts a to-be-tested NCSI link, then keeps connection between a network port and a host during testing, and runs cmd in the host to ping a shared network port of the to-be-tested device.
For the hundred-million and gigabit network ports, the packaging form of the network ports is RJ45, a host can meet the test requirements by selecting a common notebook, but with the increase of network flow of a data center, the required number of 100G QSFP28 optical modules is increased rapidly, at the moment, the notebook cannot meet the test requirements, the commonly adopted method is to select two servers and two network cards, the servers at two ends are connected with the network cards through NCSI, the network cards are connected through 100G optical fibers, the IP of BMC sharelink at the two ends is set, and then the BMC at one end pins the BMC at the other end. However, the method needs a large number of test machines, needs a large amount of time for building the environment, and occupies a large area of test bed.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method, a system, a device and a storage medium for NCSI testing based on a network protocol stack, in which only one server and one network card are required, the server and the network card are connected via an NCSI cable, and a socket is used in an NCSI data link layer to implement an NCSI operation once, thereby completing an NCSI test.
In order to achieve the purpose, the invention is realized by the following technical scheme: a NCSI testing method based on a network protocol stack comprises the following steps:
connecting a server with a network card through an NCSI cable;
connecting the network card to a switch through a network cable, and loading a network card drive through a BMC (baseboard management controller);
detecting an NCSI hardware link to ensure that the server and the network card can carry out NCSI communication;
disconnecting the network card from the switch, and sending an NCSI control command to communicate with the network card through the BMC; using socket to carry out NCSI communication in Linux network protocol stack;
the integrity of the signal was verified by spot-testing the NCSI link using an oscilloscope.
Further, the loading of the network card driver through the BMC includes:
checking a shared port number by inputting an ifconfig command in the BMC;
if the shared network port number can be checked, the network card driver is loaded successfully;
and if the shared port number cannot be checked and the network card driver is not loaded successfully, updating the BMC firmware to complete the loading of the network card driver.
Further, the detecting the NCSI hardware link ensures that the server and the network card can perform NCSI communication, including:
viewing the network card by inputting an ethtool command;
if the link detected item output by the BMC is yes, the NCSI hardware link is already passed, and NCSI communication can be carried out;
if the link detected item output by the BMC is no, the NCSI hardware link is not passed, and the board card hardware link needs to be checked.
Further, the communication of the NCSI by using the socket in the NCSI data link layer includes:
establishing an NCSI socket in the BMC for NCSI communication;
sending an NCSI command to the established NCSI socket and sending an NCSI request to the network card;
the network card responds after receiving the NCSI request;
and the BMC receives the NCSI response, and closes the NCSI socket after acquiring the response.
Further, the NCSI command includes a specified ethernet interface number and payload length.
Further, the sending of the NCSI request to the network card specifically includes:
and sending an NCSI request to the network card through a sendmsg command of linux.
Further, the BMC receives an NCSI response, specifically:
the BMC receives the NCSI response via the recvmsg command.
Correspondingly, the invention also discloses a network protocol stack-based NCSI test system, which comprises: the connecting module is used for connecting one server with the network card through an NCSI cable;
the loading module is used for connecting the network card to the switch through a network cable and loading the network card drive through the BMC; the link detection module is used for detecting an NCSI hardware link and ensuring that the server and the network card can carry out NCSI communication; the communication building module is used for disconnecting the connection between the network card and the switch and sending an NCSI control command to communicate with the network card through the BMC;
the socket connection module is used for carrying out NCSI communication by utilizing a socket in a Linux network protocol stack;
and the verification module is used for verifying the integrity of the signal by using the oscilloscope to perform point measurement on the NCSI link.
Correspondingly, the invention discloses a NCSI testing device based on a network protocol stack, which comprises:
the memory is used for storing a network protocol stack-based NCSI test program;
a processor, configured to implement the steps of the network protocol stack-based NCSI testing method as described in any one of the above when executing the network protocol stack-based NCSI testing program.
Correspondingly, the invention discloses a readable storage medium, on which a network protocol stack-based NCSI test program is stored, and when being executed by a processor, the network protocol stack-based NCSI test program implements the steps of the network protocol stack-based NCSI test method as described in any one of the above.
Compared with the prior art, the invention has the beneficial effects that: the invention discloses a network protocol stack-based NCSI testing method, a system, a device and a storage medium, wherein only one server and a network card are needed, the server and the network card are connected through an NCSI cable, a server BMC is logged in, the network card information is inquired by sending an NCSI instruction, and the network card sends the information of the network card to the server BMC through an NCSI link, so that communication is established between a management controller and a network card controller. The NCSI data link layer is based on an Ethernet medium, the operation of NCSI is realized by utilizing a socket in a Linux network protocol stack, firstly, the NCSI socket is created, then, an NCSI request is sent to the created NCSI socket, according to the NCSI protocol specification, after the network controller receives the NCSI request, a response is sent to the BMC, the BMC obtains an NCSI response from the created NCSI socket, and finally, the NCSI socket is closed, so that one-time NCSI communication is realized.
The invention only needs one server and the network card, connects the server and the network card through the NCSI cable, logs in the server BMC, and inquires the network card information by sending the NCSI instruction. Two servers and network cards are not needed, the number of test machines is reduced, the time for building the environment is effectively shortened, and the occupied area of the test machines is reduced.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a process flow diagram of an embodiment of the present invention.
FIG. 2 is a system block diagram of an embodiment of the present invention.
In the figure, 1 is a connection module; 2 is a loading module; 3 is a link detection module; 4 is a communication building module; 5 is a socket connection module; and 6, a verification module.
Detailed Description
The core of the invention is to provide a NCSI testing method based on a network protocol stack, in the prior art, the commonly adopted method is to select two servers and two network cards, the servers at two ends are connected with the network cards through the NCSI, the network cards are connected through 100G optical fibers, the IP of the server BMC sharelink at the two ends is set, and then the BMC at one end pins the BMC at the other end. However, the method needs a large number of test machines, needs a large amount of time for building the environment, and occupies a large area of test bed.
The NCSI testing method based on the network protocol stack provided by the invention comprises the following steps of firstly connecting a server and a network card through an NCSI cable. Then, the network card is connected to the switch through a network cable, and a network card driver is loaded through the BMC. At this time, the hardware link of the NCSI is detected, and the server and the network card can carry out NCSI communication. Then, the connection between the network card and the switch is disconnected, and the NCSI control command is sent by the BMC to communicate with the network card; and uses socket to communicate with NCSI in Linux network protocol stack. Finally, the integrity of the signal is verified by spot-testing the NCSI link using an oscilloscope. Therefore, the invention does not need to use two servers and network cards, reduces the number of test machines, effectively shortens the time required by building the environment and reduces the occupied area of the test machine.
In order to make the technical field of the present invention better understand the scheme of the present invention, the prior art related to the present invention is explained as follows:
the network management module of the server mainly comprises a management controller and a network controller, wherein the network controller is connected with the management controller through an out-of-band interface besides an external network interface and an internal host interface. Network data packets passing through out-of-band interfaces are mainly classified into two categories: one is a common data packet transmitted between an external network and a management controller, and the network controller only forwards the data packet; the other type is data packets carrying control information that are transmitted between the management controller and the network controller, and these data packets are typically some of the operations that the management controller configures for the network controller.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
as shown in fig. 1, the present embodiment provides a network protocol stack-based NCSI testing method, which includes the following steps:
s1: and connecting a server with the network card through an NCSI cable.
S2: and connecting the network card to the switch through a network cable, and loading a network card driver through the BMC.
This step needs to confirm whether the network card driver is successfully loaded, specifically:
checking a shared port number by inputting an ifconfig command in the BMC; if the shared network port number can be checked, the network card driver is loaded successfully; and if the shared port number cannot be checked and the network card driver is not loaded successfully, updating the BMC firmware to complete the loading of the network card driver.
S3: and detecting the hardware link of the NCSI to ensure that the server and the network card can carry out NCSI communication.
Specifically, after the network card driver is loaded successfully, the network card is checked by inputting an ethnool command; if the link detected item output by the BMC is yes, the NCSI hardware link is already passed, and NCSI communication can be carried out; if the link detected item output by the BMC is no, the NCSI hardware link is not passed, and the board card hardware link needs to be checked.
S4: and disconnecting the network card from the switch, and sending an NCSI control command to communicate with the network card through the BMC.
After the NCSI link is confirmed to be connected, the connection between the network card and the switch is disconnected, and the BMC sends an NCSI control command to communicate with the network controller.
S5: the communication of NCSI is carried out by using socket in Linux network protocol stack.
As an example, the present step specifically includes:
1. and establishing an NCSI socket in the BMC for NCSI communication.
2. And sending an NCSI command to the created NCSI socket and sending an NCSI request to the network card.
Specifically, an NCSI command is sent to the created NCSI socket, information such as an ethernet interface number and a payload length is specified in the command, and an NCSI request is sent to the network card through sendmsg of linux.
3. And the network card responds after receiving the NCSI request.
4. And the BMC receives the NCSI response, and closes the NCSI socket after acquiring the response.
Specifically, the BMC receives the NCSI response through the recvmsg. The NCSI socket can be closed after acquiring the NCSI response.
The principle of the step is that because the NCSI data link layer is based on an Ethernet medium, the NCSI operation is realized by using a socket in a Linux network protocol stack, firstly, the NCSI socket is created, then, an NCSI request is sent to the created NCSI socket, according to the NCSI protocol specification, after the network controller receives the NCSI request, a response is sent to the BMC, the BMC obtains an NCSI response from the created NCSI socket, and finally, the NCSI socket is closed, so that one-time NCSI communication is realized.
It should be noted that, in particular, step S5 needs to operate cyclically according to a preset number of times to ensure that there is data communication on the NCSI link at any moment.
S6: the integrity of the signal was verified by spot-testing the NCSI link using an oscilloscope.
Specifically, the NCSI link is measured using an oscilloscope to meet the chip datasheet.
The embodiment provides a network protocol stack-based NCSI testing method, which only needs one server and a network card, connects the server and the network card through an NCSI cable, logs in a server BMC, and inquires network card information by sending an NCSI instruction. Two servers and network cards are not needed, the number of test machines is reduced, the time for building the environment is effectively shortened, and the occupied area of the test machines is reduced.
Example two:
based on the first embodiment, as shown in fig. 2, the present invention also discloses a network protocol stack-based NCSI testing system, which includes: the system comprises a connection module 1, a loading module 2, a link detection module 3, a communication building module 4, a socket connection module 5 and a verification module 6.
And the connection module 1 is used for connecting one server with the network card through an NCSI cable.
And the loading module 2 is used for connecting the network card to the switch through a network cable and loading the network card drive through the BMC. The loading module 2 is specifically configured to: checking a shared port number by inputting an ifconfig command in the BMC; if the shared network port number can be checked, the network card driver is loaded successfully; and if the shared port number cannot be checked and the network card driver is not loaded successfully, updating the BMC firmware to complete the loading of the network card driver.
And the link detection module 3 is used for detecting an NCSI hardware link and ensuring that the server and the network card can carry out NCSI communication. The link detection module 3 is specifically configured to: after the network card drive is loaded successfully, the network card is checked by inputting an ethtool command; if the link detected item output by the BMC is yes, the NCSI hardware link is already passed, and NCSI communication can be carried out; if the link detected item output by the BMC is no, the NCSI hardware link is not passed, and the board card hardware link needs to be checked.
And the communication establishing module 4 is used for disconnecting the connection between the network card and the switch and sending an NCSI control command to communicate with the network card through the BMC.
And the socket connection module 5 is used for carrying out NCSI communication by using a socket in the Linux network protocol stack. The socket connection module 5 is specifically configured to: establishing an NCSI socket in the BMC for NCSI communication; sending an NCSI command to the created NCSI socket, designating information such as an Ethernet interface number, a load length and the like in the command, and sending an NCSI request through sendmsg of linux; after the BMC sends the NCSI request, the network controller responds to the request, and the BMC receives the NCSI response through the recvmsg. The NCSI socket can be closed after acquiring the NCSI response.
And the verification module 6 is used for verifying the integrity of the signal by using an oscilloscope to perform point measurement on the NCSI link. I.e., the NCSI link is spotted using an oscilloscope to make it meet the chip datasheet.
The embodiment provides a network protocol stack-based NCSI test system, which realizes that one server and one network card are used, the server and the network card are connected through an NCSI cable, and a socket is used in an NCSI data link layer to realize one operation of NCSI. The system reduces the number of the test machine tables, effectively shortens the time required by building the environment, and reduces the area occupied by the test machine tables.
Example three:
the embodiment discloses a NCSI testing device based on a network protocol stack, which comprises a processor and a memory; wherein, the processor implements the following steps when executing the NCSI test program based on the network protocol stack stored in the memory:
1. and connecting a server with the network card through an NCSI cable.
2. And connecting the network card to the switch through a network cable, and loading a network card driver through the BMC.
3. And detecting the hardware link of the NCSI to ensure that the server and the network card can carry out NCSI communication.
4. And disconnecting the network card from the switch, and sending an NCSI control command to communicate with the network card through the BMC.
5. The communication of NCSI is carried out by using socket in Linux network protocol stack.
6. The integrity of the signal was verified by spot-testing the NCSI link using an oscilloscope.
Further, the NCSI testing apparatus based on a network protocol stack in this embodiment may further include:
the input interface is used for acquiring an externally introduced NCSI test program based on a network protocol stack, storing the acquired NCSI test program based on the network protocol stack into the memory, and also used for acquiring various instructions and parameters transmitted by external terminal equipment and transmitting the instructions and parameters into the processor, so that the processor can use the instructions and parameters to perform corresponding processing. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And the output interface is used for outputting various data generated by the processor to the terminal equipment connected with the output interface, so that other terminal equipment connected with the output interface can acquire various data generated by the processor. In this embodiment, the output interface may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit is used for establishing remote communication connection between the NCSI testing device based on the network protocol stack and the external server so that the NCSI testing device based on the network protocol stack can mount the image file into the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
And the keyboard is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
And the display is used for displaying relevant information in the short circuit positioning process of the power supply line of the running server in real time.
The mouse can be used for assisting a user in inputting data and simplifying the operation of the user.
The embodiment provides a network protocol stack-based NCSI testing device, which only needs one server and a network card, connects the server and the network card through an NCSI cable, logs in a server BMC, and inquires network card information by sending an NCSI instruction. Two servers and network cards are not needed, the number of test machines is reduced, the time for building the environment is effectively shortened, and the occupied area of the test machines is reduced.
Example four:
the present embodiments also disclose a readable storage medium, where the readable storage medium includes Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores a network protocol stack-based NCSI test program, and when the network protocol stack-based NCSI test program is executed by a processor, the method comprises the following steps:
1. and connecting a server with the network card through an NCSI cable.
2. And connecting the network card to the switch through a network cable, and loading a network card driver through the BMC.
3. And detecting the hardware link of the NCSI to ensure that the server and the network card can carry out NCSI communication.
4. And disconnecting the network card from the switch, and sending an NCSI control command to communicate with the network card through the BMC.
5. The communication of NCSI is carried out by using socket in Linux network protocol stack.
6. The integrity of the signal was verified by spot-testing the NCSI link using an oscilloscope.
The embodiment provides a readable storage medium, which realizes that one server and one network card are used, the server and the network card are connected through an NCSI cable, and a socket is used in an NCSI data link layer to realize one operation of the NCSI. The embodiment reduces the number of the test machine tables, effectively shortens the time required by the construction of the environment, and reduces the area occupied by the test machine tables.
In conclusion, the invention realizes that one server and the network card are used for carrying out NCSI test, thereby effectively reducing the test cost.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The method disclosed by the embodiment corresponds to the system disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed system, system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units are integrated into one functional module.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The NCSI testing method, system, device and readable storage medium based on the network protocol stack provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A NCSI testing method based on a network protocol stack is characterized by comprising the following steps:
connecting a server with a network card through an NCSI cable;
connecting the network card to a switch through a network cable, and loading a network card drive through a BMC (baseboard management controller);
detecting an NCSI hardware link to ensure that the server and the network card can carry out NCSI communication;
disconnecting the network card from the switch, and sending an NCSI control command to communicate with the network card through the BMC;
using socket to carry out NCSI communication in Linux network protocol stack;
the integrity of the signal was verified by spot-testing the NCSI link using an oscilloscope.
2. The NCSI testing method based on network protocol stack of claim 1, wherein the loading of the network card driver by the BMC comprises:
checking a shared port number by inputting an ifconfig command in the BMC;
if the shared network port number can be checked, the network card driver is loaded successfully;
and if the shared port number cannot be checked and the network card driver is not loaded successfully, updating the BMC firmware to complete the loading of the network card driver.
3. The NCSI testing method based on network protocol stack of claim 1, wherein the detecting the NCSI hardware link to ensure that the server and the network card can perform NCSI communication comprises:
viewing the network card by inputting an ethtool command;
if the link detected item output by the BMC is yes, the NCSI hardware link is already passed, and NCSI communication can be carried out;
if the link detected item output by the BMC is no, the NCSI hardware link is not passed, and the board card hardware link needs to be checked.
4. The NCSI testing method based on network protocol stack of claim 1, wherein the NCSI communication using socket in NCSI data link layer comprises:
establishing an NCSI socket in the BMC for NCSI communication;
sending an NCSI command to the established NCSI socket and sending an NCSI request to the network card;
the network card responds after receiving the NCSI request;
and the BMC receives the NCSI response, and closes the NCSI socket after acquiring the response.
5. The method of claim 4, wherein the NCSI command comprises a specified Ethernet interface number and payload length.
6. The NCSI testing method based on the network protocol stack of claim 4, wherein the sending of the NCSI request to the network card specifically comprises:
and sending an NCSI request to the network card through a sendmsg command of linux.
7. The NCSI testing method based on the network protocol stack of claim 4, wherein the BMC receives the NCSI response, specifically:
the BMC receives the NCSI response via the recvmsg command.
8. An NCSI test system based on network protocol stack, comprising:
the connecting module is used for connecting one server with the network card through an NCSI cable;
the loading module is used for connecting the network card to the switch through a network cable and loading the network card drive through the BMC;
the link detection module is used for detecting an NCSI hardware link and ensuring that the server and the network card can carry out NCSI communication; the communication building module is used for disconnecting the connection between the network card and the switch and sending an NCSI control command to communicate with the network card through the BMC;
the socket connection module is used for carrying out NCSI communication by utilizing a socket in a Linux network protocol stack;
and the verification module is used for verifying the integrity of the signal by using the oscilloscope to perform point measurement on the NCSI link.
9. An NCSI testing device based on network protocol stack, characterized by comprising:
the memory is used for storing a network protocol stack-based NCSI test program;
a processor for implementing the steps of the network protocol stack-based NCSI testing method as claimed in any one of claims 1 to 7 when executing the network protocol stack-based NCSI testing program.
10. A readable storage medium, characterized by: the readable storage medium has stored thereon a network protocol stack based NCSI test program which, when executed by a processor, implements the steps of the network protocol stack based NCSI testing method according to any one of claims 1 to 7.
CN202210178537.1A 2022-02-24 2022-02-24 NCSI test method, system, device and storage medium based on network protocol stack Pending CN114338493A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210178537.1A CN114338493A (en) 2022-02-24 2022-02-24 NCSI test method, system, device and storage medium based on network protocol stack

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210178537.1A CN114338493A (en) 2022-02-24 2022-02-24 NCSI test method, system, device and storage medium based on network protocol stack

Publications (1)

Publication Number Publication Date
CN114338493A true CN114338493A (en) 2022-04-12

Family

ID=81029848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210178537.1A Pending CN114338493A (en) 2022-02-24 2022-02-24 NCSI test method, system, device and storage medium based on network protocol stack

Country Status (1)

Country Link
CN (1) CN114338493A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115378835A (en) * 2022-08-19 2022-11-22 苏州浪潮智能科技有限公司 Method, device and equipment for testing network card NCSI function and readable medium
CN115733729A (en) * 2022-09-29 2023-03-03 超聚变数字技术有限公司 Communication fault processing method, system and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618187A (en) * 2015-02-02 2015-05-13 浪潮电子信息产业股份有限公司 Method for on-line testing of functional completeness of network controller sideband interface (NCSI) network card
CN105791052A (en) * 2016-04-01 2016-07-20 浪潮电子信息产业股份有限公司 Method of batch-testing network cards with NCSI function
CN109030989A (en) * 2018-06-22 2018-12-18 深圳市金泰克半导体有限公司 Verify the test method of power-off protection of solid state disk function
US20210224214A1 (en) * 2017-08-04 2021-07-22 Zhengzhou Yunhai Information Technology Co., Ltd. System and method for improving switching efficiency of double network card ncsi management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618187A (en) * 2015-02-02 2015-05-13 浪潮电子信息产业股份有限公司 Method for on-line testing of functional completeness of network controller sideband interface (NCSI) network card
CN105791052A (en) * 2016-04-01 2016-07-20 浪潮电子信息产业股份有限公司 Method of batch-testing network cards with NCSI function
US20210224214A1 (en) * 2017-08-04 2021-07-22 Zhengzhou Yunhai Information Technology Co., Ltd. System and method for improving switching efficiency of double network card ncsi management system
CN109030989A (en) * 2018-06-22 2018-12-18 深圳市金泰克半导体有限公司 Verify the test method of power-off protection of solid state disk function

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
IDLEAGE: "NCS简介", pages 1 - 18, Retrieved from the Internet <URL:https://www.jianshu.com/p/c6a09357f26c?ivk_sa=1021577g> *
程序猿来是你: "linux ethtool查看网卡状态", pages 1, Retrieved from the Internet <URL:https://blog.csdn.net/ysh1042436059/article/details/89924075> *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115378835A (en) * 2022-08-19 2022-11-22 苏州浪潮智能科技有限公司 Method, device and equipment for testing network card NCSI function and readable medium
CN115378835B (en) * 2022-08-19 2023-08-04 苏州浪潮智能科技有限公司 Network card NCSI function test method, device, equipment and readable 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
US8886513B2 (en) Embedded bus emulation
CN114338493A (en) NCSI test method, system, device and storage medium based on network protocol stack
CN105868149B (en) Serial port information transmission method and device
CN108206763A (en) The method and apparatus restored during interchanger is replaced for data
CN108768730A (en) Method and apparatus for operating intelligent network adapter
JP2021071460A (en) Automatic circuit board testing system and testing method thereof
CN112527705B (en) PCIe DMA data path verification method, device and equipment
CN107078806A (en) Optical transceiver apparatus and method
CN110347539B (en) Test method, device, system, computing device and medium applied to server
KR101319981B1 (en) Communication connector enabling to identify communication status independently and communication apparatus comprising the communication connector
US20090077541A1 (en) Method and apparatus for testing and monitoring systems using reconfigurable hardware and software resources
CN105940384A (en) Universal serial bus emulation of peripheral devices
CN110913362A (en) Method and device for realizing wireless signal test through client and test equipment
CN108259895A (en) set-top box test method, system and terminal device
CN101800672A (en) Equipment detection method and equipment
US8391162B2 (en) Apparatus and method for testing SMNP cards
CN112866061A (en) NCSI (network control information system) testing method, device, equipment and medium of onboard network port
CN112148537B (en) Bus monitoring device and method, storage medium and electronic device
JP4683845B2 (en) System and method for implementing hidden addresses in a communication module
CN104079453B (en) The enumeration methodology and device of commissioning device
CN115017864A (en) Authentication method, authentication apparatus, electronic device, and computer-readable storage medium
CN113872819A (en) Equipment testing method and computer equipment
CN107274589B (en) Access method and system of financial self-service terminal hardware equipment and terminal equipment
CN110426582A (en) A kind of line detection system
KR101649824B1 (en) System for emc test

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