Communication method, device, system and electronic equipment
By utilizing the virtual LAN isolation mechanism in the network communication method between the server and the smart network card device, the network conflict problem caused by the DHCP server assigning the same address is solved, and stable network communication is achieved.
Patent Information
- Application Number
- CN202510942170.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-09
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2045-07-09
AI Technical Summary
When the DHCP server assigns the same address to different Smart NIC devices, normal network communication between the server and the Smart NIC devices cannot be established.
By executing the network judgment operation of accessing the smart network card, when it is detected that the access result is access, an access request is sent to the switch, so that the switch broadcasts the access request to the smart network card in the virtual local area network to which the static address of the baseboard management controller of the target server belongs. The target smart network card responds to the access request and communicates with the baseboard management controller of the target server through the static address of the target smart network card.
It effectively avoids network conflicts and ensures normal network communication between the server and the smart network card device. It also prevents non-target smart network cards from receiving access requests through the isolation mechanism of static addresses and virtual LANs.
Smart Images

Figure CN120455435B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to a communication method, device, system and electronic equipment. Background Art
[0002] With the rapid development of information technology, the use of multiple servers connected to the network with SmartNIC devices is becoming increasingly common. In this process, servers closely associate their data processing tasks with SmartNIC devices through carefully configured network connections. With their powerful data processing capabilities, servers provide solid computing support for various businesses, while SmartNIC devices act as meticulous network management masters, efficiently handling network data traffic. Therefore, ensuring the correctness and stability of network communication between servers and SmartNIC devices is crucial.
[0003] Currently, network communication between servers and Smart NIC devices uses the Dynamic Host Configuration Protocol (DHCP) to obtain addresses. When a DHCP server assigns the same address to different Smart NIC devices, a network conflict will occur, preventing normal network communication between the server and Smart NIC devices. Summary of the Invention
[0004] The present application provides a communication method, apparatus, system, and electronic device for resolving the problem that when a DHCP server assigns the same address to different smart network card devices, network communication between the server and the smart network card devices cannot be performed normally.
[0005] In a first aspect, the present application provides a communication method, comprising:
[0006] Execute the network judgment operation of accessing the smart network card and obtain the judgment result;
[0007] When it is detected that the judgment result is access, an access request is sent to the switch, so that the switch broadcasts the access request to the smart network card located in the virtual local area network to which the static address of the target server baseboard management controller belongs, and then the target smart network card responds to the access request and performs network communication with the target server baseboard management controller through the static address of the target smart network card; wherein the static address of the target smart network card is the same as the static address indicated by the access request.
[0008] In a second aspect, the present application provides a communication method, comprising:
[0009] Receive an access request broadcast by the switch; wherein the access request is sent when the baseboard management controller of the target server detects that the judgment result is access, and the judgment result is obtained when the baseboard management controller of the target server performs an access smart network card network judgment operation;
[0010] Respond to the access request and communicate with the target server baseboard management controller through the static address of the target smart network card.
[0011] In a third aspect, the present application provides a communication method, comprising:
[0012] The target server baseboard management controller performs a network access determination operation on the smart network card and obtains a determination result;
[0013] When the baseboard management controller of the target server detects that the judgment result is access, it sends an access request to the switch;
[0014] The switch broadcasts the access request to the Smart NIC in the virtual local area network to which the static address of the baseboard management controller of the target server belongs;
[0015] In response to the access request, the target smart network card performs network communication with the target server baseboard management controller through the static address of the target smart network card; wherein the static address of the target smart network card is the same as the static address indicated by the access request.
[0016] In a fourth aspect, the present application provides a communication device, comprising:
[0017] A judgment module is used to perform a judgment operation on the access smart network card network and obtain a judgment result;
[0018] The network communication module is configured to, upon detecting that the judgment result is access, send an access request to the switch, so that the switch broadcasts the access request to the smart network card located in the virtual local area network to which the static address of the baseboard management controller of the target server belongs, thereby causing the target smart network card to respond to the access request and perform network communication with the baseboard management controller of the target server through the static address of the target smart network card; wherein the static address of the target smart network card is the same as the static address indicated by the access request.
[0019] In a fifth aspect, the present application provides a communication device, including:
[0020] A receiving module is configured to receive an access request broadcast by a switch; wherein the access request is sent when the baseboard management controller of the target server detects that the judgment result is access, and the judgment result is obtained when the baseboard management controller of the target server performs an access smart network card network judgment operation;
[0021] The first response module is configured to respond to the access request and perform network communication with the target server baseboard management controller through the static address of the target intelligent network card.
[0022] In a sixth aspect, the present application provides a communication device, including:
[0023] An execution module is used for the baseboard management controller of the target server to execute the network judgment operation of accessing the smart network card and obtain the judgment result;
[0024] A request module, configured to send an access request to the switch when the baseboard management controller of the target server detects that the judgment result is access;
[0025] A broadcast module, configured for the switch to broadcast an access request to a smart network card in a virtual local area network to which the static address of the baseboard management controller of the target server belongs;
[0026] The second response module is used for the target smart network card to respond to the access request and perform network communication with the target server baseboard management controller through the static address of the target smart network card; wherein the static address of the target smart network card is the same as the static address indicated by the access request.
[0027] In a seventh aspect, the present application provides a communication system comprising a plurality of server baseboard management controllers, a plurality of smart network cards, and a switch;
[0028] Among them, multiple server baseboard management controllers are respectively connected to the first interfaces of corresponding smart network cards through network cables, and the second interfaces of multiple smart network cards are respectively connected to the corresponding third interfaces on the switch through network cables.
[0029] In an eighth aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0030] Memory stores computer-executable instructions;
[0031] The processor executes the computer-executable instructions stored in the memory to implement the communication method provided in the first aspect, the second aspect or the third aspect of the present application.
[0032] The present application provides a communication method, device, system and electronic device, comprising: executing a network access judgment operation of a smart network card to obtain a judgment result; when the judgment result is detected as access, sending an access request to a switch, so that the switch broadcasts the access request to the smart network card located in the virtual local area network to which the static address of the baseboard management controller of the target server belongs, thereby causing the target smart network card to respond to the access request and communicate with the baseboard management controller of the target server through the static address of the target smart network card. Through the above method, the following technical effects are achieved: the switch broadcasts the access request to the smart network card located in the virtual local area network to which the static address of the baseboard management controller of the target server belongs, and the static address of the target smart network card is located in the virtual local area network channel. Even if there is a situation where the static address of a smart network card is the same as the static address of the target smart network card, since the static addresses of the two smart network cards are located in different virtual local area network channels, adding different VLANs to the static addresses of different smart network cards is equivalent to network isolation. Therefore, the non-target smart network card cannot receive the access request, which can effectively avoid network conflicts. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 Schematic diagram of the communication method provided in this embodiment Figure 1 ;
[0035] Figure 2 Schematic diagram of the communication method provided in this embodiment Figure 2 ;
[0036] Figure 3 Schematic diagram of the communication method provided in this embodiment Figure 3 ;
[0037] Figure 4 Schematic diagram of the communication method provided in this embodiment Figure 4 ;
[0038] Figure 5 Schematic diagram of the communication method provided in this embodiment Figure 5 ;
[0039] Figure 6 Schematic diagram of the communication method provided in this embodiment Figure 6 ;
[0040] Figure 7 Schematic diagram of the structure of the communication device provided in the embodiment of the present application Figure 1 ;
[0041] Figure 8 Schematic diagram of the structure of the communication device provided in the embodiment of the present application Figure 2 ;
[0042] Figure 9 Schematic diagram of the structure of the communication device provided in the embodiment of the present application Figure 3 ;
[0043] Figure 10 A schematic diagram of the structure of a communication system provided in an embodiment of the present application;
[0044] Figure 11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0045] Description of reference numerals:
[0046] 901 - processor; 902 - memory; 903 - communication component; 904 - bus. DETAILED DESCRIPTION
[0047] The exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0048] In the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit differences. It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be interpreted as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more.
[0049] It should be noted that the communication method provided in the embodiment of the present application is only an example, and the communication method may also include more or less content.
[0050] It should be noted that the user information (including but not limited to user device information and user personal information) and data (including but not limited to data used for analysis, stored data and displayed data) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and corresponding operation entrances must be provided for users to choose to authorize or refuse.
[0051] First, some terms involved in the embodiments of the present application are explained.
[0052] Baseboard Management Controller (BMC): A dedicated processor embedded in the server motherboard. It runs dedicated firmware and is responsible for remotely monitoring, managing, and controlling the server hardware. The BMC communicates with the server hardware through the Intelligent Platform Management Interface (IPMI), enabling remote management and control functions such as remote power control, hardware status monitoring, and event logging.
[0053] Smart Network Interface Card (SNIS): A network interface card (NIC) with integrated intelligent processing capabilities, evolving from the traditional NIC. It not only offers the data transmission capabilities of a traditional NIC, but also incorporates a high-performance processor and dedicated acceleration engine, enabling it to perform complex data processing tasks such as data encryption, network protocol offload, and traffic management. This design enables the Smart NIC to significantly improve network performance and security without increasing CPU load.
[0054] Virtual Local Area Network (VLAN): A technology that uses software to logically partition a network, allowing a physical network to be divided into multiple independent logical networks. Each VLAN is equivalent to an independent broadcast domain, enabling Layer 2 communication between member devices. VLANs are isolated by default.
[0055] In order to clearly understand the technical solution of the present application, the solution of the prior art is introduced in detail.
[0056] Currently, network communication between servers and smart network card devices uses DHCP to obtain addresses. When a DHCP server assigns the same address to different smart network card devices, it will cause a network conflict, making it impossible for the server and smart network card devices to communicate normally.
[0057] In summary, how to design a method to solve the problem that when a DHCP server assigns the same address to different smart network card devices, the server and the smart network card devices cannot communicate normally on the network is an urgent problem to be solved in this application.
[0058] Therefore, in response to the above-mentioned technical problems existing in the prior art, the embodiments of the present application provide a communication method, device, system and electronic equipment, aiming to effectively ensure normal network communication between the server and the smart network card device.
[0059] The following describes the application scenarios of the communication methods, devices, systems, and electronic devices provided in the embodiments of the present application. The following application scenarios are merely examples and are intended to help those skilled in the art understand the technical content of the present application. However, they do not mean that the embodiments of the present application cannot be used in other devices, systems, environments, or scenarios.
[0060] Cloud computing environment: Through the communication method provided in the embodiment of this application, the static addresses of different smart network cards can be divided into different VLANs. When the server needs to communicate with the specified smart network card, the switch only broadcasts the access request in the VLAN channel where the specified smart network card is located, and then the specified smart network card responds, thereby effectively ensuring the network communication between the server and the smart network card.
[0061] Figure 1 Schematic diagram of the communication method provided in this embodiment Figure 1 , the communication method provided in this embodiment includes the following steps:
[0062] S101: Execute a network judgment operation for accessing the smart network card and obtain a judgment result.
[0063] The communication method of the embodiment of the present application is applied to a target server BMC among multiple server baseboard management controllers. The target server BMC is any one of the multiple server baseboard management controllers.
[0064] Specifically, after the server is powered on and the target server BMC is fully started, a communication link between the target server BMC and the smart network card network will be established, and it will automatically determine whether to access the smart network card network. Optionally, the target server BMC checks the link status between the target server BMC and the corresponding connected smart network card through the preset ethtool or ip link command. If it returns yes, the judgment result is access; otherwise, the judgment result is no access. Optionally, the target server BMC queries whether the corresponding connected smart network card responds through the ipmi or Redish protocol. If it responds, the judgment result is access; otherwise, the judgment result is no access. Optionally, if it is checked that the corresponding connected smart network card automatically configures the BMC management network or triggers the initialization mode, the judgment result is access; otherwise, the judgment result is no access. This embodiment does not specifically limit the method of determining whether to access the smart network card network.
[0065] S102: When it is detected that the judgment result is access, an access request is sent to the switch, so that the switch broadcasts the access request to the smart network card located in the virtual local area network to which the static address of the baseboard management controller of the target server belongs, and then the target smart network card responds to the access request and performs network communication with the baseboard management controller of the target server through the static address of the target smart network card.
[0066] In this embodiment, the static address of the target intelligent network card is the same as the static address indicated by the access request.
[0067] The static address of the target server BMC is configured with a virtual local area network. When the judgment result is access, the target server BMC sends an access request to the switch. The access request instructs the target smart network card connected to the target server BMC via a network cable to conduct network communication. After receiving the access request sent by the target server BMC, the switch broadcasts the access request within the virtual local area network channel to which the static address of the target server BMC belongs. The smart network card with the same static address as indicated by the access request and located in the broadcasted virtual local area network channel is used as the target smart network card. The target smart network card receives and responds to the access request, and then conducts network communication with the target server baseboard management controller.
[0068] The switch broadcasts an access request to the smart network card in the virtual LAN to which the static address of the baseboard management controller of the target server belongs. The static address of the target smart network card is located in the virtual LAN channel. Even if there is a smart network card whose static address is the same as the static address of the target smart network card, since the static addresses of the two smart network cards are located in different virtual LAN channels, adding different VLANs for the static addresses of different smart network cards is equivalent to network isolation. Therefore, the non-target smart network card cannot receive the access request, which can effectively avoid network conflicts.
[0069] As an optional implementation, Figure 2 Schematic diagram of the communication method provided in this embodiment Figure 2 ,like Figure 2 As shown in the figure, after the server is powered on and the target server's BMC is fully booted, the target server's BMC automatically determines whether to connect to the SmartNIC network. If the target server's BMC detects that it is not connected, it obtains a dynamic address through Dynamic Host Configuration Protocol (DHCP) and communicates with other server BMCs. A VLAN is not configured for the dynamic address. If the target server's BMC and target SmartNIC also obtain dynamic addresses through DHCP, meaning they support both static and dynamic addresses. A VLAN is not configured for the dynamic address, while a VLAN is configured for the static address. When communication between the target server's BMC and the target SmartNIC is normal, network communication is performed using the static address configured with a VLAN. If the target server's BMC is unable to connect to the SmartNIC network due to a network failure on the target SmartNIC, network communication is performed using a dynamic address without a VLAN. By obtaining both static and dynamic addresses at the same time, when a network failure occurs on the Smart NIC and the static address cannot be used for network communication, the dynamic address is used for network communication instead. This enhances the fault tolerance and flexibility of the system, provides a backup channel when the static address network communication of the Smart NIC is blocked, maintains the continuity of network communication, and improves the reliability and availability of the overall network architecture in the face of Smart NIC network failures, providing more powerful network support for the stable operation of the business.
[0070] As an optional implementation, a joint fault diagnosis and repair mechanism is established between the server BMC and the SmartNIC. When a network failure occurs on the SmartNIC, the two work together to analyze the cause of the failure. The SmartNIC provides network-level data, and the server BMC provides information on the server hardware. Together, they develop a repair strategy to improve fault handling efficiency.
[0071] As an optional implementation, the BMC is divided into two partitions and stored in EEPROM. One partition is in DHCP mode and, unless otherwise configured, operates in DHCP mode by default without VLAN configuration. The other partition is in Static mode with VLAN configuration. After the server is powered on and the target server's BMC is fully booted, if the target server's BMC is connected to a SmartNIC network, both partitions boot simultaneously without affecting each other. If the target server's BMC is not connected to a SmartNIC network, the default DHCP mode is enabled without VLAN configuration.
[0072] As an optional implementation, three or more Internet Protocol (IP) addresses are configured for the server BMC and SmartNIC communication network ports, with each IP address corresponding to a different VLAN or service scenario. For example, consider four IP addresses: one for VLAN 4090, one for general network communication, one for security auditing, and one for the fast-track service. Only when the SmartNIC's four IP addresses match the target server's BMC can the SmartNIC be used as the target SmartNIC, allowing network communication between the target SmartNIC and the target server's BMC to be established. This design enables more granular network management and service isolation.
[0073] As an optional implementation, a pre-stored algorithm dynamically allocates VLANs based on the server's real-time service needs and network traffic characteristics. For example, if a sudden increase in traffic for a particular service is detected, a separate VLAN is assigned to it to prevent interference with other services, thereby improving network performance and stability.
[0074] The present application provides a communication method, comprising: executing a network access judgment operation of a smart network card to obtain a judgment result; when the judgment result is detected as access, sending an access request to a switch, so that the switch broadcasts the access request to the smart network card located in the virtual local area network to which the static address of the baseboard management controller of the target server belongs, thereby causing the target smart network card to respond to the access request and communicate with the baseboard management controller of the target server through the static address of the target smart network card. Through the above method, the following technical effects are achieved: the switch broadcasts the access request to the smart network card located in the virtual local area network to which the static address of the baseboard management controller of the target server belongs, and the static address of the target smart network card is located in the virtual local area network channel. Even if there is a situation where the static address of a smart network card is the same as the static address of the target smart network card, since the static addresses of the two smart network cards are located in different virtual local area network channels, adding different VLANs to the static addresses of different smart network cards is equivalent to network isolation. Therefore, the non-target smart network card cannot receive the access request, which can effectively avoid network conflicts.
[0075] Figure 3 Schematic diagram of the communication method provided in this embodiment Figure 3 , the communication method provided in this embodiment includes the following steps:
[0076] S201: Receive an access request broadcast by a switch.
[0077] In this embodiment, the access request is sent when the baseboard management controller of the target server detects that the judgment result is access, and the judgment result is obtained when the baseboard management controller of the target server performs the access smart network card network judgment operation.
[0078] The communication method of the embodiment of the present application is applied to a target smart network card among multiple smart network cards. The target smart network card is a smart network card among the multiple smart network cards that is connected to the target server BMC via a network cable, and the virtual local area network to which the target smart network card belongs is the same as the virtual local area network to which the target smart network card belongs.
[0079] When the switch broadcasts the access request in the virtual LAN channel to which the static address of the target server BMC belongs, the virtual LAN to which the target smart network card belongs is the same as the virtual LAN to which the target smart network card belongs and the target smart network card is connected to the target server BMC via a network cable. Therefore, the target smart network card can receive the access request.
[0080] S202: Respond to the access request and perform network communication with the target server baseboard management controller through the static address of the target smart network card.
[0081] In this embodiment, the target smart network card responds to the access request after receiving it, establishes a network communication connection with the target server BMC through the static address of the target smart network card, and completes data interaction and response.
[0082] The technical effects and functions of this embodiment are Figure 1 The technical effects and functions of the communication method embodiment shown are similar and will not be described in detail here.
[0083] Figure 4 Schematic diagram of the communication method provided in this embodiment Figure 4 , the communication method provided in this embodiment includes the following steps:
[0084] S301: The baseboard management controller of the target server performs a network access determination operation on the smart network card and obtains a determination result.
[0085] In this embodiment, the method of executing the network determination operation for accessing the smart network card and obtaining the determination result has been mentioned in the above embodiment and will not be repeated here.
[0086] S302: When the baseboard management controller of the target server detects that the judgment result is access, it sends an access request to the switch.
[0087] In this embodiment, when the judgment result is access, the method of sending an access request to the switch has been mentioned in the above embodiment and will not be repeated here.
[0088] S303: The switch broadcasts an access request to the smart network card in the virtual local area network to which the static address of the baseboard management controller of the target server belongs.
[0089] In this embodiment, the manner in which the switch broadcasts the access request to the smart network card in the virtual local area network to which the static address of the baseboard management controller of the target server belongs has been mentioned in the above embodiment and will not be repeated here.
[0090] S304: The target smart network card responds to the access request and performs network communication with the target server baseboard management controller through the static address of the target smart network card.
[0091] In this embodiment, the static address of the target intelligent network card is the same as the static address indicated by the access request.
[0092] The manner in which the target intelligent network card responds to the access request and performs network communication with the target server BMC through the static address of the target intelligent network card has been mentioned in the above embodiment and will not be repeated here.
[0093] The technical effects and functions of this embodiment are Figure 1 The technical effects and functions of the communication method embodiment shown are similar and will not be described in detail here.
[0094] Figure 5 Schematic diagram of the communication method provided in this embodiment Figure 5 This embodiment further explains the communication method based on the above embodiment. Figure 5 As shown, S303 includes:
[0095] S401: The switch configures a virtual local area network for the static address of the baseboard management controller of the target server through a first pre-stored command instruction to obtain a first target virtual local area network.
[0096] In this embodiment, the first pre-stored command instruction is an ipmi instruction. The steps of configuring a virtual local area network for the static address of the target server BMC through the ipmi instruction include:
[0097] 1) Log in to the target server BMC;
[0098] Log in to the target server's BMC serial port as the sysadmin user.
[0099] 2) Check the network configuration of the current target server BMC;
[0100] Use the ipmi command to check the network configuration of the current target server BMC. If it is in Static mode, no reconfiguration is required. If it is not in Static mode, use the ipmi command to configure the current target server BMC network mode to Static mode.
[0101] 3) Check the static address and subnet mask of the target server's BMC;
[0102] Use the ifconfig command to view the static address and subnet mask of the target server BMC. For example, the static address is 169.254.100.4 and the subnet mask is 255.255.255.0. In this embodiment, there is no specific limitation on the static address.
[0103] 4) Enable VLAN and set VLAN;
[0104] The VLAN is set by the ipmi command, for example, the VLAN is set to 4090, that is, the static address 169.254.100.4 is set to belong to the static address in the VLAN 4090 channel, and VLAN 4090 is used as the first target virtual local area network. In this embodiment, there is no specific limitation on the configured VLAN.
[0105] 5) Verify VLAN configuration;
[0106] After setting up the VLAN, you need to verify the VLAN configuration using the ipmi command. If the output shows the configured static address 169.254.100.4 and VLAN 4090, it means that the static address 169.254.100.4 belongs to the static address of VLAN 4090 channel and has been configured.
[0107] 6) Test connectivity.
[0108] After the configuration is complete, ping the static address 169.254.100.4. If the ping succeeds, it indicates that the static address 169.254.100.4 belongs to the VLAN 4090 channel and can receive broadcast messages in the VLAN 4090 channel.
[0109] The method of configuring a virtual local area network for the static address of the target intelligent network card through pre-stored command instructions is similar to the above configuration method and is not repeated here.
[0110] The invention provides a specific method for configuring a virtual LAN for the static address of the target server BMC through pre-stored command instructions, which can quickly and accurately complete the virtual LAN configuration for the static address of the target server BMC, reduce manual repetitive operation steps, improve the accuracy and efficiency of configuring the virtual LAN, and facilitate network management and subsequent network optimization and maintenance.
[0111] After configuring the VLAN for the static address of the target server's baseboard management controller and the static address of the target smart NIC, log in to the target smart NIC's operating system (OS) and ping the static address 169.254.100.4 in the OS. If the ping succeeds, it indicates that the target server's BMC can communicate normally with the target smart NIC in the corresponding VLAN channel through the static address.
[0112] S402: The switch broadcasts an access request to the smart network card in the first target virtual local area network.
[0113] In this embodiment, after obtaining the first target virtual local area network, the switch broadcasts an access request to the smart network card located in the VLAN 4090 channel.
[0114] Figure 6 Schematic diagram of the communication method provided in this embodiment Figure 6 This embodiment further explains the communication method based on the above embodiment. Figure 6 As shown, S303 includes:
[0115] S501: The switch configures a virtual local area network for a target third interface of the switch through a second pre-stored command instruction to obtain a second target virtual local area network.
[0116] In this embodiment, the target third interface is connected to the target smart network card via a network cable.
[0117] This embodiment takes a Cisco switch as an example, and the second pre-stored command instruction corresponding to the Cisco switch is a vlan instruction. The steps of configuring a virtual local area network for the target third interface of the Cisco switch through the vlan instruction include:
[0118] A) Connect to the Cisco switch through a console port (console port), Secure Shell (SSH), or Telnet, and log in to the Cisco switch by entering the administrator account and password.
[0119] B) Enter privileged mode through the enable instruction;
[0120] C) Enter the configure terminal command to enter the global configuration mode;
[0121] D) Create a VLAN using the vlan command, for example, set the VLAN to 4091. In this embodiment, there is no specific limitation on the configured VLAN.
[0122] E) Use the interface command to select the third target interface as the interface for which the virtual LAN needs to be configured;
[0123] F) Set the target third interface to access mode using the switchport command;
[0124] G) Use the switchport access command to assign the target third interface to the created VLAN. That is, configure VLAN 4091 for the target third interface and use VLAN 4091 as the second target VLAN.
[0125] H) Exit the interface configuration mode and save the relevant configuration;
[0126] I) Verify the configuration using the show command.
[0127] The target server's BMC is connected to the corresponding port of the target smart network card via a network cable. The target smart network card is also connected to the target third port of the switch via a network cable. The target third port is configured with a second target virtual local area network. If the target server's BMC, the target smart network card, and the target third port of the switch are directly connected via a network cable, the static address of the target server's BMC and the static address of the target smart network card are designated as static addresses within the second target virtual local area network channel.
[0128] Configuring a virtual LAN for the target third interface of the switch and using the virtual LAN configured for the target third interface as the virtual LAN of the target server BMC directly connected to the target third interface of the switch via a network cable has the advantages of standardized operation, fast response and strong compatibility.
[0129] S502: The switch broadcasts an access request to the smart network card in the second target virtual local area network.
[0130] In this embodiment, after obtaining the second target virtual local area network, the switch broadcasts an access request to the smart network card located in the VLAN 4091 channel.
[0131] Figure 7 Schematic diagram of the structure of the communication device provided in the embodiment of the present application Figure 1 .like Figure 7 As shown, in this embodiment, the communication device includes:
[0132] The judgment module 601 is used to perform a judgment operation on the network access of the smart network card and obtain a judgment result;
[0133] The network communication module 602 is configured to, upon detecting that the judgment result is access, send an access request to the switch, so that the switch broadcasts the access request to the smart network card located in the virtual local area network to which the static address of the baseboard management controller of the target server belongs, thereby causing the target smart network card to respond to the access request and perform network communication with the baseboard management controller of the target server through the static address of the target smart network card; wherein the static address of the target smart network card is the same as the static address indicated by the access request.
[0134] The communication device provided in this embodiment can perform Figure 1 The technical solution of the communication method embodiment shown in the figure has the same implementation principle and technical effect as Figure 1 The communication method embodiments shown are similar and will not be described in detail here.
[0135] Figure 8 Schematic diagram of the structure of the communication device provided in the embodiment of the present application Figure 2 .like Figure 8 As shown, in this embodiment, the communication device includes:
[0136] The receiving module 701 is configured to receive an access request broadcast by the switch; wherein the access request is sent when the baseboard management controller of the target server detects that the judgment result is access, and the judgment result is obtained when the baseboard management controller of the target server performs an access smart network card network judgment operation;
[0137] The first response module 702 is configured to respond to the access request and perform network communication with the target server baseboard management controller through the static address of the target smart network card.
[0138] The communication device provided in this embodiment can perform Figure 3 The technical solution of the communication method embodiment shown in the figure has the same implementation principle and technical effect as Figure 3 The communication method embodiments shown are similar and will not be described in detail here.
[0139] Figure 9 Schematic diagram of the structure of the communication device provided in the embodiment of the present application Figure 3 .like Figure 9 As shown, in this embodiment, the communication device includes:
[0140] Execution module 801 is used for the target server baseboard management controller to perform the smart network card access network judgment operation and obtain the judgment result;
[0141] The request module 802 is used for sending an access request to the switch when the baseboard management controller of the target server detects that the judgment result is access;
[0142] Broadcast module 803, configured for the switch to broadcast an access request to the smart network card in the virtual local area network to which the static address of the baseboard management controller of the target server belongs;
[0143] The second response module 804 is used for the target smart network card to respond to the access request and perform network communication with the target server baseboard management controller through the static address of the target smart network card; wherein the static address of the target smart network card is the same as the static address indicated by the access request.
[0144] The communication device provided in this embodiment can perform Figure 4 The technical solution of the communication method embodiment shown in the figure has the same implementation principle and technical effect as Figure 4 The communication method embodiments shown are similar and will not be described in detail here.
[0145] At the same time, the communication device provided by the present invention further refines the communication device provided by the previous embodiment.
[0146] Optionally, in this embodiment, the broadcast module 803 is further configured to:
[0147] The switch configures a virtual local area network for the static address of the baseboard management controller of the target server through the first pre-stored command instruction to obtain a first target virtual local area network;
[0148] The switch broadcasts the access request to the smart network card located in the first target virtual local area network.
[0149] Optionally, in this embodiment, the broadcast module 803 is further configured to:
[0150] The switch configures a virtual local area network for the target third interface of the switch through the second pre-stored command instruction to obtain a second target virtual local area network; wherein the target third interface is connected to the target smart network card through a network cable;
[0151] The switch broadcasts the access request to the smart network card in the second target virtual local area network.
[0152] This embodiment provides a communication system, including multiple server baseboard management controllers, multiple smart network cards, and switches;
[0153] Among them, multiple server baseboard management controllers are respectively connected to the first interfaces of corresponding smart network cards through network cables, and the second interfaces of multiple smart network cards are respectively connected to the corresponding third interfaces on the switch through network cables.
[0154] In this embodiment, the first interface of the SmartNIC is the server port, the second interface of the SmartNIC is the switch port, and the interface on the switch is the third interface. The management network port of the server BMC is directly connected to the server port of the SmartNIC via a network cable, and the switch port of the SmartNIC serves as the management network port of the entire server and is connected to the corresponding third interfaces on the switch.
[0155] Figure 10 This is a schematic diagram of the structure of the communication system provided in the embodiment of the present application. Figure 10As shown in the figure, the Smart Network Interface Card (SNIS) consists of a network interface card (NIC), a system on chip (SOC), flash read-only memory, a Layer 2 switch, a baseboard management controller (BMC), and electrically erasable programmable read-only memory (EEPM). The SNIS uses the AST2500 BMC. The NIC is responsible for basic network data transmission. One link is connected to the RJ45 port via a 25G dual link, which then connects to the shared link network card (NIC) via the RJ45 port. Another link is connected to the SOC via a 25G dual link. The NIC also connects to the flash read-only memory via a serial peripheral interface (SPI). The SOC connects to the Smart NIC's BMC via a low-speed management interface. The Smart NIC's BMC connects to the Layer 2 switch via Ethernet.
[0156] The server includes a physical layer (PHY) and a baseboard management controller (BMC). The BMC is connected to the PHY via a low-speed management interface, and the PHY is connected to the RJ45 port in the server via Ethernet.
[0157] The server connects to the server port of the SmartNIC via an RJ45 interface, which is then connected to the Layer 2 switch via an RJ45 interface. The server port is the Integrated Lights-Out (ILO) port. The SmartNIC connects to the switch port of the switch via an RJ45 interface. The switch port is the Integrated Lights-Out (ILO) port.
[0158] When the target server's BMC connects to the SmartNIC network, it processes the access request signal through the PHY and sends it to the switch via the RJ45 interface. The switch broadcasts the access request to the SmartNIC. The shared link network card receives it and passes it to the SOC via the NIC. The SOC collaborates with relevant components via the Layer 2 switch to respond to the access request, completing the communication between the target server's BMC and the SmartNIC. The baseboard management controller coordinates the entire process, while flash read-only memory and electrically erasable programmable read-only memory provide data storage support.
[0159] Figure 11This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device is intended to be used in various electronic devices that can execute the communication method, such as a microcomputer, a single-chip microcomputer, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0160] like Figure 11 As shown, the electronic device includes: at least one processor 901 and a memory 902. The electronic device also includes a communication component 903. The processor 901, the memory 902 and the communication component 903 are connected via a bus 904.
[0161] During the specific implementation process, at least one processor 901 executes the computer-executable instructions stored in the memory 902, so that the at least one processor 901 executes the communication method executed by the electronic device side as described above.
[0162] The specific implementation process of the processor 901 can be found in the above-mentioned communication method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.
[0163] In the above embodiment, it should be understood that processor 901 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. General-purpose processor 901 may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.
[0164] The memory 902 may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.
[0165] Bus 904 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Bus 904 can be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, the bus 904 in the drawings of this application is not limited to a single bus or a single type of bus.
[0166] The above functions implemented by the electronic device and the main control device have been used to introduce the solutions provided in the embodiments of the present application. It is understandable that, in order to implement the above functions, the electronic device or the main control device includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of the various examples described in the embodiments disclosed in the embodiments of the present application, the embodiments of 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 and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiments of the present application.
[0167] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above communication method is implemented.
[0168] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile memory device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The computer-readable storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0169] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. The readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an application-specific integrated circuit (ASIC). The processor and the readable storage medium may also reside as discrete components in an electronic device or a host control device.
[0170] The memory 902 is a non-transitory computer-readable storage medium provided by the present invention. The non-transitory computer-readable storage medium of the present invention stores computer instructions, which are used to enable a computer to execute the communication method provided by the present invention.
[0171] Memory 902, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs, and modules. Processor 901 executes the non-transitory software programs, instructions, and modules stored in memory 902 to perform various functional applications and data processing, thereby implementing the communication method in the above-mentioned method embodiment.
[0172] At the same time, this embodiment also provides a computer program product, including a computer program, which is used to implement the communication method of the above embodiment when executed by a processor.
[0173] It should be noted that for the aforementioned method embodiments, for simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this 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 this specification are all optional embodiments, and the actions and modules involved are not necessarily required for this application.
[0174] It should be further noted that, although the various steps in the flowchart are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps may be performed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. The execution order of these sub-steps or stages is not necessarily to be performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0175] It should be understood that the above-described device embodiments are merely illustrative, and the devices of the present application may also be implemented in other ways. For example, the division of units / modules in the above-described embodiments is merely a logical functional division, and actual implementations may employ other division methods. For example, multiple units, modules, or components may be combined or integrated into another system, or some features may be omitted or not implemented.
[0176] In addition, unless otherwise specified, the functional units / modules in the various embodiments of the present application may be integrated into a single unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The aforementioned integrated units / modules may be implemented in the form of hardware or software program modules.
[0177] If the integrated unit / module is implemented in hardware, the hardware may be digital circuits or analog circuits. The physical implementation of the hardware structure includes, but is not limited to, transistors and memristors. Unless otherwise specified, the processor may be any appropriate hardware processor, such as a CPU, GPU, FPGA, DSP, and ASIC. Unless otherwise specified, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as Resistive Random Access Memory (RRAM), Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Enhanced Dynamic Random Access Memory (EDRAM), High-Bandwidth Memory (HBM), and Hybrid Memory Cube (HMC).
[0178] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk, or optical disk, etc., various media that can store program code.
[0179] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a particular embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined in any way. To keep the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0180] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0181] It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A communication method, said method being applied to a target server baseboard management controller among a plurality of server baseboard management controllers, characterized in that: include: Execute the network judgment operation of accessing the smart network card and obtain the judgment result; When it is detected that the judgment result is access, an access request is sent to the switch, so that the switch broadcasts the access request to the smart network card located in the virtual local area network to which the static address of the baseboard management controller of the target server belongs, thereby causing the target smart network card to respond to the access request and perform network communication with the baseboard management controller of the target server through the static address of the target smart network card; wherein the static addresses of different smart network cards are divided into different virtual local area networks, and the static address of the target smart network card is the same as the static address indicated by the access request.
2. A communication method, applied to a target smart network card, characterized in that: include: Receive an access request broadcast by a switch; wherein the access request is sent when the baseboard management controller of the target server detects that the judgment result is access, and the judgment result is obtained when the baseboard management controller of the target server performs an access smart network card network judgment operation; Respond to the access request and perform network communication with the target server baseboard management controller through the static address of the target smart network card, wherein the static addresses of different smart network cards are divided into different virtual local area networks.
3. A communication method, characterized in that: include: The target server baseboard management controller performs a network access determination operation on the smart network card and obtains a determination result; When the target server baseboard management controller detects that the judgment result is access, it sends an access request to the switch; The switch broadcasts the access request to the smart network card in the virtual local area network to which the static address of the baseboard management controller of the target server belongs; The target smart network card responds to the access request and performs network communication with the target server baseboard management controller through the static address of the target smart network card; wherein the static addresses of different smart network cards are divided into different virtual local area networks, and the static address of the target smart network card is the same as the static address indicated by the access request.
4. The communication method according to claim 3, wherein: The switch broadcasts the access request to a smart network card located in a virtual local area network to which the static address of the baseboard management controller of the target server belongs, including: The switch configures a virtual local area network for the static address of the baseboard management controller of the target server through a first pre-stored command instruction to obtain a first target virtual local area network; The switch broadcasts the access request to the smart network card located in the first target virtual local area network.
5. The communication method according to claim 3, wherein: The switch broadcasts the access request to a smart network card located in a virtual local area network to which the static address of the baseboard management controller of the target server belongs, including: The switch configures a virtual local area network for the target third interface of the switch through the second pre-stored command instruction to obtain a second target virtual local area network; wherein the target third interface is connected to the target smart network card through a network cable; The switch broadcasts the access request to the smart network card located in the second target virtual local area network.
6. A communication device, characterized in that: include: A judgment module is used to perform a judgment operation on the access smart network card network and obtain a judgment result; The network communication module is configured to, upon detecting that the judgment result is access, send an access request to the switch, so that the switch broadcasts the access request to the smart network card located in the virtual local area network to which the static address of the baseboard management controller of the target server belongs, thereby causing the target smart network card to respond to the access request and perform network communication with the baseboard management controller of the target server through the static address of the target smart network card; wherein the static addresses of different smart network cards are divided into different virtual local area networks, and the static address of the target smart network card is the same as the static address indicated by the access request.
7. A communication device, characterized in that: include: A receiving module, configured to receive an access request broadcast by a switch; wherein the access request is sent when the baseboard management controller of the target server detects that the judgment result is access, and the judgment result is obtained when the baseboard management controller of the target server performs an access smart network card network judgment operation; The first response module is configured to respond to the access request and perform network communication with the target server baseboard management controller through the static address of the target smart network card, wherein the static addresses of different smart network cards are divided into different virtual local area networks.
8. A communication device, characterized in that: include: An execution module is used for the baseboard management controller of the target server to execute the network judgment operation of accessing the smart network card and obtain the judgment result; A request module, configured to send an access request to a switch when the baseboard management controller of the target server detects that the judgment result is access; A broadcast module, configured for the switch to broadcast the access request to a smart network card located in a virtual local area network to which the static address of the baseboard management controller of the target server belongs; The second response module is used for the target smart network card to respond to the access request and perform network communication with the target server baseboard management controller through the static address of the target smart network card; wherein the static addresses of different smart network cards are divided into different virtual local area networks, and the static address of the target smart network card is the same as the static address indicated by the access request.
9. A communication system for executing the communication method according to any one of claims 3 to 5, characterized in that: Includes multiple server baseboard management controllers, multiple smart network cards and switches; Among them, multiple server baseboard management controllers are respectively connected to the first interfaces of corresponding smart network cards through network cables, and multiple second interfaces of the smart network cards are respectively connected to the corresponding third interfaces on the switch through network cables.
10. An electronic device, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the communication method according to claim 1, claim 2, and any one of claims 3 to 5.
Citation Information
Patent Citations
Management communication method, device, equipment and medium
CN118748640A