Electromagnetic radiation testing methods, systems, terminals, and storage media for network interface cards (NICs)

CN117092413BActive Publication Date: 2026-09-01INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311014658.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2026-09-01
Estimated Expiration
2043-08-11

AI Technical Summary

Technical Problem

[0005]针对现有技术存在的测试结果无法定位引起电磁辐射超标的因素的问题,本发明提供一种网卡的电磁辐射测试方法、系统、终端及存储介质,以解决上述技术问题

Benefits of technology

[0079]本发明的有益效果在于,本发明提供的网卡的电磁辐射测试方法、系统、终端及存储介质,通过分别为待测服务器的多个网卡设置自循环链路,从而实现对网卡工作状态的独立控制,进而在发现电磁辐射超标后通过控制各网卡的工作状态进行异常硬件定位,本发明能够定位引起电磁辐射超标的异常网卡,为电磁辐射测试提供了更有价值的数据支撑。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117092413B_ABST
    Figure CN117092413B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of servers, and specifically provides a network card electromagnetic radiation test method, a system, a terminal and a storage medium, which comprises the following steps: setting a self-loop link for each network card of a server to be tested; controlling each network card to perform data transmission and reception based on the self-loop link; obtaining the electromagnetic intensity of the server to be tested, and determining whether the electromagnetic intensity exceeds a quasi-peak limit value; if yes, locating an abnormal network card by arranging each network card to perform data transmission and reception one by one; and if no, determining that the server to be tested passes the test. The application can locate an abnormal network card causing electromagnetic radiation exceeding the standard, and provides more valuable data support for electromagnetic radiation test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of server technology, specifically relating to a method, system, terminal, and storage medium for testing the electromagnetic radiation of a network card. Background Technology

[0002] Information technology equipment (including server and computer products) is evolving towards higher speeds, higher sensitivity, higher integration, and higher stability, leading to increasingly stringent requirements for electromagnetic compatibility (EMC). Digital signal clock frequencies are rising, signal setup and hold times are shortening, and clock jitter requirements are becoming increasingly stringent. Therefore, electromagnetic radiation is becoming a significant issue for interconnecting devices in high-speed digital systems, affecting not only the operation of the connected digital systems but also interfering with other surrounding equipment. Consequently, EMC must be considered from the initial design stages of information technology equipment development.

[0003] Server network interface cards (NICs) are crucial components for data exchange on servers. For servers, NICs need to possess powerful data throughput capabilities, as well as the ability to operate continuously and reliably for extended periods. Furthermore, server NICs come in various forms, including PCIe and OCP interfaces. Regardless of their interface type, all server NICs provide high-speed data exchange. Server NICs can achieve data communication bandwidths of 10Gbps, 25Gbps, and 100Gbps. Such high-bandwidth data exchange presents a significant challenge for the increasingly complex electromagnetic design of servers. Therefore, electromagnetic radiation testing of NICs is essential.

[0004] When conducting electromagnetic compatibility (EMC) testing on a server, if the server configuration includes multiple network interface cards (NICs), all NICs must be tested simultaneously. Simultaneously, each server NIC must run a stress test program to ensure it is in a data exchange operational state. In existing server NIC testing, multiple NICs are tested simultaneously; however, the electromagnetic radiation noise received by the spectrum analyzer through its receiving antenna represents the overall electromagnetic radiation performance of the entire device, i.e., the entire server. The test results only show whether a specific frequency point exceeds the regulatory limit, but do not indicate which part of the server is causing the frequency exceedance. Summary of the Invention

[0005] To address the problem that existing technologies cannot pinpoint the factors causing excessive electromagnetic radiation through test results, this invention provides a method, system, terminal, and storage medium for testing the electromagnetic radiation of network cards, thereby resolving the aforementioned technical issues.

[0006] In a first aspect, the present invention provides a method for testing the electromagnetic radiation of a network interface card (NIC), comprising:

[0007] Configure self-looping links for multiple network cards of the server under test;

[0008] Control each network interface card to perform data transmission and reception based on a self-looping link;

[0009] Obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit:

[0010] If so, the abnormal network card is located by arranging the network cards to perform data transmission and reception one by one;

[0011] If not, the server under test is deemed to have passed the test.

[0012] In an optional implementation, before locating the faulty network interface card (NIC) by arranging NICs to perform data transmission and reception one by one, the method further includes:

[0013] Remotely control all network cards to pause data transmission and reception via the BMC of the server under test;

[0014] Obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit:

[0015] If so, then the electromagnetic intensity exceeding the quasi-peak limit is determined to be unrelated to the network card;

[0016] If not, the electromagnetic intensity exceeding the quasi-peak limit is determined to be related to the network card, and the abnormal network card is located by arranging the network cards to perform data transmission and reception one by one.

[0017] In one optional implementation, self-looping links are configured for multiple network interface cards (NICs) of the server under test, including:

[0018] Configure the connection table, setting the first port as the source port and the second port as the destination port, with the first and second ports belonging to the same network interface card (NIC); set the IP address of the NIC as the source address and destination address.

[0019] In one optional implementation, controlling each network interface card (NIC) to perform data transmission and reception based on a self-looping link includes:

[0020] Bind the network card to the CPU core so that the CPU core only provides computing power to the bound network card;

[0021] Data transmission and reception scripts and file packages are pre-configured. The data transmission and reception scripts limit the operation of sending data in a loop, and the name and storage address of the file packages are configured as data identity information.

[0022] Send the data transmission and reception script and file package to the BMC of the server under test, and control the BMC to save the data transmission and reception script and file package to the specified path;

[0023] Control the BMC to set all CPU cores as the execution targets of the data transceiver script;

[0024] Each CPU core calls the data transmission and reception script and performs cyclic transmission and reception of the file packets through the bound network card.

[0025] In an optional implementation, controlling the BMC to set all CPU cores as the execution targets of the data transceiver script includes:

[0026] The BMC is controlled to send the storage path of the data transmission and reception script to the CPU core;

[0027] The BMC is controlled to send IPMI instructions to each CPU core. The IPMI instructions control the CPU core to call the data transceiver script from the storage path. The data transceiver is performed.

[0028] The CPU core executes the data transmission and reception script, and sends file packets from the first port of the bound network card through the network card driver;

[0029] The second port of the bound network card receives the file packet. The bound network card returns the file packet to the network card driver of the corresponding CPU core through an interrupt request. The network card driver sends the file packet to the kernel responsible for sending data by delaying the interrupt request.

[0030] In one optional implementation, the electromagnetic intensity of the server under test is obtained, and it is determined whether the electromagnetic intensity exceeds a quasi-peak limit, including:

[0031] Electromagnetic intensity is read in real time from the receiver;

[0032] Obtain the antenna's scanning frequency, and based on the preset correspondence between the scanning frequency range and the quasi-peak limit, query the corresponding quasi-peak limit for the scanning frequency;

[0033] The electromagnetic intensity read in real time is compared with the corresponding quasi-peak limit.

[0034] In one optional implementation, locating abnormal network interface cards (NICs) by sequentially assigning them to perform data transmission and reception includes:

[0035] Select one network card from all network cards as the target network card;

[0036] Control network cards other than the target network card to suspend data transmission and reception;

[0037] Obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit:

[0038] If so, the target network card is determined to be an abnormal network card;

[0039] If not, switch the target network card until all network cards have been traversed.

[0040] Secondly, the present invention provides an electromagnetic radiation testing system for network interface cards (NICs), comprising:

[0041] The link setting module is used to set up self-looping links for multiple network cards of the server under test.

[0042] The network interface card (NIC) control module is used to control each NIC to perform data transmission and reception based on a self-looping link.

[0043] The intensity judgment module is used to obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak value limit.

[0044] An anomaly location module is used to locate abnormal network cards by arranging network cards to perform data transmission and reception one by one if the electromagnetic intensity exceeds the quasi-peak value.

[0045] The test completion module is used to determine that the server under test has passed the test if the electromagnetic intensity does not exceed the quasi-peak limit.

[0046] In an optional implementation, the system further includes:

[0047] The network interface card (NIC) disable module is used to remotely control all NICs to suspend data transmission and reception via the BMC of the server under test.

[0048] The refresh module is used to obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit.

[0049] The network card exclusion module is used to determine that if the electromagnetic intensity exceeds the quasi-peak limit, the electromagnetic intensity exceeding the quasi-peak limit is unrelated to the network card.

[0050] The positioning execution module is used to determine that if the electromagnetic intensity does not exceed the quasi-peak limit, the electromagnetic intensity exceeding the quasi-peak limit is related to the network card, and to locate the abnormal network card by arranging the network cards to perform data transmission and reception one by one.

[0051] In an optional implementation, the link setting module includes:

[0052] The link configuration unit is used to configure the connection table, set the first port as the source port, set the second port as the destination port, and the first port and the second port belong to the same network interface card (NIC); and set the IP address of the NIC as the source address and the destination address.

[0053] In one optional implementation, the network interface card (NIC) control module includes:

[0054] The network interface card (NIC) binding unit is used to bind a network interface card (NIC) to a CPU core, so that the CPU core only provides computing power to the bound NIC.

[0055] A pre-configuration unit is used to pre-configure data transmission and reception scripts and file packets. The data transmission and reception scripts define the operation of sending data in a loop and configure the name and storage address of the file packets as data identity information.

[0056] The file sending unit is used to send the data sending and receiving script and file package to the BMC of the server under test, and control the BMC to save the data sending and receiving script and file package to a specified path;

[0057] The object setting unit is used to control the BMC to set all CPU cores as the execution objects of the data transceiver script;

[0058] The data transceiver unit is used by each CPU core to call the data transceiver script and perform cyclic transmission and reception of the file packets through the bound network card.

[0059] In an optional implementation, the object setting unit includes:

[0060] The address sending subunit is used to control the BMC to send the storage path of the data transmission and reception script to the CPU core;

[0061] The instruction sending subunit is used to control the BMC to send IPMI instructions to each CPU core. The IPMI instructions control the CPU core to call the data transceiver script from the storage path. The data transceiver is...

[0062] The data transmission subunit is used by the CPU core to execute the data transmission and reception script and send file packets from the first port of the bound network card through the network card driver.

[0063] The data receiving subunit is used to receive the file packet at the second port of the network card. The network card returns the file packet to the network card driver of the corresponding CPU core through an interrupt request. The network card driver sends the file packet to the kernel responsible for sending data by delaying the interrupt request.

[0064] In one optional implementation, the intensity determination module includes:

[0065] A real-time reading unit is used to read the electromagnetic intensity from the receiver in real time;

[0066] The limit matching unit is used to obtain the scanning frequency of the antenna and, based on the preset correspondence between the scanning frequency range and the quasi-peak limit, query the corresponding quasi-peak limit for the scanning frequency.

[0067] The numerical comparison unit is used to compare the real-time electromagnetic intensity with the corresponding quasi-peak limit.

[0068] In one optional implementation, the anomaly localization module includes:

[0069] The target selection unit is used to select one network interface card (NIC) from all NICs as the target NIC.

[0070] The pause control unit is used to control network cards other than the target network card to pause data transmission and reception.

[0071] The effect analysis unit is used to obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit.

[0072] An abnormal location unit is used to determine that the target network card is an abnormal network card if the electromagnetic intensity exceeds the quasi-peak value limit.

[0073] If the electromagnetic intensity does not exceed the quasi-peak limit, the target switching unit switches the target network card until all network cards have been traversed.

[0074] Thirdly, a terminal is provided, including:

[0075] Processor, memory, among which,

[0076] This memory is used to store computer programs.

[0077] The processor is used to retrieve and run the computer program from memory, causing the terminal to perform the terminal method described above.

[0078] Fourthly, a computer storage medium is provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the methods described in the above aspects.

[0079] The beneficial effects of this invention are that the electromagnetic radiation testing method, system, terminal, and storage medium for network cards provided by this invention achieve independent control of the working state of the network cards by setting up self-looping links for multiple network cards of the server under test. Furthermore, after detecting excessive electromagnetic radiation, the invention can locate abnormal hardware by controlling the working state of each network card. This invention can locate the abnormal network card that causes excessive electromagnetic radiation, providing more valuable data support for electromagnetic radiation testing.

[0080] This invention establishes a communication connection with the BMC of the server under test, and then remotely controls the network card of the server under test through the BMC, without having to enter the shielded anechoic chamber for electromagnetic testing, thus avoiding damage to the testing environment.

[0081] This invention binds the CPU core of the server under test to the network card, and then sends instructions to the corresponding CPU core through the BMC to control the working status of the network card, thereby improving control efficiency and execution speed.

[0082] Furthermore, the design principle of this invention is reliable, the structure is simple, and it has a very wide range of application prospects. Attached Figure Description

[0083] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0084] Figure 1 This is a schematic flowchart of a method according to an embodiment of the present invention.

[0085] Figure 2 This is a schematic diagram of a test execution environment according to an embodiment of the present invention.

[0086] Figure 3 This is another illustrative flowchart of a method according to an embodiment of the present invention.

[0087] Figure 4 This is a schematic diagram of a network card configuration according to an embodiment of the present invention.

[0088] Figure 5 This is a schematic block diagram of a system according to an embodiment of the present invention.

[0089] Figure 6 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present invention. Detailed Implementation

[0090] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.

[0091] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.

[0092] The key terms used in this invention will be explained below.

[0093] BMC, short for Baseboard Management Controller, is a remote server management controller. It allows for operations such as firmware upgrades and device monitoring even when the machine is not powered on. Fully implementing IPMI functionality in a BMC requires a powerful 16-bit or 32-bit microcontroller, RAM for data storage, flash memory for non-volatile data storage, and firmware. It provides basic remote manageability for secure remote reboots, secure power-on, LAN alerts, and system health monitoring. In addition to basic IPMI and system monitoring functions, the mBMC can also enable fast BIOS component selection and protection by utilizing one of the two flash memories to store the previous BIOS. For example, if the system fails to boot after a remote BIOS upgrade, remote administrators can switch back to the previous BIOS image to boot the system. Once the BIOS is upgraded, the BIOS image can also be locked to effectively prevent virus attacks.

[0094] The electromagnetic radiation testing method for network cards provided in this embodiment of the invention is executed by a computer device, and correspondingly, the electromagnetic radiation testing system for network cards runs in the computer device.

[0095] Figure 1 This is a schematic flowchart illustrating a method according to an embodiment of the present invention. Wherein, Figure 1 The implementing entity can be an electromagnetic radiation testing system for a network interface card. Depending on different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.

[0096] like Figure 1 As shown, the method includes:

[0097] Step 110: Configure self-looping links for multiple network cards of the server under test;

[0098] Step 120: Control each network interface card to perform data transmission and reception based on the self-looping link;

[0099] Step 130: Obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit.

[0100] Step 140: If so, locate the abnormal network card by arranging network cards to perform data transmission and reception one by one;

[0101] Step 150: If not, then the server under test is deemed to have passed the test.

[0102] To facilitate understanding of the present invention, the electromagnetic radiation testing method for network cards provided by the present invention will be further described below, based on the principle of the electromagnetic radiation testing method for network cards of the present invention and in conjunction with the process of performing electromagnetic radiation testing on network cards in the embodiments.

[0103] For details, please refer to Figure 2 The Equipment Under Test (EUT) is placed on a turntable in the anechoic chamber. An antenna receives the electromagnetic waves radiated by the EUT, which are then amplified and transmitted to a receiver. The receiver processes the received field strength signal and displays it on its screen. Network settings for the server's network interface card (NIC) are configured through the BMC management interface. The server under test (DUT) and its antenna are located in the anechoic chamber. The DUT's BMC is connected to a control terminal in the control room via a cable. The antenna used for testing in the anechoic chamber is connected to the receiver in the control room via a signal amplifier, and the receiver and control terminal are connected in a communication relationship.

[0104] The control terminal executes the electromagnetic radiation test method of the network card, such as... Figure 3 As shown, it includes the following steps:

[0105] S1. Configure self-looping links for multiple network cards of the server under test.

[0106] like Figure 4 As shown, configure the connection table, setting the first port as the source port and the second port as the destination port, with the first and second ports belonging to the same network interface card (NIC); set the NIC's IP address as the source address and destination address.

[0107] S2 controls each network interface card to perform data transmission and reception based on a self-circulating link.

[0108] The network interface card (NIC) is bound to a CPU core so that the CPU core only provides computation for the bound NIC. A data transmission script and file packets are pre-configured. The data transmission script defines the operation of cyclically sending data, and the file packet name and storage address are configured as data identity information. The data transmission script and file packets are sent to the BMC of the server under test, and the BMC is controlled to save the data transmission script and file packets to a specified path. The BMC is controlled to set all CPU cores as the execution objects of the data transmission script. Each CPU core calls the data transmission script and performs cyclical sending and receiving of the file packets through the bound NIC.

[0109] Specifically, the BMC sends the storage path of the data transceiver script to the CPU core; the BMC sends IPMI instructions to each CPU core, the IPMI instructions instruct the CPU core to call the data transceiver script from the storage path, and the data transceiver is executed; the CPU core executes the data transceiver script and sends a file packet from the first port of the bound network card through the network card driver; the second port of the bound network card receives the file packet, and the bound network card returns the file packet to the network card driver of the corresponding CPU core through an interrupt request; the network card driver sends the file packet to the kernel responsible for sending data by delaying the interrupt request.

[0110] When the server under test has a multi-core CPU, to improve data processing efficiency, CPU cores are allocated to the network interface card (NIC) using a core-binding method. This allows the CPU cores to distribute business data evenly and improve computing speed. Furthermore, after binding cores to the NIC, the service status of the NIC can be independently controlled through the bound CPU core, improving control efficiency compared to a single CPU core processing method.

[0111] If the server under test has a single-core CPU, the CPU is controlled to poll and send / receive data through the network interface card (NIC). To control a specific NIC to pause data transmission and reception, its NIC driver can be uninstalled via the BMC. While this method can also control the NIC's service status, it requires installing and uninstalling the NIC driver, making it inefficient.

[0112] S3. Obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit.

[0113] The electromagnetic intensity is read in real time from the receiver; the scanning frequency of the antenna is obtained, and the corresponding quasi-peak limit is queried for the scanning frequency based on the preset correspondence between the scanning frequency range and the quasi-peak limit; the electromagnetic intensity read in real time is compared with the corresponding quasi-peak limit.

[0114] For example, the frequency scanning range of electromagnetic radiation is 30MHz-6GHz. The quasi-peak limit in the 30MHz-230MHz frequency range is 40dBuV / m, the quasi-peak limit in the 230MHz-1000MHz frequency range is 47dBuV / m, the average limit in the 1GHz-3GHz frequency range is 56dBuV / m, and the average limit in the 3GHz-6GHz frequency range is 60dBuV / m. When the electromagnetic field strength received by the receiver from the antenna exceeds these regulatory limits, the server's network card is configured via the control computer in the control room.

[0115] S4. If so, then the abnormal network card is located by arranging the network cards to perform data transmission and reception one by one.

[0116] The system remotely controls all network cards to pause data transmission and reception via the BMC of the server under test; it acquires the electromagnetic intensity of the server under test and determines whether the electromagnetic intensity exceeds the quasi-peak limit: if so, it determines that the electromagnetic intensity exceeding the quasi-peak limit is unrelated to the network card; if not, it determines that the electromagnetic intensity exceeding the quasi-peak limit is related to the network card, and the system locates the abnormal network card by arranging the network cards to perform data transmission and reception one by one.

[0117] When locating an abnormal network interface card (NIC), select one NIC from all NICs as the target NIC; control all NICs except the target NIC to suspend data transmission and reception; obtain the electromagnetic field strength of the server under test and determine whether the electromagnetic field strength exceeds the quasi-peak limit: if yes, determine that the target NIC is an abnormal NIC; if no, switch the target NIC until all NICs are traversed.

[0118] For example, taking the electromagnetic radiation frequency scanning range of 30MHz-230MHz as an example, the quasi-peak value limit within this frequency band is 40 dBuV / m. When the electromagnetic noise received by the spectrum receiver is within this frequency band, and the quasi-peak value of the electromagnetic noise exceeds the limit of 40 dBuV / m, then by remotely disabling the data loop mode of all network cards via a computer, if the frequency point does not change, it indicates that the electromagnetic noise at this frequency point is unrelated to the network card's data loop mode. Conversely, if the frequency point decreases or disappears into the electromagnetic background noise, it indicates that the electromagnetic noise at this frequency point is caused by the network card's data loop mode.

[0119] Then, restore all network cards to their data loop mode. Remotely disable the data loop mode of network card 1 via the computer. If the frequency point remains unchanged, it indicates that the electromagnetic noise at that frequency point is unrelated to the data loop mode of network card 1. Conversely, if the frequency point decreases or disappears into the electromagnetic background noise, it indicates that the electromagnetic noise at that frequency point is caused by the data loop mode of network card 1. Repeat this process for each network card (1, 2, 3, 4, 5) until the problematic network card is identified. Once the problematic network card is identified, the source of the electromagnetic noise radiation exceeding the limit is determined.

[0120] S5. If not, the server under test is deemed to have passed the test.

[0121] If the electromagnetic intensity read in real time during the test does not exceed the quasi-peak limit, the server under test is deemed to have passed the test.

[0122] In some embodiments, the electromagnetic radiation testing system 500 for the network interface card (NIC) may include multiple functional modules composed of computer program segments. The computer programs for each program segment in the electromagnetic radiation testing system 500 may be stored in the memory of a computer device and executed by at least one processor to perform (see details). Figure 1(Description) The function of electromagnetic radiation testing of the network card.

[0123] In this embodiment, the electromagnetic radiation testing system 500 for the network card can be divided into multiple functional modules according to its functions, such as... Figure 5 As shown. The functional modules may include: a link setting module 510, a network card control module 520, a strength judgment module 530, an anomaly location module 540, and a test completion module 550. The module referred to in this invention is a series of computer program segments that can be executed by at least one processor and perform a fixed function, and are stored in memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0124] The link setting module is used to set up self-looping links for multiple network cards of the server under test.

[0125] The network interface card (NIC) control module is used to control each NIC to perform data transmission and reception based on a self-looping link.

[0126] The intensity judgment module is used to obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak value limit.

[0127] An anomaly location module is used to locate abnormal network cards by arranging network cards to perform data transmission and reception one by one if the electromagnetic intensity exceeds the quasi-peak value.

[0128] The test completion module is used to determine that the server under test has passed the test if the electromagnetic intensity does not exceed the quasi-peak limit.

[0129] Optionally, as an embodiment of the present invention, the system further includes:

[0130] The network interface card (NIC) disable module is used to remotely control all NICs to suspend data transmission and reception via the BMC of the server under test.

[0131] The refresh module is used to obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit.

[0132] The network card exclusion module is used to determine that if the electromagnetic intensity exceeds the quasi-peak limit, the electromagnetic intensity exceeding the quasi-peak limit is unrelated to the network card.

[0133] The positioning execution module is used to determine that if the electromagnetic intensity does not exceed the quasi-peak limit, the electromagnetic intensity exceeding the quasi-peak limit is related to the network card, and to locate the abnormal network card by arranging the network cards to perform data transmission and reception one by one.

[0134] Optionally, as an embodiment of the present invention, the link setting module includes:

[0135] The link configuration unit is used to configure the connection table, set the first port as the source port, set the second port as the destination port, and the first port and the second port belong to the same network interface card (NIC); and set the IP address of the NIC as the source address and the destination address.

[0136] Optionally, as an embodiment of the present invention, the network interface card (NIC) control module includes:

[0137] The network interface card (NIC) binding unit is used to bind a network interface card (NIC) to a CPU core, so that the CPU core only provides computing power to the bound NIC.

[0138] A pre-configuration unit is used to pre-configure data transmission and reception scripts and file packets. The data transmission and reception scripts define the operation of sending data in a loop and configure the name and storage address of the file packets as data identity information.

[0139] The file sending unit is used to send the data sending and receiving script and file package to the BMC of the server under test, and control the BMC to save the data sending and receiving script and file package to a specified path;

[0140] The object setting unit is used to control the BMC to set all CPU cores as the execution objects of the data transceiver script;

[0141] The data transceiver unit is used by each CPU core to call the data transceiver script and perform cyclic transmission and reception of the file packets through the bound network card.

[0142] Optionally, as an embodiment of the present invention, the object setting unit includes:

[0143] The address sending subunit is used to control the BMC to send the storage path of the data transmission and reception script to the CPU core;

[0144] The instruction sending subunit is used to control the BMC to send IPMI instructions to each CPU core. The IPMI instructions control the CPU core to call the data transceiver script from the storage path. The data transceiver is...

[0145] The data transmission subunit is used by the CPU core to execute the data transmission and reception script and send file packets from the first port of the bound network card through the network card driver.

[0146] The data receiving subunit is used to receive the file packet at the second port of the network card. The network card returns the file packet to the network card driver of the corresponding CPU core through an interrupt request. The network card driver sends the file packet to the kernel responsible for sending data by delaying the interrupt request.

[0147] Optionally, as an embodiment of the present invention, the intensity determination module includes:

[0148] A real-time reading unit is used to read the electromagnetic intensity from the receiver in real time;

[0149] The limit matching unit is used to obtain the scanning frequency of the antenna and, based on the preset correspondence between the scanning frequency range and the quasi-peak limit, query the corresponding quasi-peak limit for the scanning frequency.

[0150] The numerical comparison unit is used to compare the real-time electromagnetic intensity with the corresponding quasi-peak limit.

[0151] Optionally, as an embodiment of the present invention, the anomaly location module includes:

[0152] The target selection unit is used to select one network interface card (NIC) from all NICs as the target NIC.

[0153] The pause control unit is used to control network cards other than the target network card to pause data transmission and reception.

[0154] The effect analysis unit is used to obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit.

[0155] An abnormal location unit is used to determine that the target network card is an abnormal network card if the electromagnetic intensity exceeds the quasi-peak value limit.

[0156] If the electromagnetic intensity does not exceed the quasi-peak limit, the target switching unit switches the target network card until all network cards have been traversed.

[0157] Figure 6 This is a schematic diagram of the structure of a terminal 600 provided in an embodiment of the present invention. The terminal 600 can be used to execute the electromagnetic radiation testing method of the network card provided in the embodiment of the present invention.

[0158] The terminal 600 may include a processor 610, a memory 620, and a communication module 630. These components communicate via one or more buses. Those skilled in the art will understand that the server structure shown in the figures does not constitute a limitation of the present invention. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0159] The memory 620 can be used to store the execution instructions of the processor 610. The memory 620 can be implemented using any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. When the execution instructions in the memory 620 are executed by the processor 610, the terminal 600 is able to perform some or all of the steps in the above method embodiments.

[0160] The processor 610 serves as the control center of the storage terminal, connecting various parts of the electronic terminal via various interfaces and lines. It executes software programs and / or modules stored in the memory 620, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 610 may consist only of a central processing unit (CPU). In this embodiment of the invention, the CPU may have a single processing core or include multiple processing cores.

[0161] The communication module 630 is used to establish a communication channel, enabling the storage terminal to communicate with other terminals. It receives user data from other terminals or sends user data to other terminals.

[0162] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, which, when executed, may include some or all of the steps provided in the embodiments of the present invention. The storage medium may be a magnetic disk, an optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0163] Therefore, this invention achieves independent control of the working state of the network cards by setting up self-looping links for multiple network cards of the server under test. Then, after electromagnetic radiation exceeds the standard, abnormal hardware is located by controlling the working state of each network card. This invention can locate the abnormal network card that causes electromagnetic radiation to exceed the standard, providing more valuable data support for electromagnetic radiation testing. The technical effects achieved by this embodiment can be found in the description above, and will not be repeated here.

[0164] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or any other medium capable of storing program code. It includes several instructions to cause a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0165] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

[0166] In the embodiments provided by this invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or modules may be electrical, mechanical, or other forms.

[0167] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0168] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.

[0169] Although the present invention has been described in detail with reference to the accompanying drawings and preferred embodiments, the invention is not limited thereto. Various equivalent modifications or substitutions can be made to the embodiments of the invention by those skilled in the art without departing from the spirit and essence of the invention, and such modifications or substitutions should all be within the scope of the invention. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the invention should also be covered within the protection scope of the invention. Therefore, the protection scope of the invention should be determined by the scope of the claims.

Claims

1. A method for testing the electromagnetic radiation of a network card, characterized in that, include: Configure self-looping links for multiple network cards of the server under test; Control each network interface card to perform data transmission and reception based on a self-looping link; Obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit: If so, the abnormal network card is located by arranging the network cards to perform data transmission and reception one by one; If not, the server under test is deemed to have passed the test; Before locating the faulty network interface card (NIC) by arranging each NIC to perform data transmission and reception one by one, the method further includes: Remotely control all network cards to pause data transmission and reception via the BMC of the server under test; Obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit: If so, then the electromagnetic intensity exceeding the quasi-peak limit is determined to be unrelated to the network card; If not, the electromagnetic intensity exceeding the quasi-peak limit is determined to be related to the network card, and the abnormal network card is located by arranging the network cards to perform data transmission and reception one by one.

2. The method according to claim 1, characterized in that, Configure self-looping links for multiple network interface cards (NICs) of the server under test, including: Configure the connection table, setting the first port as the source port and the second port as the destination port, with the first and second ports belonging to the same network interface card (NIC); set the IP address of the NIC as the source address and destination address.

3. The method according to claim 1, characterized in that, Controlling each network interface card (NIC) to perform data transmission and reception based on a self-looping link includes: Bind the network card to the CPU core so that the CPU core only provides computing power to the bound network card; Data transmission and reception scripts and file packages are pre-configured. The data transmission and reception scripts limit the operation of sending data in a loop, and the name and storage address of the file packages are configured as data identity information. Send the data transmission and reception script and file package to the BMC of the server under test, and control the BMC to save the data transmission and reception script and file package to the specified path; Control the BMC to set all CPU cores as the execution targets of the data transceiver script; Each CPU core calls the data transmission and reception script and performs cyclic transmission and reception of the file packets through the bound network card.

4. The method according to claim 3, characterized in that, Controlling the BMC to set all CPU cores as the execution targets of the data transceiver script includes: The BMC is controlled to send the storage path of the data transmission and reception script to the CPU core; The BMC is controlled to send IPMI instructions to each CPU core. The IPMI instructions control the CPU core to call the data transceiver script from the storage path. The data transceiver is performed. The CPU core executes the data transmission and reception script, and sends file packets from the first port of the bound network card through the network card driver; The second port of the bound network card receives the file packet. The bound network card returns the file packet to the network card driver of the corresponding CPU core through an interrupt request. The network card driver sends the file packet to the kernel responsible for sending data by delaying the interrupt request.

5. The method according to claim 1, characterized in that, Acquire the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit, including: Read the electromagnetic intensity in real time from the receiver; Obtain the antenna's scanning frequency, and based on the preset correspondence between the scanning frequency range and the quasi-peak limit, query the corresponding quasi-peak limit for the scanning frequency; The electromagnetic intensity read in real time is compared with the corresponding quasi-peak limit.

6. The method according to claim 1, characterized in that, The abnormal network interface card (NIC) is located by assigning data transmission and reception tasks to each NIC one by one, including: Select one network card from all network cards as the target network card; Control network cards other than the target network card to suspend data transmission and reception; Obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit: If so, the target network card is determined to be an abnormal network card; If not, switch the target network card until all network cards have been traversed.

7. An electromagnetic radiation testing system for a network card, characterized in that, include; The link setting module is used to set up self-looping links for multiple network cards of the server under test. The network interface card (NIC) control module is used to control each NIC to perform data transmission and reception based on a self-looping link. The intensity judgment module is used to obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak value limit. An anomaly location module is used to locate abnormal network cards by arranging network cards to perform data transmission and reception one by one if the electromagnetic intensity exceeds the quasi-peak value. The test completion module is used to determine that the server under test passes the test if the electromagnetic intensity does not exceed the quasi-peak value limit. Before locating the faulty network interface card (NIC) by assigning it to perform data transmission and reception one by one, the process also includes: Remotely control all network cards to pause data transmission and reception via the BMC of the server under test; Obtain the electromagnetic intensity of the server under test and determine whether the electromagnetic intensity exceeds the quasi-peak limit: If so, then the electromagnetic intensity exceeding the quasi-peak limit is determined to be unrelated to the network card; If not, the electromagnetic intensity exceeding the quasi-peak limit is determined to be related to the network card, and the abnormal network card is located by arranging the network cards to perform data transmission and reception one by one.

8. A terminal, characterized in that, include: Memory, used to store the electromagnetic radiation test program of the network card; A processor, configured to implement the steps of the electromagnetic radiation testing method for the network card as described in any one of claims 1-6 when executing the electromagnetic radiation testing program for the network card.

9. A computer-readable storage medium storing a computer program, characterized in that, The readable storage medium stores an electromagnetic radiation test program for the network card, which, when executed by a processor, implements the steps of the electromagnetic radiation test method for the network card as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Interrupt function verification method and system based on binding core, terminal and storage medium

    CN115220976A

  • Method and apparatus for detecting and localizing an anomaly for a network

    US20110158105A1