CN115225464A - Network switching method, device, equipment and storage medium - Google Patents

Network switching method, device, equipment and storage medium Download PDF

Info

Publication number
CN115225464A
CN115225464A CN202210831384.6A CN202210831384A CN115225464A CN 115225464 A CN115225464 A CN 115225464A CN 202210831384 A CN202210831384 A CN 202210831384A CN 115225464 A CN115225464 A CN 115225464A
Authority
CN
China
Prior art keywords
network
flash memory
chip
memory chip
switch
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.)
Granted
Application number
CN202210831384.6A
Other languages
Chinese (zh)
Other versions
CN115225464B (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210831384.6A priority Critical patent/CN115225464B/en
Publication of CN115225464A publication Critical patent/CN115225464A/en
Application granted granted Critical
Publication of CN115225464B publication Critical patent/CN115225464B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a network switching method, a device, equipment and a storage medium, which are applied to a baseboard management controller chip and relate to the technical field of communication, wherein the method comprises the following steps: acquiring the network state of a current network used by a network switch, and monitoring whether the network state is abnormal in real time; when the network state is abnormal, connecting a flash memory chip through a multiplexing chip, and updating the firmware of the flash memory chip so as to connect to a target network with a normal network state; and connecting the flash memory chip and the network switch by using the multiplexing chip so that the network switch loads the updated firmware in the flash memory chip and switches to the target network. By the technical scheme, the problem of service interruption caused by the abnormality of the network currently used by the server can be effectively solved, and when the server detects that the connection of a certain network is abnormal, the server can be automatically switched to other networks.

Description

Network switching method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network switching method, apparatus, device, and storage medium.
Background
In the current applications of cloud services, artificial intelligence, video playing software and various social software, servers are deployed in a specific data center and then connected to the Internet through a network, so that data generated in various application scenes of people are processed, and the use requirements of users are met. The stability of network connection between the server and the Internet is the basis of normal application functions of cloud service, artificial intelligence, video playing software and various social software, and if the network connection is in a problem, the service supported by the server cannot work normally.
In the prior art, a server is connected to the Internet through a network card, and an external interface of the network card may be a network cable, an optical fiber, or the like, however, when the ethernet connection of the network card used by the server is in a problem, for example, transmission media such as the network cable, the optical fiber, and the like used by the network card are damaged, or a network function connected by the network card is abnormal, the server cannot be automatically switched to other networks with normal functions, so that a service function supported by the server is abnormal.
In summary, how to effectively solve the problem of service interruption caused by the network abnormality currently used by the server is a problem to be solved at present.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a network switching method, device, apparatus and storage medium, which can effectively solve service interruption caused by network abnormality currently used by a server. The specific scheme is as follows:
in a first aspect, the present application discloses a network switching method applied to a baseboard management controller chip, including:
acquiring the network state of a current network used by a network switch, and monitoring whether the network state is abnormal in real time;
when the network state is abnormal, connecting a flash memory chip through a multiplexing chip, and updating the firmware of the flash memory chip so as to connect to a target network with a normal network state;
and connecting the flash memory chip and the network switch by using the multiplexing chip so that the network switch loads the updated firmware in the flash memory chip and switches to the target network.
Optionally, the obtaining the network state of the current network used by the network switch includes:
and reading the network register data of the network switch through the MDC bus to acquire the network state of the current network used by the network switch.
Optionally, when the network status is abnormal, the flash memory chip is connected through a multiplexing chip, including:
when the network state is abnormal, a first channel and a second channel in a multiplexing chip are connected and configured to be connected with a first channel and a third channel, so that the substrate management controller chip is communicated with the flash memory chip;
correspondingly, the connecting the flash memory chip and the network switch by using the multiplexing chip includes:
and connecting the first channel and the third channel in the multiplexing chip to configure that the first channel is connected with the second channel so as to facilitate the communication between the flash memory chip and a network switch.
Optionally, the updating the firmware of the flash memory chip to connect to a target network with a normal network state includes:
and updating the firmware of the flash memory chip through a serial peripheral interface bus so as to connect to a target network with a normal network state.
Optionally, the connecting the flash memory chip and the network switch by using the multiplexing chip so that the network switch loads the updated firmware in the flash memory chip and switches to the target network further includes:
and generating alarm information by using the monitored network with the abnormal network state, and sending the alarm information to a maintenance terminal.
Optionally, before acquiring the network state of the current network used by the network switch, the method further includes:
loading the initial firmware burned in the flash memory chip through the network switch so as to connect the network switch to the current network;
correspondingly, after the real-time monitoring whether the network state is abnormal, the method further includes:
if the network state is normal, the connection between the network switch and the current network is maintained, so that the network switch continues to use the current network.
Optionally, the connecting the flash memory chip and the network switch by using the multiplexing chip so that the network switch loads the updated firmware in the flash memory chip and switches to the target network includes:
connecting the flash memory chip and the network switch by using the multiplexing chip and generating a reset control signal;
and when the network switch receives the reset control signal, loading the updated firmware in the flash memory chip and switching to the target network.
In a second aspect, the present application discloses a network switching device applied to a baseboard management controller chip, including:
the state acquisition module is used for acquiring the network state of the current network used by the network switch and monitoring whether the network state is abnormal in real time;
the firmware updating module is used for connecting the flash memory chip through a multiplexing chip when the network state is abnormal, and updating the firmware of the flash memory chip so as to connect to a target network with a normal network state;
and the network switching module is used for connecting the flash memory chip and the network switch by using the multiplexing chip so that the network switch can load the updated firmware in the flash memory chip and switch to the target network.
In a third aspect, the present application discloses an electronic device comprising a processor and a memory; wherein the memory is used for storing a computer program which is loaded and executed by the processor to implement the network switching method as described above.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements a network handover method as previously described.
The method is applied to a substrate management controller chip, and comprises the steps of firstly obtaining the network state of a current network used by a network switch, and monitoring whether the network state is abnormal or not in real time; when the network state is abnormal, connecting a flash memory chip through a multiplexing chip, and updating the firmware of the flash memory chip so as to connect to a target network with a normal network state; and finally, the multiplexing chip is used for connecting the flash memory chip and the network switch, so that the network switch can load the updated firmware in the flash memory chip and switch to the target network. The server can be connected to a plurality of networks through the network switch, the current network state is monitored in real time through the substrate management controller chip, the server is connected to a target network with a normal network state in a mode of updating the firmware of the flash memory chip after abnormality is found, automatic switching of the server network can be achieved, the server is automatically switched to a new network when the current network is abnormal, stability and maintainability of the server are improved, and therefore competitiveness of company products is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a network handover method disclosed in the present application;
fig. 2 is a schematic diagram illustrating an overall connection of a network handover method disclosed in the present application;
fig. 3 is a schematic diagram of a network handover workflow disclosed in the present application;
fig. 4 is a flowchart of a specific network handover method disclosed in the present application;
FIG. 5 is a schematic diagram of an automatic network switching operation disclosed in the present application;
fig. 6 is a schematic structural diagram of a network switching apparatus disclosed in the present application;
fig. 7 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, a server is connected to the Internet through a network card, and an external interface of the network card may be a network cable, an optical fiber, or the like, however, when the ethernet connection of the network card used by the server is in a problem, for example, transmission media such as the network cable, the optical fiber, and the like used by the network card are damaged, or a network function connected by the network card is abnormal, the server cannot be automatically switched to other networks with normal functions, so that a service function supported by the server is abnormal.
Therefore, the network switching scheme is provided, and service interruption caused by network abnormality currently used by the server can be effectively solved.
The embodiment of the invention discloses a network switching method, which is shown in figure 1 and is applied to a substrate management controller chip, and the method comprises the following steps:
step S11: the method comprises the steps of obtaining the network state of a current network used by a network switch, and monitoring whether the network state is abnormal or not in real time.
In the embodiment of the application, the server is connected to a plurality of networks, namely a network 1 and a network 2, 8230, through a network SWITCH (SWITCH), and a Baseboard Management Controller (BMC) chip is used for monitoring the network state of the current network in real time.
It should be noted that, when the network switch uses the current network, the network switch loads the Firmware (Firmware) of the Flash memory (Flash) chip through the Multiplexing (MUX) chip, specifically, the network switch loads the initial Firmware burned in the Flash memory chip, so that the network switch is connected to the current network. That is, the initial firmware burned in the flash chip configures the network switch to connect to the current network, such as network 1.
In the embodiment of the present application, the baseboard management controller chip manages the network switch, and these managements are implemented through an MDC (management data clock) bus. Specifically, the network register data of the network switch is read through the MDC bus, and the network state of the current network used by the network switch can be acquired through the network register data.
Step S12: when the network state is abnormal, the multiplexing chip is connected with the flash memory chip, and the firmware of the flash memory chip is updated to be connected to a target network with a normal network state.
In the embodiment of the application, when the network state is normal, the network switch continuously uses the current network, and the multiplexing chip is kept connected with the flash memory chip and the network switch. The substrate management controller chip controls the channels of the multiplexing chip to update the firmware of the flash memory chip and load new firmware on the network switch, so that when the substrate management controller chip monitors that the current network state of the network is abnormal, the substrate management controller chip switches the network by configuring the network switch, specifically, the substrate management controller chip is connected with the flash memory chip through the multiplexing chip and updates the firmware of the flash memory chip.
It should be noted that, when controlling the channels of the multiplexing chip, the bmc chip updates the firmware of the flash memory chip through a Serial Peripheral Interface (SPI) bus to connect to a target network in a normal network state, that is, the multiplexing chip is used to switch an SPI host of the flash memory chip, and the flash memory chip is used to store the firmware of the network switch.
Step S13: and connecting the flash memory chip and the network switch by using the multiplexing chip so that the network switch loads the updated firmware in the flash memory chip and switches to the target network.
In the embodiment of the application, after the substrate management controller chip finishes updating the flash memory chip through the serial peripheral interface bus, the updated firmware realizes the function of configuring the network switch into a target network with a normal connection network state.
In an embodiment of the present application, after the multiplexing chip is used to connect the flash memory chip and the network switch, so that the network switch loads the updated firmware in the flash memory chip and switches to the target network, the method further includes: and generating alarm information by using the monitored network with the abnormal network state, and sending the alarm information to a maintenance terminal. Therefore, the original network connection abnormity can be alarmed to maintenance personnel.
As shown in FIG. 2, the server is connected to a plurality of networks, network 1, network 2 \ 8230and network n, through the network card. If the network currently used by the server is the network 1, when the baseboard management controller chip of the server detects that the network 1 has a problem, the baseboard management controller chip can switch the network to the network 2 or other networks without abnormality through configuring a network switch. And simultaneously, the substrate management controller chip gives an alarm to maintenance personnel to carry out problem network maintenance.
For example, fig. 3 is a schematic diagram illustrating a workflow of a bmc chip. Firstly, initial firmware burned in Flash configures a network switch as a connection network 1, then a substrate management controller chip monitors whether a current network is normal, and if the network state is normal, the network switch continues to use the current network; and if the network state is abnormal, updating Flash Firmware (Flash Firmware) by using a baseboard management controller chip, and configuring the network switch to be connected to the next network. When the network switch loads the new flash firmware, the switching of the network is realized.
The method is applied to a substrate management controller chip, and comprises the steps of firstly obtaining the network state of a current network used by a network switch, and monitoring whether the network state is abnormal or not in real time; when the network state is abnormal, connecting a flash memory chip through a multiplexing chip, and updating the firmware of the flash memory chip so as to connect to a target network with a normal network state; and finally, the multiplexing chip is used for connecting the flash memory chip and the network switch, so that the network switch can load the updated firmware in the flash memory chip and switch to the target network. The server can be connected to a plurality of networks through the network switch, the current network state is monitored in real time through the substrate management controller chip, the server is connected to a target network with a normal network state in a mode of updating the firmware of the flash memory chip after abnormality is found, automatic switching of the server network can be achieved, the server is automatically switched to a new network when the current network is abnormal, stability and maintainability of the server are improved, and therefore competitiveness of company products is improved.
The embodiment of the application discloses a specific network switching method, which is shown in fig. 4 and comprises the following steps:
step S21: the method comprises the steps of obtaining the network state of a current network used by a network switch, and monitoring whether the network state is abnormal or not in real time.
In the embodiment of the application, the server is connected to a plurality of networks, namely a network 1 and a network 2, 8230, through a network SWITCH (SWITCH), and a Baseboard Management Controller (BMC) chip is used for monitoring the network state of the current network in real time.
It should be noted that, in the present application, when the network switch uses the current network, the Firmware (Firmware) of the Flash memory (Flash) chip is loaded through the Multiplexing (MUX) chip, specifically, the initial Firmware burned in the Flash memory chip is loaded through the network switch, so that the network switch is connected to the current network. That is, the initial firmware burned in the flash chip configures the network switch to connect to the current network, such as network 1.
In the embodiment of the present application, the baseboard management controller chip manages the network switch, and these managements are implemented through an MDC (management data clock) bus. Specifically, the network register data of the network switch is read through the MDC bus, and the network state of the current network used by the network switch can be acquired through the network register data.
Step S22: when the network state is abnormal, a first channel and a second channel in a multiplexing chip are connected and configured to be connected with a first channel and a third channel, so that the substrate management controller chip can communicate with the flash memory chip.
In the embodiment of the present application, fig. 5 is a schematic connection diagram during network handover. The network switch is configured as the currently used network due to the initial firmware burned in the flash memory chip. At this time, the baseboard management controller chip configures the multiplexing chip as a channel A to connect to a channel C, and the network switch loads the initial firmware in the flash memory chip to connect to the current network. That is, when the current network is used, if the network state is normal, the first channel and the second channel in the multiplexing chip are connected.
In the embodiment of the application, the substrate management controller chip monitors the state of a current network used by the network switch in real time through an MDC bus, when the network state is abnormal, the substrate management controller chip configures the multiplexing chip into a channel A to connect with a channel B, and finishes the upgrading of the firmware of the flash memory chip through the SPI bus, and the new firmware realizes the function of configuring the network switch into a network to be connected with the next network, such as the original network n, and then is connected to an n +1 network. That is, the first channel and the second channel in the multiplexing chip are connected and configured to be connected.
Step S23: and connecting the first channel and the third channel in the multiplexing chip to configure that the first channel is connected with the second channel so as to facilitate the communication between the flash memory chip and a network switch.
In this embodiment, after the firmware of the flash memory chip is upgraded, the BMC chip configures the MUX chip as the channel a to connect with the channel C, that is, the first channel and the third channel in the multiplexing chip are connected and configured as the first channel and the second channel to connect, so that the network switch loads the updated firmware in the flash memory chip and connects to the n +1 network.
It should be noted that, when the network switch loads the updated firmware, the network switch needs to be implemented according to a reset control signal (RST) sent by the baseboard management controller, and specifically, the multiplexing chip is used to connect the flash memory chip and the network switch and generate the reset control signal; and when the network switch receives the reset control signal, loading the updated firmware in the flash memory chip and switching to the target network.
The method is applied to a substrate management controller chip, and comprises the steps of firstly obtaining the network state of a current network used by a network switch, and monitoring whether the network state is abnormal or not in real time; when the network state is abnormal, a first channel and a second channel in a multiplexing chip are connected and configured to be connected with a first channel and a third channel, so that the substrate management controller chip is communicated with the flash memory chip; and finally, connecting the first channel and the third channel in the multiplexing chip to configure that the first channel is connected with the second channel, so that the flash memory chip can be communicated with a network switch. The server can be connected to a plurality of networks through the network switch, the current network state is monitored in real time through the substrate management controller chip, the server is connected to a target network with a normal network state in a mode of updating the firmware of the flash memory chip after abnormality is found, automatic switching of the server network can be achieved, the server is automatically switched to a new network when the current network is abnormal, stability and maintainability of the server are improved, and therefore competitiveness of company products is improved.
Correspondingly, an embodiment of the present application further discloses a network switching device, which is applied to a baseboard management controller chip, and as shown in fig. 6, the network switching device includes:
a state obtaining module 11, configured to obtain a network state of a current network used by a network switch, and monitor whether the network state is abnormal in real time;
a firmware update module 12, configured to connect a flash memory chip through a multiplexing chip when the network status is abnormal, and update the firmware of the flash memory chip to connect to a target network with a normal network status;
and a network switching module 13, configured to connect the flash memory chip and the network switch by using the multiplexing chip, so that the network switch loads the updated firmware in the flash memory chip and switches the firmware to the target network.
In the embodiment of the application, the server is connected to a plurality of networks, namely network 1, network 2, 8230and network n through the network switch. The substrate management controller chip and the network switch are connected to the flash memory chip through the multiplexing chip, the flash memory chip is used for storing the firmware of the network switch, and the multiplexing chip is used for switching the SPI host of the flash memory chip. The baseboard management controller chip realizes the firmware update of the flash memory chip and the loading of the network switch to new firmware by controlling the channel switching of the multiplexing chip. And the substrate management controller chip reads the network register data of the network switch through the MDC bus and is used for judging whether the currently used network is normal.
Therefore, the scheme of the embodiment is applied to the baseboard management controller chip, and the network state of the current network used by the network switch is firstly obtained, and whether the network state is abnormal or not is monitored in real time; when the network state is abnormal, connecting a flash memory chip through a multiplexing chip, and updating the firmware of the flash memory chip so as to connect to a target network with a normal network state; and finally, the multiplexing chip is utilized to connect the flash memory chip and the network switch, so that the network switch can load the updated firmware in the flash memory chip and switch to the target network. The server can be connected to a plurality of networks through the network switch, the current network state is monitored in real time through the substrate management controller chip, the server is connected to a target network with a normal network state in a mode of updating the firmware of the flash memory chip after abnormality is found, automatic switching of the server network can be achieved, the server is automatically switched to a new network when the current network is abnormal, stability and maintainability of the server are improved, and therefore competitiveness of company products is improved.
In some specific embodiments, the state obtaining module 11 includes:
and the register reading unit is used for reading the network register data of the network switch through the MDC bus so as to acquire the network state of the current network used by the network switch.
In the embodiment of the present application, the bmc chip manages the network SWITCH, and these managements are implemented by an MDC (management data clock) bus, so that the MDC bus reads the network register data of the network SWITCH to determine whether the currently used network is normal.
In some specific embodiments, the firmware update module 12 includes:
the first channel conversion unit is used for configuring the connection between a first channel and a second channel in a multiplexing chip as the connection between the first channel and a third channel when the network state is abnormal, so that the substrate management controller chip can communicate with the flash memory chip;
correspondingly, the network switching module 13 includes:
and the second channel conversion unit is used for connecting the first channel and the third channel in the multiplexing chip to configure that the first channel is connected with the second channel, so that the flash memory chip can communicate with a network switch.
In the embodiment of the present application, it corresponds to fig. 5. (1) The initial firmware burned in the flash chip configures the network switch to connect to network 1. (2) The baseboard management controller chip configures the multiplexing chip as a channel A to connect to a channel C, and the network switch loads firmware in the flash memory chip to connect to the network 1. (3) The baseboard management controller chip monitors the state of the currently used network of the network switch in real time through the MDC bus. If the current network is monitored to be abnormal, the substrate management controller chip configures the multiplexing chip into a channel A to be connected with a channel B, the upgrading of the firmware of the flash memory chip is completed through a serial peripheral interface bus, the new firmware realizes the function of configuring the network switch to be connected with the next network, for example, the original network n is connected, and the new firmware is connected to the n +1 network. (4) The substrate management controller chip configures the multiplexing chip into a channel A to connect with a channel C, and the network switch loads the firmware in the flash memory chip to connect to the n +1 network. (5) And the substrate management controller chip alarms the original network n connection abnormity to maintenance personnel.
In some specific embodiments, the firmware update module 12 includes:
and the firmware updating unit is used for updating the firmware of the flash memory chip through a serial peripheral interface bus so as to be connected to a target network with a normal network state.
In the embodiment of the application, when the baseboard management controller chip controls the channels of the multiplexing chip, the firmware of the flash memory chip is updated through the serial peripheral interface bus so as to be connected to a target network with a normal network state, namely, the multiplexing chip is used for switching the SPI host of the flash memory chip, and the flash memory chip is used for storing the firmware of the network switch.
In some specific embodiments, the network switching device is further configured to connect the flash memory chip and the network switch by using the multiplexing chip, so that after the network switch loads the updated firmware in the flash memory chip and switches to the target network, alarm information is generated by using the monitored network with the abnormal network state, and the alarm information is sent to the maintenance terminal.
In this embodiment of the application, after the multiplexing chip is used to connect the flash memory chip and the network switch, so that the network switch loads the updated firmware in the flash memory chip and switches to the target network, the method further includes: and generating alarm information by using the monitored network with the abnormal network state, and sending the alarm information to a maintenance terminal. Therefore, the original network connection abnormity can be alarmed to maintenance personnel.
In some specific embodiments, the network switching apparatus is further configured to load, by the network switch, the initial firmware burned in the flash memory chip before the network state of the current network used by the network switch is obtained, so as to connect the network switch to the current network;
correspondingly, after the real-time monitoring whether the network state is abnormal, the method further includes:
if the network state is normal, the connection between the network switch and the current network is maintained, so that the network switch continues to use the current network.
In this embodiment, in the embodiment of the present application, since the network switch continuously uses the current network when the network state is normal, the flash memory chip and the network switch are kept connected by using the multiplexing chip. The substrate management controller chip updates the firmware of the flash memory chip and loads new firmware on the network switch by controlling the channels of the multiplexing chip, so when the substrate management controller chip monitors that the current network state of the network is abnormal, the substrate management controller chip switches the network by configuring the network switch, and particularly, the substrate management controller chip is connected with the flash memory chip through the multiplexing chip and updates the firmware of the flash memory chip.
In some specific embodiments, the network switching module 13 includes:
a reset control signal generating unit for connecting the flash memory chip and the network switch by using the multiplexing chip and generating a reset control signal;
and the target network switching unit is used for loading the updated firmware in the flash memory chip and switching to the target network when the network switch receives the reset control signal.
In the embodiment of the present application, when the network switch loads the updated firmware, the firmware needs to be loaded according to a reset control signal (RST) sent by the baseboard management controller, and specifically, the multiplexing chip is used to connect the flash memory chip and the network switch and generate the reset control signal; and when the network switch receives the reset control signal, loading the updated firmware in the flash memory chip and switching to the target network.
In the embodiment of the application, the server is connected to a plurality of networks through network switching, the current network state is monitored in real time through the substrate management controller chip, the server is connected to the next network through a mode of changing the firmware of the network switch after the abnormality is found, and the original network connection abnormality is alarmed to maintenance personnel. The problem of service interruption caused by the abnormality of the network currently used by the server can be effectively solved, and when the server detects that the connection of a certain network is abnormal, the server can be automatically switched to other networks. The automatic switching of the server network is realized, and the server network is automatically switched to a new network when the current network is abnormal, so that the stability and maintainability of the server are improved, and the competitiveness of company products is improved.
Further, an electronic device is disclosed in the embodiments of the present application, and fig. 7 is a block diagram of an electronic device 20 according to an exemplary embodiment, which should not be construed as limiting the scope of the application.
Fig. 7 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein, the memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the network switching method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically a server.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the memory 22 is used as a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk, an optical disk, or the like, the resources stored thereon may include an operating system 221, a computer program 222, data 223, and the like, and the data 223 may include various data. The storage means may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, and may be Windows Server, netware, unix, linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the network switching method performed by the electronic device 20 disclosed in any of the foregoing embodiments.
Further, embodiments of the present application disclose a computer-readable storage medium, where the computer-readable storage medium includes a Random Access Memory (RAM), a Memory, a Read-Only Memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a magnetic disk, or an optical disk or any other form of storage medium known in the art. Wherein the computer program when executed by a processor implements the aforementioned network handover method. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a network switch or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The network switching method, apparatus, device and storage medium provided by the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A network switching method is applied to a baseboard management controller chip and comprises the following steps:
acquiring the network state of a current network used by a network switch, and monitoring whether the network state is abnormal in real time;
when the network state is abnormal, connecting a flash memory chip through a multiplexing chip, and updating the firmware of the flash memory chip so as to connect to a target network with a normal network state;
and connecting the flash memory chip and the network switch by using the multiplexing chip so that the network switch can load the updated firmware in the flash memory chip and switch to the target network.
2. The network switching method according to claim 1, wherein the obtaining the network status of the current network used by the network switch comprises:
and reading the network register data of the network switch through the MDC bus to acquire the network state of the current network used by the network switch.
3. The network switching method according to claim 1, wherein the connecting a flash memory chip through a multiplexing chip when the network state is abnormal comprises:
when the network state is abnormal, a first channel and a second channel in a multiplexing chip are connected and configured to be connected with a first channel and a third channel, so that the substrate management controller chip is communicated with the flash memory chip;
correspondingly, the connecting the flash memory chip and the network switch by using the multiplexing chip includes:
and connecting the first channel and the third channel in the multiplexing chip to configure that the first channel is connected with the second channel so as to facilitate the communication between the flash memory chip and a network switch.
4. The network switching method according to claim 1, wherein the updating the firmware of the flash memory chip to connect to the target network with a normal network status comprises:
and updating the firmware of the flash memory chip through a serial peripheral interface bus so as to connect to a target network with a normal network state.
5. The network switching method of claim 1, wherein the connecting the flash memory chip and the network switch by using the multiplexing chip so that the network switch loads the updated firmware in the flash memory chip and switches to the target network further comprises:
and generating alarm information by using the monitored network with the abnormal network state, and sending the alarm information to a maintenance terminal.
6. The network switching method according to claim 1, wherein before acquiring the network status of the current network used by the network switch, the method further comprises:
loading the initial firmware burned in the flash memory chip through the network switch so as to connect the network switch to the current network;
correspondingly, after the real-time monitoring whether the network state is abnormal, the method further includes:
if the network state is normal, the connection between the network switch and the current network is maintained, so that the network switch continues to use the current network.
7. The network switching method according to any one of claims 1 to 6, wherein the connecting the flash memory chip and the network switch by using the multiplexing chip so that the network switch loads the updated firmware in the flash memory chip and switches to the target network comprises:
connecting the flash memory chip and the network switch by using the multiplexing chip and generating a reset control signal;
and when the network switch receives the reset control signal, loading the updated firmware in the flash memory chip and switching to the target network.
8. A network switching device is applied to a baseboard management controller chip and comprises:
the state acquisition module is used for acquiring the network state of the current network used by the network switch and monitoring whether the network state is abnormal in real time;
the firmware updating module is used for connecting the flash memory chip through a multiplexing chip when the network state is abnormal, and updating the firmware of the flash memory chip so as to connect to a target network with a normal network state;
and the network switching module is used for connecting the flash memory chip and the network switch by using the multiplexing chip so that the network switch can load the updated firmware in the flash memory chip and switch to the target network.
9. An electronic device, comprising a processor and a memory; wherein the memory is for storing a computer program that is loaded and executed by the processor to implement the network handover method of any of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the network handover method of any of claims 1 to 7.
CN202210831384.6A 2022-07-15 2022-07-15 Network switching method, device, equipment and storage medium Active CN115225464B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210831384.6A CN115225464B (en) 2022-07-15 2022-07-15 Network switching method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210831384.6A CN115225464B (en) 2022-07-15 2022-07-15 Network switching method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115225464A true CN115225464A (en) 2022-10-21
CN115225464B CN115225464B (en) 2023-08-15

Family

ID=83611211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210831384.6A Active CN115225464B (en) 2022-07-15 2022-07-15 Network switching method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115225464B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116193202A (en) * 2022-12-05 2023-05-30 百鸟数据科技(北京)有限责任公司 Multichannel video observation system for field observation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532768A (en) * 2013-10-28 2014-01-22 上海赛治信息技术有限公司 System and method for realizing quick start of network switch
CN113727403A (en) * 2021-09-08 2021-11-30 北京天融信网络安全技术有限公司 Network switching method and device, electronic equipment and readable storage medium
CN114374627A (en) * 2021-12-29 2022-04-19 苏州浪潮智能科技有限公司 Method, device and system for restarting baseboard management controller and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532768A (en) * 2013-10-28 2014-01-22 上海赛治信息技术有限公司 System and method for realizing quick start of network switch
CN113727403A (en) * 2021-09-08 2021-11-30 北京天融信网络安全技术有限公司 Network switching method and device, electronic equipment and readable storage medium
CN114374627A (en) * 2021-12-29 2022-04-19 苏州浪潮智能科技有限公司 Method, device and system for restarting baseboard management controller and server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116193202A (en) * 2022-12-05 2023-05-30 百鸟数据科技(北京)有限责任公司 Multichannel video observation system for field observation
CN116193202B (en) * 2022-12-05 2023-07-18 百鸟数据科技(北京)有限责任公司 Multichannel video observation system for field observation

Also Published As

Publication number Publication date
CN115225464B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
CN105049502B (en) The method and apparatus that device software updates in a kind of cloud network management system
CN103324495A (en) Method and system for data center server boot management
CN107404509B (en) Distributed service configuration system and information management method
EP3635547B1 (en) Systems and methods for preventing service disruption during software updates
CN113742031A (en) Node state information acquisition method and device, electronic equipment and readable storage medium
CN112653577A (en) Network element management method, device and storage medium
CN110895469A (en) Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium
US20200204382A1 (en) Method and device for controlling device activation
CN115225464B (en) Network switching method, device, equipment and storage medium
CN110391940A (en) Response method, device, system, equipment and the storage medium of address of service
CN113630443A (en) Service management method, device, server and medium
CN115525352A (en) Server off-peak power-on method, device, equipment and storage medium
CN114697191A (en) Resource migration method, device, equipment and storage medium
CN104378231A (en) Control system and control method for enterprise wireless router
CN115550424B (en) Data caching method, device, equipment and storage medium
CN113824595B (en) Link switching control method and device and gateway equipment
CN109542489A (en) Upgrade method, device and server
CN114286431A (en) Method and device for starting low power consumption mode, storage medium and electronic device
CN114840263A (en) Network card management method, device, equipment and storage medium
CN116527486B (en) Device independent function self-adaptive management method, device and medium
CN115695169B (en) Configuration information issuing method, device and storage medium
CN110417593A (en) A kind of device management method and device
CN112486583A (en) System, method, apparatus and storage medium for configuring parameters

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant