Compatibility detection method and server

By obtaining and querying the information of optical modules and network cards, and using the compatibility list for accurate detection, the problem of inaccurate compatibility detection of optical modules and network cards is solved, ensuring the stability of server communication.

CN116015437BActive Publication Date: 2024-11-19XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211459594.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-17
Publication Date
2024-11-19
Estimated Expiration
2042-11-17

AI Technical Summary

Technical Problem

In the prior art, the compatibility detection of optical modules and network cards is inaccurate, resulting in server communication failure, and it is impossible to identify compatibility problems caused by the consistent structure of optical modules configured by different manufacturers but different fields are defined.

Method used

By obtaining the information of the target network card and optical module, querying based on the compatibility list, using unique identifiers to distinguish optical modules from different manufacturers and hardware, performing plug-in, bandwidth, bit error rate, stability and other tests, and generating compatibility lists to ensure that Detection accuracy.

Benefits of technology

Improve the accuracy of compatibility detection between optical modules and network cards, avoid compatibility errors caused by different definitions of undefined fields, and ensure normal communication between the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116015437B_ABST
    Figure CN116015437B_ABST
Patent Text Reader

Abstract

The present application discloses a compatibility detection method and server, and relates to the field of computers. The method includes: obtaining target network card information and target optical module information, querying in a compatibility list based on the target network card information and the target optical module information, the compatibility list includes compatibility test results between the network card and optical modules of multiple different manufacturers, and outputting the compatibility test results. Since optical modules with different manufacturer information and different hardware information are defined belong to different optical modules, the compatibility list includes compatibility test results between the network card and optical modules of multiple different manufacturers. According to the manufacturer information of the target network card, the hardware information and manufacturer information of the target optical module, the compatibility of the target network card and the target optical module can be accurately determined, so as to avoid the problem that different manufacturers configure the optical module structure to be consistent, but the definition of the undefined field in the optical module is different, and the network card identifies the definition of the undefined field of the optical module and the actual definition of the optical module are inconsistent, which leads to the problem that the network card cannot be connected normally.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a compatibility detection method and a server. Background Art

[0002] Servers communicate with each other based on optical modules and network cards. If the optical modules and network cards are incompatible, the server communication will fail. However, the current method for detecting the compatibility of optical modules and network cards is inaccurate. There are cases where the optical modules and network cards are detected as compatible, but they are actually incompatible. Therefore, how to improve the accuracy of compatibility detection of optical modules and network cards to ensure that servers can communicate is an urgent problem to be solved. Summary of the invention

[0003] The present application provides a compatibility detection method and a server, which solve the problem of how to improve the accuracy of compatibility detection of optical modules and network cards.

[0004] In a first aspect, a compatibility detection method is provided, the method comprising: when compatibility detection is triggered, obtaining target network card information and target optical module information, querying in a compatibility list based on the target network card information and the target optical module information, the compatibility list including compatibility test results between the network card and optical modules of multiple different manufacturers, and outputting the compatibility test results.

[0005] Since optical modules with different vendor information and hardware information are defined belong to different optical modules, the compatibility list includes the compatibility test results of the network card and optical modules of multiple different vendors. The compatibility of the target network card and the target optical module can be accurately determined based on the vendor information of the target network card, the hardware information of the target optical module, and the vendor information. This avoids the problem that the optical modules configured by different vendors have the same structure but different definitions of the undefined fields in the optical module, and the definition of the undefined field in the optical module identified by the network card is inconsistent with the actual definition of the optical module, which leads to the problem that the network card cannot be connected normally.

[0006] In combination with the first aspect, in a possible implementation method, a first identifier of the network card is determined according to the target network card information, a second identifier of the optical module is determined according to the target optical module information, and whether the network card and the optical module are compatible is determined from a compatibility list according to the first identifier and the second identifier.

[0007] Since the optical modules have the same structure, but different manufacturers have different definitions of the undefined fields of the optical modules, a unique identifier is matched to the optical modules and network cards with different manufacturer information and different hardware information to distinguish the optical modules with different hardware information and different manufacturer information. This allows compatibility detection of optical modules and network cards from different manufacturers and with different hardware information. This avoids the problem that due to different definitions of the undefined fields of the optical modules, these optical modules are inconsistent with the network card drivers, the network card cannot correctly identify the undefined fields, and the server cannot communicate normally. This improves the accuracy of compatibility detection of optical modules and network cards.

[0008] Specifically, different network cards and different optical modules are used to perform compatibility tests under different test cases to obtain a compatibility list. The compatibility test result may be at least one of a plug-in and identification test result, a bandwidth test result, an optical module bit error rate test result, an optical module stability test result, a memory stability test result, and an NCSI function test result.

[0009] Since the compatibility list is obtained through testing of optical modules and network cards with different hardware information and different manufacturers, the problems that may occur when different network cards and different optical modules are connected are taken into consideration. The compatibility list indicates that compatible optical modules and network cards will not fail when connected. Therefore, detecting the compatibility of network cards and optical modules according to the compatibility list can improve the accuracy of optical module and network card compatibility detection.

[0010] In combination with the first aspect, in a possible implementation method, when there is no correspondence between the first identifier and the second identifier in the compatibility list, it is determined that the optical module and the network card are incompatible and an alarm is generated; when there is a correspondence between the first identifier and the second identifier in the compatibility list, it is determined that the optical module and the network card are compatible and no alarm is generated.

[0011] When there is a correspondence between the first identifier of the network card and the second identifier of the optical module in the compatibility list, it means that the tests of the network card and the optical module are successful during the compatibility test, and the network card and the optical module can be connected and used in different application scenarios without causing problems such as packet loss, packet error, damage to the optical module, and failure of the server to communicate normally.

[0012] In combination with the first aspect, in another possible implementation manner, a command line interface command is used to normalize the hardware information of the optical module.

[0013] Since different manufacturers present optical module information differently, subsequent compatibility testing is inconvenient. The hardware information and manufacturer information of the optical module are normalized into a data structure so that the optical module information collected by the collector is unified.

[0014] In combination with the first aspect, in another possible implementation manner, when the second identifier does not exist in the optical module identifier obtained by query, the alarm information is shielded according to a user instruction.

[0015] When there is no corresponding relationship between the optical module and the network card in the compatibility list, the optical module is considered to be incompatible with the network card, and an alarm message is generated. The user can choose whether to shield the alarm message according to their own needs, making the compatibility test more flexible.

[0016] In combination with the first aspect, in another possible implementation manner, a compatibility test result of the target network card and the target optical module is sent to the client.

[0017] The compatibility test result can be displayed on the interface of the user terminal to prompt the user, or the user can be prompted by a mobile phone text message, so that the user can intuitively obtain the compatibility test result of the optical module and the network card.

[0018] In a second aspect, a compatibility detection device is provided, which includes an acquisition module, a query module and an output module.

[0019] The acquisition module is used to obtain the compatibility list of the network card and the optical module. The compatibility list includes the compatibility test results of the network card and the optical modules of multiple different manufacturers. When the compatibility test is triggered, the target network card information and the target optical module information are obtained. The target optical module information includes the manufacturer information of the target optical module.

[0020] The query module is used to query the compatibility list based on the target network card information and the target optical module information to obtain the compatibility test result of the target network card and the target optical module.

[0021] The output module is used to output the compatibility test results.

[0022] In combination with the second aspect, in a possible implementation method, the query module is also used to determine a first identifier of the target network card based on the target network card information, the first identifier is used to uniquely indicate the manufacturer information of the target network card; determine a second identifier based on the target optical module information, the second identifier is used to uniquely indicate the hardware information and manufacturer information of the optical module; and query the compatibility list for the optical module identifier corresponding to the first identifier.

[0023] In combination with the second aspect, in another possible implementation method, the output module is also used to, when the second identifier does not exist in the optical module identifier obtained by queried, the compatibility test result indicates that the target network card and the target optical module are incompatible, and generate an alarm message; or, when the second identifier exists in the optical module identifier obtained by queried, the compatibility test result indicates that the target network card and the target optical module are compatible.

[0024] In combination with the second aspect, in another possible implementation manner, the acquisition module is further used to perform data structure normalization processing on the target optical module information to obtain normalized target optical module information.

[0025] In combination with the second aspect, in another possible implementation manner, the output module is further configured to shield the alarm information according to a user instruction when the second identifier does not exist in the optical module identifier obtained by query.

[0026] In combination with the second aspect, in another possible implementation manner, the output module is further used to send the compatibility test result to the user terminal.

[0027] In a third aspect, a server is provided, the server comprising a processor, an out-of-band controller and a memory, the memory being used to store a compatibility list; the out-of-band controller being used to determine a first identifier of the network card and a second identifier of the optical module according to the manufacturer information of the network card, the hardware information and the manufacturer information of the optical module, and determining the correspondence between the first identifier and the second identifier according to the compatibility list, the compatibility list being generated by a compatibility test, when the correspondence between the first identifier and the second identifier does not exist in the compatibility list, it indicates that the optical module and the network card are incompatible, and an alarm is generated, when the correspondence between the first identifier and the second identifier exists in the compatibility list, it indicates that the optical module and the network card are compatible, and no alarm is generated. When the out-of-band controller executes the set of computer instructions, the functions of each module of the method in the first aspect or any possible implementation of the first aspect are executed. The processor is used to obtain the manufacturer information of the network card, the hardware information and the manufacturer information of the optical module. When the processor executes the set of computer instructions, the functions of each module of the method in the first aspect or any possible implementation of the first aspect are executed.

[0028] In a fourth aspect, a computer-readable storage medium is provided, comprising computer software instructions; when the computer software instructions are executed in a computer, the computer executes a method as described in any one of the first aspect or any possible implementation of the first aspect.

[0029] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method described in the first aspect or any one of the implementations of the first aspect.

[0030] Based on the implementations provided in the above aspects, the present application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic diagram of a system architecture provided for this application;

[0032] Figure 2 A flow chart of a compatibility detection method provided for this application;

[0033] Figure 3 A schematic diagram of an optical module information provided for this application;

[0034] Figure 4 A schematic diagram of optical module information under a Linux system provided by this application;

[0035] Figure 5 A schematic diagram of optical module information under VMware system and Windows system provided by this application;

[0036] Figure 6 A schematic diagram of a specific process of a compatibility detection method provided in this application;

[0037] Figure 7 A schematic diagram of the structure of a compatibility detection device provided in this application. DETAILED DESCRIPTION

[0038] To facilitate understanding of the solutions of the present application, a brief introduction to the relevant concepts is first given as follows.

[0039] Compatibility refers to the degree of cooperation between several hardware, several software, or several hardware and software. With respect to hardware, if multiple hardware of a computer device can cooperate with each other and work stably when working, it is said that the compatibility between them is good, otherwise it is poor.

[0040] A network card can be a device for cloud computing and data center network transmission. A network card is a network component working at the link layer. It is an interface that connects computers and transmission media in a local area network. It can not only achieve physical connection and electrical signal matching with the local area network transmission media, but also involves the sending and receiving of frames, frame encapsulation and unpacking, media access control, data encoding and decoding, and data caching functions.

[0041] The external data transmission of the network card depends on the optical module, which includes at least one of optoelectronic devices, functional circuits and optical interfaces. The transmitting end of the optical module converts the electrical signal of the network card into an optical signal and transmits it in the optical fiber. After being transmitted through the optical fiber, the receiving end of the optical module converts the optical signal into an electrical signal.

[0042] Optical module manufacturers follow the general standard specifications to configure optical modules, so that the configured optical module structures are consistent. However, different optical module manufacturers may use different values ​​to describe the fields in the optical module that are not defined in the general standard specifications. If this value is inconsistent with the network card driver, it will affect the identification of the optical module and further affect the normal connectivity of the network card.

[0043] In order to solve the problem that the network card and the optical module are incompatible, resulting in the network card not being able to connect normally, the present application provides a compatibility detection method, that is, using network cards with different manufacturer information and optical modules with different hardware information and different manufacturer information to perform compatibility tests under different test cases to obtain a compatibility list, determine the first identifier of the network card according to the manufacturer information of the network card, and determine the second identifier of the optical module according to the hardware information and manufacturer information of the optical module. When there is no corresponding relationship between the first identifier and the second identifier in the compatibility list, it is determined that the optical module and the network card are incompatible, an alarm is generated, and the alarm information is displayed on the user side; when there is a corresponding relationship between the first identifier and the second identifier in the compatibility list, it is determined that the optical module and the network card are compatible, and no alarm is generated. Since a unique identifier is matched to the optical module and the network card with different manufacturer information, compatibility detection can be performed on the optical modules and network cards of different manufacturers, avoiding the problem that the optical module structures configured by different manufacturers are consistent, but the definitions of the undefined fields in the optical module are different, and the incompatible network card and optical module are mistakenly detected as compatible, making it impossible for the server to communicate normally, thereby improving the accuracy of the compatibility detection of the optical module and the network card. Since the compatibility list is obtained by testing network cards with different vendor information and optical modules with different vendor information and different hardware information through test cases, the accuracy of compatibility detection of optical modules and network cards can be further improved.

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

[0045] Figure 1 A schematic diagram of a system architecture provided for this application. The system architecture diagram is an example of a server. Figure 1 The server 100 includes a processor 110, an out-of-band controller 120, a network card 130, an optical module 140, a communication interface 150, a bus 160, and a memory 170. The processor 110, the out-of-band controller 120, the network card 130, the optical module 140, the memory 170, and the communication interface 150 communicate with each other through the bus 160.

[0046] The processor 110 may be a central processing unit (CPU), and is used to obtain the manufacturer information of the network card, including the manufacturer name, network card number, subsystem manufacturer name, and subsystem network card number. The hardware information and manufacturer information of the optical module are obtained, and the hardware information includes the type, identifier, wavelength, rate, and luminous power of the optical module. The manufacturer information of the network card, the hardware information, and the manufacturer information of the optical module are reported to the out-of-band controller 120.

[0047] The out-of-band controller 120 includes an out-of-band management module 121. The out-of-band management module 121 is used to determine the first identifier of the network card according to the manufacturer information of the network card, and determine the second identifier of the optical module according to the hardware information and manufacturer information of the optical module. Determine whether the network card and the optical module are compatible according to the compatibility list stored in the out-of-band controller. When there is a correspondence between the first identifier and the second identifier in the compatibility list, it means that the network card and the optical module are considered to be compatible after the test case test, and there is no need to generate an alarm. When there is no correspondence between the first identifier and the second identifier in the compatibility list, it means that the network card and the optical module are considered to be incompatible after the test case test, an alarm is generated, and the alarm information is displayed on the user-end device, so that the user can solve the incompatibility problem between the network card and the optical module according to the alarm information.

[0048] The out-of-band management module may be a management unit of a non-business module. For example, the out-of-band management module may remotely maintain and manage a computer device through a dedicated data channel. The out-of-band management module is completely independent of the operating system of the computer device and may communicate with the basic input output system (BIOS) and the OS (or OS management unit) through the out-of-band management interface of the computer device.

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

[0050] It should be noted that the server has different names for BMC, for example, in some scenarios it is called BMC, in some scenarios it is called iLO, and in some scenarios it is called iDRAC. Regardless of whether it is called BMC, iLO or iDRAC, it can be understood as the BMC in the embodiment of the present invention.

[0051] The network card 130 is used to provide the computer device with the function of communicating with other devices in the network, realizing the physical connection and electrical signal matching between the local area network transmission medium, frame sending and receiving, frame encapsulation and unpacking, media access control, data encoding and decoding, and data caching.

[0052] The optical module 140 is used to convert the electrical signal of the board into an optical signal for transmission in the optical fiber. After being transmitted through the optical fiber, the receiving end converts the optical signal into an electrical signal.

[0053] The communication interface 150 is used for communicating with the outside, for example, when the optical module and the network card are incompatible, sending an alarm message to the user.

[0054] The bus 160 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 1 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0055] The memory 170 may include a volatile memory, such as a random access memory (RAM). The memory 170 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a HDD or a SSD. The memory 170 stores an executable code, and the processor 110 and the out-of-band controller 120 execute the executable code to perform the compatibility detection method.

[0056] The system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.

[0057] Next, the compatibility detection method is described in detail with reference to the accompanying drawings. Figure 2 A flow chart of a compatibility detection method provided in an embodiment of the present application. Figure 1 The processor 110, out-of-band controller 120, network card 130 and optical module 140 shown in FIG. 1 are used as an example for description.

[0058] Step 201: The out-of-band controller obtains a compatibility list of the network card and the optical module.

[0059] In order to avoid server communication failure due to incompatibility between the network card and the optical module when the user uses the server, the compatibility of the optical module and the network card in the server can be detected when the server is turned on, or the compatibility of the optical module and the network card in the server can be detected regularly according to the preset time. Regular detection of the compatibility of the optical module and the network card can avoid problems such as port failure to connect and optical module damage when changing the line, plugging or replacing the optical module, or packet loss and error during long-term stress use.

[0060] In one embodiment, different test cases are used to test the compatibility of different network cards and different optical modules under different test environments to generate a compatibility list. Since the compatibility list is obtained through rigorous testing and verification, and different scenarios are taken into account, the compatibility combination of the network card and the optical module in the compatibility list can ensure that users can use it normally in various application scenarios. The compatibility test content includes: plug-in and identification test under different operating systems, bandwidth under each operating system, optical module bit error rate test, optical module stability test, EEPROM stability test, NCSI function test, etc.

[0061] Table 1

[0062] First logo Network card manufacturer information Second mark Optical module hardware information Optical module manufacturer information 02310YHP The No.1 Network Card Manufacturer 34060494-005 10G Multimode The No.1 manufacturer of optical modules 02310YHP The No.1 Network Card Manufacturer 34060495 10G single mode Second Optical Module Manufacturer 02311RMW Second network card manufacturer 34060494-002 10G Multimode Optical module third manufacturer

[0063] The compatibility list is shown in Table 1. When the vendor information of the network card is the first vendor of the network card, the first identifier of the network card is 02310YHP, and the second identifiers of the optical modules compatible with the network card are 34060494-005 and 34060495. The hardware information of the optical module with the second identifier of 34060494-005 is 10G multimode, and the vendor information is the first vendor of the optical module or the second vendor of the optical module.

[0064] Step 202: The processor obtains target network card information and target optical module information.

[0065] In one implementation, a collection module is configured on a processor of a server, and the collection module is used to obtain the manufacturer information of the network card, and the manufacturer information includes the manufacturer name, the network card number, the subsystem manufacturer name, and the subsystem network card number. The target optical module information is obtained, and the target optical module information may include hardware information and manufacturer information, and the hardware information includes the type, identifier, wavelength, rate, and luminous power of the optical module. The manufacturer information of the network card, the hardware information, and the manufacturer information of the optical module are reported to the out-of-band controller, so that the out-of-band controller can determine whether the network card and the optical module are compatible.

[0066] In an optional implementation, the acquisition module may be configured in the BMC of the server, that is, the BMC acquires the network card information and / or the optical module information, etc.

[0067] In the embodiment of the present application, optical modules that define different manufacturer information and different hardware information belong to different optical modules. Therefore, the network card and optical module used by the server can be accurately determined based on the manufacturer information of the network card, the hardware information and the manufacturer information of the optical module, thereby avoiding the problem that the optical modules configured by different manufacturers have the same structure, but the definitions of the undefined fields in the optical module are different, and the definition of the undefined field of the optical module identified by the network card is inconsistent with the actual definition of the optical module, which leads to the problem that the network card cannot be connected normally.

[0068] Step 203: The out-of-band controller searches the compatibility list based on the target network card information and the target optical module information.

[0069] Since different manufacturers present optical module information differently, subsequent compatibility testing is inconvenient. The hardware information and manufacturer information of the optical module are normalized into a data structure to make the collected optical module information unified.

[0070] Specifically, the command line interface (CLI) command is used to query the optical module information connected to the network card device. The optical module information includes identifier, wavelength, rate, manufacturer, manufacturer version, luminous power and other information. The main data structure and interface definition are as follows; CLI command: show <device>transceiver information.

[0071] The optical module information obtained by querying the command line interface command is as follows Figure 3 As shown in the figure, the optical module has an identifier of 0x03 (SFP), a type of Infiniband: 1X Copper Passive, a connector of 0x21 (Copper Pigtail), a transceiver type of FC: short distance (S), a wavelength of 10300 MBd, a vendor name of LUXSHARE-ICT, an Organizationally unique identifier (Vendor OUI) of 3c:18:a0, a Vendor PART NO (Vendor PN) of L99SF014-SD-H, a Vendor SN of 183492108, a Vendor Revision (Vendor rev) of A, a rate of 0x00 (unspecified), and a length of 3 m (Copper).

[0072] The server may have different operating systems, such as Linux, VMware, and Windows. The methods for obtaining information about the optical module connected to the network card are different in different operating systems.

[0073] In one example, the operating system of the server is a Linux system, and the ethtool command is used to query the information of the optical module connected to the network card. The queried optical module information is normalized into a unified data structure through a CLI command.

[0074] The queried optical module information and normalized optical module information are as follows: Figure 4 The optical module information obtained by using the ethtool command includes the identifier: 0x03 (SFP), the extended identifier 0x04 (GBIC / SFP defined by 2-wire interface ID), the connector: 0x21 (copper pigtail), the transceiver code: 0x01 0x00 0x00 0x000x00 0x04 0x80 0x00, the transceiver type: passive cable, and the manufacturer name: arista networks. The normalized optical module information is as follows: the identifier is 0x03 (SFP), the type is Infiniband: 1X Copper Passive, the connector is 0x21 (Copper Pigtail), the transceiver type is FC: short distance (S), the wavelength is 10300 MBd, the manufacturer name is LUXSHARE-ICT, the manufacturer OUI is 3c:18:a0, the manufacturer PN is L99SF014-SD-H, the manufacturer SN is 183492108, the manufacturer rev is A, the rate is 0x00 (unspecified), and the length is 3 m (Copper).

[0075] In another example, the server's operating system is VMware system and Windows system, and the manufacturer stores the optical module's hardware information and manufacturer information in the optical module's electrically erasable programmable read only memory (EEPROM). Since the optical module information is stored in the EEPROM in binary form, the optical module EEPROM is binary decoded, and the decoded optical module information is normalized into a unified data structure through CLI commands.

[0076] The decoded optical module information and the normalized optical module information are as follows: Figure 5 shown. The decoded optical module information is 0000 61 05aa ff 00 00 40 42 80 60 81 3f 02 55 02; 0010 5b 02 61 02 69 0271 02 74 02 77 02 87 0282 80; 0020 00 05ff ff ff ff ff ff ff ff fa fa 2c 06 2d03;0030 40 40 30 40ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff;0040 32 06ffff ff ff ff ff ff ff ff ff ff ff ff ff 23 06;0050 1d 06 51 40 46 00ff ff f5ff a0 05 0080a7 02; 0060 20 01 00 40 5a 23 3b 40 21 01 00 40 0d 31 27 03. After normalizing the above information, the optical module information is as follows: the identifier is 0x03 (SFP), the type is Infiniband: 1XCopper Passive, the connector is 0x21 (Copper Pigtail), the transceiver type is FC: short distance (S), the wavelength is 10300MBd, the manufacturer name is LUXSHARE-ICT, the manufacturer OUI is 3c:18:a0, the manufacturer PN is L99SF014-SD-H, the manufacturer SN is 183492108, the manufacturer rev is A, the rate is 0x00 (unspecified), and the length is 3m (Copper).

[0077] In order to accurately determine the compatibility of the network card in the server and the optical module connected to the network card, a unique identifier is configured for optical modules with different hardware information and different manufacturers to distinguish optical modules with different hardware information and different manufacturers. The out-of-band controller determines the identifier of the network card and the optical module based on the manufacturer information of the network card, the hardware information and the manufacturer information of the optical module collected by the collector, so that the out-of-band controller can accurately determine the compatibility of the network card and the optical module based on the compatibility list.

[0078] The out-of-band controller searches for the first identifier of the network card in the compatibility list, determines the optical module corresponding to the first identifier, and determines whether the second identifier exists from the determined optical module. If so, it means that after the compatibility test, it is known that the network card indicated by the first identifier and the optical module indicated by the second identifier are compatible; if not, it means that after the compatibility test, it is known that the network card indicated by the first identifier and the optical module indicated by the second identifier are incompatible.

[0079] Step 204: The out-of-band controller outputs the compatibility test result.

[0080] The compatibility test result may include a first result and a second result, the first result is used to indicate that the network card and the optical module are incompatible, and the second result is used to indicate that the network card and the optical module are compatible.

[0081] When the corresponding relationship between the first identifier of the network card and the second identifier of the optical module does not exist in the compatibility list, it means that during the compatibility test, the network card and the optical module failed in a certain test, and it is considered that the network card and the optical module are incompatible, so the corresponding relationship between the network card and the optical module does not exist in the compatibility list. When the network card and the optical module are incompatible, the out-of-band controller generates an alarm and can remind the user to deal with the incompatibility of the network card and the optical module in a timely manner through the user's web interface, mobile phone interface, text messages, etc., to avoid incompatible network cards and optical modules working at the same time in the server, causing packet loss, wrong packets, optical module damage, server failure to communicate normally, and other problems.

[0082] In some optional embodiments, the compatibility test results may also include, but are not limited to, information such as optical module bit error rate, optical module stability, EEPROM stability, NCSI function, etc., which are not limited here.

[0083] In another embodiment, when there is no correspondence between the first identifier of the network card and the second identifier of the optical module in the compatibility list, the alarm information may be shielded or not shielded according to the user's instruction. When the user believes that the incompatibility between the network card and the optical module will not affect him, the alarm may be shielded.

[0084] When there is a correspondence between the first identifier of the network card and the second identifier of the optical module in the compatibility list, it means that the tests of the network card and the optical module are successful during the compatibility test, and the network card and the optical module can be connected and used in different application scenarios without causing problems such as packet loss, packet error, damage to the optical module, and failure of the server to communicate normally.

[0085] Figure 6 A schematic diagram of a specific process of a compatibility detection method provided in an embodiment of the present application.

[0086] Step 601: Obtain the vendor information of the network card, and the hardware information and vendor information of the optical module.

[0087] In one implementation, a collection module is configured on a processor of a server, and the collection module is used to obtain the manufacturer information of the network card, and the manufacturer information includes the manufacturer name, the network card number, the subsystem manufacturer name, and the subsystem network card number. The target optical module information is obtained, and the target optical module information may include hardware information and manufacturer information, and the hardware information includes the type, identifier, wavelength, rate, and luminous power of the optical module. The manufacturer information of the network card, the hardware information, and the manufacturer information of the optical module are reported to the out-of-band controller, so that the out-of-band controller can determine whether the network card and the optical module are compatible.

[0088] In an optional implementation, the acquisition module may be configured in the BMC of the server, that is, the BMC acquires the network card information and / or the optical module information, etc.

[0089] In the embodiment of the present application, optical modules that define different manufacturer information and different hardware information belong to different optical modules. Therefore, the network card and optical module used by the server can be accurately determined based on the manufacturer information of the network card, the hardware information and the manufacturer information of the optical module, thereby avoiding the problem that the optical modules configured by different manufacturers have the same structure, but the definitions of the undefined fields in the optical module are different, and the definition of the undefined field of the optical module identified by the network card is inconsistent with the actual definition of the optical module, which leads to the problem that the network card cannot be connected normally.

[0090] Step 602: Determine a first identifier of the network card and a second identifier of the optical module.

[0091] In order to accurately determine the compatibility of the network card in the server and the optical module connected to the network card, a unique identifier is configured for optical modules with different hardware information and different manufacturers to distinguish optical modules with different hardware information and different manufacturers. The out-of-band controller determines the identifier of the network card and the optical module based on the manufacturer information of the network card, the hardware information and the manufacturer information of the optical module collected by the collector, so that the out-of-band controller can accurately determine the compatibility of the network card and the optical module based on the compatibility list.

[0092] Step 603: Determine the correspondence between the first identifier and the second identifier according to the compatibility list.

[0093] The out-of-band controller searches for the first identifier of the network card in the compatibility list, determines the optical module corresponding to the first identifier, and determines whether the second identifier exists from the determined optical module. If so, it means that after the compatibility test, it is known that the network card indicated by the first identifier and the optical module indicated by the second identifier are compatible; if not, it means that after the compatibility test, it is known that the network card indicated by the first identifier and the optical module indicated by the second identifier are incompatible.

[0094] Step 604: Shield the alarm.

[0095] When there is no correspondence between the first identifier of the network card and the second identifier of the optical module in the compatibility list, the alarm information can be shielded or not shielded according to the user's instructions. When the user believes that the incompatibility between the network card and the optical module will not affect him, the alarm can be shielded.

[0096] Step 605: Generate an alarm.

[0097] When there is no corresponding relationship between the first identifier of the network card and the second identifier of the optical module in the compatibility list, it indicates that the network card and the optical module are incompatible, and the out-of-band controller generates an alarm.

[0098] Step 606: No alarm is generated.

[0099] When there is a correspondence between the first identifier of the network card and the second identifier of the optical module in the compatibility list, it indicates that the network card and the optical module are compatible, and the out-of-band controller does not generate an alarm.

[0100] For a more detailed description of steps 601 to 606, please refer to Figure 2 The relevant description in the method embodiment shown is directly obtained and will not be repeated here.

[0101] It is understandable that in order to implement the functions in the above embodiments, the computer includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and method steps of each example described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0102] Figure 7 Schematic diagram of the structure of the compatibility detection device provided in the embodiment of the present application. These compatibility detection devices can be used to implement the functions of the server in the above method embodiment, and thus can also achieve the beneficial effects of the above method embodiment. In the embodiment of the present application, the compatibility detection device can be as follows: Figure 1 Server 100 is shown.

[0103] like Figure 7 As shown, the compatibility detection device 700 includes an acquisition module 701, a query module 702 and an output module 703.

[0104] When the compatibility detection device 700 is used to implement Figure 1 The functions of the server 100 are shown as follows:

[0105] The acquisition module 701 is used to obtain a compatibility list of the network card and the optical module, which includes compatibility test results of the network card and optical modules of multiple different manufacturers; when the compatibility test is triggered, the target network card information and the target optical module information are obtained, and the target optical module information includes the manufacturer information of the target optical module.

[0106] The query module 702 is used to query the compatibility list based on the target network card information and the target optical module information to obtain the compatibility test result of the target network card and the target optical module.

[0107] The output module 703 is used to output the compatibility test result.

[0108] The query module 702 is also used to determine the first identifier of the target network card based on the target network card information, the first identifier is used to uniquely indicate the manufacturer information of the target network card; determine the second identifier based on the target optical module information, the second identifier is used to uniquely indicate the hardware information and manufacturer information of the optical module; and query the optical module identifier corresponding to the first identifier in the compatibility list.

[0109] The output module 703 is also used to generate an alarm message when the second identifier does not exist in the optical module identifier obtained by query, the compatibility test result indicates that the target network card and the target optical module are incompatible; or, when the second identifier exists in the optical module identifier obtained by query, the compatibility test result indicates that the target network card and the target optical module are compatible.

[0110] The acquisition module 701 is further used to perform data structure normalization processing on the target optical module information to obtain normalized target optical module information.

[0111] The output module 703 is further configured to shield the alarm information according to a user instruction when the second identifier does not exist in the optical module identifier obtained by query.

[0112] The output module 703 is also used to send the compatibility test result to the user terminal. The compatibility detection device 700 also includes a storage module 704. The storage module 704 is used to store the compatibility list.

[0113] For more detailed description of the acquisition module 701, query module 702, output module 703 and storage module 704, please refer to Figure 2 The relevant description in the method embodiment shown is directly obtained and will not be repeated here.

[0114] The present application also provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enables the computer to execute the compatibility detection method applied to the compatibility detection device 700.

[0115] The present application also provides a computer program product, and when the computer program product is executed by a computer, the computer executes any of the aforementioned methods. The computer program product may be a software installation package, and when any of the aforementioned methods is needed, the computer program product may be downloaded and executed on a computer.

[0116] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0117] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0118] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0119] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.< / device>

Claims

1. A compatibility detection method, It is characterized in that include: Obtaining a compatibility list of the network card and the optical module, the compatibility list including compatibility test results of the network card and the optical modules of multiple different manufacturers; In the case of triggering compatibility detection, obtaining target network card information and target optical module information, wherein the target optical module information includes manufacturer information of the target optical module; Based on the target network card information and the target optical module information, query in the compatibility list to obtain a compatibility test result between the target network card and the target optical module; Outputting the compatibility test result; Based on the target network card information and the target optical module information, querying in the compatibility list includes: Determine a first identifier of the target network card according to the target network card information, where the first identifier is used to uniquely indicate manufacturer information of the target network card; Determine a second identifier according to the target optical module information, where the second identifier is used to uniquely indicate the hardware information and manufacturer information of the optical module; Searching the compatibility list for an optical module identifier corresponding to the first identifier; Output the compatibility test results, including: When the second identifier does not exist in the optical module identifier obtained by query, the compatibility test result indicates that the target network card and the target optical module are incompatible, and an alarm message is generated; or, When the second identifier exists in the optical module identifier obtained by query, the compatibility test result indicates that the target network card is compatible with the target optical module.

2. The method according to claim 1, It is characterized in that The method further comprises: Perform data structure normalization processing on the target light module information to obtain the normalized target light module information.

3. The method according to claim 1, It is characterized in that The hardware information of the optical module includes at least one of type, identifier, wavelength, rate, luminous power and version.

4. The method according to claim 1, It is characterized in that The compatibility test results include at least one or more of plug-in and identification test results, bandwidth test results, optical module bit error rate test results, optical module stability test results, memory stability test results and NCSI function test results.

5. The method according to claim 1, It is characterized in that The method further comprises: When the second identifier does not exist in the optical module identifier obtained by query, the alarm information is shielded according to a user instruction.

6. The method according to claim 1, It is characterized in that The method further comprises: The compatibility test result is sent to the user terminal.

7. A server, It is characterized in that The server includes a network card, an optical module and a processor, wherein the network card and the optical module are both connected to the processor, and the processor is used for: When the compatibility detection is triggered, target network card information and target optical module information are obtained, where the target optical module information includes manufacturer information of the target optical module.

8. The server according to claim 7, It is characterized in that The server further includes a baseboard management unit, which is connected to the processor and is used for: Obtaining a compatibility list of the network card and the optical module, the compatibility list including compatibility test results of the network card and the optical modules of multiple different manufacturers; Based on the target network card information and the target optical module information, query in the compatibility list to obtain a compatibility test result between the target network card and the target optical module; The compatibility test result is output.