CN115225464A - A kind of network switching method, device, equipment and storage medium - Google Patents
A kind of network switching method, device, equipment and storage medium Download PDFInfo
- 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
- chip
- flash memory
- switch
- memory chip
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring 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 present application discloses a network switching method, device, equipment and storage medium, which are applied to a baseboard management controller chip, and relate to the field of communication technologies. The method includes: acquiring the network status of a current network used by a network switch, and monitoring all Whether the network state is abnormal; when the network state is abnormal, connect the flash memory chip through the multiplexing chip, and update the firmware of the flash memory chip to connect to the target network with a normal network state; use the The multiplexing chip connects 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 technical solution of the present application can effectively solve the problem of service interruption caused by the abnormal network currently used by the server, and when the server detects that a certain network connection is abnormal, it can automatically switch to other networks.
Description
技术领域technical field
本发明涉及通信技术领域,特别涉及一种网络切换方法、装置、设备及存储介质。The present invention relates to the field of communication technologies, and in particular, to a network switching method, apparatus, device and storage medium.
背景技术Background technique
在当前的云服务、人工智能、视频播放软件及各种社交软件的应用中,服务器都是部署在特定的数据中心,然后通过网络连接到Internet(互联网),从而对人们各种应用场景下产生的数据进行处理,满足用户的使用需求。服务器与Internet之间网络连接的稳定性是云服务、人工智能、视频播放软件及各种社交软件这些应用功能正常的基础,如果网络连接出现问题,则服务器支撑的业务无法正常工作。In the current application of cloud services, artificial intelligence, video playback software and various social software, servers are deployed in specific data centers, and then connected to the Internet (Internet) through the network, so that people can be generated in various application scenarios. The data is processed to meet the needs of users. The stability of the network connection between the server and the Internet is the basis for the normal functions of applications such as cloud services, artificial intelligence, video playback software, and various social software. If there is a problem with the network connection, the services supported by the server cannot work normally.
现有的技术方案中,服务器通过网卡连接到Internet,网卡的对外接口可以是网线、光纤等,然而当服务器使用的网卡的以太网连接出现问题时,比如该网卡使用的网线、光纤等传输介质损坏,或者该网卡连接的网络功能异常,则服务器无法自动切换到其它功能正常的网络,从而造成该服务器支撑的业务功能异常。In the existing technical solution, the server is connected to the Internet through a network card, and the external interface of the network card can be a network cable, an optical fiber, etc. However, when there is a problem with the Ethernet connection of the network card used by the server, such as the network cable used by the network card, optical fibers and other transmission media. If the network card is damaged, or the network function connected to the network card is abnormal, the server cannot automatically switch to another network with normal functions, resulting in abnormal business functions supported by the server.
综上,如何有效解决因服务器当前使用的网络异常造成业务中断是目前有待解决的问题。To sum up, how to effectively solve the business interruption caused by the abnormal network currently used by the server is a problem to be solved at present.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明的目的在于提供一种网络切换方法、装置、设备及存储介质,能够有效解决因服务器当前使用的网络异常造成业务中断。其具体方案如下:In view of this, the purpose of the present invention is to provide a network switching method, device, device and storage medium, which can effectively solve the service interruption caused by the abnormality of the network currently used by the server. Its specific plan is as follows:
第一方面,本申请公开了一种网络切换方法,应用于基板管理控制器芯片,包括:In a first aspect, the present application discloses a network switching method, which is applied to a baseboard management controller chip, including:
获取网络交换机所使用的当前网络的网络状态,并实时监控所述网络状态是否出现异常;Obtain the network status of the current network used by the network switch, and monitor in real time whether the network status is abnormal;
当所述网络状态出现异常时,通过多路复用芯片连接闪存芯片,并将所述闪存芯片的固件进行更新,以连接到网络状态正常的目标网络;When the network state is abnormal, connect the flash memory chip through the multiplexing chip, and update the firmware of the flash memory chip to connect to the target network with a normal network state;
利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,以便所述网络交换机加载所述闪存芯片中更新后的固件并切换至所述目标网络。The flash memory chip and the network switch are connected by 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 status of the current network used by the network switch includes:
通过MDC总线读取网络交换机的网络寄存器数据,以获取所述网络交换机所使用的当前网络的网络状态。The network register data of the network switch is read through the MDC bus to obtain the network state of the current network used by the network switch.
可选的,所述当所述网络状态出现异常时,通过多路复用芯片连接闪存芯片,包括:Optionally, when the network state is abnormal, connecting the flash memory chip through a multiplexing chip includes:
当所述网络状态出现异常时,将多路复用芯片中的第一通道与第二通道连接配置为所述第一通道与第三通道连接,以便所述基板管理控制器芯片与所述闪存芯片进行通信;When the network state is abnormal, the connection between the first channel and the second channel in the multiplexing chip is configured as the connection between the first channel and the third channel, so that the baseboard management controller chip and the flash memory are connected chip to communicate;
相应的,所述利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,包括:Correspondingly, the using the multiplexing chip to connect the flash memory chip and the network switch includes:
将所述多路复用芯片中的所述第一通道与所述第三通道连接配置为所述第一通道与所述第二通道连接,以便所述闪存芯片与网络交换机进行通信。The first channel and the third channel connection in the multiplexing chip are configured as the first channel and the second channel connection, so that the flash memory chip communicates with the network switch.
可选的,所述将所述闪存芯片的固件进行更新,以连接到网络状态正常的目标网络,包括:Optionally, updating the firmware of the flash memory chip to connect to a target network with a normal network state includes:
通过串行外设接口总线将所述闪存芯片的固件进行更新,以连接到网络状态正常的目标网络。The firmware of the flash memory chip is updated through the serial peripheral interface bus to connect to the target network with a normal network state.
可选的,所述利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,以便所述网络交换机加载所述闪存芯片中更新后的固件并切换至所述目标网络之后,还包括:Optionally, after using the multiplexing chip 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, further. include:
利用监测到的所述网络状态异常的网络生成告警信息,并将所述告警信息发送至维护终端。Generate alarm information by using the monitored network in which the network state is abnormal, and send the alarm information to the maintenance terminal.
可选的,所述获取网络交换机所使用的当前网络的网络状态之前,还包括:Optionally, before acquiring the network status of the current network used by the network switch, the method further includes:
通过所述网络交换机加载所述闪存芯片中烧录的初始固件,以将所述网络交换机连接至所述当前网络;Load the initial firmware programmed 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 of whether the network state is abnormal, the method further includes:
若所述网络状态正常,则保持所述网络交换机与所述当前网络之间的连接,以使所述网络交换机继续使用所述当前网络。If the network status 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, using the multiplexing chip 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, including:
利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,并生成复位控制信号;Use the multiplexing chip to connect the flash memory chip and the network switch, and generate a reset control signal;
当所述网络交换机接收到所述复位控制信号时,加载所述闪存芯片中更新后的固件并切换至所述目标网络。When the network switch receives the reset control signal, it loads the updated firmware in the flash memory chip and switches to the target network.
第二方面,本申请公开了一种网络切换装置,应用于基板管理控制器芯片,包括:In a second aspect, the present application discloses a network switching device, which is applied to a baseboard management controller chip, including:
状态获取模块,用于获取网络交换机所使用的当前网络的网络状态,并实时监控所述网络状态是否出现异常;A state acquisition module, used for acquiring the network state of the current network used by the network switch, and monitoring in real time whether the network state is abnormal;
固件更新模块,用于当所述网络状态出现异常时,通过多路复用芯片连接闪存芯片,并将所述闪存芯片的固件进行更新,以连接到网络状态正常的目标网络;A firmware update module, configured to connect 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;
网络切换模块,用于利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,以便所述网络交换机加载所述闪存芯片中更新后的固件并切换至所述目标网络。A network switching module, configured to use the multiplexing chip 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.
第三方面,本申请公开了一种电子设备,所述电子设备包括处理器和存储器;其中,所述存储器用于存储计算机程序,所述计算机程序由所述处理器加载并执行以实现如前所述的网络切换方法。In a third aspect, the present application discloses an electronic device, which includes a processor and a memory; wherein, the memory is used to store a computer program, and the computer program is loaded and executed by the processor to achieve the above The described network switching method.
第四方面,本申请公开了一种计算机可读存储介质,用于存储计算机程序;其中所述计算机程序被处理器执行时实现如前所述的网络切换方法。In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program implements the aforementioned network switching method when executed by a processor.
本申请中,应用于基板管理控制器芯片,首先获取网络交换机所使用的当前网络的网络状态,并实时监控所述网络状态是否出现异常;当所述网络状态出现异常时,通过多路复用芯片连接闪存芯片,并将所述闪存芯片的固件进行更新,以连接到网络状态正常的目标网络;最后利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,以便所述网络交换机加载所述闪存芯片中更新后的固件并切换至所述目标网络。可见,服务器通过网络交换机可以连接到多个网络,通过基板管理控制器芯片实时监控当前网络状态,发现异常后通过更新闪存芯片的固件的方式使服务器连接到网络状态正常的目标网络,可以实现服务器网络自动切换,在当前所使用网络异常时自动切换到新的网络,提升了服务器稳定性、可维护性,从而提升公司产品的竞争力。In the present application, it is applied to the baseboard management controller chip. First, the network status of the current network used by the network switch is obtained, and whether the network status is abnormal is monitored in real time; when the network status is abnormal, multiplexing The chip is connected to the flash memory chip, and the firmware of the flash memory chip is updated to connect to the target network with normal network status; finally, the flash memory chip and the network switch are connected by the multiplexing chip, so that the network The switch loads the updated firmware in the flash chip and switches to the target network. It can be seen that the server can be connected to multiple networks through the network switch, and the current network status is monitored in real time through the baseboard management controller chip. After an abnormality is found, the server can be connected to the target network with a normal network status by updating the firmware of the flash memory chip. Automatic network switching, which automatically switches to a new network when the currently used network is abnormal, which improves the stability and maintainability of the server, thereby enhancing the competitiveness of the company's products.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without creative work.
图1为本申请公开的一种网络切换方法流程图;FIG. 1 is a flow chart of a network switching method disclosed in the application;
图2为本申请公开的一种网络切换方法整体连接示意图;2 is a schematic diagram of an overall connection of a network switching method disclosed in the present application;
图3为本申请公开的一种网络切换工作流程示意图;3 is a schematic diagram of a network switching workflow disclosed in the present application;
图4为本申请公开的一种具体的网络切换方法流程图;4 is a flowchart of a specific network switching method disclosed in the application;
图5为本申请公开的一种网络自动切换工作连接示意图;5 is a schematic diagram of a network automatic switching work connection disclosed in the application;
图6为本申请公开的一种网络切换装置结构示意图;6 is a schematic structural diagram of a network switching device disclosed in the present application;
图7为本申请公开的一种电子设备结构图。FIG. 7 is a structural diagram of an electronic device disclosed in this application.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
现有的技术方案中,服务器通过网卡连接到Internet,网卡的对外接口可以是网线、光纤等,然而当服务器使用的网卡的以太网连接出现问题时,比如该网卡使用的网线、光纤等传输介质损坏,或者该网卡连接的网络功能异常,则服务器无法自动切换到其它功能正常的网络,从而造成该服务器支撑的业务功能异常。In the existing technical solution, the server is connected to the Internet through a network card, and the external interface of the network card can be a network cable, an optical fiber, etc. However, when there is a problem with the Ethernet connection of the network card used by the server, such as the network cable used by the network card, optical fibers and other transmission media. If the network card is damaged, or the network function connected to the network card is abnormal, the server cannot automatically switch to another network with normal functions, resulting in abnormal business functions supported by the server.
为此,本申请提供了一种网络切换方案,能够有效解决因服务器当前使用的网络异常造成业务中断。Therefore, the present application provides a network switching solution, which can effectively solve the service interruption caused by the abnormality of the network currently used by the server.
本发明实施例公开了一种网络切换方法,参见图1所示,应用于基板管理控制器芯片,该方法包括:An embodiment of the present invention discloses a network switching method, as shown in FIG. 1 , which is applied to a baseboard management controller chip, and the method includes:
步骤S11:获取网络交换机所使用的当前网络的网络状态,并实时监控所述网络状态是否出现异常。Step S11: Acquire the network state of the current network used by the network switch, and monitor in real time whether the network state is abnormal.
本申请实施例中,服务器通过网络交换机(SWITCH)连接到多个网络,网络1、网络2…网路n,利用基板管理控制器(Baseboard Management Controller,BMC)芯片实时监控当前网络的网络状态。In the embodiment of the present application, the server is connected to multiple networks, network 1, network 2...network n, through a network switch (SWITCH), and a baseboard management controller (BMC) chip is used to monitor the network status of the current network in real time.
需要指出的是,本申请中网络交换机在使用当前网络时,是通过多路复用(MUX)芯片加载闪存(Flash)芯片的固件(Firmware),具体的,通过所述网络交换机加载所述闪存芯片中烧录的初始固件,以将所述网络交换机连接至所述当前网络。也即,闪存芯片中烧录的初始固件将网络交换机配置成连接当前网络,如连接到网络1。It should be pointed out that when the network switch in this application uses the current network, the firmware (Firmware) of the flash memory (Flash) chip is loaded through a multiplexing (MUX) chip. Specifically, the flash memory is loaded through the network switch. Initial firmware programmed into the chip to connect the network switch to the current network. That is, the initial firmware programmed in the flash chip configures the network switch to connect to the current network, eg, to network 1.
本申请实施例中,基板管理控制器芯片会对网络交换机进行管理,这些管理是通过MDC(管理数据时钟)总线来实现的。具体的,通过MDC总线读取网络交换机的网络寄存器数据,通过网络寄存器数据可以获取所述网络交换机所使用的当前网络的网络状态。In the embodiment of the present application, the baseboard management controller chip will manage the network switch, and these managements are implemented through the 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 obtained through the network register data.
步骤S12:当所述网络状态出现异常时,通过多路复用芯片连接闪存芯片,并将所述闪存芯片的固件进行更新,以连接到网络状态正常的目标网络。Step S12: when the network state is abnormal, connect the flash memory chip through a multiplexing chip, and update the firmware of the flash memory chip to connect to the target network with a normal network state.
本申请实施例中,由于网络状态正常时,网络交换机持续使用当前网络,保持利用多路复用芯片连接闪存芯片与网络交换机。而基板管理控制器芯片是通过对多路复用芯片通道控制实现闪存芯片固件更新以及网络交换机加载新固件,所以当基板管理控制器芯片监测到当前网络的网络状态出现异常时,基板管理控制器芯片会通过配置网络交换机将网络进行切换,具体的,通过多路复用芯片连接闪存芯片,并将所述闪存芯片的固件进行更新。In the embodiment of the present application, when the network status is normal, the network switch continues to use the current network, and keeps using the multiplexing chip to connect the flash memory chip and the network switch. The baseboard management controller chip realizes the firmware update of the flash memory chip and the loading of the new firmware of the network switch by controlling the multiplexed chip channel. Therefore, when the baseboard management controller chip detects that the network status of the current network is abnormal, the baseboard management controller The chip will switch the network by configuring the network switch, and specifically, connect the flash memory chip through the multiplexing chip, and update the firmware of the flash memory chip.
需要指出的是,基板管理控制器芯片在对多路复用芯片通道控制时,是通过串行外设接口(Serial Peripheral Interface,SPI)总线将所述闪存芯片的固件进行更新,以连接到网络状态正常的目标网络,也即,多路复用芯片用于切换闪存芯片的SPI主机,闪存芯片用于存放网络交换机的固件。It should be pointed out that when the baseboard management controller chip controls the channel of the multiplexed chip, it updates the firmware of the flash memory chip through the Serial Peripheral Interface (SPI) bus to connect to the network The target network in normal state, that is, the multiplexer chip is used to switch the SPI master of the flash chip, and the flash chip is used to store the firmware of the network switch.
步骤S13:利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,以便所述网络交换机加载所述闪存芯片中更新后的固件并切换至所述目标网络。Step S13: Use the multiplexing chip 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.
本申请实施例中,基板管理控制器芯片通过串行外设接口总线完成闪存芯片的更新后,更新后的固件实现将网络交换机配置成连接网络状态正常的目标网络的功能。In the embodiment of the present application, after the baseboard management controller chip completes the update of the flash memory chip through the serial peripheral interface bus, the updated firmware implements the function of configuring the network switch to connect to the target network with normal network status.
本申请实施例中,所述利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,以便所述网络交换机加载所述闪存芯片中更新后的固件并切换至所述目标网络之后,还包括:利用监测到的所述网络状态异常的网络生成告警信息,并将所述告警信息发送至维护终端。如此一来,可以将原网络连接异常告警到维护人员。In this embodiment of the present application, 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 after , and further comprising: generating alarm information by using the monitored network in which the network state is abnormal, and sending the alarm information to the maintenance terminal. In this way, the maintenance personnel can be alerted to the abnormality of the original network connection.
如图2所示为整体连接示意图,服务器通过网卡连接到多个网络,网络1、网络2…网路n。若服务器当前使用的网络为网络1,那么当服务器的基板管理控制器芯片检测到网络1出现问题时,基板管理控制器芯片通过配置网络交换机可以将网络切换到网络2,或者其他没有出现异常的网络。同时基板管理控制器芯片告警给维护人员进行问题网络维修。Figure 2 is a schematic diagram of the overall connection. The server is connected to multiple networks through network cards, network 1, network 2... network n. If the network currently used by the server is network 1, when the baseboard management controller chip of the server detects that there is a problem with network 1, the baseboard management controller chip can switch the network to network 2 by configuring the network switch, or other things that do not appear abnormal. network. At the same time, the baseboard management controller chip alerts the maintenance personnel to repair the problem network.
示例性的,如图3所示为基板管理控制器芯片的工作流程示意图。首先Flash(闪存)中烧录的初始固件将网络交换机配置为连接网络1,然后基板管理控制器芯片监控当前网络是否正常,如果网络状态正常,则网络交换机继续使用当前网络;如果网络状态异常,则利用基板管理控制器芯片更新闪存固件(Flash Firmware),将网络交换机配置成连接到下一个网络。当网络交换机加载新的闪存固件时,实现网络的切换。Exemplarily, as shown in FIG. 3 , a schematic diagram of the workflow of the baseboard management controller chip is shown. First, the initial firmware programmed in the Flash (flash memory) configures the network switch to connect to network 1, and then the baseboard management controller chip monitors whether the current network is normal. If the network status is normal, the network switch continues to use the current network; if the network status is abnormal, Then, the baseboard management controller chip is used to update the flash firmware (Flash Firmware), and the network switch is configured to be connected to the next network. When the network switch is loaded with new flash firmware, the switching of the network is realized.
本申请中,应用于基板管理控制器芯片,首先获取网络交换机所使用的当前网络的网络状态,并实时监控所述网络状态是否出现异常;当所述网络状态出现异常时,通过多路复用芯片连接闪存芯片,并将所述闪存芯片的固件进行更新,以连接到网络状态正常的目标网络;最后利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,以便所述网络交换机加载所述闪存芯片中更新后的固件并切换至所述目标网络。可见,服务器通过网络交换机可以连接到多个网络,通过基板管理控制器芯片实时监控当前网络状态,发现异常后通过更新闪存芯片的固件的方式使服务器连接到网络状态正常的目标网络,可以实现服务器网络自动切换,在当前所使用网络异常时自动切换到新的网络,提升了服务器稳定性、可维护性,从而提升公司产品的竞争力。In the present application, it is applied to the baseboard management controller chip. First, the network status of the current network used by the network switch is obtained, and whether the network status is abnormal is monitored in real time; when the network status is abnormal, multiplexing The chip is connected to the flash memory chip, and the firmware of the flash memory chip is updated to connect to the target network with normal network status; finally, the flash memory chip and the network switch are connected by the multiplexing chip, so that the network The switch loads the updated firmware in the flash chip and switches to the target network. It can be seen that the server can be connected to multiple networks through the network switch, and the current network status is monitored in real time through the baseboard management controller chip. After an abnormality is found, the server can be connected to the target network with a normal network status by updating the firmware of the flash memory chip. Automatic network switching, which automatically switches to a new network when the currently used network is abnormal, which improves the stability and maintainability of the server, thereby enhancing the competitiveness of the company's products.
本申请实施例公开了一种具体的网络切换方法,参见图4所示,该方法包括:The embodiment of the present application discloses a specific network switching method, as shown in FIG. 4 , the method includes:
步骤S21:获取网络交换机所使用的当前网络的网络状态,并实时监控所述网络状态是否出现异常。Step S21: Acquire the network status of the current network used by the network switch, and monitor in real time whether the network status is abnormal.
本申请实施例中,服务器通过网络交换机(SWITCH)连接到多个网络,网络1、网络2…网路n,利用基板管理控制器(Baseboard Management Controller,BMC)芯片实时监控当前网络的网络状态。In the embodiment of the present application, the server is connected to multiple networks, network 1, network 2...network n, through a network switch (SWITCH), and a baseboard management controller (BMC) chip is used to monitor the network status of the current network in real time.
需要指出的是,本申请中网络交换机在使用当前网络时,是通过多路复用(MUX)芯片加载闪存(Flash)芯片的固件(Firmware),具体的,通过所述网络交换机加载所述闪存芯片中烧录的初始固件,以将所述网络交换机连接至所述当前网络。也即,闪存芯片中烧录的初始固件将网络交换机配置成连接当前网络,如连接到网络1。It should be pointed out that when the network switch in this application uses the current network, the firmware (Firmware) of the flash memory (Flash) chip is loaded through a multiplexing (MUX) chip. Specifically, the flash memory is loaded through the network switch. Initial firmware programmed into the chip to connect the network switch to the current network. That is, the initial firmware programmed in the flash chip configures the network switch to connect to the current network, eg, to network 1.
本申请实施例中,基板管理控制器芯片会对网络交换机进行管理,这些管理是通过MDC(管理数据时钟)总线来实现的。具体的,通过MDC总线读取网络交换机的网络寄存器数据,通过网络寄存器数据可以获取所述网络交换机所使用的当前网络的网络状态。In the embodiment of the present application, the baseboard management controller chip will manage the network switch, and these managements are implemented through the 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 obtained through the network register data.
步骤S22:当所述网络状态出现异常时,将多路复用芯片中的第一通道与第二通道连接配置为所述第一通道与第三通道连接,以便所述基板管理控制器芯片与所述闪存芯片进行通信。Step S22: When the network state is abnormal, configure the connection between the first channel and the second channel in the multiplexing chip to be the connection between the first channel and the third channel, so that the baseboard management controller chip is connected to the second channel. The flash memory chip communicates.
本申请实施例中,如图5所示为网络切换时的连接示意图。由于闪存芯片中烧录的初始固件将网络交换机配置为当前使用的网络。此时基板管理控制器芯片将多路复用芯片配置成通道A连接通道C,网络交换机加载闪存芯片中的初始固件,连接到当前网络。也即在使用当前网络时,如果网络状态正常,多路复用芯片中第一通道与第二通道相连接。In this embodiment of the present application, FIG. 5 is a schematic diagram of connections during network switching. Since the initial firmware programmed in the flash chip configures the network switch to the currently used network. At this time, the baseboard management controller chip configures the multiplexing chip to connect the channel A to the channel C, and the network switch loads the initial firmware in the flash memory chip and connects to the current network. That is, when using the current network, if the network status is normal, the first channel and the second channel in the multiplexing chip are connected.
本申请实施例中,基板管理控制器芯片通过MDC总线实时监控网络交换机当前所使用网络的状态,当网络状态出现异常时,基板管理控制器芯片将多路复用芯片配置成通道A连接通道B,并通过SPI总线完成闪存芯片固件的升级,新的固件实现将网络交换机配置成连接下一个网络的功能,比如原连接网络n,则新固件连接到n+1网络。也即,将多路复用芯片中的第一通道与第二通道连接配置为所述第一通道与第三通道连接。In the embodiment of the present application, the baseboard management controller chip monitors the status of the network currently used by the network switch in real time through the MDC bus, and when the network status is abnormal, the baseboard management controller chip configures the multiplexing chip to connect channel A to channel B , and complete the firmware upgrade of the flash memory chip through the SPI bus. The new firmware implements the function of configuring the network switch to connect to the next network. For example, if the original connection is network n, the new firmware is connected to the n+1 network. That is, the connection of the first channel and the second channel in the multiplexing chip is configured as the connection of the first channel and the third channel.
步骤S23:将所述多路复用芯片中的所述第一通道与所述第三通道连接配置为所述第一通道与所述第二通道连接,以便所述闪存芯片与网络交换机进行通信。Step S23: Configure the connection between the first channel and the third channel in the multiplexing chip to be the connection between the first channel and the second channel, so that the flash memory chip communicates with a network switch .
本申请实施例中,闪存芯片固件升级完成后,BMC芯片将MUX芯片配置成通道A连接通道C,也即,将所述多路复用芯片中的所述第一通道与所述第三通道连接配置为所述第一通道与所述第二通道连接,如此一来,网络交换机加载闪存芯片中更新后的固件,连接到n+1网络。In the embodiment of the present application, after the firmware upgrade of the flash memory chip is completed, the BMC chip configures the MUX chip to connect the channel A to the channel C, that is, to connect the first channel and the third channel in the multiplexing chip. The connection configuration is that the first channel is connected to the second channel, so that the network switch loads the updated firmware in the flash chip and connects to the n+1 network.
需要指出的是,网络交换机在加载更新后的固件时,需要根据基板管理控制器发出的复位控制信号(RST)来实现,具体的,利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,并生成复位控制信号;当所述网络交换机接收到所述复位控制信号时,加载所述闪存芯片中更新后的固件并切换至所述目标网络。It should be pointed out that when the network switch loads the updated firmware, it needs to be implemented according to the reset control signal (RST) sent by the baseboard management controller. the network switch, and generate a reset control signal; when the network switch receives the reset control signal, it loads the updated firmware in the flash memory chip and switches to the target network.
本申请中,应用于基板管理控制器芯片,首先获取网络交换机所使用的当前网络的网络状态,并实时监控所述网络状态是否出现异常;当所述网络状态出现异常时,将多路复用芯片中的第一通道与第二通道连接配置为所述第一通道与第三通道连接,以便所述基板管理控制器芯片与所述闪存芯片进行通信;最后将所述多路复用芯片中的所述第一通道与所述第三通道连接配置为所述第一通道与所述第二通道连接,以便所述闪存芯片与网络交换机进行通信。可见,服务器通过网络交换机可以连接到多个网络,通过基板管理控制器芯片实时监控当前网络状态,发现异常后通过更新闪存芯片的固件的方式使服务器连接到网络状态正常的目标网络,可以实现服务器网络自动切换,在当前所使用网络异常时自动切换到新的网络,提升了服务器稳定性、可维护性,从而提升公司产品的竞争力。In this application, it is applied to the baseboard management controller chip, firstly obtaining the network status of the current network used by the network switch, and monitoring whether the network status is abnormal in real time; when the network status is abnormal, multiplexing The connection between the first channel and the second channel in the chip is configured as the connection between the first channel and the third channel, so that the baseboard management controller chip communicates with the flash memory chip; finally, the multiplexing chip is connected to the The first channel and the third channel are configured to be connected to the first channel and the second channel, so that the flash memory chip communicates with the network switch. It can be seen that the server can be connected to multiple networks through the network switch, and the current network status is monitored in real time through the baseboard management controller chip. After an abnormality is found, the server can be connected to the target network with a normal network status by updating the firmware of the flash memory chip. Automatic network switching, which automatically switches to a new network when the currently used network is abnormal, which improves the stability and maintainability of the server, thereby enhancing the competitiveness of the company's products.
相应的,本申请实施例还公开了一种网络切换装置,应用于基板管理控制器芯片,参见图6所示,该装置包括:Correspondingly, an embodiment of the present application also discloses a network switching device, which is applied to a baseboard management controller chip. Referring to FIG. 6 , the device includes:
状态获取模块11,用于获取网络交换机所使用的当前网络的网络状态,并实时监控所述网络状态是否出现异常;The state acquisition module 11 is used for acquiring the network state of the current network used by the network switch, and monitoring in real time whether the network state is abnormal;
固件更新模块12,用于当所述网络状态出现异常时,通过多路复用芯片连接闪存芯片,并将所述闪存芯片的固件进行更新,以连接到网络状态正常的目标网络;The firmware update module 12 is used to connect the 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 the target network with a normal network state;
网络切换模块13,用于利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,以便所述网络交换机加载所述闪存芯片中更新后的固件并切换至所述目标网络。The network switching module 13 is configured to use the multiplexing chip 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.
本申请实施例中,服务器通过网络交换机连接到多个网络,网络1、网络2…网路n。基板管理控制器芯片、网络交换机通过多路复用芯片连接到闪存芯片,闪存芯片用于存放网络交换机的固件,多路复用芯片用于切换闪存芯片的SPI主机。基板管理控制器芯片通过控制多路复用芯片的通道切换实现闪存芯片的固件更新以及网络交换机对新固件的加载。基板管理控制器芯片通过MDC总线读取网络交换机的网络寄存器数据,用于判断当前使用的网络是否正常。In the embodiment of the present application, the server is connected to a plurality of networks, network 1, network 2 . . . network n through a network switch. The baseboard management controller chip and the network switch are connected to the flash memory chip through the multiplexing chip, the flash memory chip is used to store the firmware of the network switch, and the multiplexing chip is used to switch 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 new firmware by the network switch by controlling the channel switching of the multiplexing chip. The baseboard management controller chip reads the network register data of the network switch through the MDC bus to judge whether the currently used network is normal.
由此可见,通过本实施例的上述方案,应用于基板管理控制器芯片,首先获取网络交换机所使用的当前网络的网络状态,并实时监控所述网络状态是否出现异常;当所述网络状态出现异常时,通过多路复用芯片连接闪存芯片,并将所述闪存芯片的固件进行更新,以连接到网络状态正常的目标网络;最后利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,以便所述网络交换机加载所述闪存芯片中更新后的固件并切换至所述目标网络。可见,服务器通过网络交换机可以连接到多个网络,通过基板管理控制器芯片实时监控当前网络状态,发现异常后通过更新闪存芯片的固件的方式使服务器连接到网络状态正常的目标网络,可以实现服务器网络自动切换,在当前所使用网络异常时自动切换到新的网络,提升了服务器稳定性、可维护性,从而提升公司产品的竞争力。It can be seen from this that the above solution of this embodiment is applied to the baseboard management controller chip. First, the network status of the current network used by the network switch is obtained, and whether the network status is abnormal is monitored in real time; when the network status occurs When abnormal, connect the flash memory chip through the multiplexing chip, and update the firmware of the flash memory chip to connect to the target network with normal network status; finally use the multiplexing chip to connect the flash memory chip and all the network switch, so that the network switch loads the updated firmware in the flash memory chip and switches to the target network. It can be seen that the server can be connected to multiple networks through the network switch, and the current network status is monitored in real time through the baseboard management controller chip. After an abnormality is found, the server can be connected to the target network with a normal network status by updating the firmware of the flash memory chip. Automatic network switching, which automatically switches to a new network when the currently used network is abnormal, which improves the stability and maintainability of the server, thereby enhancing the competitiveness of the company's products.
在一些具体的实施方式中,所述状态获取模块11,包括:In some specific embodiments, the state acquisition module 11 includes:
寄存器读取单元,用于通过MDC总线读取网络交换机的网络寄存器数据,以获取所述网络交换机所使用的当前网络的网络状态。The register reading unit is configured to read the network register data of the network switch through the MDC bus, so as to obtain the network state of the current network used by the network switch.
本申请实施例中,基板管理控制器芯片会对网络交换机进行管理,这些管理是通过MDC(管理数据时钟)总线来实现的,所以通过MDC总线读取网络SWITCH的网络寄存器数据,用于判断当前使用的网络是否正常。In the embodiment of the present application, the baseboard management controller chip will manage the network switches, and these managements are implemented through the MDC (Management Data Clock) bus, so the network register data of the network SWITCH is read through the MDC bus to determine the current Whether the network used is normal.
在一些具体的实施方式中,所述固件更新模块12,包括:In some specific embodiments, the firmware update module 12 includes:
第一通道转换单元,用于当所述网络状态出现异常时,将多路复用芯片中的第一通道与第二通道连接配置为所述第一通道与第三通道连接,以便所述基板管理控制器芯片与所述闪存芯片进行通信;a first channel conversion unit, configured to connect the first channel and the second channel in the multiplexing chip to the first channel and the third channel when the network state is abnormal, so that the substrate the management controller chip communicates with the flash memory chip;
相应的,所述网络切换模块13,包括:Correspondingly, the network switching module 13 includes:
第二通道转换单元,用于将所述多路复用芯片中的所述第一通道与所述第三通道连接配置为所述第一通道与所述第二通道连接,以便所述闪存芯片与网络交换机进行通信。A second channel conversion unit, configured to connect the first channel and the third channel in the multiplexing chip so that the first channel and the second channel are connected, so that the flash memory chip Communicate with the network switch.
本申请实施例中,对应图5所示。(1)闪存芯片中烧录的初始固件将网络交换机配置成连接网络1。(2)基板管理控制器芯片将多路复用芯片配置成通道A连接通道C,网络交换机加载闪存芯片中的固件,连接到网络1。(3)基板管理控制器芯片通过MDC总线实时监控网络交换机当前所使用网络的状态。如果监控到当前网络异常,基板管理控制器芯片将多路复用芯片配置成通道A连接通道B,并通过串行外设接口总线完成闪存芯片固件的升级,新的固件实现将网络交换机配置成连接下一个网络的功能,比如原连接网络n,则新固件连接到n+1网络。(4)基板管理控制器芯片将多路复用芯片配置成通道A连接通道C,网络交换机加载闪存芯片中的固件,连接到n+1网络。(5)基板管理控制器芯片将原网络n连接异常告警到维护人员。In the embodiment of the present application, it corresponds to that shown in FIG. 5 . (1) The initial firmware programmed in the flash chip configures the network switch to connect to network 1. (2) The baseboard management controller chip configures the multiplexing chip to connect the channel A to the channel C, and the network switch loads the firmware in the flash memory chip and connects 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 connect channel A to channel B, and completes the firmware upgrade of the flash memory chip through the serial peripheral interface bus. The new firmware realizes that the network switch is configured as The function of connecting to the next network, such as the original connection to network n, the new firmware is connected to the n+1 network. (4) The baseboard management controller chip configures the multiplexing chip to connect the channel A to the channel C, and the network switch loads the firmware in the flash memory chip and connects to the n+1 network. (5) The baseboard management controller chip alerts the maintenance personnel to the abnormal connection of the original network n.
在一些具体的实施方式中,所述固件更新模块12,包括:In some specific embodiments, the firmware update module 12 includes:
固件更新单元,用于通过串行外设接口总线将所述闪存芯片的固件进行更新,以连接到网络状态正常的目标网络。The firmware updating unit is used for updating the firmware of the flash memory chip through the serial peripheral interface bus, so as to connect to the target network with a normal network state.
本申请实施例中,基板管理控制器芯片在对多路复用芯片通道控制时,是通过串行外设接口总线将所述闪存芯片的固件进行更新,以连接到网络状态正常的目标网络,也即,多路复用芯片用于切换闪存芯片的SPI主机,闪存芯片用于存放网络交换机的固件。In the embodiment of the present application, when the baseboard management controller chip controls the channel of the multiplexed chip, the firmware of the flash memory chip is updated through the serial peripheral interface bus to connect to the target network with a normal network state, That is, the multiplexing chip is used to switch the SPI master of the flash memory chip, and the flash memory chip is used to store the firmware of the network switch.
在一些具体的实施方式中,所述网络切换装置,还用于所述利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,以便所述网络交换机加载所述闪存芯片中更新后的固件并切换至所述目标网络之后,利用监测到的所述网络状态异常的网络生成告警信息,并将所述告警信息发送至维护终端。In some specific implementation manners, the network switching device is further configured to use the multiplexing chip to connect the flash memory chip and the network switch, so that the network switch loads the update in the flash memory chip After the firmware is updated and switched to the target network, alarm information is generated by using the monitored network in which the network state is abnormal, and the alarm information is sent to the maintenance terminal.
本申请实施例中,所述利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,以便所述网络交换机加载所述闪存芯片中更新后的固件并切换至所述目标网络之后,还包括:利用监测到的所述网络状态异常的网络生成告警信息,并将所述告警信息发送至维护终端。如此一来,可以将原网络连接异常告警到维护人员。In this embodiment of the present application, 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 after , and further comprising: generating alarm information by using the monitored network in which the network state is abnormal, and sending the alarm information to the maintenance terminal. In this way, the maintenance personnel can be alerted to the abnormality of the original network connection.
在一些具体的实施方式中,所述网络切换装置,还用于所述获取网络交换机所使用的当前网络的网络状态之前,通过所述网络交换机加载所述闪存芯片中烧录的初始固件,以将所述网络交换机连接至所述当前网络;In some specific implementation manners, the network switching device is further configured to, before acquiring the network state of the current network used by the network switch, load the initial firmware programmed in the flash memory chip through the network switch, to connecting the network switch to the current network;
相应的,所述实时监控所述网络状态是否出现异常之后,还包括:Correspondingly, after the real-time monitoring of whether the network state is abnormal, the method further includes:
若所述网络状态正常,则保持所述网络交换机与所述当前网络之间的连接,以使所述网络交换机继续使用所述当前网络。If the network status 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 present application, in the embodiment of the present application, when the network state is normal, the network switch continues to use the current network, and keeps using the multiplexing chip to connect the flash memory chip and the network switch. The baseboard management controller chip realizes the firmware update of the flash memory chip and the loading of the new firmware of the network switch by controlling the multiplexed chip channel. Therefore, when the baseboard management controller chip detects that the network status of the current network is abnormal, the baseboard management controller The chip will switch the network by configuring the network switch, and specifically, connect the flash memory chip through the multiplexing chip, and update the firmware of the flash memory chip.
在一些具体的实施方式中,所述网络切换模块13,包括:In some specific embodiments, the network switching module 13 includes:
复位控制信号生成单元,用于利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,并生成复位控制信号;a reset control signal generating unit, configured to use the multiplexing chip to connect the flash memory chip and the network switch, and generate a reset control signal;
目标网络切换单元,用于当所述网络交换机接收到所述复位控制信号时,加载所述闪存芯片中更新后的固件并切换至所述目标网络。A target network switching unit, configured to load the updated firmware in the flash memory chip and switch to the target network when the network switch receives the reset control signal.
本申请实施例中,网络交换机在加载更新后的固件时,需要根据基板管理控制器发出的复位控制信号(RST)来实现,具体的,利用所述多路复用芯片连接所述闪存芯片和所述网络交换机,并生成复位控制信号;当所述网络交换机接收到所述复位控制信号时,加载所述闪存芯片中更新后的固件并切换至所述目标网络。In the embodiment of the present application, when the network switch loads the updated firmware, it needs to be implemented according to the reset control signal (RST) sent by the baseboard management controller. Specifically, the multiplexing chip is used to connect the flash memory chip and the flash memory chip. The network switch generates a reset control signal; when the network switch receives the reset control signal, it loads the updated firmware in the flash memory chip and switches to the target network.
本申请实施例中,服务器通过网络交换连接到多个网络,通过基板管理控制器芯片实时监控当前网络状态,发现异常后通过更改网络交换机固件的方式使服务器连接到下一个网路,将原网络连接异常告警到维护人员。可以有效解决因服务器当前使用的网络异常造成业务中断的问题,当服务器检测到某个网络连接异常的时候,可以自动切换到其它网络。实现服务器网络自动切换,在当前所使用网络异常时自动切换到新的网络,提升了服务器稳定性、可维护性,从而提升公司产品的竞争力。In the embodiment of the present application, the server is connected to multiple networks through network switching, the current network status is monitored in real time through the baseboard management controller chip, and after an abnormality is found, the server is connected to the next network by changing the firmware of the network switch, and the original network The connection abnormality is alerted to the maintenance personnel. It can effectively solve the problem of business interruption caused by the abnormal network currently used by the server. When the server detects that a certain network connection is abnormal, it can automatically switch to other networks. It realizes the automatic switching of server network, and automatically switches to a new network when the current network is abnormal, which improves the stability and maintainability of the server, thereby enhancing the competitiveness of the company's products.
进一步的,本申请实施例还公开了一种电子设备,图7是根据一示例性实施例示出的电子设备20结构图,图中内容不能认为是对本申请的使用范围的任何限制。Further, the embodiment of the present application also discloses an electronic device. FIG. 7 is a structural diagram of the
图7为本申请实施例提供的一种电子设备20的结构示意图。该电子设备20,具体可以包括:至少一个处理器21、至少一个存储器22、电源23、通信接口24、输入输出接口25和通信总线26。其中,所述存储器22用于存储计算机程序,所述计算机程序由所述处理器21加载并执行,以实现前述任一实施例公开的网络切换方法中的相关步骤。另外,本实施例中的电子设备20具体可以为服务器。FIG. 7 is a schematic structural diagram of an
本实施例中,电源23用于为电子设备20上的各硬件设备提供工作电压;通信接口24能够为电子设备20创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请技术方案的任意通信协议,在此不对其进行具体限定;输入输出接口25,用于获取外界输入数据或向外界输出数据,其具体的接口类型可以根据具体应用需要进行选取,在此不进行具体限定。In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the
另外,存储器22作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源可以包括操作系统221、计算机程序222及数据223等,数据223可以包括各种各样的数据。存储方式可以是短暂存储或者永久存储。In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon can include an operating system 221, a computer program 222, and data 223, etc., and the data 223 can include various various data. The storage method can be short-term storage or permanent storage.
其中,操作系统221用于管理与控制电子设备20上的各硬件设备以及计算机程序222,其可以是Windows Server、Netware、Unix、Linux等。计算机程序222除了包括能够用于完成前述任一实施例公开的由电子设备20执行的网络切换方法的计算机程序之外,还可以进一步包括能够用于完成其他特定工作的计算机程序。The operating system 221 is used to manage and control various hardware devices and computer programs 222 on the
进一步的,本申请实施例还公开了一种计算机可读存储介质,这里所说的计算机可读存储介质包括随机存取存储器(Random Access Memory,RAM)、内存、只读存储器(Read-Only Memory,ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、磁碟或者光盘或技术领域内所公知的任意其他形式的存储介质。其中,所述计算机程序被处理器执行时实现前述网络切换方法。关于该方法的具体步骤可以参考前述实施例中公开的相应内容,在此不再进行赘述。Further, the embodiment of the present application also discloses a computer-readable storage medium, and the computer-readable storage medium mentioned here includes random access memory (Random Access Memory, RAM), internal memory, read-only 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 aforementioned network switching method is implemented when the computer program is executed by the processor. For the specific steps of the method, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other. As 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 part can be referred to the description of the method.
结合本文中所公开的实施例描述的网络切换或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the network switching or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
以上对本发明所提供的一种网络切换方法、装置、设备及存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A network switching method, device, device and storage medium provided by the present invention have been described in detail above. Specific examples are used in this paper to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help Understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification does not It should be understood as a limitation of the present invention.
Claims (10)
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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116193202A (en) * | 2022-12-05 | 2023-05-30 | 百鸟数据科技(北京)有限责任公司 | Multichannel video observation system for field observation |
CN116319122A (en) * | 2023-03-13 | 2023-06-23 | 阿里巴巴(中国)有限公司 | Rack server, network configuration method thereof and server cabinet |
Citations (3)
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 |
-
2022
- 2022-07-15 CN CN202210831384.6A patent/CN115225464B/en active Active
Patent Citations (3)
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 (3)
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 |
CN116319122A (en) * | 2023-03-13 | 2023-06-23 | 阿里巴巴(中国)有限公司 | Rack server, network configuration method thereof and server cabinet |
Also Published As
Publication number | Publication date |
---|---|
CN115225464B (en) | 2023-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108600029B (en) | A configuration file updating method, device, terminal device and storage medium | |
CN113742031B (en) | Node state information acquisition method and device, electronic equipment and readable storage medium | |
CN107800565B (en) | Inspection method, inspection device, inspection system, computer equipment and storage medium | |
CN115225464B (en) | Network switching method, device, equipment and storage medium | |
US20110106921A1 (en) | Methods and devices for implementing configuration synchronization | |
WO2022127504A1 (en) | Network element management method and apparatus, and storage medium | |
US20090287943A1 (en) | Mapping power domains in a data center | |
CN114996006A (en) | Server arrangement configuration execution method, device, equipment and medium | |
CN113296871A (en) | Method, equipment and system for processing container group instance | |
CN109039764B (en) | A kind of network parameter configuration method of distributed storage system | |
CN115525352A (en) | A method, device, equipment, and storage medium for peak-staggered power-on of servers | |
CN111770176B (en) | Traffic scheduling method and device | |
CN101860452A (en) | Network element management method and system | |
CN109542841A (en) | The method and terminal device of data snapshot are created in cluster | |
CN107196814A (en) | A kind of management method and system of many clusters | |
CN104378231A (en) | Control system and control method for enterprise wireless router | |
CN115426258B (en) | Information configuration method, device, switch and readable storage medium | |
WO2025039408A1 (en) | Component management method and apparatus, and non-volatile storage medium and electronic device | |
CN114153655B (en) | Disaster recovery system creation method, disaster recovery method, device, equipment and medium | |
CN116405379A (en) | Network management method, device and equipment | |
CN116208486A (en) | Gateway backup and replacement method and system | |
CN110943975B (en) | Service registration method, device, computer equipment and storage medium | |
CN115695169B (en) | A method, device and storage medium for sending configuration information | |
CN110417593A (en) | A kind of device management method and device | |
CN115086579B (en) | Video matrix redundancy backup method and device, terminal equipment and storage medium |
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 |