CN115190084B - Method and system for starting Ethernet switching module - Google Patents

Method and system for starting Ethernet switching module Download PDF

Info

Publication number
CN115190084B
CN115190084B CN202211092599.7A CN202211092599A CN115190084B CN 115190084 B CN115190084 B CN 115190084B CN 202211092599 A CN202211092599 A CN 202211092599A CN 115190084 B CN115190084 B CN 115190084B
Authority
CN
China
Prior art keywords
starting
memory test
executing
memory
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211092599.7A
Other languages
Chinese (zh)
Other versions
CN115190084A (en
Inventor
冯笑
李剑平
徐立颖
刘野
景三辉
周亚光
许松伟
梁俊
李风新
刘正尧
张小可
李继豪
刘飞
靳琪
张阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CETC 15 Research Institute
Original Assignee
CETC 15 Research Institute
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 CETC 15 Research Institute filed Critical CETC 15 Research Institute
Priority to CN202211092599.7A priority Critical patent/CN115190084B/en
Publication of CN115190084A publication Critical patent/CN115190084A/en
Application granted granted Critical
Publication of CN115190084B publication Critical patent/CN115190084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • 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/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/557Error correction, e.g. fault recovery or fault tolerance

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method and a system for starting an Ethernet switching module, which belong to the field of network communication, and comprise the following steps: executing BIOS starting operation, initializing the memory and determining the mode of executing the memory test; performing memory test based on the determined memory test mode; scanning the equipment according to the use requirement; setting a quick start switch, and if a first condition is met, executing quick start; executing an operating system starting operation, carrying out kernel loading and decompression, initializing a processor platform and a subsystem, loading and initializing a hardware drive and mounting a file system, executing an init starting process and starting a shell console; and executing the SDK loading starting operation, and cutting off the first number of exchange functions. The method and the device can shorten the starting time of the Ethernet switching module, improve the real-time performance and robustness of a system communication network, and realize quick establishment of system service interaction and quick recovery of fault restarting.

Description

Method and system for starting Ethernet switching module
Technical Field
The present application relates to the field of network communications, and in particular, to a method and a system for starting an ethernet switching module.
Background
The Ethernet exchange module is used for realizing communication forwarding of Ethernet data in the system, providing a signal path for any network node accessed in the system and playing a key role in mutual cooperation of the whole system. The starting time consumed from power-on to normal operation of the system is an important parameter of the system, and the shorter the starting time is, the quicker the system responds, and the stronger the capability of coping with emergencies. The whole starting time of the system is determined by all parts, the bucket effect is followed, the influence of all parts on the whole system is different according to the importance degree of the parts, the cooperation among all parts through Ethernet communication in the system seriously depends on whether the network is normally communicated, otherwise, all parts become information isolated islands, and the system cannot normally operate, so the starting time of the Ethernet exchange module is extremely important to the whole starting time of the system.
In order to solve the above problems, the present application provides a method and a system for starting an ethernet switching module, which can shorten the time for starting the ethernet switching module, improve the real-time performance and robustness of a system communication network, and implement quick establishment of system service interaction and quick recovery of fault restart.
Disclosure of Invention
In order to solve the defects of the prior art, the application provides a starting method of an Ethernet switching module, which executes BIOS starting operation, initializes the memory and determines a mode for executing memory test; performing memory test based on the determined memory test mode; scanning the equipment according to the use requirement; setting a quick start switch, and executing quick start if a first condition is met; executing an operating system starting operation, carrying out kernel loading and decompression, initializing a processor platform and a subsystem, loading and initializing a hardware drive and mounting a file system, executing an init starting process and starting a shell console; and executing SDK loading starting operation, and cutting off the first number of exchange functions. The method and the device can shorten the starting time of the Ethernet switching module, improve the real-time performance and robustness of a system communication network, and realize quick establishment of system service interaction and quick recovery of fault restarting.
The technical effect that this application will reach is realized through following scheme:
in a first aspect, an embodiment of the present invention provides a method for starting an ethernet switching module, where the method includes:
executing BIOS starting operation, initializing the memory, and determining the memory test mode, wherein the memory test mode comprises one or more of the following modes: determining to execute the memory test, determining the times of executing the memory test, determining to skip the memory test and not execute the memory test, or determining to execute a first range of the memory test; performing a memory test based on the determined memory test mode; scanning the equipment according to the use requirement; setting a quick start switch, and executing quick start if a first condition is met;
executing an operating system starting operation, carrying out kernel loading and decompression, initializing a processor platform and a subsystem, loading and initializing a hardware drive and mounting a file system, executing an init starting process and starting a shell console;
and executing SDK loading starting operation, and cutting off the first number of exchange functions.
Further, the setting of a fast start switch, if a first condition is met, the fast start is executed, and the meeting of the first condition includes:
it is determined that full functionality is required or that the start-up has failed.
Further, the performing kernel loading and decompression includes:
cutting out unwanted hardware drivers, the hardware drivers including one or more of: RAID independent redundant disk array, bluetooth, CD-ROM read only disk, firewire interface, video card, virtualization, NVME solid state hard disk.
Further, the tailoring of the first number of switching functions includes:
cutting off unnecessary functions in the executing SDK loading start operation, wherein the unnecessary functions comprise one or more of the following functions: IP tunnel function, DDOS anti-attack function, SDN function, OAM function.
In a second aspect, an embodiment of the present invention provides a system for starting an ethernet switching module, including:
the BIOS starting operation module is used for executing BIOS starting operation, initializing the memory and determining a memory test execution mode, wherein the memory test execution mode comprises one or more of the following modes: determining to execute the memory test, determining the times of executing the memory test, and determining to skip the memory test and not execute the memory test, or determining to execute a first range of the memory test; performing a memory test based on the determined memory test mode; scanning the equipment according to the use requirement; setting a quick start switch, and executing quick start if a first condition is met;
the operating system starts the operating module, carry out the start operation of the operating system, carry on the kernel and load and decompress, carry on the initialization to processor platform and subsystem, load and initialize the hardware drive and mount the file system, carry out the init and initiate the course and start the shell control cabinet;
and the SDK loading and starting operation module executes the SDK loading and starting operation and cuts out the first number of exchange functions.
Further, the setting of the fast start switch, if a first condition is met, then executing the fast start, wherein meeting the first condition includes:
it is determined that full functionality is required or that the start-up has failed.
Further, the performing kernel loading and decompression includes:
pruning out unwanted hardware drivers, the hardware drivers including one or more of: RAID (redundant array of independent disks), bluetooth, CD-ROM (compact disc read-only memory), firewire interface, display card, virtualization and NVME (network video management entity) solid state disk.
Further, tailoring a first number of switching functions includes:
cutting out unnecessary functions in the execution of the SDK loading start-up operation, wherein the unnecessary functions comprise one or more of the following functions: IP tunnel function, DDOS anti-attack function, SDN function, OAM function.
In another aspect, an electronic device is provided, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method as described above when executing the program.
In yet another aspect, there is also provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method as described above.
The system for starting the Ethernet switching module provided by the embodiment of the invention can shorten the starting time of the Ethernet switching module, improve the real-time property and the robustness of a system communication network and realize the technical effects of quickly establishing system service interaction and quickly recovering fault restart.
Drawings
In order to more clearly illustrate the embodiments or prior art solutions of the present application, the drawings used in the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the description below are only some embodiments described in the present application, and that other drawings can be obtained by those skilled in the art without inventive labor.
Fig. 1 is a schematic diagram of an architecture design of a switch module according to an embodiment of the present application;
fig. 2 is a first flowchart of a method for starting an ethernet switching module according to an embodiment of the present application;
fig. 3 is a flowchart of a method for starting an ethernet switching module according to an embodiment of the present application;
FIG. 4 is a flow chart illustrating a BIOS boot operation according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating an operating system boot operation according to an embodiment of the present application;
fig. 6 is a schematic flowchart of an SDK load boot operation in an embodiment of the present application;
fig. 7 is a block diagram of a start system of an ethernet switching module according to an embodiment of the present application;
fig. 8 is a schematic block diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following embodiments and accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is to be noted that unless otherwise defined, technical or scientific terms used in one or more embodiments of the present disclosure should have the ordinary meaning as understood by one of ordinary skill in the art to which the present disclosure belongs. The use of "first," "second," and similar terms in one or more embodiments of the present disclosure is not intended to indicate any order, quantity, or importance, but rather is used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
Currently, the start time of the ethernet switching module consists of three parts: the method comprises the steps of firstly, starting time of a BIOS matched with a processor, secondly, starting time of an operating system of an exchange module, and thirdly, starting time of a software tool kit SDK provided by an exchange chip manufacturer; after the SDK is operated, the switching chip is configured, so that the complete starting process of the Ethernet switching module is completed.
In the related art, the starting of the three parts consumes time, and each part is not well optimized, so that the starting method of the Ethernet switching module provided by the invention is required to be adopted, so that the starting time of the Ethernet switching module can be shortened, the real-time property and the robustness of a system communication network are improved, and the quick establishment of system service interaction and the quick recovery of fault restarting are realized.
Various non-limiting embodiments of the present application are described in detail below with reference to the attached drawing figures.
First, referring to fig. 1, the architecture design of the switch module on which the present invention is based will be described in detail:
fig. 1 is a schematic diagram of an architecture design of a switch module based on the embodiment of the present application, and as shown in fig. 1, a switch module designed by a "processor + switch chip" architecture is adopted, and based on the architecture design in fig. 1, the switch module can be generally modified from the following aspects, respectively: the invention mainly introduces main improvement points from the following three aspects, namely, the main improvement points of the invention comprise: the adaptability improvement optimization is carried out from three aspects of BIOS starting, operating system starting and SDK loading starting, so as to realize the technical effects of improving the starting speed of the Ethernet switching module and the like.
Fig. 2 is a first flowchart of a method for starting an ethernet switching module according to an embodiment of the present application; the following describes the method for starting the ethernet switching module in this embodiment in detail:
step 100, executing BIOS startup operation, initializing the memory, and determining a memory test mode, wherein the memory test mode includes one or more of the following: determining to execute the memory test, determining the times of executing the memory test, and determining to skip the memory test and not execute the memory test, or determining to execute a first range of the memory test; performing a memory test based on the determined memory test mode; scanning the equipment according to the use requirement; setting a quick start switch, and if a first condition is met, executing quick start;
illustratively, the BIOS start-up is to gradually complete hardware initialization and scanning processes, so as to form a basic minimum system, which has an operating system capability of loading a storage medium, and completes preparation work before entering an operating system, which may specifically include but is not limited to: self-checking, basic initialization (e.g., CPU, cache, memory, etc.), system device scanning and initializing address space, loading device drivers and device extension ROM firmware, starting countdown, scanning boot devices, and loading boot menus, etc., which are exemplary only and not limiting.
Illustratively, the manner of memory testing includes one or more of: determining to execute the memory test, determining the times of executing the memory test, and determining to skip the memory test and not execute the memory test, or determining to execute a first range of the memory test;
specifically, whether the memory test is executed or not may be determined first, and if it is determined that the memory test is not required according to the relevant condition, it is determined that the memory test is skipped directly; thereby saving unnecessary time for memory test;
if the memory test is judged to be needed according to the relevant conditions, the range and/or the times of the memory test can be determined firstly, so that the time of the memory test can be limited within a certain time range, and the memory test does not consume too long time;
for example, the range or the time of the memory test may be determined according to the time requirement, and is not limited herein, and any determination manner that can achieve the effect of the present solution and is contemplated by those skilled in the art may be applied herein.
Illustratively, a quick start switch is provided, and in the quick start executed if a first condition is satisfied, the satisfying the first condition includes: it is determined that full functionality is required or that the start-up has failed.
In particular, the first condition is exemplary, and other conditions that are expected to occur to those skilled in the art may be applied thereto, and are not limiting.
The above steps are directed to the main time consuming operations among them: the memory initialization, the equipment scanning, the starting countdown and the like are modified, so that the BIOS starting time is greatly shortened, and the starting efficiency of the Ethernet switching module is improved.
Step 101, executing an operating system starting operation, carrying out kernel loading and decompression, initializing a processor platform and a subsystem, loading and initializing a hardware driver and mounting a file system, executing an init starting process and starting a shell console;
for example, the kernel loading mode is to store the compressed file of the kernel in the system when the system is started, read the compressed file and decompress the read compressed file in the memory so as to facilitate subsequent execution, and a specific kernel loading or decompressing mode is not limited in this embodiment, and all modes that can be applied by a person skilled in the art can be applied thereto, and are not specifically limited.
Specifically, the kernel loading and decompressing includes:
cutting out unwanted hardware drivers, the hardware drivers including one or more of: RAID (redundant array of independent disks), bluetooth, CD-ROM (compact disc read-only memory), firewire interface, display card, virtualization and NVME (network video management entity) solid state disk.
Step 102, executing SDK loading starting operation, and cutting off a first number of exchange functions.
Specifically, the method comprises cutting off unnecessary functions in executing the SDK loading starting operation, wherein the unnecessary functions comprise one or more of the following: IP tunnel function, DDOS anti-attack function, SDN function, OAM function.
Illustratively, the switch chip is configured in a kernel-mode SDK driver manner, the switch chip is mainly started by loading and executing the SDK, and the main flow of the related API execution is shown in fig. 6. In the SDK initialization process, exchange function configuration such as two-layer forwarding table, MAC address filtering, port configuration, port mapping, spanning tree protocol, broadcast storm suppression, three-layer routing table configuration, VLAN division and aggregation and the like is completed through reading and writing of a large number of registers.
The steps are used for improving and optimizing the SDK loading and starting aiming at the main time-consuming operation, thereby greatly shortening the SDK loading and starting time and improving the starting efficiency of the Ethernet switching module.
Fig. 3 is a second flowchart of a method for starting an ethernet switching module according to an embodiment of the present application; the following describes in detail a method for starting the ethernet switching module in this embodiment:
the method for starting the ethernet switching module in this embodiment mainly includes three aspects, which are: the schematic diagrams of the improved optimization of the three aspects of BIOS start, operating system start, and SDK load operation can refer to fig. 4-6;
FIG. 4 is a flow chart illustrating a BIOS boot operation according to an embodiment of the present application; as can be seen in FIG. 4, the BIOS boot operation may include the following steps: firstly, powering on, then self-checking, completing basic initialization (such as CPU, CACHE, memory and the like), then scanning system equipment, initializing an address space, loading equipment drivers and equipment expansion ROM firmware, completing equipment initialization, then starting countdown, interrupting a starting process by a user, scanning starting equipment to load a starting menu, or firstly entering BIOS setting and then scanning starting equipment to load the starting menu, and realizing system starting.
In a specific implementation process, the ethernet switching module BIOS start improvement optimization can be optimized from the following aspects:
1) Reducing the testing times of the memory during starting, adopting the memory parameters during the last successful starting during each starting, and performing retraining when the memory testing fails;
2) The memory test range is reduced according to certain conditions or the memory test can be skipped directly;
3) Shortening the overtime time of scanning detection of the equipment, quickly detecting the peripheral equipment with abnormal work, and skipping;
4) For some fixed application scenarios, the unused device scanning process is removed, for example, in the case of not using USB, USB scanning may be optionally skipped, or in the case of not requiring display, the display card device initialization may be cancelled;
5) Optimizing or simplifying the initialization mode of the equipment, for example, directly acquiring a main frequency detection flow by reading hardware configuration, and accelerating the file reading speed by adopting a DMA mode through SATA (serial advanced technology attachment);
6) Adjusting the BIOS starting sequence, and fixing the hard disk starting mode to the priority or even the first starting item;
7) Shortening the BIOS configuration countdown time, and quickly entering a system starting process;
8) The debugging information output is shielded, and the time delay caused by serial port output is reduced;
9) A quick start switch is provided to enable the normal start mode to be resumed when full functionality is required or a problem arises.
Through the above various modes or combination thereof, the BIOS starting time can be greatly shortened, the starting efficiency of the Ethernet switching module is improved, and the real-time performance and the robustness of a system communication network are improved.
FIG. 5 is a flowchart illustrating an operating system boot operation according to an embodiment of the present application; as can be seen in FIG. 5, the operating system boot operation may include the following steps: loading and decompressing a kernel, initializing a CPU (Central processing Unit) platform, initializing each subsystem (such as a network, a file system, a memory and the like), loading and initializing each hardware driver and mounting the file system, executing an init starting process, starting a shell console, and finally starting a user program;
in a specific implementation process, the improvement optimization of the operating system of the Ethernet switching module can be optimized from the following aspects:
1) An efficient file system suitable for embedded application is adopted, such as YAFFS2 and the like;
2) Replacing a default C library by a lightweight C/C + + library such as musl, uclib and the like, so that the execution efficiency is improved;
3) Using a suitably embedded toolset, such as a busybox or the like;
4) Reduce inactivity latency, e.g., waiting for network connections;
5) Unnecessary file system mounts, e.g., proc, sys, etc., are removed, especially for some temporary memory file systems.
Through the above various modes or combination thereof, the starting time of the operating system can be greatly shortened, the starting efficiency of the Ethernet switching module is improved, and the real-time performance and the robustness of the system communication network are improved.
Fig. 6 is a schematic flowchart of an SDK load start operation in an embodiment of the present application; as can be seen from fig. 6, the SDK load launch operation may include the following steps: and (3) an SDK entry function, wherein the HSL _ hw directory is an SDK initialization configuration environment, the SDK is initialized, a device file and an interface file are created, and the HSL _ hw directory initializes HSL and subsequent SDK related to the platform.
In a specific implementation process, the SDK loading start-up improvement optimization of the ethernet switching module may be optimized from the following aspects:
1) Cutting unnecessary functions such as an IP tunnel function, a DDOS anti-attack function, an SDN function, an OAM function, four-layer characteristics and the like when starting, thereby reducing the time for initializing configuration;
2) And modifying the compiling option, removing debugging information, reducing the volume of the SDK mirror image to 50%, and reducing the output delay of the serial port.
Through the above various modes or combination thereof, the SDK loading starting time can be greatly shortened, the starting efficiency of the Ethernet switching module is improved, and the real-time performance and the robustness of a system communication network are improved.
The beneficial effects of the invention at least comprise:
the invention carries out reconstruction optimization aiming at three parts of the Ethernet switching module starting process, shortens the time of starting the Ethernet switching module and carrying out normal data communication by 24 seconds, and is convenient for the system to realize service interaction and recovery more quickly. The method for optimizing the starting of the Ethernet switching module is suitable for networks with high requirements on real-time performance and robustness, and is particularly suitable for large multi-blade servers and Ethernet switches in space-based, sea-based, land-based and other systems.
Furthermore, the starting optimization method is adopted in the Ethernet communication networks of various command control systems, so that the rapid establishment of service data exchange and the rapid recovery after the system is restarted can be realized, the real-time property of information acquisition of a user is ensured, and the method has wide application scenes.
Fig. 7 is a block diagram of a start system of an ethernet switching module according to an embodiment of the present application; as shown in fig. 7, an embodiment of the present invention provides a system for starting an ethernet switching module, including:
the BIOS starts the operation module;
the operating system starts an operating module;
loading a starting operation module by the SDK;
specifically, the functions of the modules are respectively as follows:
the BIOS starting operation module is used for executing BIOS starting operation, initializing the memory and determining a memory test mode, wherein the memory test mode comprises one or more of the following modes: determining to execute the memory test, determining the times of executing the memory test, determining to skip the memory test and not execute the memory test, or determining to execute a first range of the memory test; performing a memory test based on the determined memory test mode; scanning the equipment according to the use requirement; setting a quick start switch, and executing quick start if a first condition is met;
the operating system starts the operating module, carry out the start operation of the operating system, carry on the kernel and load and decompress, carry on the initialization to processor platform and subsystem, load and initialize the hardware drive and mount the file system, carry out the init and initiate the course and start the shell control cabinet;
and the SDK loading and starting operation module executes the SDK loading and starting operation and cuts out the first number of switching functions.
The above system can implement the above described methods of the present invention, and can also implement all the technical effects implemented by the method for starting the ethernet switching module in the present invention, which are not described herein again.
Fig. 8 is a schematic block diagram of an electronic device in an embodiment of the present application.
It should be noted that the method of one or more embodiments of the present invention may be executed by a single device, such as a computer or server. The method of the embodiment can also be applied to a distributed scene and is completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the devices may perform only one or more steps of the method of one or more embodiments of the present invention, and the devices may interact with each other to complete the method.
It should be noted that the above-mentioned description describes particular embodiments of the invention. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same inventive concept, the invention also discloses an electronic device corresponding to the method of any embodiment;
specifically, fig. 8 is a schematic diagram illustrating a hardware structure of an electronic device for startup of an ethernet switching module according to this embodiment, where the electronic device may include: a processor 410, a memory 420, an input/output interface 430, a communication interface 440, and a bus 450. Wherein processor 410, memory 420, input/output interface 430, and communication interface 440 are communicatively coupled to each other within the device via bus 450.
The processor 410 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided by the embodiments of the present invention.
The Memory 420 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 420 may store an operating system and other application programs, and when the technical solution provided by the embodiment of the present invention is implemented by software or firmware, the relevant program codes are stored in the memory 420 and called to be executed by the processor 410.
The input/output interface 430 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and the output devices may include a display, speaker, vibrator, indicator light, etc.
The communication interface 440 is used for connecting a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication in a wired manner (for example, USB, network cable, etc.), and can also realize communication in a wireless manner (for example, mobile network, WIFI, bluetooth, etc.).
Bus 450 includes a pathway to transfer information between various components of the device, such as processor 410, memory 420, input/output interface 430, and communication interface 440.
It should be noted that although the above-mentioned device only shows the processor 410, the memory 420, the input/output interface 430, the communication interface 440 and the bus 450, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only the components necessary to implement embodiments of the present invention, and need not include all of the components illustrated in the figures.
The electronic device in the foregoing embodiment is used to implement the method for starting the corresponding ethernet switching module in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above embodiments, one or more embodiments of the present invention also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the ethernet switching module booting method according to any of the above embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the foregoing embodiment are used to enable the computer to execute the method for starting the ethernet switching module according to any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; features from the above embodiments or from different embodiments may also be combined within the inventive idea, steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the invention as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures for simplicity of illustration and discussion, and so as not to obscure one or more embodiments of the invention. Furthermore, apparatus may be shown in block diagram form in order to avoid obscuring the one or more embodiments of the invention, and also in view of the fact that specifics with respect to implementation of such block diagram apparatus are highly dependent upon the platform within which the one or more embodiments of the present invention are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the invention, it should be apparent to one skilled in the art that one or more embodiments of the invention can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures, such as Dynamic RAM (DRAM), may use the discussed embodiments.
It is intended that the one or more embodiments of the present invention embrace all such alternatives, modifications and variations as fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of one or more embodiments of the present invention are intended to be included within the scope of the present invention.

Claims (6)

1. A method for starting an ethernet switching module, the method comprising:
executing BIOS starting operation, initializing the memory, and determining the memory test mode, wherein the memory test mode comprises one or more of the following modes: determining to execute the memory test, determining the times of executing the memory test, and determining to skip the memory test and not execute the memory test, or determining to execute a first range of the memory test; performing a memory test based on the determined memory test mode; scanning the equipment according to the use requirement; setting a quick start switch, and if a first condition is met, executing quick start; wherein the satisfying a first condition comprises: determining that a complete function is required, or that a start-up failure occurs;
executing an operating system starting operation, carrying out kernel loading and decompression, initializing a processor platform and a subsystem, loading and initializing a hardware drive and mounting a file system, executing an init starting process and starting a shell console;
executing SDK loading starting operation, cutting off a first number of exchange functions, wherein the cutting off of the first number of exchange functions comprises the following steps: cutting off unnecessary functions in the executing SDK loading start operation, wherein the unnecessary functions comprise one or more of the following functions: IP tunnel function, DDOS anti-attack function, SDN function, OAM function.
2. The method for starting an ethernet switching module according to claim 1, wherein said performing kernel loading and decompression comprises:
pruning out unwanted hardware drivers, the hardware drivers including one or more of: RAID independent redundant disk array, bluetooth, CD-ROM read only disk, firewire interface, video card, virtualization, NVME solid state hard disk.
3. A system for enabling an ethernet switching module, the system comprising:
the BIOS starting operation module is used for executing BIOS starting operation, initializing the memory and determining a memory test execution mode, wherein the memory test execution mode comprises one or more of the following modes: determining to execute the memory test, determining the times of executing the memory test, and determining to skip the memory test and not execute the memory test, or determining to execute a first range of the memory test; performing a memory test based on the determined memory test mode; scanning the equipment according to the use requirement; setting a quick start switch, and executing quick start if a first condition is met; wherein the satisfying a first condition comprises: determining that a complete function is required, or that a start-up failure occurs;
the operating system starts the operating module, carries out the operating system starting operation, carries out kernel loading and decompression, initializes the processor platform and the subsystem, loads and initializes the hardware drive and the mount file system, executes the init starting process and starts the shell console;
the SDK loading and starting operation module executes the SDK loading and starting operation, cuts out the exchange functions of the first quantity, and the cutting out the exchange functions of the first quantity comprises the following steps: cutting off unnecessary functions in the executing SDK loading start operation, wherein the unnecessary functions comprise one or more of the following functions: IP tunnel function, DDOS anti-attack function, SDN function, OAM function.
4. The system for initiating an ethernet switching module according to claim 3, wherein said performing kernel loading and decompression comprises:
pruning out unwanted hardware drivers, the hardware drivers including one or more of: RAID (redundant array of independent disks), bluetooth, CD-ROM (compact disc read-only memory), firewire interface, display card, virtualization and NVME (network video management entity) solid state disk.
5. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 2 when executing the program.
6. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-2.
CN202211092599.7A 2022-09-08 2022-09-08 Method and system for starting Ethernet switching module Active CN115190084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211092599.7A CN115190084B (en) 2022-09-08 2022-09-08 Method and system for starting Ethernet switching module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211092599.7A CN115190084B (en) 2022-09-08 2022-09-08 Method and system for starting Ethernet switching module

Publications (2)

Publication Number Publication Date
CN115190084A CN115190084A (en) 2022-10-14
CN115190084B true CN115190084B (en) 2022-12-13

Family

ID=83524095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211092599.7A Active CN115190084B (en) 2022-09-08 2022-09-08 Method and system for starting Ethernet switching module

Country Status (1)

Country Link
CN (1) CN115190084B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104517655A (en) * 2013-10-01 2015-04-15 纬创资通股份有限公司 Memory test method and device
CN109683968A (en) * 2018-12-18 2019-04-26 北京东土军悦科技有限公司 Interchanger quick start method, interchanger and storage medium
CN112532541A (en) * 2019-09-19 2021-03-19 恒为科技(上海)股份有限公司 Method and device for starting switch
CN113282351A (en) * 2021-05-27 2021-08-20 北京东土军悦科技有限公司 Switch starting method and device, electronic equipment and storage medium
CN114115923A (en) * 2021-12-09 2022-03-01 肖赟 Operating system building method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11546275B2 (en) * 2020-09-23 2023-01-03 Cisco Technology, Inc. Near-hitless upgrade or fast bootup with mobile virtualized hardware
CN113885950B (en) * 2021-12-06 2022-03-01 中国电子科技集团公司第十五研究所 Quick starting method and device of control panel, terminal equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104517655A (en) * 2013-10-01 2015-04-15 纬创资通股份有限公司 Memory test method and device
CN109683968A (en) * 2018-12-18 2019-04-26 北京东土军悦科技有限公司 Interchanger quick start method, interchanger and storage medium
CN112532541A (en) * 2019-09-19 2021-03-19 恒为科技(上海)股份有限公司 Method and device for starting switch
CN113282351A (en) * 2021-05-27 2021-08-20 北京东土军悦科技有限公司 Switch starting method and device, electronic equipment and storage medium
CN114115923A (en) * 2021-12-09 2022-03-01 肖赟 Operating system building method and system

Also Published As

Publication number Publication date
CN115190084A (en) 2022-10-14

Similar Documents

Publication Publication Date Title
JP4399020B1 (en) Information processing apparatus and memory management method
CN110780890A (en) System upgrading method and device, electronic equipment and medium
CN108304282B (en) Control method of double BIOS and related device
CN109905770B (en) Terminal starting method and device and terminal
US7007195B2 (en) BIOS shadowed small-print hard disk drive as robust, always on, backup for hard disk image & software failure
CN110262893B (en) Method and device for configuring mirror image memory and computer storage medium
CN113282351A (en) Switch starting method and device, electronic equipment and storage medium
CN111090546A (en) Method, device and equipment for restarting operating system and readable storage medium
CN115190084B (en) Method and system for starting Ethernet switching module
CN107766097B (en) Electronic device for executing starting operation based on starting instruction provided by endpoint device
CN110347444B (en) Starting method and system for SSD multi-state switching
CN110753040B (en) Request processing method and device
CN116028129B (en) UEFI (unified extensible firmware interface) quick starting method based on Feiteng platform and Feiteng platform
CN102360300A (en) Starting method and device of operation system
CN115129345A (en) Firmware upgrading method, device, equipment and storage medium
CN111078303B (en) Method and device for optimizing UEFI (unified extensible firmware interface) boot startup
CN113778485A (en) System operation method and device of electronic chip, electronic chip and storage medium
CN110673974A (en) System debugging method and device
CN117234544B (en) Method and device for recovering system of server equipment
KR100588199B1 (en) Method for recovering download mode in program download fail state of portable terminal, and portable terminal employing it
CN116628670B (en) Authority setting method and electronic equipment
TWI750783B (en) Bios recovery system and method
CN110677357B (en) Method and device for rapidly forwarding port data of switching equipment
KR101666619B1 (en) Method and system for memory management in imbedded device environment
WO2014122694A1 (en) Information processing device and program

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