Method and device for identifying optical equipment in intelligent network card, equipment and storage medium

By analyzing the register information and interaction information of the optical device, the adaptability of the intelligent network card and the optical device is determined, and the problem of incompatibility between the intelligent network card and the optical device is solved, and the optimal configuration and efficient utilization of resources are achieved.

CN119807104APending Publication Date: 2025-04-11CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411754497.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The incompatibility between smart network cards and optical devices leads to various problems in smart network cards after long-term use, affecting normal use.

Method used

By analyzing the register information and optical device information of the optical device, combining the interaction information between the optical device and the main controller, the adaptability of the optical device and the intelligent network card is judged.

Benefits of technology

It realizes the adaptability of optical devices and smart network cards quickly and accurately, avoids the combination of unfit optical devices and smart network cards, optimizes resource configuration and improves resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119807104A_ABST
    Figure CN119807104A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an identification method and device for optical equipment in an intelligent network card, equipment and a storage medium, and the method comprises the steps: obtaining a first adaption result according to register information and optical equipment information corresponding to the optical equipment; obtaining interaction information between the optical equipment and the main controller, and obtaining a second adaptation result according to the interaction information; and according to the first adaptation result and the second adaptation result, obtaining an identification result used for determining whether the optical equipment is adaptive to the intelligent network card or not. According to the embodiment of the invention, by analyzing the register information of the optical equipment, the optical equipment information and the interaction information between the optical equipment and the main controller, the adaptability of the optical equipment and the intelligent network card can be evaluated more comprehensively, and the possibility of misjudgment is reduced. Through the accurate adaptability identification result, the combined use of the unmatched optical equipment and the intelligent network card can be avoided, so that the resource configuration is optimized, and the resource utilization rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart network cards, and in particular to a method and apparatus for identifying optical devices in a smart network card, an electronic device, and a storage medium. Background Art

[0002] With the development of technologies such as cloud computing, big data, and the Internet of Things, smart network cards, as one of the key technologies for efficient network communication and data transmission, play an irreplaceable role in optical devices. Optical devices can be used to connect to TOR switches (Top-of-Rack switches, a type of network switch) for the transmission of computing, network, and storage data.

[0003] With the rapid development of smart network cards, the pace of business launch is often very fast. It is difficult for equipment manufacturers to adapt all the optical equipment of mainstream manufacturers. On the user side, optical equipment from different manufacturers may be used. This may not affect the normal use of smart network cards in the short term, but various problems will arise after long-term use, which will affect the normal use of smart network cards. Summary of the Invention

[0004] The embodiments of the present application provide a method for identifying an optical device in a smart network card to solve the problem that the smart network card and the optical device are not compatible and thus cannot be quickly identified, which affects the normal use of the smart network card.

[0005] Correspondingly, an embodiment of the present application also provides an optical device identification device in a smart network card, an electronic device, and a storage medium to ensure the implementation and application of the above method.

[0006] To solve the above problems, an embodiment of the present application discloses a method for identifying an optical device in a smart network card. The smart network card also includes a main controller, the main controller includes information about an optical device adapted to the smart network card, and the optical device has corresponding register information. The method includes:

[0007] Obtaining a first adaptation result according to register information corresponding to the optical device and the optical device information;

[0008] Acquiring interaction information between the optical device and the main controller, and obtaining a second adaptation result according to the interaction information;

[0009] An identification result for determining whether the optical device and the smart network card are compatible is obtained according to the first adaptation result and the second adaptation result.

[0010] Optionally, obtaining a first adaptation result according to register information corresponding to the optical device and the optical device information includes:

[0011] Comparing the register information corresponding to the optical device with the optical device information to determine whether they are consistent;

[0012] If the register information corresponding to the optical device is consistent with the optical device information, a first target result is obtained;

[0013] If the register information corresponding to the optical device is inconsistent with the optical device information, a second target result is obtained;

[0014] The first target result or the second target result is determined as the first adaptation result.

[0015] Optionally, the acquiring interaction information between the optical device and the main controller, and obtaining a second adaptation result according to the interaction information, includes:

[0016] Controlling the interaction of key messages between the main controller and the optical device;

[0017] Acquiring interaction information indicating whether the interaction between the main controller and the optical device is successful;

[0018] If the interaction information indicates that the interaction between the main controller and the optical device is successful, obtaining a third target result;

[0019] If the interaction information indicates that the interaction between the main controller and the optical device fails, obtaining a fourth target result;

[0020] The third target result or the fourth target result is determined as the second adaptation result.

[0021] Optionally, the interaction between the main controller and the optical device has a predefined data interaction format, and controlling the interaction of key messages between the main controller and the optical device includes:

[0022] Controlling the main controller to encrypt the key message using the data exchange format to obtain an encrypted message, and sending the encrypted message to the optical device;

[0023] Controlling the optical device to decrypt the encrypted message using the data exchange format to obtain a decrypted message, and verifying the decrypted message to obtain a verification result for determining whether the decrypted message is valid;

[0024] Controlling the optical device to generate a confirmation message according to the verification result, and encrypting the confirmation message using the data exchange format to obtain an encrypted confirmation message;

[0025] The optical device is controlled to return the encryption confirmation message to the main controller to complete the interaction between the main controller and the optical device.

[0026] Optionally, the acquiring interaction information indicating whether the interaction between the main controller and the optical device is successful includes:

[0027] Controlling the main controller to decrypt the encrypted confirmation message using the data exchange format to obtain the confirmation message;

[0028] If the decrypted message includes a verification result for determining that the decrypted message is valid, determining first interaction information for indicating that the interaction between the main controller and the optical device is successful;

[0029] If the decrypted message includes a verification result for determining that the decrypted message is invalid, determining second interaction information for indicating that the interaction between the main controller and the optical device has failed;

[0030] The first interaction information or the second interaction information is determined as the interaction information.

[0031] Optionally, obtaining, according to the first adaptation result and the second adaptation result, an identification result for determining whether the optical device is compatible with the smart network card includes:

[0032] If the first adaptation result is the first target result, and the second adaptation result is the third target result, obtaining a first identification result for determining that the optical device is adapted to the smart network card;

[0033] If the first adaptation result is the second target result, or the second adaptation result is the fourth target result, obtaining a second identification result for determining that the optical device and the smart network card are not compatible;

[0034] The first recognition result or the second recognition result is determined as the recognition result.

[0035] Optionally, the optical device has corresponding location information, the main controller is communicatively connected to the cloud monitoring platform, and after obtaining an identification result for determining whether the optical device and the smart network card are compatible based on the first adaptation result and the second adaptation result, the method further includes:

[0036] If the recognition result is the second recognition result, the main controller is controlled to report the location information corresponding to the optical device to the cloud monitoring platform, so that the cloud monitoring platform replaces the optical device based on the location information corresponding to the optical device.

[0037] The present application also discloses an optical device identification device in a smart network card. The smart network card further includes a main controller, the main controller includes optical device information adapted to the smart network card, and the optical device has corresponding register information. The device includes:

[0038] A first adaptation module, configured to obtain a first adaptation result according to register information corresponding to the optical device and the optical device information;

[0039] a second adaptation module, configured to obtain interaction information between the optical device and the main controller, and obtain a second adaptation result according to the interaction information;

[0040] The identification result determination module is used to obtain an identification result for determining whether the optical device and the smart network card are compatible according to the first adaptation result and the second adaptation result.

[0041] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the method for identifying optical devices in a smart network card as described in any one of the embodiments of the present application.

[0042] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the method for identifying optical devices in the smart network card as described in any one of the embodiments of the present application.

[0043] Compared with the prior art, the embodiments of the present application have the following advantages:

[0044] In an embodiment of the present application, a first adaptation result is obtained based on the register information corresponding to the optical device and the optical device information; the interaction information between the optical device and the main controller is obtained, and a second adaptation result is obtained based on the interaction information; and an identification result for determining whether the optical device and the smart network card are compatible is obtained based on the first adaptation result and the second adaptation result. By analyzing the register information and optical device information of the optical device, the embodiment of the present application can gain an in-depth understanding of the hardware characteristics and function support of the optical device. By obtaining the interaction information between the optical device and the main controller, the performance and compatibility of the optical device in the actual working environment can be verified. Combining these two aspects of information, the compatibility of the optical device and the smart network card can be more comprehensively evaluated, reducing the possibility of misjudgment. Through accurate adaptability identification results, it is possible to avoid the combination of incompatible optical devices and smart network cards, thereby optimizing resource allocation and improving resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1This is a flowchart of an embodiment of a method for identifying an optical device in a smart network card of the present application;

[0046] Figure 2 This is a structural diagram of a method for identifying optical devices in a smart network card of the present application;

[0047] Figure 3 This is a flowchart of determining whether an optical device and a smart network card are compatible with each other;

[0048] Figure 4 This is a schematic diagram of the structure of a key message of the present application;

[0049] Figure 5 This is another flowchart of determining whether an optical device and a smart network card are compatible with each other in the present application;

[0050] Figure 6 This is a structural block diagram of an embodiment of an identification device for an optical device in a smart network card of the present application;

[0051] Figure 7 It is a structural diagram of a device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0053] The smart network card involved in the embodiments of the present application refers to the smart network card on the server.

[0054] Reference Figure 1 , is a flowchart of an embodiment of a method for identifying an optical device in a smart network card of the present application, wherein the smart network card further includes a main controller, the main controller includes information of an optical device adapted to the smart network card, and the optical device has corresponding register information, including the following steps:

[0055] Step 101: Obtain a first adaptation result according to register information corresponding to the optical device and the optical device information;

[0056] Reference Figure 2 , is a structural diagram of a method for identifying optical devices in a smart network card of the present application. The smart network card includes a main controller, an optical device, and a storage device. The main controller is connected to the optical device, the storage device, and a cloud monitoring platform respectively. The cloud monitoring platform is used to issue an alarm when the optical device and the smart network card are incompatible.

[0057] In an embodiment of the present application, during the server power-on process, the main controller and the optical device are initialized, the main controller can access the optical device, and can read the registers inside the optical device to obtain the register information corresponding to the optical device, and temporarily store the read register information in the storage device.

[0058] Registers are hardware components in optical devices that store and process data. Register information includes register type, address, status, and configuration parameters. Optical device information refers to the register information corresponding to the target optical device that the SmartNIC is compatible with and is typically stored in the main controller.

[0059] In the embodiment of the present application, the register information corresponding to the optical device specifically refers to the register under the address 0Xa0, for example, ID (Identifier), manufacturer, MAC (Media Access Control, an address identifier) ​​address and other information.

[0060] By comparing the register information and the optical device information of the optical device, it can be preliminarily determined whether the register information corresponding to the optical device is consistent with the optical device information. The result obtained by this preliminary determination is called a first adaptation result.

[0061] In the embodiment of the present application, the first adaptation result and the register information corresponding to the optical device are recorded in a storage device.

[0062] Step 102: Acquire interaction information between the optical device and the main controller, and obtain a second adaptation result according to the interaction information;

[0063] During the power-on initialization process of the server, the main controller and the MCU (Microcontroller Unit) inside the optical device are initialized, and the main controller and the optical device will establish data interaction. Specifically, the main controller and the MCU inside the optical device exchange data and determine whether the pairing is successful based on the interaction information between the two.

[0064] The interactive information between the optical device and the main controller refers to the information generated when the optical device and the main controller communicate and transmit data in an actual working environment.

[0065] By analyzing the interaction information between the optical device and the main controller, the performance and compatibility of the optical device in the actual working environment can be further verified. This further verification result is called the second adaptation result.

[0066] Step 103: Obtain an identification result for determining whether the optical device and the smart network card are compatible according to the first adaptation result and the second adaptation result.

[0067] The first adaptation result is a preliminary judgment based on the register information and the optical device information of the optical device, and the second adaptation result is a further verification based on the actual interaction information between the optical device and the main controller.

[0068] By comprehensively analyzing the first adaptation result and the second adaptation result, the compatibility of the optical device and the smart network card can be comprehensively evaluated.

[0069] If both adaptation results indicate that the optical device is compatible with the SmartNIC, the identification result will be "compatible"; if any adaptation result indicates incompatibility, the identification result will be "incompatible".

[0070] In the embodiment of the present application, a double verification method is adopted, which can quickly and accurately identify whether the optical device and the smart network card are compatible.

[0071] By analyzing the register information and optical device information of optical devices, the embodiments of the present application can provide a deep understanding of the hardware characteristics and functional support of optical devices. By obtaining the interaction information between the optical device and the main controller, the performance and compatibility of the optical device in the actual working environment can be verified. Combining these two aspects of information can more comprehensively evaluate the compatibility of the optical device and the SmartNIC, reducing the possibility of misjudgment. Through accurate compatibility identification results, it is possible to avoid the combination of incompatible optical devices and SmartNICs, thereby optimizing resource allocation and improving resource utilization.

[0072] In one embodiment of the present application, step 101 of obtaining a first adaptation result according to register information corresponding to the optical device and the optical device information includes:

[0073] Comparing the register information corresponding to the optical device with the optical device information to determine whether they are consistent;

[0074] If the register information corresponding to the optical device is consistent with the optical device information, a first target result is obtained;

[0075] If the register information corresponding to the optical device is inconsistent with the optical device information, a second target result is obtained;

[0076] The first target result or the second target result is determined as the first adaptation result.

[0077] In the embodiment of the present application, the actual register information of the optical device (read from the optical device) and the optical device information (stored in the main controller) are first compared to check whether they are consistent.

[0078] If the comparison result shows that the register information of the optical device is consistent with the optical device information, a "first target result" will be generated, indicating that the hardware and functions of the optical device are consistent with the target optical device adapted by the smart network card.

[0079] If the comparison result shows that the register information of the optical device is inconsistent with the optical device information, a "second target result" will be generated, indicating that the hardware and functions of the optical device are inconsistent with the target optical device adapted by the SmartNIC.

[0080] Ultimately, the "first target result" or "second target result" will be used as the first adaptation result. If the register information of the optical device is consistent with the optical device information, the first adaptation result will be "first target result", indicating that the optical device and SmartNIC hardware and functions are compatible. If the register information of the optical device is inconsistent with the optical device information, the first adaptation result will be "second target result", indicating that the optical device and SmartNIC hardware and functions are incompatible.

[0081] This embodiment of the present application can initially determine whether the optical device and the SmartNIC's hardware and functionality are compatible by comparing their register information and optical device information. If they are consistent, a first target result is obtained, indicating compatibility; if they are inconsistent, a second target result is obtained, indicating incompatibility. Ultimately, either the first target result or the second target result is determined as the first adaptation result, providing a basis for subsequent compatibility evaluations.

[0082] Reference Figure 3 , is a flowchart of determining whether an optical device and a SmartNIC are compatible in this application, specifically including:

[0083] After both the main controller and the optical device are initialized, the main control module obtains the register information corresponding to the optical device and compares it one by one with the optical device information to determine whether the two are consistent; if they are consistent, the first target result is obtained; if they are inconsistent, the second target result is obtained; the first target result or the second target result is recorded in the storage device.

[0084] In one embodiment of the present application, step 102 of obtaining interaction information between the optical device and the main controller and obtaining a second adaptation result based on the interaction information includes:

[0085] Controlling the interaction of key messages between the main controller and the optical device;

[0086] Acquiring interaction information indicating whether the interaction between the main controller and the optical device is successful;

[0087] If the interaction information indicates that the interaction between the main controller and the optical device is successful, obtaining a third target result;

[0088] If the interaction information indicates that the interaction between the main controller and the optical device fails, obtaining a fourth target result;

[0089] The third target result or the fourth target result is determined as the second adaptation result.

[0090] In the embodiment of the present application, key messages are exchanged between the main controller and the optical device. Key messages are special messages used for authentication and encryption of communications. Through this interaction, it is possible to test whether the communication between the optical device and the main controller is normal.

[0091] During the key message interaction process, interaction information indicating whether the interaction between the main controller and the optical device is successful is obtained.

[0092] If the interaction information indicates that the interaction between the main controller and the optical device is successful, a "third target result" will be generated, indicating that the communication and data transmission between the optical device and the main controller are normal.

[0093] If the interaction information indicates that the interaction between the main controller and the optical device has failed, a "fourth target result" will be generated, indicating that there is a problem with the communication and data transmission between the optical device and the main controller.

[0094] The final "third target result" or "fourth target result" will be used as the second adaptation result. If the interaction between the optical device and the main controller is successful, the second adaptation result will be the "third target result," indicating that the communication and data transmission between the optical device and the SmartNIC are compatible. If the interaction between the optical device and the main controller fails, the second adaptation result will be the "fourth target result," indicating that the communication and data transmission between the optical device and the SmartNIC are incompatible.

[0095] In one embodiment of the present application, the interaction between the main controller and the optical device has a predefined data interaction format, and controlling the interaction of key messages between the main controller and the optical device includes:

[0096] Controlling the main controller to encrypt the key message using the data exchange format to obtain an encrypted message, and sending the encrypted message to the optical device;

[0097] Controlling the optical device to decrypt the encrypted message using the data exchange format to obtain a decrypted message, and verifying the decrypted message to obtain a verification result for determining whether the decrypted message is valid;

[0098] Controlling the optical device to generate a confirmation message according to the verification result, and encrypting the confirmation message using the data exchange format to obtain an encrypted confirmation message;

[0099] The optical device is controlled to return the encryption confirmation message to the main controller to complete the interaction between the main controller and the optical device.

[0100] In this embodiment of the present application, a data exchange format and key message are predefined. The data exchange format is kept confidential, and the key is stored on a remote server, providing a higher level of security. Specifically, the main controller encrypts the key message using the predefined data exchange format to generate an encrypted message. The main controller then sends this encrypted message to the optical device.

[0101] After receiving the encrypted message, the optical device decrypts it using the same data exchange format to obtain the decrypted message. The optical device then verifies the decrypted message to determine if it is valid. The verification result is used to determine the integrity and correctness of the decrypted message.

[0102] Controlling the optical device to generate a confirmation message according to the verification result, and encrypting the confirmation message using the data exchange format to obtain an encrypted confirmation message:

[0103] If the verification result indicates that the decrypted message is valid, the optical device will generate a confirmation message, indicating that the exchange is successful. Then, the optical device will encrypt the confirmation message using the same data exchange format to generate an encrypted confirmation message.

[0104] The optical device sends the encrypted confirmation message back to the main controller, completing the entire interaction process. After receiving the encrypted confirmation message, the main controller can further process it to confirm whether the interaction is successful.

[0105] In the embodiment of the present application, the inspection method for checking whether the smart network card and the optical device are compatible through the interaction of key messages between the main controller and the optical device is highly maintainable and developable, the key message can be independently defined, and the naming method of the key message is also unique, which is difficult for external manufacturers to imitate, and the plain text after decryption of the key message will be stored on a remote server, which further improves the security level.

[0106] Reference Figure 4 , is a structural diagram of a key message of the present application. The currently defined key message has a total of 6 bytes, including the preamble, destination address / source address, flag bit, data and checksum, involving a total of 48 bits, which leaves a lot of room for independent selection and development.

[0107] In one embodiment of the present application, the acquiring of interaction information indicating whether the interaction between the main controller and the optical device is successful includes:

[0108] Controlling the main controller to decrypt the encrypted confirmation message using the data exchange format to obtain the confirmation message;

[0109] If the decrypted message includes a verification result for determining that the decrypted message is valid, determining first interaction information for indicating that the interaction between the main controller and the optical device is successful;

[0110] If the decrypted message includes a verification result for determining that the decrypted message is invalid, determining second interaction information for indicating that the interaction between the main controller and the optical device has failed;

[0111] The first interaction information or the second interaction information is determined as the interaction information.

[0112] In the embodiment of the present application, the main controller uses a predefined data exchange format to decrypt the encrypted confirmation message sent back by the optical device to obtain a confirmation message. The confirmation message includes the verification result of the optical device on the decrypted message.

[0113] If the decrypted confirmation message includes a verification result for determining that the decrypted message is valid, the main controller will generate a "first interaction message" to indicate that the interaction between the main controller and the optical device is successful.

[0114] If the decrypted confirmation message includes a verification result for determining that the decrypted message is invalid, the main controller will generate a "second interaction message" indicating that the interaction between the main controller and the optical device has failed.

[0115] Ultimately, the main controller will determine the "first interaction information" or "second interaction information" as the interaction information. If the confirmation message contains a valid verification result, the interaction information will be "first interaction information", indicating a successful interaction; if the confirmation message contains an invalid verification result, the interaction information will be "second interaction information", indicating a failed interaction.

[0116] The embodiment of the present application accurately determines whether the interaction between the main controller and the optical device is successful, thereby providing a reliable basis for subsequent adaptability evaluation.

[0117] Reference Figure 5 , is another flowchart of determining whether an optical device and a SmartNIC are compatible in the present application, specifically including:

[0118] During the power-on initialization process of the server, the main controller will send a key message to the optical device, and the optical device will receive the key message to determine whether the interaction between the main controller and the optical device is successful; if successful, the third target result will be obtained; if unsuccessful, the fourth target result will be obtained; the third target result or the fourth target result will be stored in the storage device.

[0119] In one embodiment of the present application, step 103, obtaining an identification result for determining whether the optical device and the smart network card are compatible based on the first adaptation result and the second adaptation result, includes:

[0120] If the first adaptation result is the first target result, and the second adaptation result is the third target result, obtaining a first identification result for determining that the optical device is adapted to the smart network card;

[0121] If the first adaptation result is the second target result, or the second adaptation result is the fourth target result, obtaining a second identification result for determining that the optical device and the smart network card are not compatible;

[0122] The first recognition result or the second recognition result is determined as the recognition result.

[0123] If the first adaptation result is the first target result (indicating that the register information of the optical device is consistent with the optical device information), and the second adaptation result is the third target result (indicating that the interaction between the optical device and the main controller is successful), then a "first identification result" will be generated, indicating that the optical device is adapted to the smart network card.

[0124] If the first adaptation result is the second target result (indicating that the register information of the optical device is inconsistent with the optical device information), or the second adaptation result is the fourth target result (indicating that the interaction between the optical device and the main controller fails), then a "second identification result" will be generated, indicating that the optical device and the smart network card are not compatible.

[0125] Ultimately, either the "first identification result" or the "second identification result" is determined as the identification result. If both the first adaptation result and the second adaptation result indicate that the optical device is compatible with the SmartNIC, the identification result will be the "first identification result," indicating compatibility. If either adaptation result indicates incompatibility, the identification result will be the "second identification result," indicating incompatibility.

[0126] The embodiments of the present application can comprehensively and accurately evaluate the compatibility of an optical device and a smart network card, and simplify the process of identifying whether the optical device and the smart network card are compatible.

[0127] In one embodiment of the present application, the optical device has corresponding location information, the main controller is communicatively connected to the cloud monitoring platform, and after obtaining an identification result for determining whether the optical device and the smart network card are compatible based on the first adaptation result and the second adaptation result in step 103, the method further includes:

[0128] If the recognition result is the second recognition result, the main controller is controlled to report the location information corresponding to the optical device to the cloud monitoring platform, so that the cloud monitoring platform replaces the optical device based on the location information corresponding to the optical device.

[0129] The location information corresponding to the optical device means that each optical device has a unique location identifier, which is used to locate and manage the device in the smart network card.

[0130] The main controller can communicate with the cloud monitoring platform through the network to upload and receive information.

[0131] In the embodiments of this application, Figure 2 As shown, the main controller reads the identification results in the storage device to determine whether the optical device and the smart network card are compatible. If not, an alarm message will be generated and transmitted to the cloud monitoring platform through the server's BMC network port or in-band network port. The cloud monitoring platform will immediately display an alarm message to indicate the location of the computer room, cabinet, server rack, and optical device. In this way, users can immediately perceive the location information corresponding to the optical device and take subsequent measures to solve the current problem.

[0132] If the optical device and smart network card are compatible, the storage device will also store the recognition results for users to view and call.

[0133] Specifically, if the identification result in step 103 is the second identification result (indicating that the optical device and the smart network card are not compatible), the main controller will control the reporting of the location information corresponding to the optical device to the cloud monitoring platform. The location information generally includes the specific location of the optical device in the system, the device number, etc.

[0134] After receiving the location information of the optical device, the cloud monitoring platform can take appropriate measures based on this information, such as notifying maintenance personnel to replace the optical device. Based on the location information, the cloud monitoring platform can quickly locate the optical device that needs to be replaced and arrange the corresponding maintenance operation.

[0135] The embodiments of the present application can quickly locate and replace the optical device when the optical device is incompatible with the smart network card, thereby improving the stability and reliability of the smart network card and reducing smart network card failures and downtime caused by hardware incompatibility.

[0136] The embodiment of the present application can realize the functions of double verification and alarm, can quickly and accurately identify abnormal optical equipment, and provide the location information corresponding to the optical equipment to maintenance personnel, so that the maintenance personnel can replace it in time as soon as the problem is discovered.

[0137] By analyzing the register information and optical device information of optical devices, the embodiments of the present application can provide a deep understanding of the hardware characteristics and functional support of optical devices. By obtaining the interaction information between the optical device and the main controller, the performance and compatibility of the optical device in the actual working environment can be verified. Combining these two aspects of information can more comprehensively evaluate the compatibility of the optical device and the SmartNIC, reducing the possibility of misjudgment. Through accurate compatibility identification results, it is possible to avoid the combination of incompatible optical devices and SmartNICs, thereby optimizing resource allocation and improving resource utilization.

[0138] It should be noted that for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the order of the actions described, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.

[0139] Based on the above embodiment, this embodiment further provides an optical device identification device in a smart network card, which is applied to electronic devices such as terminal devices and servers.

[0140] Reference Figure 6 , shows a structural block diagram of an embodiment of an optical device identification device in a smart network card of the present application. The smart network card also includes a main controller, which includes information about an optical device adapted to the smart network card. The optical device has corresponding register information, and specifically may include the following modules:

[0141] A first adaptation module 601 is configured to obtain a first adaptation result according to register information corresponding to the optical device and the optical device information;

[0142] A second adaptation module 602 is configured to obtain interaction information between the optical device and the main controller, and obtain a second adaptation result according to the interaction information;

[0143] The identification result determination module 603 is configured to obtain an identification result for determining whether the optical device is compatible with the smart network card according to the first adaptation result and the second adaptation result.

[0144] An embodiment of the present application further provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.

[0145] The present application provides one or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, cause an electronic device to perform one or more of the methods described in the above embodiments. In the present application, the electronic device includes various types of devices such as terminal devices and servers (clusters).

[0146] The embodiments of the present disclosure may be implemented as a device configured as desired using any appropriate hardware, firmware, software, or any combination thereof, and the device may include electronic devices such as terminal devices and servers (clusters). Figure 7 An exemplary apparatus 700 that can be used to implement various embodiments described in this application is schematically illustrated.

[0147] For one embodiment, Figure 7 An exemplary apparatus 700 is shown having one or more processors 702, a control module (chip set) 704 coupled to at least one of the processor(s) 702, a memory 706 coupled to the control module 704, a non-volatile memory (NVM) / storage device 708 coupled to the control module 704, one or more input / output devices 710 coupled to the control module 704, and a network interface 712 coupled to the control module 704.

[0148] The processor 702 may include one or more single-core or multi-core processors, and the processor 702 may include any combination of general-purpose processors or dedicated processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 700 can serve as a terminal device, server (cluster), or other device described in the embodiments of the present application.

[0149] In some embodiments, the apparatus 700 may include one or more computer-readable media (e.g., memory 706 or NVM / storage 708) having instructions 714 and one or more processors 702 configured in conjunction with the one or more computer-readable media to execute the instructions 714 to implement a module to perform the actions described in the present disclosure.

[0150] For one embodiment, the control module 704 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 702 and / or any suitable device or component in communication with the control module 704 .

[0151] The control module 704 may include a memory controller module to provide an interface to the memory 706. The memory controller module may be a hardware module, a software module, and / or a firmware module.

[0152] The memory 706 can be used, for example, to load and store data and / or instructions 714 for the device 700. For one embodiment, the memory 706 can include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 706 can include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

[0153] For one embodiment, the control module 704 may include one or more input / output controllers to provide interfaces to the NVM / storage device 708 and the input / output device(s) 710 .

[0154] For example, NVM / storage 708 may be used to store data and / or instructions 714. NVM / storage 708 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).

[0155] NVM / storage device 708 may include storage resources that are physically part of the device on which apparatus 700 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 708 may be accessible over a network via input / output device(s) 710.

[0156] (One or more) input / output devices 710 may provide an interface for apparatus 700 to communicate with any other appropriate devices. Input / output devices 710 may include communication components, audio components, sensor components, etc. Network interface 712 may provide an interface for apparatus 700 to communicate via one or more networks. Apparatus 700 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.

[0157] For one embodiment, at least one of the processor(s) 702 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 704. For one embodiment, at least one of the processor(s) 702 may be packaged together with the logic of one or more controllers of the control module 704 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 702 may be integrated on the same die with the logic of one or more controllers of the control module 704. For one embodiment, at least one of the processor(s) 702 may be integrated on the same die with the logic of one or more controllers of the control module 704 to form a system-on-chip (SoC).

[0158] In various embodiments, the apparatus 700 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the apparatus 700 may have more or fewer components and / or a different architecture. For example, in some embodiments, the apparatus 700 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touchscreen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.

[0159] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in the memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.

[0160] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0161] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0162] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or a processor of an identification terminal device of an optical device in a programmable smart network card to produce a machine, so that the instructions executed by the processor of the identification terminal device of the optical device in the computer or other programmable smart network card generate instructions for implementing the process in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0163] These computer program instructions may also be stored in a computer readable memory that can guide a computer or other programmable intelligent network card optical device identification terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0164] These computer program instructions can also be loaded onto a computer or other programmable smart card optical device identification terminal device, so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0165] Although preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic inventive concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0166] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.

[0167] The above is a detailed introduction to the identification method and device of optical devices in a smart network card, an electronic device and a storage medium provided by this application. This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method of this application and its core idea; at the same time, for general technical personnel in this field, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this application.

Claims

1. A method for identifying an optical device in a smart network card, characterized in that: The smart network card further includes a main controller, the main controller includes optical device information adapted to the smart network card, the optical device has corresponding register information, and the method includes: Obtaining a first adaptation result according to the register information corresponding to the optical device and the optical device information; Acquire interaction information between the optical device and the main controller, and obtain a second adaptation result according to the interaction information; According to the first adaptation result and the second adaptation result, an identification result for determining whether the optical device and the smart network card are adapted is obtained.

2. The method according to claim 1, characterized in that: The obtaining a first adaptation result according to the register information corresponding to the optical device and the optical device information includes: Comparing the register information corresponding to the optical device with the optical device information to see whether they are consistent; If the register information corresponding to the optical device is consistent with the optical device information, a first target result is obtained; If the register information corresponding to the optical device is inconsistent with the optical device information, a second target result is obtained; The first target result or the second target result is determined as the first adaptation result.

3. The method according to claim 1, characterized in that The acquiring interaction information between the optical device and the main controller, and obtaining a second adaptation result according to the interaction information, includes: Controlling the interaction of key messages between the main controller and the optical device; Acquire interaction information used to indicate whether the interaction between the main controller and the optical device is successful; If the interaction information indicates that the interaction between the main controller and the optical device is successful, a third target result is obtained; If the interaction information indicates that the interaction between the main controller and the optical device fails, a fourth target result is obtained; The third target result or the fourth target result is determined as the second adaptation result.

4. The method according to claim 3, characterized in that: The interaction between the main controller and the optical device has a predefined data interaction format, and the controlling the interaction of key messages between the main controller and the optical device includes: Controlling the main controller to encrypt the key message using the data exchange format to obtain an encrypted message, and sending the encrypted message to the optical device; Controlling the optical device to decrypt the encrypted message using the data exchange format to obtain a decrypted message, and verifying the decrypted message to obtain a verification result for determining whether the decrypted message is valid; Controlling the optical device to generate a confirmation message according to the verification result, and encrypting the confirmation message using the data exchange format to obtain an encrypted confirmation message; The optical device is controlled to return the encryption confirmation message to the main controller to complete the interaction between the main controller and the optical device.

5. The method according to claim 4, characterized in that The acquiring of interaction information used to indicate whether the interaction between the main controller and the optical device is successful includes: Controlling the main controller to decrypt the encrypted confirmation message using the data exchange format to obtain the confirmation message; If the decrypted message includes a verification result for determining that the decrypted message is valid, determining first interaction information for indicating that the interaction between the main controller and the optical device is successful; If the decrypted message includes a verification result for determining that the decrypted message is invalid, determining second interaction information for characterizing a failure of interaction between the main controller and the optical device; The first interaction information or the second interaction information is determined as the interaction information.

6. The method according to claim 3, characterized in that The obtaining, according to the first adaptation result and the second adaptation result, an identification result for determining whether the optical device and the smart network card are adapted, includes: If the first adaptation result is the first target result, and the second adaptation result is the third target result, a first identification result for determining the adaptation of the optical device and the smart network card is obtained; If the first adaptation result is the second target result, or the second adaptation result is the fourth target result, a second identification result for determining that the optical device is not compatible with the smart network card is obtained; The first recognition result or the second recognition result is determined as the recognition result.

7. The method according to claim 6, characterized in that The optical device has corresponding location information, the main controller is in communication with the cloud monitoring platform, and after obtaining an identification result for determining whether the optical device is compatible with the smart network card according to the first adaptation result and the second adaptation result, the method further includes: If the recognition result is the second recognition result, the main controller is controlled to report the location information corresponding to the optical device to the cloud monitoring platform, so that the cloud monitoring platform replaces the optical device based on the location information corresponding to the optical device.

8. An optical device identification device in a smart network card, characterized in that: The smart network card further includes a main controller, the main controller includes optical device information adapted to the smart network card, the optical device has corresponding register information, and the device includes: A first adaptation module, used for obtaining a first adaptation result according to register information corresponding to the optical device and the optical device information; A second adaptation module, used for acquiring interaction information between the optical device and the main controller, and obtaining a second adaptation result according to the interaction information; The identification result determination module is used to obtain an identification result for determining whether the optical device and the smart network card are compatible according to the first adaptation result and the second adaptation result.

9. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, enables the processor to execute the method for identifying an optical device in a smart network card according to any one of claims 1 to 7.

10. One or more machine-readable media having executable codes stored thereon, which, when executed, enable a processor to execute the method for identifying an optical device in a smart network card according to any one of claims 1 to 7.