CN113282351A - Switch starting method and device, electronic equipment and storage medium - Google Patents

Switch starting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113282351A
CN113282351A CN202110586507.XA CN202110586507A CN113282351A CN 113282351 A CN113282351 A CN 113282351A CN 202110586507 A CN202110586507 A CN 202110586507A CN 113282351 A CN113282351 A CN 113282351A
Authority
CN
China
Prior art keywords
switch
chip
service
software
switching
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.)
Withdrawn
Application number
CN202110586507.XA
Other languages
Chinese (zh)
Inventor
王倩
薛兆井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Armyfly Technology Co Ltd
Original Assignee
Beijing Armyfly 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 Beijing Armyfly Technology Co Ltd filed Critical Beijing Armyfly Technology Co Ltd
Priority to CN202110586507.XA priority Critical patent/CN113282351A/en
Publication of CN113282351A publication Critical patent/CN113282351A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a method and a device for starting a switch, electronic equipment and a storage medium, wherein the method comprises the following steps: resetting and starting the CPU and the exchange chip when the power is on; loading a bootstrap program from a memory, and executing hardware initialization of the switch by loading the bootstrap program; and configuring the switching chip through a bootstrap program so that the configured switching chip directly realizes forwarding communication of services. When hardware initialization is carried out on the switch system according to the loaded bootstrap program, and the condition that the hardware such as a CPU, a switching chip, a memory and the like in the switch system is abnormal is determined, the switching chip is directly configured through the bootstrap program loaded from the memory without waiting for the completion of the loading of an operating system and the completion of the execution of operations such as CPU peripheral drivers and the like, and the switching chip and software are synchronously configured based on an SDK in the switch software after the switch is started, so that the switch can complete the configuration after being powered on and quickly enter the normal forwarding of services, and the switch is quickly started.

Description

Switch starting method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a device for starting a switch, electronic equipment and a storage medium.
Background
Fig. 1A is a schematic diagram illustrating a start-up process of a network communication switch in the prior art, where the start-up process is as follows: after the switch is powered on, a boot loader is loaded to perform hardware initialization, then the boot loader is used for booting an operating system of the switch to load, a peripheral of a CPU is started through the operating system of the switch, and finally initialization configuration and service configuration are performed on a chip of the switch based on a Software Development Kit (SDK) in Software of the switch, so that the configured chip of the switch realizes forwarding communication of services.
From the above process, it can be known that the switch chip can be started only after the configuration of the switch chip is completed, and a normal service forwarding function is implemented, and in order to ensure the consistency between hardware and software, the switch chip generally needs to be configured based on the SDK in the switch software at the final stage of the starting process, so as to complete the starting process of the network switch.
However, the whole starting process of the existing switch is long in time, generally requiring 30 to 90 seconds, and in practical application, a communication network switch has a high time requirement for entering normal service forwarding communication, needs to be started within a short time after being powered on, and quickly enters a communication forwarding mode. Such as fighters or tanks, etc., which otherwise cause danger and even major accidents. The existing manner of starting up a communication network switch is obviously not able to meet this requirement.
Disclosure of Invention
The embodiment of the invention provides a method and a device for starting a switch, electronic equipment and a storage medium, which are used for realizing that the switch quickly enters normal service forwarding after being electrified and is quickly started.
In a first aspect, an embodiment of the present invention provides a switch starting method, which is applied to a switch system, where the switch system includes: CPU, exchange chip and memorizer;
resetting and starting the CPU and the exchange chip when the power is on; loading a bootstrap program from a memory, and executing hardware initialization of the switch through the bootstrap program; and configuring the switching chip through a bootstrap program so that the configured switching chip directly realizes forwarding communication of services.
In a second aspect, an embodiment of the present invention provides a switch starting apparatus, including:
the hardware starting module is used for resetting and starting the CPU and the exchange chip when the power is on;
a hardware initialization module for loading a bootstrap program from a memory and executing hardware initialization of the switch through the bootstrap program;
and the switching chip configuration module is used for configuring the switching chip through a bootstrap program so as to enable the configured switching chip to directly realize the forwarding communication of the service.
In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by one or more processors, cause the one or more processors to implement the methods as described above.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is configured to, when executed by a processor, implement the method as described above.
According to the technical scheme of the embodiment of the invention, when hardware initialization is carried out on the switch system according to the loaded bootstrap program and the condition that the hardware such as a CPU, a switching chip, a memory and the like in the switch system is abnormal is determined, the switching chip is directly configured through the bootstrap program loaded from the memory without waiting for the completion of loading of an operating system and the completion of operation execution such as CPU peripheral drive and the like, and the switching chip and software are synchronously configured based on the SDK in the switch software after starting, so that the switch can complete configuration and quickly enter normal service forwarding after being powered on, and the switch is quickly started.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1A is a schematic diagram of a startup process of a network communication switch in the prior art;
fig. 1B is a flowchart of a switch starting method according to an embodiment of the present invention;
fig. 2 is a flowchart of a switch startup method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a switch starting apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, software implementations, hardware implementations, and so on.
Example one
Fig. 1B is a flowchart of a method for starting a switch according to an embodiment of the present invention, where the method is applicable to a case of quickly starting a switch, and the method may be executed by a switch starting apparatus according to an embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner. As shown in fig. 1B, the method specifically includes the following operations:
and step S101, resetting and starting the CPU and the exchange chip when the power is on.
Wherein, this embodiment is applied to the switch system, and the switch system specifically includes: CPU, exchange chip and memory. And when the switch is powered on, the system firstly resets and starts the CPU and the switching chip so as to ensure that the CPU and the switching chip can work normally.
Optionally, before resetting and starting the CPU and the switch chip during power-on, the method may further include: acquiring service data of a switching chip under the normal operation state of a switch system, wherein the service data comprises the waiting time of each service type; and storing the service data into a memory.
Specifically, in this embodiment, before the CPU and the switch chip are reset and started, that is, in a normal operating state where the switch system is not powered off, the service data of the switch chip is acquired, and the acquired service data is stored in the memory. The service data comprises: the register address, the register value, whether to actively wait for the identifier, the waiting time, and the like of each service, wherein the waiting time represents the starting time corresponding to each service type when the service configuration of the switch chip is performed, because the time constraint is usually required to be followed when the register of the chip is configured, and the corresponding time constraint is also required to be followed when the register of the chip is configured by the bootstrap program. An example of traffic data is shown in table 1 below:
TABLE 1
Register address Register value Whether to actively wait for identification Waiting time
Address 1 Register value 1 Y 1s
Address 2 Register value 2 N 2s
Address 3 Register value 3 Y 0.5s
However, in the present embodiment, the description is given only by way of example in table 1, and the specific format and the specific number of the service data stored in the memory are not limited.
Step S102 loads a boot program from the memory, and performs hardware initialization of the switch by the boot program.
Specifically, in the present embodiment, the BootLoader is stored in the memory, so that after the CPU and the switch chip are reset and started, the boot program is loaded from the memory, the loaded boot program is run in the CPU, and the hardware initialization of the switch is executed by the loaded boot program in the present embodiment.
The hardware initialization of the switch is implemented by running a bootstrap program to perform hardware self-test of the switch. The hardware for self-test in this embodiment includes a CPU, a switch chip, and a memory in the switch system, and may also include hardware of other structures in the switch. The hardware self-check of the switch is carried out by running the bootstrap program, so that whether the started CPU or the switching chip is abnormal or not can be found in time, and the self-repair can be carried out in time when the abnormality occurs.
Step S103, configuring the switch chip through the bootstrap program, so that the configured switch chip directly implements forwarding communication of the service.
Optionally, configuring the switch chip through the bootstrap program may include: carrying out initialization configuration on the exchange chip through a bootstrap program; and reading the service data from the memory through the bootstrap program, and performing service configuration on the exchange chip after the initialization configuration according to the service data.
Optionally, the initializing configuration of the switch chip by the bootstrap program may include: and setting basic forwarding function parameters of the switching chip through a bootstrap program, wherein the basic forwarding function parameters comprise forwarding port information.
Optionally, performing service configuration on the switch chip after the initialization configuration according to the service data may include: and setting the service starting time of the switching chip according to the waiting time of each service type so that the switching chip executes the service according to the starting time.
Specifically, in this embodiment, when the hardware initialization of the switch is executed through the bootstrap program, the hardware self-test of the switch is completed, and it is determined that there is no abnormal condition in the hardware, the initialization configuration is performed on the switch chip through the bootstrap program, that is, the basic forwarding function parameter setting is performed on the switch chip to prepare for subsequent service configuration. The basic forwarding function parameter in this embodiment may specifically include forwarding port information or forwarding path information, for example, traffic is forwarded according to the specified path x through the port 1, which is, of course, only an example in this embodiment and is not limited to a specific type of the basic forwarding function parameter.
After the initialization configuration of the switching chip is completed, the business data recorded and stored by the switch in the normal running state before the power failure is read from the memory through the bootstrap program, and the business configuration is carried out on the initialized switching chip according to the obtained business data. For example, the register value in the service data in table 1 may include status information and related parameters of each service before power off, and since the service data further includes a waiting time, when the switching chip is configured for a service, the service start time of the switching chip may be specifically set according to the waiting time of each service type, so that the switching chip executes the service based on the acquired service status information and related parameters according to the start time. Therefore, after the service configuration is completed for the switching chip according to the service data, the switching chip can immediately recover the service execution state before power failure according to the configuration content, so that the service forwarding communication is executed based on the switching chip after the service configuration. Therefore, the normal forwarding speed of the switch from power-on to service implementation in the embodiment can reach within 5 seconds. Therefore, when software configuration is not needed to be carried out at the final stage of the starting process, the switching chip is configured based on the SDK, and the recovery delay of the communication forwarding function is caused.
According to the technical scheme of the embodiment of the invention, when hardware initialization is carried out on the switch system according to the loaded bootstrap program and the condition that the hardware such as a CPU, a switching chip, a memory and the like in the switch system is abnormal is determined, the switching chip is directly configured through the bootstrap program loaded from the memory without waiting for the completion of loading of an operating system and the completion of operation execution such as CPU peripheral drive and the like, and the switching chip and software are synchronously configured based on the SDK in the switch software after starting, so that the switch can complete configuration and quickly enter normal service forwarding after being powered on, and the switch is quickly started.
Example two
Fig. 2 is a flowchart of a method for starting a switch according to an embodiment of the present invention, where the embodiment is based on the foregoing embodiment, and after reading pre-stored service data from a memory and performing service configuration on a switch chip according to the service data, the method further includes: loading the switching operating system from the memory by the bootstrap program; starting an exchange operating system, and driving a peripheral of the CPU based on the exchange operating system; and starting the switching software, and performing software configuration on the software development kit SDK through the switching software so as to keep the SDK and the switching chip in information synchronization. The method of the embodiment specifically includes the following operations:
step S201, resetting and starting the CPU and the exchange chip when power is on.
Optionally, before resetting and starting the CPU and the switch chip during power-on, the method may further include: acquiring service data of a switching chip under the normal operation state of a switch system, wherein the service data comprises the waiting time of each service type; and storing the service data into a memory.
In step S202, a boot program is loaded from the memory, and hardware initialization of the switch is performed by the boot program.
Step S203, configuring the switch chip through the bootstrap program, so that the configured switch chip directly implements forwarding communication of the service.
Optionally, configuring the switch chip through the bootstrap program may include: carrying out initialization configuration on the exchange chip through a bootstrap program; and reading the service data from the memory through the bootstrap program, and performing service configuration on the exchange chip after the initialization configuration according to the service data.
Optionally, the initializing configuration of the switch chip by the bootstrap program may include: and setting basic forwarding function parameters of the switching chip through a bootstrap program, wherein the basic forwarding function parameters comprise forwarding port information.
Optionally, performing service configuration on the switch chip after the initialization configuration according to the service data may include: and setting the service starting time of the switching chip according to the waiting time of each service type so that the switching chip executes the service according to the starting time.
Step S204, starting the exchange software in the CPU, and performing software configuration on the software development kit SDK through the exchange software so as to keep the SDK and the exchange chip in information synchronization.
In this embodiment, before the swap software in the CPU is started, the swap operating system is loaded from the memory by the boot program, and then the swap operating system is started, and the peripheral of the CPU is driven based on the swap operating system. After the switch is powered on for 5 seconds to configure the switching chip, the switching chip can immediately recover the communication forwarding function of the service. The memory also contains the exchange operating system, so the exchange operating system is loaded from the memory through the bootstrap program to load the bootstrap program into the CPU. After the swap operating system is loaded to the CPU, the CPU starts the swap operating system, and drives the peripheral devices of the CPU, such as a display, a modem, a mouse, and the like, based on the swap operating system.
Optionally, the software configuration of the software development kit SDK by exchanging software may include: reading the basic forwarding parameters of the switching chip through switching software, and initializing the forwarding function of the SDK according to the result of the reading operation; performing read operation and write operation on the non-forwarding function parameter of the switching chip through switching software, and performing non-forwarding function initialization on the SDK according to the result of the read operation and the write operation, wherein the non-forwarding function parameter comprises: access control list ACL information and quality of service QoS information.
In this embodiment, after the configuration of the switch chip is performed and the peripheral of the CPU is driven based on the loaded switching operating system, the switching software needs to be started after the hardware setting of the switch is completed, and the configuration is performed from the software layer of the switch, so as to ensure the consistency of the configuration information of the software layer and the hardware layer.
Specifically, when the software layer of the switch is configured, the SDK is configured through the started switch software, and the SDK includes necessary modules and unnecessary modules. The necessary modules are mainly used for functions related to service forwarding communication; the non-essential modules are mainly used for functions not related to traffic forwarding communication. Because the necessary modules have already initialized and configured the switch chip through the bootstrap program in the hardware level, but the SDK of these configuration information in the software level is unable to know, so in order to ensure the synchronization of the configuration information of the software level and the hardware level, and not to affect the service that has been recovered on the switch chip, the basic forwarding parameters of the switch chip are only read through the switch software, and the forwarding function of the SDK is initialized according to the result of the read operation, and the SDK does not perform the write operation of the switch chip, thereby recovering the software configuration of the SDK. For unnecessary modules in the SDK that are not related to service forwarding communication, normal initialization is required to perform read and write operations on the switch chip. For example, for the non-forwarding function parameter of the switch chip: and performing read operation and write operation on Access Control List (ACL) information, Quality of Service (QoS) information and the like, and performing non-forwarding function initialization on the SDK according to the results of the read operation and the write operation. Certainly, the SDK also includes a service function module, so that the switch software can also continue to initialize each switch function module to recover the stored service, and since the bootstrap program has already recovered the service configuration related to the switch chip, only the software layer is recovered at this time, and the hardware layer of the chip does not need to be configured again, so that the synchronization of software and hardware is maintained, and the recovered service is not affected.
According to the technical scheme of the embodiment of the invention, when hardware initialization is carried out on the switch system according to the loaded bootstrap program and the condition that the hardware such as a CPU, a switching chip, a memory and the like in the switch system is abnormal is determined, the switching chip is directly configured through the bootstrap program loaded from the memory without waiting for the completion of loading of an operating system and the completion of operation execution such as CPU peripheral drive and the like, and the switching chip and software are synchronously configured based on the SDK in the switch software after starting, so that the switch can complete configuration and quickly enter normal service forwarding after being powered on, and the switch is quickly started. And after the switching chip completes configuration and can normally forward the service, the software layer is configured, so that the synchronization of the software layer and the hardware layer is ensured to be realized under the condition of not influencing the recovered service.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a switch activation apparatus according to an embodiment of the present invention, where the apparatus includes: a hardware start module 310, a hardware initialization module 320, and a switch chip configuration module 330.
The hardware starting module 310 is used for resetting and starting the CPU and the switch chip when the power is turned on;
a hardware initialization module 320, configured to load a boot program from a memory, and perform hardware initialization of the switch through the boot program;
the switch chip configuration module 330 is configured to configure the switch chip through a bootstrap program, so that the configured switch chip directly implements forwarding communication of the service.
Optionally, the apparatus further includes a service data saving module, configured to obtain service data of the switch chip in a normal operation state of the switch system, where the service data includes a waiting time of each service type;
and storing the service data into a memory.
Optionally, the switch chip configuration module includes: the initialization configuration submodule is used for carrying out initialization configuration on the exchange chip through a bootstrap program;
and the service configuration submodule is used for reading the service data from the memory through the bootstrap program and carrying out service configuration on the exchange chip after the initialization configuration according to the service data.
Optionally, the initialization configuration sub-module is configured to perform basic forwarding function parameter setting on the switch chip through a bootstrap, where the basic forwarding function parameter includes forwarding port information.
Optionally, the service configuration sub-module is configured to set service start time of the switching chip according to the waiting time of each service type, so that the switching chip executes the service according to the start time.
Optionally, the apparatus further comprises: the software configuration module is used for starting the exchange software in the CPU;
and performing software configuration on the software development kit SDK through the switching software so that the SDK and the switching chip keep information synchronization.
Optionally, the software configuration module includes: the software forwarding function configuration submodule is used for reading the basic forwarding parameters of the switching chip through the switching software and initializing the forwarding function of the SDK according to the result of the reading operation;
the software non-forwarding function configuration submodule is used for performing read operation and write operation on the non-forwarding function parameter of the switching chip through switching software, and performing non-forwarding function initialization on the SDK according to the result of the read operation and the write operation, wherein the non-forwarding function parameter comprises: access control list ACL information and quality of service QoS information.
The device can execute the switch starting method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 412 suitable for use in implementing embodiments of the present invention. The electronic device 412 shown in fig. 4 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 4, the electronic device 412 is in the form of a general purpose computing device. The components of the electronic device 412 may include, but are not limited to: one or more processors 416, a memory 428, and a bus 418 that couples the various system components (including the memory 428 and the processors 416).
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 412 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The memory 428 is used to store instructions. Memory 428 can include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The electronic device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The electronic device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the electronic device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the electronic device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 420. As shown, network adapter 420 communicates with the other modules of electronic device 412 over bus 418. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with the electronic device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 416 executes various functional applications and data processing by executing instructions stored in the memory 428, for example, to implement the switch startup method provided by the embodiment of the present invention: resetting and starting the CPU and the exchange chip when the power is on; loading a bootstrap program from a memory, and executing hardware initialization of the switch through the bootstrap program; and configuring the switching chip through a bootstrap program so that the configured switching chip directly realizes forwarding communication of services.
EXAMPLE five
Embodiments of the present invention provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a switch starting method provided in all embodiments of the present invention of the present application:
resetting and starting the CPU and the exchange chip when the power is on; loading a bootstrap program from a memory, and executing hardware initialization of the switch through the bootstrap program; and configuring the switching chip through a bootstrap program so that the configured switching chip directly realizes forwarding communication of services.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A switch starting method is applied to a switch system, and is characterized in that the switch system comprises: CPU, exchange chip and memorizer;
resetting and starting the CPU and the exchange chip when the power is on;
loading a boot program from the memory, performing hardware initialization of the switch by the boot program;
and configuring the switching chip through the guiding sequence so that the configured switching chip directly realizes forwarding communication of services.
2. The method of claim 1, wherein before resetting the CPU and the switch chip when powered on, further comprising:
acquiring service data of the switching chip under a normal operation state of a switch system, wherein the service data comprises waiting time of each service type;
and saving the service data into the memory.
3. The method of claim 2, wherein said configuring the switch chip via the boot sequence comprises:
performing initialization configuration on the exchange chip through the guiding sequence;
and reading the service data from the memory through the bootstrap program, and performing service configuration on the exchange chip after initialization configuration according to the service data.
4. The method of claim 3, wherein the initializing configuration of the switch chip by the boot sequence comprises:
and setting basic forwarding function parameters of the switching chip through the guiding sequence, wherein the basic forwarding function parameters comprise forwarding port information.
5. The method according to claim 3, wherein the performing service configuration on the switch chip after initialization configuration according to the service data comprises:
and setting the service starting time of the switching chip according to the waiting time of each service type so as to enable the switching chip to execute the service according to the starting time.
6. The method of claim 1, wherein after configuring the switch chip via the boot sequence, further comprising:
starting exchange software in the CPU;
and carrying out software configuration on the SDK through the switching software so as to keep the SDK and the switching chip in information synchronization.
7. The method of claim 4, wherein the software configuration of the Software Development Kit (SDK) by the exchange software comprises:
reading the basic forwarding parameters of the switching chip through the switching software, and initializing the forwarding function of the SDK according to the result of the reading operation;
performing read operation and write operation on the non-forwarding function parameter of the switching chip through the switching software, and performing non-forwarding function initialization on the SDK according to the result of the read operation and the write operation, wherein the non-forwarding function parameter comprises: access control list ACL information and quality of service QoS information.
8. A switch activating apparatus, comprising:
the hardware starting module is used for resetting and starting the CPU and the exchange chip when the power is on;
a hardware initialization module for loading a bootstrap program from a memory, and performing hardware initialization of the switch through the bootstrap program;
and the switching chip configuration module is used for configuring the switching chip through the bootstrap program so as to enable the configured switching chip to directly realize forwarding communication of services.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202110586507.XA 2021-05-27 2021-05-27 Switch starting method and device, electronic equipment and storage medium Withdrawn CN113282351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110586507.XA CN113282351A (en) 2021-05-27 2021-05-27 Switch starting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110586507.XA CN113282351A (en) 2021-05-27 2021-05-27 Switch starting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113282351A true CN113282351A (en) 2021-08-20

Family

ID=77282247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110586507.XA Withdrawn CN113282351A (en) 2021-05-27 2021-05-27 Switch starting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113282351A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113612703A (en) * 2021-08-26 2021-11-05 北京东土科技股份有限公司 Startup control method, device, equipment and medium of switch
CN113923173A (en) * 2021-10-22 2022-01-11 深圳市风云实业有限公司 Method for quickly starting and recovering data plane of network switching equipment
CN115167194A (en) * 2022-05-26 2022-10-11 中国第一汽车股份有限公司 Method, system, equipment and storage medium for optimizing reset start time of automotive AUTOSAR standard real-time controller
CN115190084A (en) * 2022-09-08 2022-10-14 中国电子科技集团公司第十五研究所 Method and system for starting Ethernet switching module
CN115296995A (en) * 2022-06-30 2022-11-04 北京达佳互联信息技术有限公司 Switch configuration method and device, electronic equipment and storage medium
CN115167194B (en) * 2022-05-26 2024-06-11 中国第一汽车股份有限公司 Method, system, equipment and storage medium for optimizing resetting starting time of automotive AUTOSAR standard real-time controller

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113612703A (en) * 2021-08-26 2021-11-05 北京东土科技股份有限公司 Startup control method, device, equipment and medium of switch
CN113612703B (en) * 2021-08-26 2024-02-20 北京东土科技股份有限公司 Switch starting control method, device, equipment and medium
CN113923173A (en) * 2021-10-22 2022-01-11 深圳市风云实业有限公司 Method for quickly starting and recovering data plane of network switching equipment
CN113923173B (en) * 2021-10-22 2023-12-15 深圳市风云实业有限公司 Quick starting recovery method for data surface of network switching equipment
CN115167194A (en) * 2022-05-26 2022-10-11 中国第一汽车股份有限公司 Method, system, equipment and storage medium for optimizing reset start time of automotive AUTOSAR standard real-time controller
CN115167194B (en) * 2022-05-26 2024-06-11 中国第一汽车股份有限公司 Method, system, equipment and storage medium for optimizing resetting starting time of automotive AUTOSAR standard real-time controller
CN115296995A (en) * 2022-06-30 2022-11-04 北京达佳互联信息技术有限公司 Switch configuration method and device, electronic equipment and storage medium
CN115296995B (en) * 2022-06-30 2024-03-12 北京达佳互联信息技术有限公司 Switch configuration method, device, electronic equipment and storage medium
CN115190084A (en) * 2022-09-08 2022-10-14 中国电子科技集团公司第十五研究所 Method and system for starting Ethernet switching module
CN115190084B (en) * 2022-09-08 2022-12-13 中国电子科技集团公司第十五研究所 Method and system for starting Ethernet switching module

Similar Documents

Publication Publication Date Title
CN113282351A (en) Switch starting method and device, electronic equipment and storage medium
US9612846B2 (en) Out-of-band (OOB) real-time inventory and configuration of original equipment manufacturer (OEM) devices using advanced configuration and power interface (ACPI) and unified extensible firmware interface (UEFI) services
US10146606B2 (en) Method for system debug and firmware update of a headless server
CN110780890A (en) System upgrading method and device, electronic equipment and medium
US11334427B2 (en) System and method to reduce address range scrub execution time in non-volatile dual inline memory modules
US20180349607A1 (en) Recovering an information handling system from a secure boot authentication failure
US10303487B2 (en) System and method for booting an information handling system
US10606677B2 (en) Method of retrieving debugging data in UEFI and computer system thereof
US10997099B2 (en) I/O request processing method in virtual machine, device and computer readable medium
CN109474467B (en) Network automation management method and device, storage medium and electronic equipment
US11461178B2 (en) System and method to prevent endless machine check error of persistent memory devices
US10282190B2 (en) System and method for updating a UEFI image in an information handling system
US11429298B2 (en) System and method for tying non-volatile dual inline memory modules to a particular information handling system
US9852028B2 (en) Managing a computing system crash
US11003778B2 (en) System and method for storing operating life history on a non-volatile dual inline memory module
US11221766B2 (en) System and method for persistent memory rotation based on remaining write endurance
US9223697B2 (en) Computer reprogramming method, data storage medium and motor vehicle computer
US20200364040A1 (en) System and Method for Restoring a Previously Functional Firmware Image on a Non-Volatile Dual Inline Memory Module
CN110096366A (en) A kind of configuration method, device and the server of isomery memory system
US20230305878A1 (en) Communication method between virtual machines using mailboxes, system-on-chip performing the communication method, and in-vehicle infotainment system including same
US9270635B2 (en) Loading an operating system of a diskless compute node using a single virtual protocol interconnect (‘VPI’) adapter
US8799616B2 (en) Method and system for preferred CPU binding on virtual partitions
JP2005173830A (en) Computer system and program
CN118153057A (en) Offline certificate revocation method based on BIOS and OS shared variable area
CN116627515A (en) Partition switching starting method and device of embedded system

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210820

WW01 Invention patent application withdrawn after publication