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

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

Info

Publication number
CN115225464B
CN115225464B CN202210831384.6A CN202210831384A CN115225464B CN 115225464 B CN115225464 B CN 115225464B CN 202210831384 A CN202210831384 A CN 202210831384A CN 115225464 B CN115225464 B CN 115225464B
Authority
CN
China
Prior art keywords
network
flash memory
chip
memory chip
network 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.)
Active
Application number
CN202210831384.6A
Other languages
Chinese (zh)
Other versions
CN115225464A (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

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

Abstract

The application discloses a network switching method, a device, equipment and a storage medium, which are applied to a substrate management controller chip and relate to the technical field of communication, wherein the method comprises the following steps: acquiring a 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 to be connected to a target network with normal network state; and connecting the flash memory chip and the network switch by utilizing 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 of the application, the problem of service interruption caused by network abnormality in current use of the server can be effectively solved, and when the server detects that a certain network is connected abnormally, the server can be automatically switched to other networks.

Description

Network switching method, device, equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network switching method, device, equipment, and storage medium.
Background
In the current application of cloud service, artificial intelligence, video playing software and various social software, a server is deployed in a specific data center and then connected to the Internet (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 functions of cloud service, artificial intelligence, video playing software and various social software, and if the network connection has problems, the service supported by the server cannot work normally.
In the prior art, the server is connected to the Internet through the network card, the external interface of the network card can be a network cable, an optical fiber, etc., however, when the ethernet connection of the network card used by the server is problematic, for example, the transmission media such as the network cable and the optical fiber used by the network card are damaged, or the network function of the network connection of the network card is abnormal, the server cannot be automatically switched to other networks with normal functions, thereby causing abnormal service functions supported by the server.
In summary, how to effectively solve the problem that the service is interrupted due to the network abnormality currently used by the server is currently to be solved.
Disclosure of Invention
Accordingly, the present application is directed to a network switching method, device, apparatus and storage medium, which can effectively solve the problem of service interruption caused by network abnormality in current use of 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 a 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 to be connected to a target network with normal network state;
and connecting the flash memory chip and the network switch by utilizing 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 acquiring the network state of the current network used by the network switch includes:
network register data of a network switch is read through an MDC bus to acquire the network state of the current network used by the network switch.
Optionally, when the network state is abnormal, the connecting the flash memory chip through the multiplexing chip includes:
when the network state is abnormal, a first channel and a second channel in the multiplexing chip are connected and configured to be connected with a third channel, so that the baseboard management controller chip and the flash memory chip can communicate;
correspondingly, the connecting the flash memory chip and the network switch by using the multiplexing chip comprises the following steps:
the first channel and the third channel in the multiplexing chip are connected to be configured to connect the first channel and the second channel so that the flash memory chip can communicate with 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 to connect to a target network with normal network state.
Optionally, the connecting 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, further includes:
and generating alarm information by using the monitored network with abnormal network state, and sending the alarm information to a maintenance terminal.
Optionally, before the acquiring the network state of the current network used by the network switch, the method further includes:
loading initial firmware burnt in the flash memory chip through the network switch to connect the network switch to the current network;
correspondingly, after the monitoring of whether the network state is abnormal in real time, the method further comprises:
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, comprising:
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 the multiplexing chip when the network state is abnormal, and updating the firmware of the flash memory chip so as to be connected to a target network with normal network state;
and the network switching module is used for connecting the flash memory chip and the network switch by utilizing the multiplexing chip so that the network switch loads the updated firmware in the flash memory chip and switches 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 configured to store a computer program that 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 switching method as described above.
The application is applied to a baseboard management controller chip, and firstly, the network state of the current network used by a network switch is 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 to be connected to a target network with normal network state; and finally, 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. Therefore, 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 baseboard management controller chip, after the abnormality is found, the server is connected to a target network with normal network state in a mode of updating the firmware of the flash memory chip, the automatic switching of the server network can be realized, the automatic switching to a new network is realized when the current network is abnormal, the stability and maintainability of the server are improved, and the competitiveness of company products is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a network switching method disclosed in the present application;
fig. 2 is a schematic diagram of overall connection of a network switching method disclosed in the present application;
FIG. 3 is a schematic diagram of a network switching workflow according to the present disclosure;
fig. 4 is a flowchart of a specific network switching method disclosed in the present application;
fig. 5 is a schematic diagram of an automatic switching operation connection of a network according to the present application;
fig. 6 is a schematic diagram of a network switching device according to the present disclosure;
fig. 7 is a block diagram of an electronic device according to the present disclosure.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the prior art, the server is connected to the Internet through the network card, the external interface of the network card can be a network cable, an optical fiber, etc., however, when the ethernet connection of the network card used by the server is problematic, for example, the transmission media such as the network cable and the optical fiber used by the network card are damaged, or the network function of the network connection of the network card is abnormal, the server cannot be automatically switched to other networks with normal functions, thereby causing abnormal service functions supported by the server.
Therefore, the application provides a network switching scheme which can effectively solve the problem of service interruption caused by the current network abnormality of the server.
The embodiment of the application discloses a network switching method, which is shown in fig. 1 and is applied to a baseboard management controller chip, and the method comprises the following steps:
step S11: the network state of the current network used by the network switch is obtained, and whether the network state is abnormal or not is monitored in real time.
In the embodiment of the application, the server is connected to a plurality of networks through a network SWITCH (SWITCH), the network 1 and the network 2 and … are the network n, and the network state of the current network is monitored in real time by utilizing a baseboard management controller (Baseboard Management Controller, BMC) chip.
It should be noted that, when the current network is used, the network switch in the present application loads Firmware (Firmware) of a Flash memory (Flash) chip through a Multiplexing (MUX) chip, specifically, loads initial Firmware burned in the Flash memory chip through the network switch to connect the network switch to the current network. That is, the initial firmware burned in the flash memory chip configures the network switch to connect to the current network, such as to network 1.
In the embodiment of the application, the baseboard management controller chip manages the network switch, and the management is realized through an MDC (management data clock) bus. Specifically, 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 obtained 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 normal network state.
In the embodiment of the application, as 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 the multiplexing chip. The baseboard management controller chip realizes the firmware update of the flash memory chip by controlling the channel of the multiplexing chip and loads new firmware to the network switch, so when the baseboard management controller chip monitors that the network state of the current network is abnormal, the baseboard management controller chip can switch the network by configuring the network switch, and particularly, the multiplexing chip is connected with the flash memory chip and updates the firmware of the flash memory chip.
It should be noted that, when the baseboard management controller chip controls the channel of the multiplexing chip, the firmware of the flash memory chip is updated through the serial peripheral interface (Serial Peripheral Interface, SPI) bus to connect to the target network with normal network state, that is, 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.
Step S13: and connecting the flash memory chip and the network switch by utilizing 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 completes the updating of the flash memory chip through the serial peripheral interface bus, the updated firmware realizes the function of configuring the network switch to be connected with the target network with normal network state.
In the 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 abnormal network state, and sending the alarm information to a maintenance terminal. Therefore, the original network connection abnormality can be warned to maintenance personnel.
As shown in fig. 2, which is a schematic diagram of overall connection, the server is connected to a plurality of networks through a network card, and network 1 and network 2 … are networks n. If the network currently used by the server is 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 network 2 or other networks without abnormality by configuring the network switch. And meanwhile, the baseboard management controller chip gives an alarm to maintenance personnel to carry out problem network maintenance.
Exemplary, a workflow diagram of the baseboard management controller chip is shown in fig. 3. Firstly, configuring a network switch to be connected with a network 1 by initial firmware burnt in Flash (Flash memory), then monitoring whether the current network is normal or not by a baseboard management controller chip, and if the network state is normal, continuing to use the current network by the network switch; if the network state is abnormal, the Flash Firmware (Flash Firmware) is updated with the baseboard management controller chip, and the network switch is configured to connect to the next network. When the network switch loads new flash firmware, the switching of the network is realized.
The application is applied to a baseboard management controller chip, and firstly, the network state of the current network used by a network switch is 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 to be connected to a target network with normal network state; and finally, 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. Therefore, 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 baseboard management controller chip, after the abnormality is found, the server is connected to a target network with normal network state in a mode of updating the firmware of the flash memory chip, the automatic switching of the server network can be realized, the automatic switching to a new network is realized when the current network is abnormal, the stability and maintainability of the server are improved, and the 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 network state of the current network used by the network switch is obtained, and whether the network state is abnormal or not is monitored in real time.
In the embodiment of the application, the server is connected to a plurality of networks through a network SWITCH (SWITCH), the network 1 and the network 2 and … are the network n, and the network state of the current network is monitored in real time by utilizing a baseboard management controller (Baseboard Management Controller, BMC) chip.
It should be noted that, when the current network is used, the network switch in the present application loads Firmware (Firmware) of a Flash memory (Flash) chip through a Multiplexing (MUX) chip, specifically, loads initial Firmware burned in the Flash memory chip through the network switch to connect the network switch to the current network. That is, the initial firmware burned in the flash memory chip configures the network switch to connect to the current network, such as to network 1.
In the embodiment of the application, the baseboard management controller chip manages the network switch, and the management is realized through an MDC (management data clock) bus. Specifically, 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 obtained through the network register data.
Step S22: when the network state is abnormal, the first channel and the second channel in the multiplexing chip are connected and configured to be connected with the first channel and the third channel, so that the baseboard management controller chip and the flash memory chip can communicate.
In an embodiment of the present application, as shown in fig. 5, a connection schematic diagram during network handover is shown. The network switch is configured as the network currently in use due to the initial firmware burned in the flash memory chip. At this time, the baseboard management controller chip configures the multiplexing chip to be connected to channel a and channel C, and the network switch loads the initial firmware in the flash memory chip and connects 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 baseboard management controller chip monitors the current network state of the network switch in real time through the MDC bus, when the network state is abnormal, the baseboard management controller chip configures the multiplexing chip into a channel A to be connected with a channel B, and finishes the updating of the firmware of the flash memory chip through the SPI bus, and the new firmware realizes the function of configuring the network switch to be connected with the next network, such as the original network n, and the new firmware is connected with the n+1 network. That is, the first channel and the second channel connection in the multiplexing chip are configured such that the first channel and the third channel connection.
Step S23: the first channel and the third channel in the multiplexing chip are connected to be configured to connect the first channel and the second channel so that the flash memory chip can communicate with a network switch.
In the embodiment of the application, after the firmware of the flash memory chip is upgraded, the BMC chip configures the MUX chip into the channel A connecting channel C, namely, the first channel and the third channel in the multiplexing chip are connected and configured to be connected with the first channel and the second channel, so that the network switch loads the updated firmware in the flash memory chip and is connected to an 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, specifically, the multiplexing chip is used to connect the flash memory chip and the network switch, and generate 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.
The application is applied to a baseboard management controller chip, and firstly, the network state of the current network used by a network switch is obtained, and whether the network state is abnormal or not is monitored in real time; when the network state is abnormal, a first channel and a second channel in the multiplexing chip are connected and configured to be connected with a third channel, so that the baseboard management controller chip and the flash memory chip can communicate; and finally, the first channel and the third channel in the multiplexing chip are connected to be configured to be connected with the first channel and the second channel, so that the flash memory chip can communicate with a network switch. Therefore, 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 baseboard management controller chip, after the abnormality is found, the server is connected to a target network with normal network state in a mode of updating the firmware of the flash memory chip, the automatic switching of the server network can be realized, the automatic switching to a new network is realized when the current network is abnormal, the stability and maintainability of the server are improved, and the competitiveness of company products is improved.
Correspondingly, the embodiment of the application also discloses a network switching device which is applied to the baseboard management controller chip, and the device comprises:
the state acquisition module 11 is configured to acquire a network state of a current network used by the network switch, and monitor in real time whether the network state is abnormal;
the firmware updating module 12 is configured to connect to a flash memory chip through a multiplexing chip when the network state is abnormal, and update the firmware of the flash memory chip to connect to a target network with a normal network state;
and the network switching module 13 is 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 to the target network.
In the embodiment of the application, the server is connected to a plurality of networks through a network switch, and the network 1 and the network 2 are … network n. The base plate 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 firmware of the network switch, and the multiplexing chip is used for switching SPI hosts of the flash memory chip. The baseboard management controller chip realizes firmware update of the flash memory chip and loading of new firmware by the network switch by controlling channel switching of the multiplexing chip. The baseboard management controller chip reads network register data of the network switch through the MDC bus and is used for judging whether the currently used network is normal or not.
It can be seen that, through the above scheme of the present embodiment, the present application is applied to a baseboard management controller chip, and firstly, the network state of the current network used by the network switch is obtained, and whether the network state is abnormal 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 to be connected to a target network with normal network state; and finally, 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. Therefore, 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 baseboard management controller chip, after the abnormality is found, the server is connected to a target network with normal network state in a mode of updating the firmware of the flash memory chip, the automatic switching of the server network can be realized, the automatic switching to a new network is realized when the current network is abnormal, the stability and maintainability of the server are improved, and the competitiveness of company products is improved.
In some specific embodiments, the state acquisition module 11 includes:
and the register reading unit is used for 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.
In the embodiment of the application, the baseboard management controller chip manages the network SWITCH, and the management is realized through an MDC (management data clock) bus, so that the network register data of the network SWITCH is read through the MDC bus and used for judging whether the currently used network is normal or not.
In some specific embodiments, the firmware update module 12 includes:
a first channel conversion unit, configured to connect a first channel and a second channel in a multiplexing chip to be connected to a third channel when the network state is abnormal, so that the baseboard management controller chip communicates with the flash memory chip;
accordingly, 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 be configured as the first channel and the second channel so that the flash memory chip can communicate with a network switch.
In an embodiment of the present application, the method corresponds to that shown in fig. 5. (1) The initial firmware burned in the flash memory chip configures the network switch to connect to network 1. (2) The baseboard management controller chip configures the multiplexing chip to be channel a connected to channel C, and the network switch loads firmware in the flash memory chip, connected to the network 1. (3) The baseboard management controller chip monitors the state of the network currently used by the network switch in real time through the MDC bus. If the current network abnormality is monitored, the baseboard management controller chip configures the multiplexing chip to be connected with the channel B through the channel A, and the firmware of the flash memory chip is updated through the serial peripheral interface bus, the new firmware realizes the function of configuring the network switch to be connected with the next network, such as the original network n, and the new firmware is connected with the n+1 network. (4) The baseboard management controller chip configures the multiplexing chip to be channel a connected to channel C, and the network switch loads firmware in the flash memory chip to connect to the n+1 network. (5) The baseboard management controller chip alarms the original network n connection abnormality 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 the serial peripheral interface bus so as to be connected to a target network with normal network state.
In the embodiment of the application, when the baseboard management controller chip controls the channel of the multiplexing chip, the firmware of the flash memory chip is updated through the serial peripheral interface bus to be connected to a target network with 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, the network switch generates alarm information by using the monitored network with abnormal network state, and sends the alarm information to a maintenance terminal.
In the 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 abnormal network state, and sending the alarm information to a maintenance terminal. Therefore, the original network connection abnormality can be warned to maintenance personnel.
In some specific embodiments, the network switching device is further configured to load, by the network switch, initial firmware burned in the flash memory chip before the obtaining of the network state of the current network used by the network switch, so as to connect the network switch to the current network;
correspondingly, after the monitoring of whether the network state is abnormal in real time, the method further comprises:
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 the embodiment of the application, as 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 the multiplexing chip. The baseboard management controller chip realizes the firmware update of the flash memory chip by controlling the channel of the multiplexing chip and loads new firmware to the network switch, so when the baseboard management controller chip monitors that the network state of the current network is abnormal, the baseboard management controller chip can switch the network by configuring the network switch, and particularly, the multiplexing chip is connected with the flash memory 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 application, when the network switch loads the updated firmware, the firmware is realized according to a reset control signal (RST) sent by the baseboard management controller, specifically, the multiplexing chip is used for connecting the flash memory chip and the network switch, and generating 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 exchange, the current network state is monitored in real time through the baseboard management controller chip, the server is connected to the next network through changing the network switch firmware after the abnormality is found, and the abnormal connection of the original network is alarmed to maintenance personnel. The problem of service interruption caused by the current network abnormality of the server can be effectively solved, and when the server detects that a certain network connection is abnormal, the server can be automatically switched to other networks. 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, the embodiment of the present application further discloses an electronic device, and fig. 7 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the figure is not to be considered as any limitation on the scope of use of the present application.
Fig. 7 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. 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 configured to store a computer program that is loaded and executed by the processor 21 to implement the relevant steps in the network handover method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be 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 the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and 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 temporary storage or a permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and computer programs 222, which may be Windows Server, netware, unix, linux, etc. 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 as disclosed in any of the previous embodiments.
Further, embodiments of the present application also disclose a computer readable storage medium, where the computer readable storage medium includes random access Memory (Random Access Memory, RAM), memory, read-Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, magnetic disk, or 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 switching method. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
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. The software modules may be disposed 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 is further 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 network switching method, device, equipment and storage medium provided by the application are described in detail, and specific examples are applied to illustrate the principle and implementation of the application, and the description of the above examples is only used for helping to understand the method and core idea of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A network switching method, applied to a baseboard management controller chip, comprising:
acquiring a 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, a multiplexing chip is connected with a flash memory chip, and firmware of the network switch stored in the flash memory chip is updated so that the network switch is connected to a target network with normal network state;
and connecting the flash memory chip and the network switch by utilizing the multiplexing chip so that the network switch loads the updated firmware in the flash memory chip and switches to the target network.
2. The network switching method according to claim 1, wherein the acquiring the network state of the current network used by the network switch includes:
network register data of a network switch is read through an 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 the flash memory chip through the multiplexing chip when the network state is abnormal comprises:
when the network state is abnormal, a first channel and a second channel in the multiplexing chip are connected and configured to be connected with a third channel, so that the baseboard management controller chip and the flash memory chip can communicate;
correspondingly, the connecting the flash memory chip and the network switch by using the multiplexing chip comprises the following steps:
the first channel and the third channel in the multiplexing chip are connected to be configured to connect the first channel and the second channel so that the flash memory chip can communicate with a network switch.
4. The network switching method according to claim 1, wherein updating the firmware of the network switch stored in the flash memory chip to connect the network switch to a target network in a normal network state comprises:
and updating the firmware of the network switch stored in the flash memory chip through a serial peripheral interface bus so as to enable the network switch to be connected to a target network with normal network state.
5. The network switching method according to claim 1, wherein the connecting the flash memory chip and the network switch by 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 abnormal network state, and sending the alarm information to a maintenance terminal.
6. The network switching method according to claim 1, wherein before the acquiring the network state of the current network used by the network switch, further comprising:
loading initial firmware burnt in the flash memory chip through the network switch to connect the network switch to the current network;
correspondingly, after the monitoring of whether the network state is abnormal in real time, the method further comprises:
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 with 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, applied to a baseboard management controller chip, comprising:
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 a flash memory chip through a multiplexing chip when the network state is abnormal, and updating the firmware of the network switch stored in the flash memory chip so as to enable the network switch to be connected to a target network with normal network state;
and the network switching module is used for connecting the flash memory chip and the network switch by utilizing the multiplexing chip so that the network switch loads the updated firmware in the flash memory chip and switches to the target network.
9. An electronic device comprising a processor and a memory; wherein the memory is for storing a computer program to be loaded and executed by the processor to implement the network handover method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program; wherein the computer program when executed by a processor implements the network handover method according to 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 CN115225464A (en) 2022-10-21
CN115225464B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116193202B (en) * 2022-12-05 2023-07-18 百鸟数据科技(北京)有限责任公司 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

Also Published As

Publication number Publication date
CN115225464A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
CN103324495A (en) Method and system for data center server boot management
CN110445697B (en) Video big data cloud platform equipment access service method
CN110691398B (en) Network interaction method, system, equipment and storage medium of intelligent equipment
CN115225464B (en) Network switching method, device, equipment and storage medium
CN112653577A (en) Network element management method, device and storage medium
CN102957623B (en) A kind of maintaining method of neighborhood of border gate protocol and equipment
CN110895469A (en) Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium
US11101689B2 (en) Systems and methods for providing network connection resiliency in power supply devices
US20200204382A1 (en) Method and device for controlling device activation
CN110958151B (en) Keep-alive detection method, keep-alive detection device, node, storage medium and communication system
CN107147698B (en) Remote control system, method and device of intelligent switch
CN110620798A (en) Control method, system, equipment and storage medium for FTP connection
CN110365524B (en) Mirror image upgrading method and system for server node firmware
CN104378231A (en) Control system and control method for enterprise wireless router
CN113824595B (en) Link switching control method and device and gateway equipment
CN116260827A (en) Election method, election system and related device of leader in cluster
CN114697191A (en) Resource migration method, device, equipment and storage medium
CN111338647B (en) Big data cluster management method and device
CN109542489A (en) Upgrade method, device and server
CN116527486B (en) Device independent function self-adaptive management method, device and medium
EP4160996A1 (en) Operation state switching method and device, master/standby management system, and network system
CN116367204B (en) User equipment service processing method, electronic equipment, storage medium and system
CN110955210B (en) AGV scheduling method, device and system
CN116260719A (en) Transparent bridge firmware upgrading method, device and medium
CN106789862B (en) Data synchronization method and device

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