CN116232862A - Intelligent network card switching method, controller and system - Google Patents

Intelligent network card switching method, controller and system Download PDF

Info

Publication number
CN116232862A
CN116232862A CN202310231849.9A CN202310231849A CN116232862A CN 116232862 A CN116232862 A CN 116232862A CN 202310231849 A CN202310231849 A CN 202310231849A CN 116232862 A CN116232862 A CN 116232862A
Authority
CN
China
Prior art keywords
intelligent network
network card
link aggregation
aggregation group
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310231849.9A
Other languages
Chinese (zh)
Inventor
张志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN202310231849.9A priority Critical patent/CN116232862A/en
Publication of CN116232862A publication Critical patent/CN116232862A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides an intelligent network card switching method, a controller and a system, which relate to the technical field of communication, and the method comprises the following steps: and acquiring the health states of the main intelligent network card and the standby intelligent network card, determining whether to switch the main intelligent network card and the standby intelligent network card based on the health states of the main intelligent network card and the standby intelligent network card, if so, adjusting the interface states of member interfaces in the first link aggregation group, and adjusting the link aggregation control protocol LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group so as to switch the main intelligent network card into a new standby intelligent network card and switch the standby intelligent network card into the new main intelligent network card. The invention can realize the deployment of a plurality of intelligent network cards, and the intelligent network cards can realize linkage switching, and when the intelligent network card executing the forwarding service fails, the forwarding link can be automatically switched to the intelligent network card without the failure, thereby reducing the influence on the customer service as much as possible.

Description

Intelligent network card switching method, controller and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a controller, and a system for switching an intelligent network card.
Background
With the continuous increase of data center bandwidth and the rising of cloud computing, the requirements on the processing capacity of a server network are higher and higher.
Under the background, the intelligent network card is introduced at the server side, and then the network, storage and other high-performance data processing capacity unsuitable for processing by the CPU (Central Processing Unit ) of the server can be unloaded to the intelligent network card for execution, so that the overall data processing capacity of the server is greatly improved, and the calculation capacity of the CPU is released.
Therefore, when the intelligent network card is used for processing data of the server, how to solve the problem that the intelligent network card cannot cause influence on service after failure is an important problem to be solved at present.
Disclosure of Invention
The invention aims to provide an intelligent network card switching method, a controller and a system, which can realize deployment of a plurality of intelligent network cards, realize linkage switching among the intelligent network cards, realize automatic switching of services to an intelligent network card without faults after single intelligent network card faults, and avoid the problem that the services cannot be processed after single intelligent network card faults.
In order to achieve the above object, the technical scheme adopted by the embodiment of the invention is as follows:
In a first aspect, an embodiment of the present invention provides an intelligent network card switching method, which is applied to a controller in an intelligent network card switching system, where the intelligent network card switching system further includes a server, a main intelligent network card, a standby intelligent network card, and a switch, where the controller is in communication connection with the server, the main intelligent network card and the standby intelligent network card are both plugged into the server and are respectively in communication connection with the switch and the controller, where the server is configured with a first link aggregation group, the first link aggregation group is formed by statically aggregating a first virtual network interface connected with the main intelligent network card and a second virtual network interface connected with the standby intelligent network card, the main intelligent network card is configured with a second link aggregation group, the second link aggregation group is formed by dynamically aggregating a first physical interface connected with the switch, the standby intelligent network card is configured with a third link aggregation group, and the main intelligent network card and the server are in communication with the first physical network interface through the virtual network interface of the switch; the standby intelligent network card is communicated with the server through the second virtual network interface, and the standby intelligent network card is communicated with the switch through the second physical interface, and the method comprises the following steps:
Acquiring health states of the main intelligent network card and the standby intelligent network card;
determining whether to switch the main intelligent network card and the standby intelligent network card based on the health state of the main intelligent network card and the health state of the standby intelligent network card;
if yes, adjusting the interface states of member interfaces in the first link aggregation group, and adjusting the link aggregation control protocol LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group, so that the main intelligent network card is switched to a new standby intelligent network card, and the standby intelligent network card is switched to the new main intelligent network card.
In an alternative embodiment, the step of determining whether to switch the main intelligent network card and the standby intelligent network card based on the health status of the main intelligent network card and the health status of the standby intelligent network card includes:
and when the health state of the main intelligent network card is abnormal and the health state of the standby intelligent network card is normal, determining to switch the main intelligent network card and the standby intelligent network card.
In an alternative embodiment, before the acquiring the health states of the main intelligent network card and the standby intelligent network card, the method further includes:
Setting the interface states of the member interfaces in the first link aggregation group as default states, and setting the LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group as default states.
In an optional implementation manner, the step of setting the interface states of the member interfaces in the first link aggregation group to a default state and setting the LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group to a default state includes:
setting an interface state of the first virtual network interface in the first link aggregation group to be an on state, setting an interface state of the second virtual network interface in the first link aggregation group to be an off state, setting an LACP sending state of the first physical interface in the second link aggregation group to be an on state, and setting an LACP sending state of the second physical interface in the third link aggregation group to be an off state;
the step of adjusting the interface states of the member interfaces in the first link aggregation group and the link aggregation control protocol LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group includes:
Switching the interface state of the second virtual network interface in the first link aggregation group to an on state, switching the interface state of the first virtual network interface in the first link aggregation group to an off state, switching the LACP sending state of the second physical interface in the third link aggregation group to an on state, and switching the LACP sending state of the first physical interface in the second link aggregation group to an off state.
In a second aspect, an embodiment of the present invention provides an intelligent network card switching method, applied to an intelligent network card switching system, where the system includes a controller, a server, a main intelligent network card, a standby intelligent network card, and an exchange, where the controller is communicatively connected to the server, the main intelligent network card and the standby intelligent network card are both plugged into the server and are communicatively connected to the exchange and the controller respectively, the server is configured with a first link aggregation group, the first link aggregation group is formed by statically aggregating a first virtual network interface connected to the main intelligent network card and a second virtual network interface connected to the standby intelligent network card, the main intelligent network card is configured with a second link aggregation group, the second link aggregation group is formed by dynamically aggregating a first physical interface connected to the exchange of the main intelligent network card, the standby intelligent network card is configured with a third link aggregation group, the main intelligent network card and the server are dynamically aggregated by a second physical interface connected to the standby intelligent network card, and the main intelligent network card and the first virtual network card are communicated with the first virtual network card through the first interface; the standby intelligent network card is communicated with the server through the second virtual network interface, and the standby intelligent network card is communicated with the switch through the second physical interface, and the method comprises the following steps:
The controller acquires health states of a main intelligent network card and the standby intelligent network card, determines whether to switch the main intelligent network card and the standby intelligent network card based on the health states, and sends a first switching instruction for controlling member interfaces of a first link aggregation group to switch interface states to the server when determining that the main intelligent network card and the standby intelligent network card need to be switched;
the server switches the interface state of the first virtual network interface and the interface state of the second virtual network interface in the first link aggregation group based on the first switching instruction;
the controller sends a first state adjustment instruction to the main intelligent network card and a second state adjustment instruction to the standby intelligent network card;
the main intelligent network card adjusts the LACP sending state of the first physical interface in the second link aggregation group based on the first state adjusting instruction;
and the standby intelligent network card adjusts the LACP sending state of the second physical interface in the third link aggregation group based on the second state adjusting instruction so as to complete the switching of the main intelligent network card and the standby intelligent network card.
In an alternative embodiment, the step of switching, by the server, the interface state of the first virtual network interface and the interface state of the second virtual network interface in the first link aggregation group based on the first switching instruction includes:
and the server switches the interface state of the first virtual network interface in the first link aggregation group from an on state to an off state based on the first switching instruction, and switches the interface state of the second virtual network interface in the first link aggregation group from the off state to the on state.
In an optional implementation manner, the step of adjusting the LACP packet sending state of the first physical interface in the second link aggregation group by the master intelligent network card based on the first state adjustment instruction includes:
the main intelligent network card adjusts the LACP sending state of the first physical interface in the second link aggregation group to be a closing state based on the first state adjusting instruction;
the step of the standby intelligent network card adjusting the LACP packet sending state of the second physical interface in the third link aggregation group based on the second state adjustment instruction includes:
And the standby intelligent network card adjusts the LACP sending state of the second physical interface in the third link aggregation group to be an opening state based on the second state adjusting instruction.
In an optional implementation manner, the switch is configured with a fourth link aggregation group, and the fourth link aggregation group is formed by dynamically aggregating a third physical port of the switch connected with the main intelligent network card and a fourth physical port of the switch connected with the standby intelligent network card;
and setting the LACP working modes of the third physical port and the fourth physical port in the fourth link aggregation group as a passive mode.
In a third aspect, the present invention provides a controller, where the controller is communicatively connected to a server, a main intelligent network card and a standby intelligent network card are both plugged into the server and are communicatively connected to a switch and the controller respectively, where the server is configured with a first link aggregation group, the first link aggregation group is formed by static aggregation of a first virtual network interface connected to the main intelligent network card and a second virtual network interface connected to the standby intelligent network card, the main intelligent network card is configured with a second link aggregation group, the second link aggregation group is formed by dynamic aggregation of a first physical interface connected to the switch of the main intelligent network card, the standby intelligent network card is configured with a third link aggregation group, the third link aggregation group is formed by dynamic aggregation of a second physical interface connected to the switch of the standby intelligent network card, the main intelligent network card is in communication with the server through the first virtual network interface, the standby intelligent network card is in communication with the server through the second virtual network interface, and the main intelligent network card is in communication with the first physical interface through the first physical interface; the standby intelligent network card is communicated with the server through the second virtual network interface, and the standby intelligent network card is communicated with the switch through the second physical interface;
The controller comprises an acquisition module for acquiring the health states of the main intelligent network card and the standby intelligent network card;
the switching module is used for determining whether to switch the main intelligent network card and the standby intelligent network card or not based on the health state of the main intelligent network card and the health state of the standby intelligent network card; if yes, adjusting the interface states of member interfaces in the first link aggregation group, and adjusting the link aggregation control protocol LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group, so that the main intelligent network card is switched to a new standby intelligent network card, and the standby intelligent network card is switched to the new main intelligent network card.
In a fourth aspect, an embodiment of the present invention provides an intelligent network card switching system, where the system includes a controller, a server, a main intelligent network card, a standby intelligent network card, and an exchange, where the controller is communicatively connected to the server, the main intelligent network card and the standby intelligent network card are both plugged into the server and are communicatively connected to the exchange and the controller respectively, the server is configured with a first link aggregation group, the first link aggregation group is formed by static aggregation of a first virtual network interface connected to the main intelligent network card and a second virtual network interface connected to the standby intelligent network card, the main intelligent network card is configured with a second link aggregation group, the second link aggregation group is formed by dynamic aggregation of a first physical interface connected to the exchange of the main intelligent network card, the standby intelligent network card is configured with a third link aggregation group, the third link aggregation group is formed by dynamic aggregation of a second physical interface connected to the exchange of the standby intelligent network card, the main intelligent network card and the server communicate with the exchange through the first virtual network interface, and the main intelligent network card communicates with the exchange through the first physical interface; the standby intelligent network card is communicated with the server through the second virtual network interface, and the standby intelligent network card is communicated with the switch through the second physical interface;
The controller is configured to obtain health states of the main intelligent network card and the standby intelligent network card, determine whether to switch the main intelligent network card and the standby intelligent network card based on the health states, and send a first switching instruction for controlling member interfaces of a first link aggregation group to switch states to the server when determining that the main intelligent network card and the standby intelligent network card need to be switched;
the server is configured to switch, based on the first switching instruction, an interface state of the first virtual network interface and an interface state of the second virtual network interface in the first link aggregation group;
the controller is used for sending a first state adjustment instruction to the main intelligent network card and sending a second state adjustment instruction to the standby intelligent network card;
the main intelligent network card is used for adjusting the link aggregation control protocol LACP packet sending state of the first physical interface in the second link aggregation group based on the first state adjustment instruction;
and the standby intelligent network card is used for adjusting the LACP packet sending state of the second physical interface in the third link aggregation group based on the second state adjustment instruction so as to complete the switching of the main intelligent network card and the standby intelligent network card.
The invention has the following beneficial effects:
according to the invention, by acquiring the health states of the main intelligent network card and the standby intelligent network card, whether the main intelligent network card and the standby intelligent network card are switched is determined based on the health states of the main intelligent network card and the standby intelligent network card, if so, the interface states of member interfaces in the first link aggregation group are adjusted, and the link aggregation control protocol LACP sending states of the member interfaces in the second link aggregation group and the third link aggregation group are adjusted, so that the main intelligent network card is switched to a new standby intelligent network card, and the standby intelligent network card is switched to a new main intelligent network card. The invention can realize the deployment of a plurality of intelligent network cards, and the intelligent network cards can realize linkage switching, and when the intelligent network card executing the forwarding service fails, the forwarding link can be automatically switched to the intelligent network card without the failure, thereby reducing the influence on the customer service as much as possible.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an intelligent network card switching system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a controller according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a switching method of an intelligent network card according to an embodiment of the present invention;
FIG. 4 is a second flow chart of a switching method of an intelligent network card according to an embodiment of the present invention;
FIG. 5 is a third flow chart of a switching method of an intelligent network card according to an embodiment of the present invention;
fig. 6 is an interface schematic diagram of a main intelligent network card, a standby intelligent network card, a server and a switch in the intelligent network card switching system provided by the embodiment of the invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Accordingly, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present invention, it should be noted that, if the terms "upper", "lower", "inner", "outer", and the like indicate an azimuth or a positional relationship based on the azimuth or the positional relationship shown in the drawings, or the azimuth or the positional relationship in which the inventive product is conventionally put in use, it is merely for convenience of describing the present invention and simplifying the description, and it is not indicated or implied that the apparatus or element referred to must have a specific azimuth, be configured and operated in a specific azimuth, and thus it should not be construed as limiting the present invention.
Furthermore, the terms "first," "second," and the like, if any, are used merely for distinguishing between descriptions and not for indicating or implying a relative importance.
Referring to fig. 1, an intelligent network card switching system 100 according to an embodiment of the present invention includes a server 10, a switch 20, a main intelligent network card 30, a standby intelligent network card 40, and a controller 50. The main intelligent network card 30 and the standby intelligent network card 40 are both plugged into the server 10 and are respectively in communication connection with the switch 20 and the controller 50, and the controller 50 is in communication connection with the server 10.
The primary and standby intelligent network cards 30, 40 have the functionality of a storage protocol, such as iSCSI (Internet Small Computer System Interface ) initiator. iSCSI, which may also be referred to as IP-SAN (Internet Protocol StorageArea Network ), is a storage approach based on TCP/IP and SCSI-3 protocols.
It should be noted that, the main intelligent network card 30 and the standby intelligent network card 40 may further include other modules, for example, the main intelligent network card 30 and the standby intelligent network card 40 may further include FPGAs (Field Programmable Gate Array, field programmable gate arrays).
In an intelligent network card, the processor may be a CPU having a plurality of processing cores. The CPU may be used to perform relatively flexible storage offload processing. FPGAs can be used to perform relatively fixed offload processing.
Referring to fig. 2, the controller 50 may include a processor 51, a memory 52, and an intelligent network card switching device 53. The memory 52 stores a computer program which, when executed by the processor 51, is capable of performing the steps of the intelligent network card switching method described below.
The memory 52 and the processor 51 are electrically connected directly or indirectly to each other, so as to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The intelligent network card switching device 53 includes at least one software function module that may be stored in the memory 52 in the form of software or Firmware (Firmware) or cured in an Operating System (OS) of the controller 50. The processor 51 is configured to execute executable modules stored in the memory 52, such as software functional modules and computer programs included in the intelligent network card switching device 53.
The Memory 52 may be, but is not limited to, RAM ((RandomAccess Memory, random access Memory), ROM (Read Only Memory), PROM (Programmable Read-Only Memory), EPROM ((Erasable ProgrammableRead-Only Memory), EEPROM (Electric Erasable ProgrammableRead-Only Memory), electrically erasable Read Only Memory), etc., wherein the Memory 52 is for storing a program, and the processor 51 executes the program upon receiving an execution instruction.
Referring to fig. 3, an embodiment of the present invention provides an intelligent network card switching method, which can be applied to the controller 50, and the controller 50 executes or implements each step in the method, and the method includes the following steps:
step 201: and acquiring the health states of the main intelligent network card and the standby intelligent network card.
In the embodiment of the invention, various realization modes for acquiring the health states of the main intelligent network card and the standby intelligent network card are provided, in one realization mode, a first health detection program is installed on the main intelligent network card, a second health detection program is installed on the standby intelligent network card, and after the first health detection program is started, the health state of the main intelligent network card is monitored in real time based on the first health detection program, and the health state of the main intelligent network card is sent to the controller. And after the second health detection program is started, the health state of the standby intelligent network card is monitored in real time based on the second health detection program, and the health state of the standby intelligent network card is sent to the controller, so that the controller determines whether the switching of the main intelligent network card and the standby intelligent network card is required or not based on the health state of the main intelligent network card and the health state of the standby intelligent network card.
It should be specifically noted that, in the embodiment of the present invention, the main intelligent network card and the standby intelligent network card may be a corresponding relationship of 1:1,1:n, or n:n, that is, one main intelligent network card corresponds to one standby intelligent network card, or one main intelligent network card corresponds to a plurality of standby intelligent network cards, or a plurality of main intelligent network cards corresponds to a plurality of standby intelligent network cards, where the corresponding relationship of the specific main intelligent network card and the standby intelligent network card needs to be configured correspondingly based on the networking environment of the user, which is not limited specifically herein.
Step 202: and determining whether to switch the main intelligent network card and the standby intelligent network card based on the health status of the main intelligent network card and the health status of the standby intelligent network card.
In the embodiment of the invention, when the health state of the main intelligent network card is abnormal and the health state of the standby intelligent network card is in a normal state, the need of switching the main intelligent network card and the standby intelligent network card is determined. The service flow between the server and the switch is processed based on the switched main intelligent network card.
In this step, based on the health status of the main intelligent network card and the standby intelligent network card, one implementation manner of determining whether to switch the main intelligent network card and the standby intelligent network card may be: when the health state of the main intelligent network card is abnormal and the health state of the standby intelligent network card is normal, determining that the main intelligent network card and the standby intelligent network card need to be switched, wherein when the operation parameters of the intelligent network card meet the preset conditions, the health state of the intelligent network card is abnormal, and when the operation parameters of the intelligent network card do not meet the preset conditions, the health state of the intelligent network card is normal.
The method comprises the steps of determining whether the health state of the main intelligent network card is an abnormal state or not, in one implementation, the operation parameters of the intelligent network card can comprise the interface states of a key service process and the intelligent network card, determining the operation state of the key service process and the interface state of the main intelligent network card, and determining that the operation parameters of the main intelligent network card meet preset conditions when the operation state of the key service process is abnormal or the interface state of the main intelligent network card is abnormal, and determining that the health state of the main intelligent network card is an abnormal state.
The interface of the main intelligent network card may include a first physical interface connected to the switch, and a virtual network interface in communication with the server, where the main intelligent network card runs a first key service, a second key service, and a third key service, and the state of the first physical interface and the virtual network interface connected to the server is determined based on a first health detection program on the main intelligent network card. And determining the running states of the first key service, the second key service and the third key service based on a first health detection program on the main intelligent network card, wherein the states of the first physical interface and the virtual network interface connected with the server are in normal working states, and the running states of the first key service, the second key service and the third key service are in normal running states, so that the health state of the main intelligent network card is determined to be normal. And determining that the health state of the main intelligent network card is in an abnormal working state when any one of the first physical interface and the virtual network interface connected with the server is in an abnormal working state, and determining that the health state of the main intelligent network card is in an abnormal state when any one of the operation states of the first key service, the second key service and the third key service is in an abnormal operation state.
The implementation manner of determining whether the health status of the standby intelligent network card is normal may refer to the description of determining the health status of the main intelligent network card, which is not described herein.
Based on the health status of the main intelligent network card and the health status of the standby intelligent network card, another implementation manner of determining whether to switch the main intelligent network card and the standby intelligent network card may be: and when the health state of the main intelligent network card cannot be acquired and the health state of the standby intelligent network card is in a normal state, determining that the main intelligent network card and the standby intelligent network card need to be switched.
In an example, the controller may actively acquire the health status of the main intelligent network card and the standby intelligent network card, and switch the main intelligent network card and the standby intelligent network card when the controller cannot acquire the health status of the main intelligent network card and the health status of the acquired standby intelligent network card is normal.
In another example, when the main intelligent network card cannot send the health status to the controller, the controller determines that the health status of the main intelligent network card cannot be obtained, and when the health status of the standby intelligent network card is in a normal status, the main intelligent network card and the standby intelligent network card are switched.
Step 203: if yes, adjusting the interface states of member interfaces in the first link aggregation group, and adjusting the link aggregation control protocol LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group, so that the main intelligent network card is switched to a new standby intelligent network card, and the standby intelligent network card is switched to the new main intelligent network card.
In this step, the server is configured with a first link aggregation group, and the first link aggregation group is formed by statically aggregating a first virtual network interface connected with the main intelligent network card and a second virtual network interface connected with the standby intelligent network card. The main intelligent network card is configured with a second link aggregation group, and the second link aggregation group is formed by dynamically aggregating first physical interfaces of the main intelligent network card connected with the switch. The standby intelligent network card is provided with a third link aggregation group which is formed by dynamically aggregating second physical interfaces of the standby intelligent network card, which are connected with the switch. The main intelligent network card and the server communicate through a first virtual network interface, and the main intelligent network card and the switch communicate through a first physical interface. The standby intelligent network card is communicated with the server through a second virtual network interface, and the standby intelligent network card is communicated with the switch through a second physical interface.
When the switching between the main intelligent network card and the standby intelligent network card is determined to be needed based on the above mode, the switching can be realized by adjusting the interface states of the member interfaces in the first link aggregation group and the LACP (Link Aggregation Control Protocol ) packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group.
Before the health states of the main intelligent network card and the standby intelligent network card are acquired, setting the interface states of the member interfaces in the first link aggregation group as default states, and setting the LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group as default states.
As shown in fig. 4, the manner of setting the interface states of the member interfaces in the first link aggregation group to the default state and the LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group to the default state may include the following steps:
step 301: the interface state of the first virtual network interface in the first link aggregation group is set to an on state.
Step 302: the interface state of the second virtual network interface in the first link aggregation group is set to a closed state.
Step 303: and setting the LACP sending state of the first physical interface in the second link aggregation group to be an open state.
Step 304: and setting the LACP sending state of the second physical interface in the third link aggregation group to be a closed state.
Exemplary: adding a first virtual network interface connected with a main intelligent network card and a second virtual network interface connected with a standby intelligent network card into a first link aggregation group Bond1 on a server, setting a Bond1 mode to be a static mode, configuring an IP address for the first link aggregation group Bond1 for external communication, adding a first physical interface connected with a switch on the main intelligent network card into a second link aggregation group Bond 11, adding a second physical interface connected with the switch on the standby intelligent network card into a third link aggregation group Bond 12, adding a third physical port connected with the main intelligent network card of the switch and a fourth physical port connected with the standby intelligent network card of the switch into a fourth link aggregation group Bond 13, setting the third physical port and the fourth physical port to be a passive mode, and transmitting LACP messages to the main intelligent network card and the standby intelligent network card in the passive mode, wherein the LACP messages transmitted by the main intelligent network card or the standby intelligent network card can be received and responded to the LACP messages.
The method comprises the steps of setting a master role of an intelligent network card on a controller, namely setting a master intelligent network card and a standby intelligent network card on the controller, and setting MAC (Media Access Control Address, media access control) addresses of a first physical interface of the master intelligent network card, which is connected with a switch, and a second physical interface of the standby intelligent network card, which is connected with the switch, as the same address.
The manner of setting the MAC addresses of the first physical interface and the second physical interface may be directly set under the intelligent network card Shell, or may be issued by a controller or other manners.
Fig. 6 is a schematic diagram of interfaces of a main intelligent network card, a standby intelligent network card, a server and a switch in the intelligent network card switching system. The server is configured with a first link aggregation group Bond1, the Bond1 is formed by static aggregation of a first virtual network interface Vnet1 connected with a main intelligent network card and a second virtual network interface Vnet2 connected with a standby intelligent network card, the main intelligent network card is configured with a second link aggregation group Bond11, the Bond11 is formed by dynamic aggregation of a first physical interface Eth1 connected with a switch of the main intelligent network card, the standby intelligent network card is configured with a third link aggregation group Bond12, and the Bond12 is formed by dynamic aggregation of a second physical interface Eth2 connected with the switch of the standby intelligent network card. The main intelligent network card is communicated with the server through a first virtual network interface Vnet1, and the main intelligent network card is communicated with the switch through a first physical interface Eth 1; the standby intelligent network card and the server communicate through a second virtual network interface Vnet2, and the standby intelligent network card and the switch communicate through a second physical interface Eth 2. The switch is configured with a fourth link aggregation group Bond13, and the Bond13 is formed by dynamically aggregating a third physical port P1 connected with the main intelligent network card of the switch and a fourth physical port P2 connected with the standby intelligent network card of the switch. The LACP operation modes of the third physical port P1 and the fourth physical port P2 in Bond13 are set to the passive mode.
The controller sets the interface state of the first virtual network interface Vnet1 in the first link aggregation group Bond1 of the main intelligent network card to UP (i.e. ON state), sets the interface state of the second virtual network interface Vnet2 in the first link aggregation group Bond1 to DOWN (i.e. off state), and sets the LACP packet sending state of the first physical interface Eth1 in the second link aggregation group Bond11 to ON (i.e. ON state), so that the first physical interface Eth1 in the second link aggregation group Bond11 enables the sending of the LACP message, after receiving the corresponding LACP message, the forwarding state of the third physical port P1 in Bond13 of the switch is changed to the selected state, and the port in the selected state can normally receive the message.
The controller sets the state of the LACP packet sending state of the second physical interface Eth2 in the third link aggregation group Bond 12 with the intelligent network card to OFF (i.e. the closed state), so that the second physical interface Eth2 in the third link aggregation group Bond 12 with the intelligent network card closes the LACP message sending, the fourth physical port P2 in Bond13 of the switch cannot receive the LACP message, the forwarding state of P2 will be changed into the unselected state, and the port in the unselected state will not normally receive the message.
In the embodiment of the invention, the switching between the main intelligent network card and the standby intelligent network card is realized by adjusting the interface states of the member interfaces in the first link aggregation group and adjusting the link aggregation control protocol LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group, and the specific implementation modes of the switching between the main intelligent network card and the standby intelligent network card can be as follows:
and switching the interface state of the second virtual network interface in the first link aggregation group to an on state, switching the interface state of the first virtual network interface in the first link aggregation group to an off state, switching the LACP packet sending state of the second physical interface in the third link aggregation group to an on state, and switching the LACP packet sending state of the first physical interface in the second link aggregation group to an off state.
In an example, when switching between the primary and standby intelligent network cards, the controller sends a switching instruction to the server to switch the interface states of the first and second virtual network interfaces, and the server sets the interface state of the first virtual network interface connected to the primary intelligent network card to DOWN (i.e., off state) based on the switching instruction. The server sets the interface state of the second virtual network interface connected with the standby intelligent network card to be UP (i.e. on state).
In another example, a switching instruction for switching the interface states of the first virtual network interface and the second virtual network interface is indirectly issued to the server by the main intelligent network card or the standby intelligent network card, and the server completes switching the interface states of the first virtual network interface and the second virtual network interface based on the switching instruction.
The controller sets the LACP packet sending state of the second physical interface Eth2 in the third link aggregation group Bond 12 to be ON (i.e. open state), so that the second physical interface Eth2 in the third link aggregation group Bond 12 enables sending of the LACP packet, and after receiving the corresponding LACP packet, the forwarding state of the fourth physical port P2 of the switch is changed to a selected state, and the port in the selected state can normally send and receive the packet.
The controller sets the LACP sending state of the first physical interface Eth1 in the Bond 11 of the second link aggregation group to be OFF (i.e. closed state), so that the first physical interface Eth1 in the Bond 11 of the second link aggregation group closes the LACP message sending, the third physical port P1 of the switch cannot receive the LACP message, the forwarding state of the P1 is changed into an unselected state, and the port in the unselected state cannot normally receive and send the message, thereby realizing link switching of the message sending on the switch.
Referring to fig. 5, an embodiment of the present invention provides another intelligent network card switching method, which may be applied to the above intelligent network card switching system, where the intelligent network card switching system includes a controller, a server, a main intelligent network card, a standby intelligent network card, and a switch, the controller is communicatively connected to the server, the main intelligent network card and the standby intelligent network card are plugged into the server and are communicatively connected to the switch and the controller, the server is configured with a first link aggregation group, the first link aggregation group is formed by statically aggregating a first virtual network interface connected to the main intelligent network card and a second virtual network interface connected to the standby intelligent network card, the main intelligent network card is configured with a second link aggregation group, the second link aggregation group is formed by dynamically aggregating a first physical interface connected to the switch of the main intelligent network card, the standby intelligent network card is dynamically aggregated by a second physical interface connected to the switch of the standby intelligent network card, the main intelligent network card and the server are communicated through the first virtual network interface, and the standby intelligent network card and the server are communicated through the second virtual network interface. The method comprises the following steps:
Step 401: the controller obtains health states of the main intelligent network card and the standby intelligent network card, determines whether to switch the main intelligent network card and the standby intelligent network card based on the health states, and sends a first switching instruction for controlling member interfaces of the first link aggregation group to switch interface states to the server when the main intelligent network card and the standby intelligent network card are determined to be required to be switched.
In this step, the controller obtains the health states of the main intelligent network card and the standby intelligent network card, and determines whether the specific implementation manner of switching the main intelligent network card and the standby intelligent network card is needed based on the health states of the main intelligent network card and the standby intelligent network card, which is the same as the switching manner of the controller to the main intelligent network card and the standby intelligent network card, and will not be described in detail herein.
Step 402: the server switches the interface state of the first virtual network interface and the interface state of the second virtual network interface in the first link aggregation group based on the first switching instruction.
In this step, there are various implementations of the switching between the interface state of the first virtual network interface and the interface state of the second virtual network interface, and in one implementation:
the server can switch the interface state of the first virtual network interface and the interface state of the second virtual network interface in the first link aggregation group based on the first switching instruction by receiving the first switching instruction issued by the controller.
In another implementation:
the controller transmits a first switching instruction for switching the interface states of member interfaces in a first link aggregation group of the server to the main intelligent network card or the standby intelligent network card, the main intelligent network card or the standby intelligent network card transmits the first switching instruction to the server, and the server switches the interface states of a first virtual network interface and a second virtual network interface in the first link aggregation group based on the first switching instruction.
Illustratively, upon receiving the first switching instruction, the server switches the interface state of the first virtual network interface in the first link aggregation group Bond1 from UP to DOWN, and switches the interface state of the second virtual network interface in the first link aggregation group Bond1 from DOWN to UP.
In the embodiment of the invention, the switching between the main intelligent network card and the standby intelligent network card is realized, and besides the switching of the interface states of the member interfaces in the first link aggregation group in the server, the LACP packet sending state of the first physical interface in the second link aggregation group configured in the main intelligent network card and the LACP packet sending state of the second physical interface in the third link aggregation group configured in the standby intelligent network card are required to be controlled.
Step 403: the controller sends a first state adjustment instruction to the main intelligent network card and a second state adjustment instruction to the standby intelligent network card.
Step 404: and the master intelligent network card adjusts the LACP sending state of the first physical interface in the second link aggregation group based on the first state adjusting instruction.
Step 405: and the standby intelligent network card adjusts the LACP packet sending state of the second physical interface in the third link aggregation group based on the second state adjusting instruction so as to complete the switching of the main intelligent network card and the standby intelligent network card.
In the embodiment of the invention, based on the switching of the interface states of the first virtual network interface and the second virtual network interface in the first link aggregation group, and the switching of the LACP packet sending state of the first physical interface in the second link aggregation group and the LACP packet sending state of the second physical interface in the third link aggregation group, the switching of the main intelligent network card and the standby intelligent network card is completed.
Exemplary: the master intelligent network card adjusts the LACP sending state of the first physical interface in the second link aggregation group Bond11 to be OFF based ON the first state adjustment instruction, and the standby intelligent network card adjusts the LACP sending state of the second physical interface in the third link aggregation group Bond12 to be ON based ON the second state adjustment instruction, so that the switching of service links of the master intelligent network card and the standby intelligent network card is completed.
It should be specifically noted that, the LACP working modes of the third physical port P1 and the fourth physical port P2 in the fourth link aggregation group are both set to a passive mode, where the passive mode is to send LACP messages to the main intelligent network card and the standby intelligent network card in an inactive mode, but may receive and respond to the LACP messages sent by the main intelligent network card or the standby intelligent network card.
The embodiment of the invention also provides a controller which is in communication connection with the server, wherein the main intelligent network card and the standby intelligent network card are both plugged into the server and are respectively in communication connection with the switch and the controller, the server is configured with a first link aggregation group which is formed by static aggregation of a first virtual network interface connected with the main intelligent network card and a second virtual network interface connected with the standby intelligent network card, the main intelligent network card is configured with a second link aggregation group which is formed by dynamic aggregation of a first physical interface connected with the switch of the main intelligent network card, the standby intelligent network card is configured with a third link aggregation group which is formed by dynamic aggregation of a second physical interface connected with the standby intelligent network card, the main intelligent network card and the server are communicated through the first virtual network interface, and the main intelligent network card and the switch are communicated through the first physical interface; the standby intelligent network card is communicated with the server through a second virtual network interface, and the standby intelligent network card is communicated with the switch through a second physical interface.
The controller comprises an acquisition module for acquiring the health states of the main intelligent network card and the standby intelligent network card;
the switching module is used for determining whether to switch the main intelligent network card and the standby intelligent network card or not based on the health state of the main intelligent network card and the health state of the standby intelligent network card; if yes, adjusting the interface states of member interfaces in the first link aggregation group, and adjusting the link aggregation control protocol LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group, so that the main intelligent network card is switched to a new standby intelligent network card, and the standby intelligent network card is switched to the new main intelligent network card.
The embodiment of the invention also provides an intelligent network card switching system, which comprises a controller, a server, a main intelligent network card, a standby intelligent network card and an exchanger, wherein the controller is in communication connection with the server, the main intelligent network card and the standby intelligent network card are both inserted into the server and are respectively in communication connection with the exchanger and the controller, the server is configured with a first link aggregation group, the first link aggregation group is formed by static aggregation of a first virtual network interface connected with the main intelligent network card and a second virtual network interface connected with the standby intelligent network card, the main intelligent network card is configured with a second link aggregation group, the second link aggregation group is formed by dynamic aggregation of a first physical interface connected with the exchanger of the main intelligent network card, the standby intelligent network card is configured with a third link aggregation group, the third link aggregation group is formed by dynamic aggregation of a second physical interface connected with the switch of the standby intelligent network card, the main intelligent network card and the server are in communication through the first virtual network interface, and the main intelligent network card is in communication through the first physical interface; the standby intelligent network card is communicated with the server through a second virtual network interface, and the standby intelligent network card is communicated with the switch through a second physical interface.
The controller is used for acquiring the health states of the main intelligent network card and the standby intelligent network card, determining whether to switch the main intelligent network card and the standby intelligent network card or not based on the health states, and sending a first switching instruction for controlling member interfaces of the first link aggregation group to switch the states when the main intelligent network card and the standby intelligent network card are determined to be required to be switched;
the server is used for switching the interface state of the first virtual network interface and the interface state of the second virtual network interface in the first link aggregation group based on the first switching instruction;
the controller is used for sending a first state adjustment instruction to the main intelligent network card and sending a second state adjustment instruction to the standby intelligent network card;
the main intelligent network card is used for adjusting the LACP packet sending state of the first physical interface in the second link aggregation group based on the first state adjusting instruction;
and the standby intelligent network card is used for adjusting the LACP packet sending state of the second physical interface in the third link aggregation group based on the second state adjusting instruction so as to complete the switching of the main intelligent network card and the standby intelligent network card.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method may be implemented in other manners as well. The system embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present invention may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is merely illustrative of various embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think about variations or substitutions within the scope of the present invention, and the invention is intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. The intelligent network card switching method is characterized by being applied to a controller in an intelligent network card switching system, wherein the intelligent network card switching system further comprises a server, a main intelligent network card, a standby intelligent network card and a switch, the controller is in communication connection with the server, the main intelligent network card and the standby intelligent network card are both inserted into the server and are respectively in communication connection with the switch and the controller, the server is configured with a first link aggregation group, the first link aggregation group is formed by statically aggregating a first virtual network interface connected with the main intelligent network card and a second virtual network interface connected with the standby intelligent network card, the main intelligent network card is configured with a second link aggregation group, the second link aggregation group is formed by dynamically aggregating a first physical interface connected with the switch of the main intelligent network card, the standby intelligent network card is configured with a third link aggregation group, the main intelligent network card and the server are in communication with the first physical interface of the switch through the first virtual network interface; the standby intelligent network card is communicated with the server through the second virtual network interface, and the standby intelligent network card is communicated with the switch through the second physical interface, and the method comprises the following steps:
Acquiring health states of the main intelligent network card and the standby intelligent network card;
determining whether to switch the main intelligent network card and the standby intelligent network card based on the health state of the main intelligent network card and the health state of the standby intelligent network card;
if yes, adjusting the interface states of member interfaces in the first link aggregation group, and adjusting the link aggregation control protocol LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group, so that the main intelligent network card is switched to a new standby intelligent network card, and the standby intelligent network card is switched to the new main intelligent network card.
2. The method of claim 1, wherein the step of determining whether to switch between the primary and standby intelligent network cards based on the health of the primary intelligent network card and the health of the standby intelligent network card comprises:
and when the health state of the main intelligent network card is abnormal and the health state of the standby intelligent network card is normal, determining to switch the main intelligent network card and the standby intelligent network card.
3. The method of claim 2, wherein prior to the acquiring the health status of the primary and backup intelligent network cards, the method further comprises:
Setting the interface states of the member interfaces in the first link aggregation group as default states, and setting the LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group as default states.
4. The method of claim 3, wherein the step of,
the step of setting the interface states of the member interfaces in the first link aggregation group as default states and the LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group as default states includes:
setting an interface state of the first virtual network interface in the first link aggregation group to be an on state, setting an interface state of the second virtual network interface in the first link aggregation group to be an off state, setting an LACP sending state of the first physical interface in the second link aggregation group to be an on state, and setting an LACP sending state of the second physical interface in the third link aggregation group to be an off state;
the step of adjusting the interface states of the member interfaces in the first link aggregation group and the link aggregation control protocol LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group includes:
Switching the interface state of the second virtual network interface in the first link aggregation group to an on state, switching the interface state of the first virtual network interface in the first link aggregation group to an off state, switching the LACP sending state of the second physical interface in the third link aggregation group to an on state, and switching the LACP sending state of the first physical interface in the second link aggregation group to an off state.
5. The intelligent network card switching method is characterized by being applied to an intelligent network card switching system, wherein the system comprises a controller, a server, a main intelligent network card, a standby intelligent network card and a switch, the controller is in communication connection with the server, the main intelligent network card and the standby intelligent network card are both inserted into the server and are respectively in communication connection with the switch and the controller, the server is configured with a first link aggregation group, the first link aggregation group is formed by static aggregation of a first virtual network interface connected with the main intelligent network card and a second virtual network interface connected with the standby intelligent network card, the main intelligent network card is configured with a second link aggregation group, the second link aggregation group is formed by dynamic aggregation of a first physical interface connected with the switch of the main intelligent network card, the standby intelligent network card is configured with a third link aggregation group, the third link aggregation group is formed by dynamic aggregation of a second physical interface connected with the switch of the standby intelligent network card, and the main intelligent network card and the server are in communication with the first physical network interface through the first virtual network interface; the standby intelligent network card is communicated with the server through the second virtual network interface, and the standby intelligent network card is communicated with the switch through the second physical interface, and the method comprises the following steps:
The controller acquires health states of a main intelligent network card and the standby intelligent network card, determines whether to switch the main intelligent network card and the standby intelligent network card based on the health states, and sends a first switching instruction for controlling member interfaces of a first link aggregation group to switch interface states to the server when determining that the main intelligent network card and the standby intelligent network card need to be switched;
the server switches the interface state of the first virtual network interface and the interface state of the second virtual network interface in the first link aggregation group based on the first switching instruction;
the controller sends a first state adjustment instruction to the main intelligent network card and a second state adjustment instruction to the standby intelligent network card;
the main intelligent network card adjusts the LACP sending state of the first physical interface in the second link aggregation group based on the first state adjusting instruction;
and the standby intelligent network card adjusts the LACP sending state of the second physical interface in the third link aggregation group based on the second state adjusting instruction so as to complete the switching of the main intelligent network card and the standby intelligent network card.
6. The method of claim 5, wherein the step of the server switching the interface state of the first virtual network interface and the interface state of the second virtual network interface in the first link aggregation group based on the first switching instruction comprises:
and the server switches the interface state of the first virtual network interface in the first link aggregation group from an on state to an off state based on the first switching instruction, and switches the interface state of the second virtual network interface in the first link aggregation group from the off state to the on state.
7. The method of claim 5, wherein the step of the master intelligent network card adjusting the LACP packet-sending status of the first physical interface in the second link aggregation group based on the first status adjustment instruction comprises:
the main intelligent network card adjusts the LACP sending state of the first physical interface in the second link aggregation group to be a closing state based on the first state adjusting instruction;
the step of the standby intelligent network card adjusting the LACP packet sending state of the second physical interface in the third link aggregation group based on the second state adjustment instruction includes:
And the standby intelligent network card adjusts the LACP sending state of the second physical interface in the third link aggregation group to be an opening state based on the second state adjusting instruction.
8. The method according to any of claims 5-7, characterized in that the switch is configured with a fourth link aggregation group consisting of a third physical port of the switch connected to the primary intelligent network card, a fourth physical port of the switch connected to the backup intelligent network card, and a dynamic aggregation;
and setting the LACP working modes of the third physical port and the fourth physical port in the fourth link aggregation group as a passive mode.
9. The controller is characterized in that the controller is in communication connection with a server, a main intelligent network card and a standby intelligent network card are both plugged into the server and are respectively in communication connection with a switch and the controller, wherein the server is configured with a first link aggregation group which is formed by static aggregation of a first virtual network interface connected with the main intelligent network card and a second virtual network interface connected with the standby intelligent network card, the main intelligent network card is configured with a second link aggregation group which is formed by dynamic aggregation of a first physical interface connected with the switch of the main intelligent network card, the standby intelligent network card is configured with a third link aggregation group which is formed by dynamic aggregation of a second physical interface connected with the switch of the standby intelligent network card, the main intelligent network card is communicated with the server through the first virtual network interface, and the main intelligent network card is communicated with the switch through the first physical interface; the standby intelligent network card is communicated with the server through the second virtual network interface, and the standby intelligent network card is communicated with the switch through the second physical interface;
The controller comprises an acquisition module for acquiring the health states of the main intelligent network card and the standby intelligent network card;
the switching module is used for determining whether to switch the main intelligent network card and the standby intelligent network card or not based on the health state of the main intelligent network card and the health state of the standby intelligent network card; if yes, adjusting the interface states of member interfaces in the first link aggregation group, and adjusting the link aggregation control protocol LACP packet sending states of the member interfaces in the second link aggregation group and the third link aggregation group, so that the main intelligent network card is switched to a new standby intelligent network card, and the standby intelligent network card is switched to the new main intelligent network card.
10. The intelligent network card switching system is characterized by comprising a controller, a server, a main intelligent network card, a standby intelligent network card and a switch, wherein the controller is in communication connection with the server, the main intelligent network card and the standby intelligent network card are both inserted into the server and are respectively in communication connection with the switch and the controller, the server is configured with a first link aggregation group, the first link aggregation group is formed by static aggregation of a first virtual network interface connected with the main intelligent network card and a second virtual network interface connected with the standby intelligent network card, the main intelligent network card is configured with a second link aggregation group, the second link aggregation group is formed by dynamic aggregation of a first physical interface connected with the switch of the main intelligent network card, the standby intelligent network card is configured with a third link aggregation group, the third link aggregation group is formed by dynamic aggregation of a second physical interface connected with the switch of the standby intelligent network card, the main intelligent network card and the server are in communication through the first virtual network interface, and the main intelligent network card and the first physical network card are in communication through the first physical interface; the standby intelligent network card communicates with the server through the second virtual network interface, the standby intelligent network card communicates with the switch through the second physical interface,
The controller is configured to obtain health states of the main intelligent network card and the standby intelligent network card, determine whether to switch the main intelligent network card and the standby intelligent network card based on the health states, and send a first switching instruction for controlling member interfaces of a first link aggregation group to switch states to the server when determining that the main intelligent network card and the standby intelligent network card need to be switched;
the server is configured to switch, based on the first switching instruction, an interface state of the first virtual network interface and an interface state of the second virtual network interface in the first link aggregation group;
the controller is used for sending a first state adjustment instruction to the main intelligent network card and sending a second state adjustment instruction to the standby intelligent network card;
the main intelligent network card is used for adjusting the LACP packet sending state of the first physical interface in the second link aggregation group based on the first state adjustment instruction;
and the standby intelligent network card is used for adjusting the LACP packet sending state of the second physical interface in the third link aggregation group based on the second state adjustment instruction so as to complete the switching of the main intelligent network card and the standby intelligent network card.
CN202310231849.9A 2023-03-10 2023-03-10 Intelligent network card switching method, controller and system Pending CN116232862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310231849.9A CN116232862A (en) 2023-03-10 2023-03-10 Intelligent network card switching method, controller and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310231849.9A CN116232862A (en) 2023-03-10 2023-03-10 Intelligent network card switching method, controller and system

Publications (1)

Publication Number Publication Date
CN116232862A true CN116232862A (en) 2023-06-06

Family

ID=86576654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310231849.9A Pending CN116232862A (en) 2023-03-10 2023-03-10 Intelligent network card switching method, controller and system

Country Status (1)

Country Link
CN (1) CN116232862A (en)

Similar Documents

Publication Publication Date Title
US10715411B1 (en) Altering networking switch priority responsive to compute node fitness
US10693813B1 (en) Enabling and disabling links of a networking switch responsive to compute node fitness
CN110572275B (en) Network card switching method and device, server and computer readable storage medium
CN105607590B (en) Method and apparatus to provide redundancy in a process control system
US9917767B2 (en) Maintaining a communication path from a host to a storage subsystem in a network
US10530636B2 (en) Link management method, device and system in virtual machine environment
US11398976B2 (en) Method, device, and system for implementing MUX machine
CN111343019B (en) Reconnection method, reconnection device and storage medium
CN111212451A (en) Method and device for switching network transmission channel
CN110928637A (en) Load balancing method and system
US11258666B2 (en) Method, device, and system for implementing MUX machine
CN112491700A (en) Network path adjusting method, system, device, electronic equipment and storage medium
CN107948063B (en) Method for establishing aggregation link and access equipment
CN105790902B (en) Method and system for realizing redundant network card switching
EP3662623A1 (en) Method and apparatus for conditional broadcasting of network configuration data
US20070155422A1 (en) Method for controlling mobile data connection through USB Ethernet management of mobile station
CN116232862A (en) Intelligent network card switching method, controller and system
KR20150104435A (en) Method of performing transition of operation mode for a routing processor
CN115733729B (en) Communication fault processing method, system and equipment
WO2016133532A1 (en) Providing a redundant connection in response to a modified connection
CN107704354B (en) Test method for port virtualization of multi-control storage system
CN107423113B (en) Method for managing virtual equipment, out-of-band management equipment and standby virtual equipment
CN114401218A (en) Bypass forwarding method and device for data message
CN108270589B (en) Message processing method and related device
US10333837B2 (en) Virtual network switch system and method of constructing the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication