Network equipment system updating method and device and processing equipment
By adopting a functional modular mechanism in the network device system, process replacement and update of the functional points to be updated is solved, the problem of traditional system updates need to be restarted, and unconscious system updates are achieved, and the user experience and stability of enterprise network services are improved.
Patent Information
- Application Number
- CN202411931839.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-18
AI Technical Summary
The traditional network equipment system update method requires restarting the system, which leads to inconvenient user experience and affects the normal development of enterprise network services.
Adopt a functional modular mechanism to replace and update specific processes for the functional points to be updated to avoid system restarts and realize unconscious system updates.
It realizes system updates without restarting the system, improves user experience, and takes into account the needs of enterprise network services.
Smart Images

Figure CN119854118A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network equipment update management, and specifically to a network equipment system update method, device and processing equipment. Background Art
[0002] Corresponding network devices are usually deployed in the network architecture, such as switches, firewalls and other different types of network devices, and corresponding network services are provided through these network devices.
[0003] With the development of the Internet, higher requirements are placed on the stability of network equipment performance. The traditional system update method means the need to restart the system, and during this period of time, it is obviously necessary to pre-arrange matters such as network equipment offline, update and online. In actual application, this network equipment update method is obviously inconvenient to a certain extent for user experience, and it is easy to affect the company's related work based on network services. Summary of the invention
[0004] The present application provides a network device system update method, apparatus and processing equipment for deploying the system based on functional modularization for the network device system update target, replacing and updating the specific process for the functional points to be updated, avoiding the inconvenience associated with the need to restart the system, and achieving an imperceptible system update effect. In practical applications, it well balances user experience and enterprise network service needs.
[0005] In a first aspect, the present application provides a network device system update method, the method comprising:
[0006] In the network architecture, for the deployed systems on the network devices, determine the new function points involved in the current system update task. The deployed systems use a functional modularization mechanism to maximize the decoupling of each functional module, and the new function points are used to replace the original function points that need to be updated.
[0007] In the compilation environment that is compatible with the deployed system, compile the new processes corresponding to the new functional points;
[0008] Import the compilation results of the new process into the deployed system to complete the preliminary configuration of the new function points;
[0009] Without performing a system restart, close the corresponding process of the original function point that needs to be updated and release the corresponding resources to switch to the newly added process to perform system work and complete the current system update task.
[0010] In combination with the first aspect of the present application, in a first possible implementation of the first aspect of the present application, in a deployed system, a newly added process and a corresponding process of the original functional point that needs to be updated share memory.
[0011] In combination with the first possible implementation of the first aspect of the present application, in a second possible implementation of the first aspect of the present application, if there are multiple deployed systems, importing the compilation result of the newly added process into the deployed system includes:
[0012] Extract the base and system layers of multiple deployed systems;
[0013] Package the compilation results of the base layer, system layer and the newly added process as the read-write layer;
[0014] Import the packaging results into multiple deployed systems respectively.
[0015] In combination with the first aspect of the present application, in a third possible implementation of the first aspect of the present application, closing the corresponding process of the original function point to be updated includes:
[0016] Monitor whether the corresponding process of the original function point to be updated is in an idle state;
[0017] If the corresponding process of the original function point to be updated is in an idle state, the corresponding process of the original function point to be updated is closed.
[0018] In combination with the third possible implementation of the first aspect of the present application, in a fourth possible implementation of the first aspect of the present application, before monitoring whether the corresponding process of the original function point to be updated is in an idle state, the method further includes:
[0019] Analyze the corresponding process of the original function point that needs to be updated in the normal working state, and the feasibility of switching to the idle state;
[0020] Based on the feasibility analysis results, the corresponding process of the original function point that needs to be updated is switched to the idle state.
[0021] In combination with the first aspect of the present application, in a fifth possible implementation manner of the first aspect of the present application, the method further includes:
[0022] Configure the process startup items of the deployed system at system startup so that the deployed system will start the newly added process while ignoring the corresponding process of the original function point that needs to be updated during the subsequent restart process.
[0023] In combination with the first aspect of the present application, in a sixth possible implementation manner of the first aspect of the present application, in the network architecture, for a deployed system on a network device, before determining a new function point involved in a current system update task, the method further includes:
[0024] In the system deployment process of the deployed system, the deployed system is functionally modularized through the Union File System UnionFS.
[0025] In a second aspect, the present application provides a network device system update device, the device comprising:
[0026] A determination unit is used to determine, in the network architecture, for a deployed system on a network device, a newly added function point involved in a current system update task, wherein the deployed system adopts a functional modularization mechanism to maximize the decoupling of each functional module, and the newly added function point is used to replace the original function point that needs to be updated;
[0027] A compilation unit is used to compile a new process corresponding to a new function point in a compilation environment adapted to the deployed system;
[0028] The import unit is used to import the compilation results of the newly added process into the deployed system to complete the preliminary configuration of the newly added function points;
[0029] The switching unit is used to close the corresponding process of the original function point that needs to be updated and release the corresponding resources without performing a system restart operation, so as to switch to the newly added process to perform system work and complete the current system update task.
[0030] In combination with the second aspect of the present application, in a first possible implementation of the second aspect of the present application, in a deployed system, the newly added process and the corresponding process of the original function point that needs to be updated share memory.
[0031] In combination with the first possible implementation of the second aspect of the present application, in the second possible implementation of the second aspect of the present application, if there are multiple deployed systems, the import unit is specifically used to:
[0032] Extract the base and system layers of multiple deployed systems;
[0033] Package the compilation results of the base layer, system layer and the newly added process as the read-write layer;
[0034] Import the packaging results into multiple deployed systems respectively.
[0035] In combination with the second aspect of the present application, in a third possible implementation manner of the second aspect of the present application, the switching unit is specifically configured to:
[0036] Monitor whether the corresponding process of the original function point to be updated is in an idle state;
[0037] If the corresponding process of the original function point to be updated is in an idle state, the corresponding process of the original function point to be updated is closed.
[0038] In combination with the third possible implementation of the second aspect of the present application, in a fourth possible implementation of the second aspect of the present application, the switching unit is further used to:
[0039] Analyze the corresponding process of the original function point that needs to be updated in the normal working state, and the feasibility of switching to the idle state;
[0040] Based on the feasibility analysis results, the corresponding process of the original function point that needs to be updated is switched to the idle state.
[0041] In combination with the second aspect of the present application, in a fifth possible implementation manner of the second aspect of the present application, the apparatus further includes a configuration unit, configured to:
[0042] Configure the process startup items of the deployed system at system startup so that the deployed system will start the newly added process while ignoring the corresponding process of the original function point that needs to be updated during the subsequent restart process.
[0043] In combination with the second aspect of the present application, in a sixth possible implementation manner of the second aspect of the present application, in the network architecture, the device further includes a processing unit, which is used to:
[0044] In the system deployment process of the deployed system, the deployed system is functionally modularized through the Union File System UnionFS.
[0045] In a third aspect, the present application provides a processing device, including a processor and a memory, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the method provided in the first aspect of the present application or any possible implementation method of the first aspect of the present application is executed.
[0046] In a fourth aspect, the present application provides a computer-readable storage medium, which stores multiple instructions, and the instructions are suitable for a processor to load to execute the method provided by the first aspect of the present application or any possible implementation of the first aspect of the present application.
[0047] From the above content, it can be concluded that the present application has the following beneficial effects:
[0048] Aiming at the goal of updating the network equipment system, this application deploys the system based on functional modularization, and replaces and updates the specific processes according to the functional points to be updated, avoiding the inconvenience caused by the need to restart the system, and can achieve an imperceptible system update effect. In actual applications, it takes into account both user experience and enterprise network service needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 A flowchart of a method for updating a network device system in this application;
[0051] Figure 2 This is a scenario diagram of this application single / multi-system mode;
[0052] Figure 3 A schematic diagram of the structure of the network equipment system update device of the present application;
[0053] Figure 4 A schematic diagram of the structure of the processing equipment of this application. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0055] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.
[0056] The division of modules in this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in this application. In addition, the modules or submodules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.
[0057] Before introducing the network device system update method provided by the present application, the background content involved in the present application is first introduced.
[0058] The network device system update method, device and computer-readable storage medium provided in the present application can be applied to processing equipment for deploying systems based on functional modularization, replacing and updating specific processes for functional points to be updated, avoiding the inconvenience associated with the need to restart the system, and achieving an imperceptible system update effect. In practical applications, it well balances user experience and enterprise network service needs.
[0059] The network device system update method mentioned in this application can be executed by a network device system update device, or a server, physical host or user equipment (UE) and other different types of processing devices integrated with the network device system update device. The network device system update device can be implemented in hardware or software, and the UE can be a terminal device such as a smart phone, tablet computer, laptop computer, desktop computer or personal digital assistant (PDA), and the processing device can be set in a device cluster.
[0060] In actual applications, the processing device that executes the network device system update method of the present application or is equipped with the application service corresponding to the network device system update method of the present application is usually a device node in the network architecture responsible for updating the network device. Of course, the device node can be adjusted or temporarily configured, so the specific device type and device deployment form of the processing device are relatively flexible.
[0061] In addition, the processing device may also be outside the enterprise network architecture and provide third-party network device system update services in the form of an external device. This may also happen in some cases. Therefore, this application does not make specific limitations on the processing device.
[0062] Next, we will introduce the network device system update method provided by this application.
[0063] First, see Figure 1 , Figure 1 A flow chart of a method for updating a network device system of the present application is shown. The method for updating a network device system provided by the present application may specifically include the following steps S101 to S104:
[0064] Step S101, in the network architecture, for the deployed system on the network device, determining the newly added function points involved in the current system update task, wherein the deployed system adopts a functional modularization mechanism to maximize the decoupling of each functional module, and the newly added function points are used to replace the original function points that need to be updated;
[0065] It can be understood that the present application relates to a system update process carried out on a system that has been pre-deployed on relevant network devices in a network architecture. For the sake of convenience, such a system is recorded as a deployed system.
[0066] For deployed systems, this application is deployed under a functional modularization mechanism during prior / preliminary system deployment work. In this context, it may also involve parsing the original system to be deployed, so as to parse and process it into a system that can be functionally modularized.
[0067] In this case, the system update processing carried out in this application is specifically targeted at the relevant functional points involved in the deployed system under the functional modularization mechanism. In this way, when the current system update task is determined, the deployed system that currently needs to be updated can be located, and the new functional points involved in the current system update task can be specifically determined.
[0068] Among them, the functional modularization mechanism involved in this application, in layman's terms, its functional modularization processing is the process of dividing the original complex system into several modules layer by layer from top to bottom, each module completes a specific sub-function, and all modules are combined to complete the functions required by the entire system.
[0069] As an example, for the functional modularization processing of the system, this application can be implemented by a tool product called Union File System UnionFS.
[0070] Among them, UnionFS is a special file system that allows multiple directories or file systems to be merged into a single virtual file system view. Through UnionFS, multiple directories can be viewed as a layered structure, and different layers have different properties.
[0071] Correspondingly, as an exemplary embodiment, in the network architecture, for a deployed system on a network device, before determining the newly added function points involved in the current system update task, the method of the present application may further include:
[0072] In the system deployment process of the deployed system, the deployed system is functionally modularized through the Union File System UnionFS.
[0073] In addition, it can be understood that the functional modular processing of the system is implemented specifically in accordance with the designed functional modular processing logic. It can be processed by relying on ready-made tool products or self-configured tool products. The focus is on the required self-configured functional modular logic.
[0074] On the basis of functional modularization, the present application may also involve the setting of maximizing the decoupling of functional modules, wherein the maximum decoupling can be understood as allowing the functional modules to run independently to the greatest extent possible to lay a better application condition, and for points where data interaction is required, a shared memory mechanism can be used to maximize efficiency.
[0075] Furthermore, in some cases, the present application can also implement customized / personalized functional modular processing for different deployed systems, which means that each deployed system involves the configuration of highly adapted functional modular processing logic.
[0076] Specifically, the present application may take into account the system update requirements that may be involved in the subsequent development of a specific system (i.e., the prediction of potential system update requirements), and comprehensively consider the costs of functional modular processing operations, the costs of determining the required updated functional points / processes, and the costs of replacing functional points / processes, so as to determine the specific functional modular processing logic / scheme and achieve a good balance in terms of processing efficiency, application convenience, and computational complexity.
[0077] Under the customized / personalized functional modular processing setting, the subsequent system update tasks or the system update processing carried out are processed according to the corresponding functional modules / functional points / processes of the previous functional modular processing.
[0078] Among them, the determination of specific functional modular processing logic / schemes here can also be completed by artificial intelligence (AI) technology. Specifically, the present application can introduce a deep neural network model in machine learning technology to perform the processing, wherein the processing model is obtained by training an initial model with sample system description data (involving relevant consideration costs or data required for calculating consideration costs, and may also involve system files of the system itself) that are annotated with corresponding functional modular processing logic / schemes. The processing model is used to carry out functional modular processing logic / scheme determination processing based on the system description data input by the model. In this way, relying on the powerful model computing power, in-depth search processing can be carried out to capture areas that are difficult for humans to perceive, and highly adaptable and high-performance functional modular processing logic / schemes can be obtained.
[0079] In addition, for the processing model, its model type, model training architecture, and the loss function involved in the model training process, you can use the existing solution, or make further optimization and improvement on the basis of the existing solution, or you can use a novel self-developed solution, and make specific adjustments according to the actual situation.
[0080] Step S102, compiling a new process corresponding to the new function point in a compilation environment adapted to the deployed system;
[0081] It is understandable that the functional points need to rely on the corresponding processes of the deployed system to be implemented.
[0082] On the processing device, corresponding to the system update requirements of the deployed system, a compilation environment adapted to the deployed system side can be configured in advance or in real time to perform compilation operations on the corresponding processes of the new functional points involved in the previously determined system update tasks, that is, the new processes, to meet the needs of deploying the new functional points on the deployed system side.
[0083] The purpose of using a matching or identical compilation environment is to ensure that the various dependent libraries required for the new process to run remain consistent with the original ones.
[0084] Compilation is a mature concept in software development work. The deployment of related application services / programs requires compilation and packaging. Correspondingly, this application needs to compile a certain process. Considering that compilation itself belongs to the scope of the prior art, this application will not be explained in detail here.
[0085] Step S103, importing the compilation result of the newly added process into the deployed system to complete the preliminary configuration of the newly added function point;
[0086] It can be understood that after obtaining the compilation results of the new processes corresponding to the new function points, the processing device can transmit them to the devices on the deployed system side and import them into the deployed system. Subsequently, further specific configuration work can be done based on the preliminary configuration of the new function points completed at this time to implement the update of the new function points for the deployed system.
[0087] As an exemplary embodiment, in a deployed system, the newly added process and the corresponding process of the original function point that needs to be updated can specifically share memory.
[0088] As can be understood, shared memory is a particularly efficient interprocess communication (IPC) mechanism that allows multiple processes to read and write data in the same physical memory area. This mechanism can provide efficient inter-process data exchange because it avoids the performance loss when transferring data between processes through the file system or network.
[0089] In this way, under the shared memory mechanism, the process switching or data migration (sharing) involved in the subsequent application can be carried out stably and efficiently, so that the new function point that needs to be updated can directly own the system data of the original function point that is running.
[0090] Step S104, when the system restart operation is not performed, the corresponding process of the original function point to be updated is closed and the corresponding resources are released to switch to the newly added process to perform system work and complete the current system update task.
[0091] It can be understood that compared with the system update method in the prior art that requires stopping the system to complete the system update, the present application is based on the pre-implementation of functional modularization processing on the deployed system. It does not need to perform a system restart operation, closes the corresponding process of the original function point that needs to be updated and releases the corresponding (system) resources, and enables the newly added process, so as to achieve the setting goal of switching the corresponding process of the original function point of the deployed system to the newly added process, thereby prompting the deployed system to perform system work in the new system state and completing the current system update task.
[0092] Furthermore, it is understandable that if there is a need to update a batch or multiple deployed systems at the same time (in some cases, network equipment may need to deploy / run a large number of systems at the same time, which may also involve the application of virtual environments), in addition to executing the above steps S1003 and S104 multiple times, it is also possible to consider it from a batch processing perspective and simultaneously carry out system update processing for multiple deployed systems to further improve the system update efficiency.
[0093] Specifically, for a multi-system scenario, as an exemplary embodiment, if there are multiple deployed systems, step S103 imports the compilation result of the newly added process into the deployed system, which may specifically include:
[0094] Extract the base and system layers of multiple deployed systems;
[0095] Package the compilation results of the base layer, system layer and the newly added process as the read-write layer;
[0096] Import the packaging results into multiple deployed systems respectively.
[0097] It should be understood that in the embodiment here, in addition to the compilation results (read-write layer) of the newly added process, the present application may also involve packaging operations of the base layer and the system layer. At this time, it can be further obtained that the present application does not involve simple replacement of process files, but involves module integration, in order to achieve the system update goal by recombining a mirror system.
[0098] In this way, when performing specific system update processing / process switching on different deployed systems, under the shared memory mechanism, interference / influence between different deployed systems can be avoided, ensuring stable and efficient parallel update processing.
[0099] It can also be seen from the embodiments here that for a deployed system with modular functions, it involves a read-write layer, a system layer and a basic layer, and the specific system update object targeted by the present application scheme is the read-write layer.
[0100] Specifically, for easier understanding, you can also combine Figure 2 A scenario diagram of the single / multi-system mode of the present application is shown for a more vivid explanation.
[0101] exist Figure 2 In the example involved, the system version A has been deployed on the network device, and now it is necessary to add a function point Aa1 owned by the Aa process and a function point Ac1 owned by the Ac process.
[0102] (I) In the single system mode, the system to be updated can be called system version B, and the corresponding processing is:
[0103] 1) Using the same compilation environment as system version A, compile new processes xAa and xAc, each carrying its own newly added function point Aa1 and function point Ac1;
[0104] 2) Import both the new process xAa and the new process xAc into system version A;
[0105] 3) Start new processes xAa and xAc, and use the shared memory mechanism to migrate the running data of the already running Aa and Ac processes to achieve the purpose of the same running state;
[0106] 4) Exit the old Aa and Ac processes, release the resources of the two processes, and complete the process replacement. Under the UnionFS mechanism, write the new process xAa and the new process xAc to the read-write layer of system version B. When the system restarts, the new process xAa and the new process xAc will be loaded.
[0107] (II) In the multi-system mode, the systems to be updated can be called system version Aa and system version A-ac, and the corresponding processing is:
[0108] 1) Using the same compilation environment as that of system version A, compile new processes xAa and xAc, each carrying its own newly added function point Aa1 and function point Ac1.
[0109] 2) Import both the new process xAa and the new process xAc into the server;
[0110] 3) Extract the base layer and system layer of system version A;
[0111] 4) Module integration. The base layer, system layer, and new processes xAa and xAc as read-write layers are repackaged into new systems Aa and A-ac using UnionFS. The original processes Aa and Ac are directly overwritten.
[0112] 5) Start the new system. Start the new system Aa and the new system A-ac. The corresponding new processes xAa and xAc will also be started together. Then, according to actual needs, memory sharing is performed to obtain the running data of the original processes Aa and Ac. The old system will not be affected and will continue to run normally. Compared with the original system, the new system Aa and the new system A-ac have added function points Aa1 and Ac1.
[0113] Furthermore, for the process switching processing carried out on the deployed system, the present application can also be performed when the original process is in an idle state, so as to further ensure that the system update goal is achieved without affecting the system's existing work.
[0114] Specifically, as an exemplary embodiment, the above-mentioned corresponding process of closing the original function point that needs to be updated may specifically include:
[0115] Monitor whether the corresponding process of the original function point to be updated is in an idle state;
[0116] If the corresponding process of the original function point to be updated is in an idle state, the corresponding process of the original function point to be updated is closed.
[0117] It is understandable that for the judgment process / logic of whether a process is in an idle state, the existing solution can be adopted, further optimization and improvement can be made on the basis of the existing solution, or a novel self-developed solution can be adopted.
[0118] For example, based on whether the idle flag is configured, the amount of data forwarding, the amount of system resources occupied, and other indicators, a binary classification can be performed (if there are numerical variables, the corresponding indicator thresholds can be combined for judgment) to determine whether the process is in an idle state or a normal working state.
[0119] At the same time, it is conventionally understood that in the above embodiments, the default is to wait for the process to be updated to the idle state before switching the process. This is a passive processing method, and the present application can also introduce an active processing method, that is, a switching mechanism that actively switches the process to the idle state.
[0120] Specifically, as an exemplary embodiment, before monitoring whether the corresponding process of the original function point to be updated is in an idle state in the previous embodiment, the method of the present application may further include:
[0121] Analyze the corresponding process of the original function point that needs to be updated in the normal working state, and the feasibility of switching to the idle state;
[0122] Based on the feasibility analysis results, the corresponding process of the original function point that needs to be updated is switched to the idle state.
[0123] It can be understood that in the embodiments here, the present application involves the consideration of whether it is allowed / appropriate to actively switch a process in a normal working state to an idle state, and is specifically implemented through corresponding feasibility analysis and processing. In this way, in actual applications, the idle state of the process can be actively switched accurately at an appropriate time. While the process switching can be carried out in a timely manner to complete the system update goal, the impact on the system operation can also be avoided, thereby achieving a smoother and imperceptible system update effect.
[0124] Among them, for feasibility analysis processing, the specific processing logic can be flexibly configured according to actual needs. This application does not make specific restrictions and can meet the solution requirements.
[0125] For example, a process with high permissions cannot be switched directly. For example, if the process itself has permissions higher than the switching permissions of the switching task, it cannot be switched actively. For example, if the process is currently providing important services or participating in important system work, it cannot be switched actively.
[0126] In addition, the present application may also involve the configuration of process startup items when the system starts, so as to further ensure that the updated original process will not be started with the subsequent system restart. Conversely, the restarted system will only start the updated new process to provide functional services of the new function points.
[0127] In this regard, as an exemplary embodiment, the method of the present application may further include:
[0128] Configure the process startup items of the deployed system at system startup so that the deployed system will start the newly added process while ignoring the corresponding process of the original function point that needs to be updated during the subsequent restart process.
[0129] It can be understood that the configuration operation here has a relatively flexible execution sequence of the steps, and can be performed after step S104, after other steps, or simultaneously with other steps, which can be flexibly configured according to actual needs.
[0130] Finally, for the above solutions, in general, aiming at the goal of updating the network equipment system, the system is deployed based on functional modularization, and the specific processes are replaced and updated according to the functional points to be updated, avoiding the inconvenience caused by the need to restart the system, and achieving an imperceptible system update effect. In actual applications, it takes into account both user experience and enterprise network service needs.
[0131] The above is an introduction to the network device system update method provided by the present application. In order to facilitate better implementation of the network device system update method provided by the present application, the present application also provides a network device system update device from the perspective of functional modules.
[0132] See also Figure 3 , Figure 3 This is a schematic diagram of a structure of a network device system update device of the present application. In the present application, the network device system update device 300 may specifically include the following structure:
[0133] The determining unit 301 is used to determine, in the network architecture, for a deployed system on a network device, a newly added function point involved in the current system update task, wherein the deployed system adopts a functional modularization mechanism to maximize the decoupling of each functional module, and the newly added function point is used to replace the original function point that needs to be updated;
[0134] A compiling unit 302 is used to compile a new process corresponding to a new function point in a compiling environment adapted to the deployed system;
[0135] The import unit 303 is used to import the compilation result of the newly added process into the deployed system to complete the preliminary configuration of the newly added function point;
[0136] The switching unit 304 is used to close the corresponding process of the original function point that needs to be updated and release the corresponding resources without performing the system restart operation, so as to switch to the newly added process to perform system work and complete the current system update task.
[0137] In an exemplary embodiment, in a deployed system, a newly added process and a corresponding process of an original function point that needs to be updated share memory.
[0138] In another exemplary embodiment, if there are multiple deployed systems, the import unit 303 is specifically configured to:
[0139] Extract the base and system layers of multiple deployed systems;
[0140] Package the compilation results of the base layer, system layer and the newly added process as the read-write layer;
[0141] Import the packaging results into multiple deployed systems respectively.
[0142] In another exemplary embodiment, the switching unit 304 is specifically configured to:
[0143] Monitor whether the corresponding process of the original function point to be updated is in an idle state;
[0144] If the corresponding process of the original function point to be updated is in an idle state, the corresponding process of the original function point to be updated is closed.
[0145] In another exemplary embodiment, the switching unit 304 is further configured to:
[0146] Analyze the corresponding process of the original function point that needs to be updated in the normal working state, and the feasibility of switching to the idle state;
[0147] Based on the feasibility analysis results, the corresponding process of the original function point that needs to be updated is switched to the idle state.
[0148] In yet another exemplary embodiment, the apparatus further includes a configuration unit 305, configured to:
[0149] Configure the process startup items of the deployed system at system startup so that the deployed system will start the newly added process while ignoring the corresponding process of the original function point that needs to be updated during the subsequent restart process.
[0150] In yet another exemplary embodiment, in the network architecture, the apparatus further includes a processing unit 306, configured to:
[0151] In the system deployment process of the deployed system, the deployed system is functionally modularized through the Union File System UnionFS.
[0152] This application also provides a processing device from the perspective of hardware structure, see Figure 4 , Figure 4 401, a computer program stored in the memory 402, and an input / output device 403. The processor 401 is used to execute the computer program stored in the memory 402. Figure 1 The steps of the network device system updating method in the corresponding embodiment; or, the processor 401 is used to execute the computer program stored in the memory 402 to implement the following Figure 3 Corresponding to the functions of each unit in the embodiment, the memory 402 is used to store the processor 401 executing the above Figure 1 The computer program required by the network device system updating method in the corresponding embodiment.
[0153] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 402, and executed by the processor 401 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the computer device.
[0154] The processing device may include, but is not limited to, a processor 401, a memory 402, and an input / output device 403. Those skilled in the art will appreciate that the illustration is merely an example of a processing device and does not constitute a limitation on the processing device, and may include more or fewer components than shown in the illustration, or a combination of certain components, or different components. For example, the processing device may also include a network access device, a bus, etc., and the processor 401, the memory 402, the input / output device 403, etc. are connected via a bus.
[0155] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the processing device, and uses various interfaces and lines to connect various parts of the entire device.
[0156] The memory 402 can be used to store computer programs and / or modules. The processor 401 implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory 402 and calling the data stored in the memory 402. The memory 402 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the processing device, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0157] When the processor 401 is used to execute the computer program stored in the memory 402, the following functions can be implemented:
[0158] In the network architecture, for the deployed systems on the network devices, determine the new function points involved in the current system update task. The deployed systems use a functional modularization mechanism to maximize the decoupling of each functional module, and the new function points are used to replace the original function points that need to be updated.
[0159] In the compilation environment that is compatible with the deployed system, compile the new processes corresponding to the new functional points;
[0160] Import the compilation results of the new process into the deployed system to complete the preliminary configuration of the new function points;
[0161] Without performing a system restart, close the corresponding process of the original function point that needs to be updated and release the corresponding resources to switch to the newly added process to perform system work and complete the current system update task.
[0162] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the network device system updating device, processing device and its corresponding units described above can refer to the following. Figure 1 The description of the network device system updating method in the corresponding embodiment will not be repeated here in detail.
[0163] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0164] To this end, the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the present application as follows: Figure 1 The steps of the network device system update method in the corresponding embodiment, the specific operation can refer to the following Figure 1 The description of the network device system updating method in the corresponding embodiment will not be repeated here.
[0165] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0166] Due to the instructions stored in the computer-readable storage medium, the present application can be executed. Figure 1 The steps of the network device system updating method in the corresponding embodiment, therefore, the present application can be implemented as follows Figure 1 The beneficial effects that can be achieved by the network device system updating method in the corresponding embodiment are detailed in the previous description and will not be repeated here.
[0167] The network device system update method, device, processing device and computer-readable storage medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the core idea of the present application; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A network device system update method, characterized in that: The method comprises: In the network architecture, for the deployed system on the network device, the newly added function points involved in the current system update task are determined, wherein the deployed system adopts a functional modularization mechanism to maximize the decoupling of each functional module, and the newly added function points are used to replace the original function points that need to be updated; In a compilation environment adapted to the deployed system, compile a new process corresponding to the new function point; Importing the compilation result of the newly added process into the deployed system to complete the preliminary configuration of the newly added function point; Without performing a system restart operation, the corresponding process of the original function point that needs to be updated is closed and the corresponding resources are released, so as to switch to the newly added process to perform system work and complete the current system update task.
2. The method according to claim 1, characterized in that In the deployed system, the newly added process and the corresponding process of the original function point that needs to be updated share memory.
3. The method according to claim 2, characterized in that If there are multiple deployed systems, importing the compilation result of the newly added process into the deployed systems includes: Extracting a plurality of base layers and system layers of the deployed systems; Packing the base layer, the system layer and the compilation result of the newly added process as the read-write layer; The packaging results are respectively imported into the plurality of deployed systems.
4. The method according to claim 1, characterized in that: The corresponding process of closing the original function point that needs to be updated includes: Monitor whether the corresponding process of the original function point to be updated is in an idle state; If the corresponding process of the original function point that needs to be updated is in an idle state, the corresponding process of the original function point that needs to be updated is closed.
5. The method according to claim 4, characterized in that Before monitoring whether the corresponding process of the original function point to be updated is in an idle state, the method further includes: Analyze the corresponding process of the original function point that needs to be updated and is in a normal working state, and the feasibility of switching to the idle state; Based on the feasibility analysis result, the corresponding process of the original function point that needs to be updated is switched to the idle state.
6. The method according to claim 1, characterized in that The method further comprises: The process startup items of the deployed system at system startup are configured so that the deployed system starts the newly added process while ignoring the corresponding process of the original function point to be updated during a subsequent restart process.
7. The method according to claim 1, characterized in that In the network architecture, before determining the newly added function points involved in the current system update task for the deployed system on the network device, the method further includes: In the system deployment process of the deployed system, the deployed system is subjected to functional modularization process through a union file system UnionFS.
8. A network equipment system updating device, characterized in that: The device comprises: A determination unit, configured to determine, in a network architecture, for a deployed system on a network device, a newly added function point involved in a current system update task, wherein the deployed system adopts a functional modularization mechanism to maximize the decoupling of each functional module, and the newly added function point is used to replace an original function point that needs to be updated; A compiling unit, used to compile a new process corresponding to the new function point in a compiling environment adapted to the deployed system; An importing unit, used to import the compilation result of the newly added process into the deployed system to complete the preliminary configuration of the newly added function point; The switching unit is used to close the corresponding process of the original function point that needs to be updated and release the corresponding resources without performing a system restart operation, so as to switch to the newly added process to perform system work and complete the current system update task.
9. A processing device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor executes the method according to any one of claims 1 to 7 when calling the computer program in the memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the method according to any one of claims 1 to 7.