WO2021259109A1 - Patch loading method, network element, and computer-readable storage medium - Google Patents

Patch loading method, network element, and computer-readable storage medium Download PDF

Info

Publication number
WO2021259109A1
WO2021259109A1 PCT/CN2021/100400 CN2021100400W WO2021259109A1 WO 2021259109 A1 WO2021259109 A1 WO 2021259109A1 CN 2021100400 W CN2021100400 W CN 2021100400W WO 2021259109 A1 WO2021259109 A1 WO 2021259109A1
Authority
WO
WIPO (PCT)
Prior art keywords
patch
configuration information
storage medium
loading method
parameters
Prior art date
Application number
PCT/CN2021/100400
Other languages
French (fr)
Chinese (zh)
Inventor
邓欣洁
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2021259109A1 publication Critical patent/WO2021259109A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/72Code refactoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the embodiments of the present application relate to, but are not limited to, the field of communications, and in particular to a patch loading method, network element, and computer-readable storage medium.
  • a patch is a program package with specific functions, which is often used to repair system function failures of network elements and add new functions. Because the increase in the number of patches will cause a certain burden on the operation of network elements, manufacturers usually implement multiple fault repairs and new functions into one patch. However, the requirements and standards of each operator are different, and it is easy for the patch function to be inapplicable. Since the patch is automatically effective after being loaded, the current practice is to replace the appropriate patch according to the needs of the operator, resulting in frequent patch replacement and increased network Yuan’s operating burden.
  • the embodiments of the present application provide a patch loading method, a network element, and a computer-readable storage medium, which can adjust the patch configuration and reduce the frequency of patch replacement.
  • an embodiment of the present application provides a patch loading method applied to a network element, including:
  • the patch configuration information is written into the storage medium, so that the process obtains the patch configuration information from the storage medium, and loads the patch according to the patch configuration information.
  • the embodiments of the present application also provide a network element, including: a memory, a processor, and a computer program stored on the memory and capable of running on the processor.
  • a network element including: a memory, a processor, and a computer program stored on the memory and capable of running on the processor.
  • the processor executes the computer program, the above is achieved.
  • the patch loading method of the first aspect is achieved.
  • an embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute the patch loading method described above.
  • FIG. 1 is a schematic diagram of a network element structure for executing a patch loading method provided by an embodiment of the present application
  • FIG. 2 is a flowchart of a patch loading method provided by another embodiment of the present application.
  • FIG. 3 is a flowchart of delay loading a patch in a patch loading method provided by another embodiment of the present application.
  • FIG. 4 is a flowchart of application function switches in a patch loading method provided by another embodiment of the present application.
  • FIG. 5 is a flowchart of applying patch parameters in a patch loading method provided by another embodiment of the present application.
  • FIG. 6 is a flowchart of applying patch parameters according to scene parameters in a patch loading method provided by another embodiment of the present application.
  • FIG. 7 is a schematic diagram of applying patch configuration information in a patch loading method provided by another embodiment of the present application.
  • FIG. 8 is a flowchart of generating a backup file in a patch loading method provided by another embodiment of the present application.
  • FIG. 9 is a flowchart of applying a backup file in a patch loading method provided by another embodiment of the present application.
  • FIG. 10 is a flowchart of generating an identification file in a patch loading method provided by another embodiment of the present application.
  • FIG. 11 is a flowchart before the identification file is generated in the patch loading method provided by another embodiment of the present application.
  • FIG. 12 is a schematic diagram of the principle of a patch loading method provided by another embodiment of the present application.
  • This application provides a patch loading method, a network element, and a computer-readable storage medium to obtain configuration instructions, and obtain patch configuration information according to the configuration instructions; write the patch configuration information to the storage medium so that the process can start from the
  • the patch configuration information is acquired from the storage medium, and the patch is loaded according to the patch configuration information.
  • the storage medium can be used to share and transfer data among multiple processes, the patch configuration information is adjusted through configuration instructions, and the patch configuration information is written to the storage medium, so that the process can read the adjusted
  • the patch configuration information is adjusted to the loaded patch configuration, so as to realize the control of the patch function and effectively reduce the frequency of patch replacement.
  • FIG. 1 is a schematic diagram of a network element for executing a patch loading method provided by an embodiment of the present application.
  • the network element 100 includes a main main control board 110, a standby main control board 120, a line card 130, and a storage medium 140.
  • the storage medium 140 may be connected to the main main control board 110 and the standby main control board 110, respectively.
  • the independent structure of the communication connection between the main control board 120 and the line card 130 can also be the memory provided in the main main control board 110, the standby main control board 120 and the line card 130, such as shared memory used to store global variables, reserved For memory and flash memory files, etc., specific storage media can be selected according to actual needs, and this embodiment is not limited.
  • the network element 100 may include multiple line cards 130, which are respectively connected to the storage medium 140 and the main control board 110 in communication, and this embodiment is not limited.
  • main main control board 110 may be used for data interaction with external devices, for example, interaction with devices such as computers, servers, etc., to obtain configuration commands and write them into the storage medium 140.
  • backup main control board 120 can be used to back up any data in the main main control board 110.
  • the patch configuration information in this embodiment is obtained through the storage medium 140, and a backup file is generated, which is beneficial to improve data security. Consistency of performance and configuration information.
  • the network element 100 may be any network element in the communication device, and it can be used to perform patch loading, which is not limited in this embodiment.
  • network element shown in FIG. 1 does not constitute a limitation to the embodiment of the present application, and may include more or less components than shown in the figure, or a combination of certain components, or different components Layout.
  • FIG. 2 is a flowchart of a patch loading method provided by an embodiment of the present application.
  • the patch loading method includes but is not limited to step S100 and step S200.
  • Step S100 Obtain a configuration instruction, and obtain patch configuration information according to the configuration instruction.
  • the configuration instruction can be input to the network element in any form, for example, through a human-computer interaction process, and the specific process used can be selected according to actual needs, and this embodiment does not restrict it.
  • the patch configuration information can be obtained from the configuration instruction in any manner, for example, the human-computer interaction process inputs the configuration instruction to the command parsing process, and the command parsing process parses the patch configuration information set by the user from the configuration instruction. .
  • step S200 the patch configuration information is written into the storage medium, so that the process obtains the patch configuration information from the storage medium, and loads the patch according to the patch configuration information.
  • the storage medium may be a global storage medium such as shared memory, reserved memory, and flash memory files of each component in the network element.
  • shared memory is taken as an example to explain the principle. It should be noted that, since the main main control board, the standby main control board and several line cards all have shared memory, this embodiment writes the patch configuration into the storage medium, which can be through each line card and the main main control board. The process shared by the board and the standby main control board writes patch configuration information into their respective shared memory for use when the patched process loads the patch.
  • common patches include hot patches and cold patches.
  • This embodiment does not limit the specific types of patches. That is, the patch loading method of this embodiment can be applied to hot patches or For cold patching, the process being patched reads the patch configuration parameters through the storage medium, and loads the patch according to the patch configuration parameters.
  • the patch configuration information in this embodiment can be modified through configuration instructions, for example, input related configuration instructions through an external device, and the network element executes step S100 of this embodiment after receiving the configuration instructions.
  • step S200 the patch configuration parameters are changed, so that the functions that can be implemented by the process after the patch is loaded are adjusted.
  • the patched process can reload the patch when it detects that the patch configuration parameters have changed, so as to adjust the patch function, and also jump to the entry of the patch function while maintaining the running state, or The patch file is replaced, so that the patched process directly applies the updated patch configuration when the specific operation is executed, so as to realize the adjusted patch function.
  • the specific implementation form can be selected according to actual needs.
  • the process can obtain patch configuration information from the storage medium in any manner, such as accessing memory, files, or sending messages through the patch function.
  • the specific method can be selected according to actual needs. This embodiment does not do much limit.
  • the patch configuration information includes at least one of the following:
  • the patch configuration information may be a global variable, which can be applied by multiple processes. It should be noted that the configuration instructions can usually adjust the parameter values and switches of existing variables. Therefore, the patch configuration information in this embodiment may be an existing variable in the patch, for example, a delay is preset in the patch. Variables such as duration, function switches, patch parameters, etc., can be set to preset values in the patch. During the patch operation, the values of specific variables are updated to the storage medium through configuration instructions to implement patch function adjustments.
  • the patch configuration information can be written into the global storage medium, such as the global storage medium of the main control board and the line card, so that each line card can read the same patch configuration
  • the parameters are applied, and the patch configuration information can be read from the main control board to load the patch when a new line card is added or the device is restarted, so as to ensure the stability of the patch and the consistency of the configuration information.
  • step S200 of the embodiment shown in FIG. 2 may include but is not limited to the following steps:
  • step S210 the process delays the loading of the patch according to the delay time.
  • the delay time can be any value greater than or equal to 0. If the value is 0, the patch function will be run immediately after the process is started. If the value is greater than 0, the delay will be used after the process is started. The duration is timed, and the patch function is run after the timing is completed. The patch function can be adjusted through the effective time of the patch. The specific value and time unit can be selected according to actual needs. It should be noted that the delay time can be realized by a timer in the network element. The timer can be an existing timer before the patch is loaded, or a newly added timer based on the delay time, which is selected according to actual needs. Can.
  • step S200 of the embodiment shown in FIG. 2 may include but is not limited to the following steps:
  • Step S221 when the function switch is in the on state, make the process run according to the patch function in the patch;
  • step S222 when the function switch is in the off state, the process is caused to run according to the original function, which is the running function before the patch is loaded.
  • the original configuration parameters can be retained after the patch is entered into the network element, and the selection of the patch function can be realized through the function switch.
  • the function switch Just set it to the off state, no need to deactivate the patch, and the operation is convenient.
  • the loaded patch is a hot patch
  • the patch function and the function entry jump instruction of the original function before the patch is loaded are saved in the storage medium.
  • step S221 that is, when the function switch is turned on
  • the patched process is based on The patch function in the patch performs subsequent operations;
  • step S222 that is, when the function switch is turned off, even if the patch is already in effect, the patched process can read the function entry jump instruction of the original function from the storage medium, according to the original function Perform follow-up operations.
  • the loaded patch is a hot patch.
  • the storage medium saves not only the variables, processes, and files of the patch, but also the variables, processes, and files of the process before patching.
  • the specific variables and processes are selected according to the status of the function switch. Just as with the file, the specific principle is similar to the principle of the above-mentioned hot patch, so I won’t repeat it here.
  • step S200 of the embodiment shown in FIG. 2 may include but is not limited to the following steps:
  • step S230 the patch parameter is set as the running parameter of the process.
  • the patch parameter may be any parameter related to the running of the process.
  • This embodiment is not limited, and the specific value can be adjusted through a configuration command. It should be noted that this embodiment can adjust the specific values of the existing parameter types, or add new parameters on the basis of the original operating parameters, and this embodiment does not impose many limitations. It should be noted that after the patch parameters are set through the configuration instructions, the original parameters can be replaced. If the patch parameters do not meet the requirements, the patch parameters that meet the requirements can be set again through the configuration instructions. Repeat it again.
  • the patch configuration information further includes at least two scene parameters.
  • Step S200 in the embodiment shown in FIG. 2 may include, but is not limited to, the following steps:
  • Step S241 obtaining the configuration parameters of the process
  • step S242 if the configuration parameters match the scene parameters, the patch parameters are set as the running parameters of the process.
  • the number of scene parameters can be arbitrary, so that the patch parameters can be applied in different scenarios.
  • Different scene parameters can be set in the patch configuration information and correspond to different patch parameters, for example, when repairing the same
  • each operator s failure determination criteria and repair requirements are different, you can set the first scenario parameters and the first patch parameters to meet the needs of an operator, and set the second scenario parameters and the second patch parameters to meet
  • different patch parameters can be selected through scene parameters.
  • any parameter can be used to match the scene parameter, for example, the configuration parameters of the process, line card or network element can be used to distinguish different operators.
  • the current operating parameters of the process can also be used as the scene parameter, such as the current Network transmission speed or processing speed, etc., the specific matching method can be selected according to actual needs, and will not be repeated here.
  • scene parameters can realize the use of the same or different patch parameters under different common conditions.
  • the equipment configurations of different operators are used as the scene parameters, and different scenarios can be identified according to the scene parameters.
  • Operators then formulate patch parameters according to the needs of each operator. After the patch is loaded, devices of different operators can load the corresponding patch parameters, which greatly reduces the frequency of the manufacturer’s release of patch packages, and only needs to release a common patch package.
  • the patch requirements of different operators can be met by scene parameters and patch parameters.
  • other parameters can also be used as the matching of scene parameters, so that the matching of the running scene can be realized, and this embodiment is not limited.
  • patch configuration information includes patch delay time, patch function switches, and patch parameters.
  • the original delay time, original function, and original parameters are also stored in the storage medium. It should be noted that this example only considers that the patch is in the activated state. If the patch is in the deactivated state, the process can be executed according to the original duration, original function, and original parameters, which will not be repeated here.
  • the patch function switch and patch parameters are read after the patch delay time is delayed. If the patch function switch is on and the patch parameters are set, the process runs according to the patch function and patch parameters; if the patch is patched If the function switch is off and the patch parameters are set, the process runs according to the original function and patch parameters; if the patch function switch is on and the patch parameters are not set, the process runs according to the patch function and original parameters; if the patch function switch is off and the patch is not set Parameters, the process runs according to the original function and original parameters.
  • the patch function switch and patch parameters should be read immediately.
  • the execution method of the patch function switch and patch parameter in different states is the same as the execution method of the patch delay time greater than 0. Repeat it again.
  • step S200 shown in the embodiment in FIG. 2 is executed, it further includes but is not limited to the following steps:
  • Step S310 Generate a backup file according to the patch configuration information in the storage medium.
  • the storage medium is usually memory and flash memory
  • the data in the storage medium is usually cleared.
  • the backup file can be any file type, such as a common text file, which can record patch configuration information.
  • the backup file can be saved to the main control board and/or standby main control board of the network element, which can ensure that it can be deleted after the power is cut off or the network element is restarted. Just read it.
  • step S410 if the network element restarts, read the patch configuration information from the backup file, and write the patch configuration information into the storage medium.
  • the storage medium on the main main control board and line card can be created and initialized through the first started process, such as the version management process, etc., and the specific process can be selected according to actual needs. .
  • the backup file is read from the active main control board or the standby main control board, and the patch configuration information in the backup file is written to the storage medium, so that the patched process can obtain the patch configuration information, thereby realizing patch configuration Consistency of information.
  • step S200 shown in the embodiment in FIG. 2 is executed, it further includes but is not limited to the following steps:
  • step S320 an identification file is generated in the storage medium.
  • an identification file can be generated in the storage medium to avoid the process of being patched from reading the patch configuration information when the patch configuration information has not been written, resulting in failure to load correctly patch. For example, when the network element is restarted, the patched process is in the startup phase. If the identification file is read from the storage medium, the patch configuration information in the storage medium has been written, so that the patched process can be read Complete patch configuration information and load the patch. Another example is to add a line card to the network element, obtain the patch configuration information from the main control board, and write it into the storage medium of the line card. After the first writing is completed, an identification file is created and recognized by the patch process Load the patch after the logo file is reached.
  • step S320 shown in the embodiment in FIG. 10 further includes but is not limited to the following steps:
  • step S330 before the identification file is generated, the preset waiting time is read, and the control process delays the start according to the waiting time.
  • the waiting time control process can be used to delay the start, so that the patch configuration information can be written in the delayed process.
  • the specific waiting time can be selected according to actual needs. This embodiment No restrictions. It should be noted that, in order to avoid the process delay time being too long to affect the normal operation of the network element, after the process is timed according to the waiting time, if the identification file is not detected, it can run according to the original function and original parameters before the patch, or according to the original parameters again. Wait for the length of time to delay the start, and select the specific method according to actual needs.
  • FIG. 12 is a schematic diagram of a method for performing patch loading by a network element according to an embodiment of the present application.
  • the following uses several specific examples to illustrate the specific principles of the embodiment of the present application:
  • the network element includes a main main control board 1220, a standby main control board 1230, and a line card 1240.
  • the main main control board 1220 is in communication connection with an external device 1210, which may be a computer, server, mobile phone, etc.
  • the terminal only needs to be able to send configuration instructions to the network element, and this embodiment does not limit it.
  • the number of line cards 1240 may be increased or decreased according to actual needs.
  • this embodiment uses one line card 1240 for principle description.
  • the storage medium in this example uses shared memory as an example for illustration.
  • each device has a fixed configuration
  • the external device 1210 sends a configuration instruction to the network element, and the network element obtains patch configuration information from the configuration instruction through a first process, where the first process may be a human-computer interaction process of the network element;
  • the first process sends the patch configuration information to the second process of the main main control board 1220, where the second process can be a command parsing process;
  • the patch configuration information is parsed through the second process to obtain the delay time and patch Configuration information such as parameters and function switches are sent to the third process, where the third process is a process shared by the active main control board 1220, the standby main control board 1230 and the line card 1240;
  • the third process writes the obtained patch configuration information Into the shared memory of this board, the patched process in the line card 1240 reads the specific value of the patch configuration information from the shared memory and loads the patch.
  • the active main control board saves the patch configuration information in the shared memory as a backup file. In order to ensure the security of the data, the backup
  • the patch configuration information is loaded, while the original configuration information or original file is retained, and the wait is executed according to the delay time.
  • the function switch is on, it runs according to the patch function; if the function switch is off, it runs according to the original function.
  • the patch parameters and scene parameters are set in the patch configuration information, the corresponding patch parameters are selected for operation according to the scene parameters, and if the patch parameters are not set, the operation is performed according to the original parameters.
  • Example 1 an example is given to illustrate the use scenario of the newly added new card.
  • the acquisition of patch configuration information in the network element can refer to Example 1, and this example will not be described.
  • the newly added line card obtains the patch configuration information by sending a message to the main control board through the line card management process, and writes it to the shared memory of the board. The first write is completed After that, create an identification file.
  • the startup will be delayed according to the waiting time, such as a delay of 3 seconds; if the identification file is detected within 3 seconds, the patched process will start and load the patch; If the identification file is still not detected after 3 seconds, the patched process starts and loads the original configuration information.
  • the version management process started first creates and initializes the shared memory of the active main control board 1220, the standby main control board 1230, and the line card 1240.
  • the main control board 1220 reads the patch configuration information from the backup file , And write the patch configuration information into the shared memory.
  • the standby main control board 1230 and the line card 1240 obtain the patch configuration information from the main main control board 1220 and write it into the shared memory of the board to implement patch loading.
  • the identification file is generated after the patch configuration information is written for the first time. The principle is similar to that of Example 2, so I won't repeat it here.
  • an embodiment of the present application also provides a network element.
  • the network element includes a memory, a processor, and a computer program stored on the memory and running on the processor.
  • the processor and the memory can be connected by a bus or in other ways.
  • the non-transitory software programs and instructions required to implement the patch loading method of the foregoing embodiment are stored in the memory.
  • the patch loading method applied to the network element in the foregoing embodiment is executed, for example, the foregoing description is executed.
  • the device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • an embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are executed by a processor or a controller, for example, by the aforementioned
  • the execution of a processor in the network element embodiment can make the above-mentioned processor execute the patch loading method applied to the network element in the above-mentioned embodiment, for example, execute the method steps S100 to S200 in FIG. 2 described above, as shown in FIG.
  • Computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media.
  • Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or Any other medium used to store desired information and that can be accessed by a computer.
  • a communication medium usually contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium. .

Landscapes

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

Abstract

A patch loading method, a network element, and a computer-readable storage medium. The patch loading method comprises: acquiring a configuration instruction, and acquiring patch configuration information according to the configuration instruction (S100); and writing the patch configuration information into a storage medium, such that a process acquires the patch configuration information from the storage medium, and loading a patch according to the patch configuration information (S200).

Description

补丁加载方法、网元及计算机可读存储介质Patch loading method, network element and computer readable storage medium
相关发明的交叉引用Cross-references to related inventions
本申请基于申请号为202010591719.2、申请日为2020年6月24日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is filed based on a Chinese patent application with an application number of 202010591719.2 and an application date of June 24, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference into this application.
技术领域Technical field
本申请实施例涉及但不限于通信领域,尤其涉及一种补丁加载方法、网元及计算机可读存储介质。The embodiments of the present application relate to, but are not limited to, the field of communications, and in particular to a patch loading method, network element, and computer-readable storage medium.
背景技术Background technique
补丁是一种具有特定功能的程序包,常用于修复网元的系统功能故障和增加新功能。由于补丁的数量增多会对网元的运行造成一定的负担,厂商通常会将多种故障修复和新增功能做到一个补丁中。但是,每个运营商的需求和标准不同,很容易出现补丁功能不适用的情况,由于补丁加载后自动生效,目前的做法是根据运营商的需求更换合适的补丁,导致补丁更换频繁,增加网元的运行负担。A patch is a program package with specific functions, which is often used to repair system function failures of network elements and add new functions. Because the increase in the number of patches will cause a certain burden on the operation of network elements, manufacturers usually implement multiple fault repairs and new functions into one patch. However, the requirements and standards of each operator are different, and it is easy for the patch function to be inapplicable. Since the patch is automatically effective after being loaded, the current practice is to replace the appropriate patch according to the needs of the operator, resulting in frequent patch replacement and increased network Yuan’s operating burden.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this article. This summary is not intended to limit the scope of protection of the claims.
本申请实施例提供了一种补丁加载方法、网元及计算机可读存储介质,能够调整补丁配置,降低补丁的更换频率。The embodiments of the present application provide a patch loading method, a network element, and a computer-readable storage medium, which can adjust the patch configuration and reduce the frequency of patch replacement.
第一方面,本申请实施例提供了一种补丁加载方法,应用于网元,包括:In the first aspect, an embodiment of the present application provides a patch loading method applied to a network element, including:
获取配置指令,根据所述配置指令获取补丁配置信息;以及Obtaining a configuration instruction, and obtaining patch configuration information according to the configuration instruction; and
将所述补丁配置信息写入存储介质,以使进程从所述存储介质中获取所述补丁配置信息,并根据所述补丁配置信息加载补丁。The patch configuration information is written into the storage medium, so that the process obtains the patch configuration information from the storage medium, and loads the patch according to the patch configuration information.
第二方面,本申请实施例还提供了一种网元,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述第一方面的补丁加载方法。In the second aspect, the embodiments of the present application also provide a network element, including: a memory, a processor, and a computer program stored on the memory and capable of running on the processor. When the processor executes the computer program, the above is achieved. The patch loading method of the first aspect.
第三方面,本申请实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如上所述的补丁加载方法。In a third aspect, an embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute the patch loading method described above.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在说明书、权利要 求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present application will be described in the following description, and partly become obvious from the description, or understood by implementing the present application. The purpose and other advantages of this application can be realized and obtained through the structures specifically pointed out in the specification, claims and drawings.
附图说明Description of the drawings
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present application, and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application, and do not constitute a limitation to the technical solution of the present application.
图1是本申请一个实施例提供的用于执行补丁加载方法的网元结构示意图;FIG. 1 is a schematic diagram of a network element structure for executing a patch loading method provided by an embodiment of the present application;
图2是本申请另一个实施例提供的补丁加载方法的流程图;FIG. 2 is a flowchart of a patch loading method provided by another embodiment of the present application;
图3是本申请另一个实施例提供的补丁加载方法中延迟加载补丁的流程图;FIG. 3 is a flowchart of delay loading a patch in a patch loading method provided by another embodiment of the present application;
图4是本申请另一个实施例提供的补丁加载方法中应用功能开关的流程图;4 is a flowchart of application function switches in a patch loading method provided by another embodiment of the present application;
图5是本申请另一个实施例提供的补丁加载方法中应用补丁参数的流程图;FIG. 5 is a flowchart of applying patch parameters in a patch loading method provided by another embodiment of the present application;
图6是本申请另一个实施例提供的补丁加载方法中根据场景参数应用补丁参数流程图;FIG. 6 is a flowchart of applying patch parameters according to scene parameters in a patch loading method provided by another embodiment of the present application;
图7是本申请另一个实施例提供的补丁加载方法应用补丁配置信息的示意图;FIG. 7 is a schematic diagram of applying patch configuration information in a patch loading method provided by another embodiment of the present application;
图8是本申请另一个实施例提供的补丁加载方法中生成备份文件的流程图;FIG. 8 is a flowchart of generating a backup file in a patch loading method provided by another embodiment of the present application;
图9是本申请另一个实施例提供的补丁加载方法中应用备份文件的流程图;FIG. 9 is a flowchart of applying a backup file in a patch loading method provided by another embodiment of the present application;
图10是本申请另一个实施例提供的补丁加载方法中生成标识文件的流程图;FIG. 10 is a flowchart of generating an identification file in a patch loading method provided by another embodiment of the present application;
图11是本申请另一个实施例提供的补丁加载方法中标识文件生成之前的流程图;以及FIG. 11 is a flowchart before the identification file is generated in the patch loading method provided by another embodiment of the present application; and
图12是本申请另一个实施例提供的补丁加载方法的原理示意图。FIG. 12 is a schematic diagram of the principle of a patch loading method provided by another embodiment of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions, and advantages of this application clearer, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not used to limit the present application.
需要说明的是,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书、权利要求书或上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although the functional module division is carried out in the device schematic diagram and the logical sequence is shown in the flowchart, in some cases, it can be executed in a different order from the module division in the device or the sequence in the flowchart. Steps shown or described. The terms "first", "second", etc. in the specification, claims, or the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
本申请提供了一种补丁加载方法、网元及计算机可读存储介质,获取配置指令,根据所述配置指令获取补丁配置信息;将所述补丁配置信息写入存储介质,以使进程从所述存储介质中获取所述补丁配置信息,并根据所述补丁配置信息加载补丁。根据本申请实施例提供的方案,利用存储介质可以在多个进程间共享和传递数据的特性,通过配置指令调整补丁配置信息,并将补丁配置信息写入存储介质,使得进程能够读取调整后的补丁配置信息,对所加载的补丁配置进行调整,从而实现了补丁功能的控制,有效减少了补丁的更换 频率。This application provides a patch loading method, a network element, and a computer-readable storage medium to obtain configuration instructions, and obtain patch configuration information according to the configuration instructions; write the patch configuration information to the storage medium so that the process can start from the The patch configuration information is acquired from the storage medium, and the patch is loaded according to the patch configuration information. According to the solution provided by the embodiments of the present application, the storage medium can be used to share and transfer data among multiple processes, the patch configuration information is adjusted through configuration instructions, and the patch configuration information is written to the storage medium, so that the process can read the adjusted The patch configuration information is adjusted to the loaded patch configuration, so as to realize the control of the patch function and effectively reduce the frequency of patch replacement.
下面结合附图,对本申请实施例作进一步阐述。The embodiments of the present application will be further described below in conjunction with the accompanying drawings.
如图1所示,图1是本申请一个实施例提供的用于执行补丁加载方法的网元的示意图。As shown in FIG. 1, FIG. 1 is a schematic diagram of a network element for executing a patch loading method provided by an embodiment of the present application.
在图1的示例中,该网元100包括主用主控板110、备用主控板120、线卡130和存储介质140,其中,存储介质140可以是分别与主用主控板110、备用主控板120和线卡130通信连接的独立结构,也可以是设置于主用主控板110、备用主控板120和线卡130中的内存,例如用于存储全局变量的共享内存、保留内存和闪存文件等,根据实际需求选取具体的存储介质即可,本实施例不多作限制。需要说明的是,网元100中可以包括多个线卡130,分别与存储介质140和主用主控板110通信连接即可,本实施例不多作限制。需要说明的是,主用主控板110可用于与外接设备进行数据交互,例如与计算机、服务器等设备进行交互,以获取配置命令并写入存储介质140中。可以理解的是,备用主控板120可用于备份主用主控板110中的任意数据,例如通过存储介质140获取本实施例中的补丁配置信息,并生成备份文件,有利于提高数据的安全性和配置信息的一致性。In the example of FIG. 1, the network element 100 includes a main main control board 110, a standby main control board 120, a line card 130, and a storage medium 140. The storage medium 140 may be connected to the main main control board 110 and the standby main control board 110, respectively. The independent structure of the communication connection between the main control board 120 and the line card 130 can also be the memory provided in the main main control board 110, the standby main control board 120 and the line card 130, such as shared memory used to store global variables, reserved For memory and flash memory files, etc., specific storage media can be selected according to actual needs, and this embodiment is not limited. It should be noted that the network element 100 may include multiple line cards 130, which are respectively connected to the storage medium 140 and the main control board 110 in communication, and this embodiment is not limited. It should be noted that the main main control board 110 may be used for data interaction with external devices, for example, interaction with devices such as computers, servers, etc., to obtain configuration commands and write them into the storage medium 140. It is understandable that the backup main control board 120 can be used to back up any data in the main main control board 110. For example, the patch configuration information in this embodiment is obtained through the storage medium 140, and a backup file is generated, which is beneficial to improve data security. Consistency of performance and configuration information.
本领域技术人员可以理解的是,网元100可以是通讯设备中任意的网络单元,能够用于执行补丁加载即可,本实施例并不多作限制。Those skilled in the art can understand that the network element 100 may be any network element in the communication device, and it can be used to perform patch loading, which is not limited in this embodiment.
本领域技术人员可以理解的是,图1中示出的网元并不构成对本申请实施例的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the network element shown in FIG. 1 does not constitute a limitation to the embodiment of the present application, and may include more or less components than shown in the figure, or a combination of certain components, or different components Layout.
基于上述网元,下面提出本申请的补丁加载方法的各个实施例。Based on the foregoing network elements, various embodiments of the patch loading method of the present application are presented below.
如图2所示,图2是本申请一个实施例提供的补丁加载方法的流程图,该补丁加载方法包括但不限于有步骤S100和步骤S200。As shown in FIG. 2, FIG. 2 is a flowchart of a patch loading method provided by an embodiment of the present application. The patch loading method includes but is not limited to step S100 and step S200.
步骤S100,获取配置指令,根据配置指令获取补丁配置信息。Step S100: Obtain a configuration instruction, and obtain patch configuration information according to the configuration instruction.
在一实施例中,配置指令可以通过任意形式输入至网元中,例如通过人机交互进程,具体采用的进程根据实际需求选取即可,本实施例不多作限制。In an embodiment, the configuration instruction can be input to the network element in any form, for example, through a human-computer interaction process, and the specific process used can be selected according to actual needs, and this embodiment does not restrict it.
在一实施例中,从配置指令中获取补丁配置信息可以通过任意方式,例如人机交互进程将配置指令输入至命令解析进程,通过命令解析进程从配置指令解析出用户设定好的补丁配置信息。In one embodiment, the patch configuration information can be obtained from the configuration instruction in any manner, for example, the human-computer interaction process inputs the configuration instruction to the command parsing process, and the command parsing process parses the patch configuration information set by the user from the configuration instruction. .
步骤S200,将补丁配置信息写入存储介质,以使进程从存储介质中获取补丁配置信息,并根据补丁配置信息加载补丁。In step S200, the patch configuration information is written into the storage medium, so that the process obtains the patch configuration information from the storage medium, and loads the patch according to the patch configuration information.
基于上述实施例,存储介质可以是网元中各部件的共享内存、保留内存和闪存文件等全局存储介质,本实施例以共享内存为例进行原理阐述。需要说明的是,由于主用主控板、备用主控板和若干个线卡中均有共享内存,因此本实施例将补丁配置写入存储介质,可以 是通过各线卡和主用主控板、备用主控板共有的进程将补丁配置信息写入各自的共享内存中,以供被补丁的进程加载补丁时使用。Based on the foregoing embodiment, the storage medium may be a global storage medium such as shared memory, reserved memory, and flash memory files of each component in the network element. In this embodiment, shared memory is taken as an example to explain the principle. It should be noted that, since the main main control board, the standby main control board and several line cards all have shared memory, this embodiment writes the patch configuration into the storage medium, which can be through each line card and the main main control board. The process shared by the board and the standby main control board writes patch configuration information into their respective shared memory for use when the patched process loads the patch.
本领域技术人员可以理解的是,常见的补丁包括热补丁和冷补丁,本实施例并不对补丁的具体类型进行限制,即,本实施例的补丁加载方法可以应用于热补丁,也可以应用于冷补丁,被补丁的进程通过存储介质读取补丁配置参数,并根据该补丁配置参数加载补丁即可。Those skilled in the art can understand that common patches include hot patches and cold patches. This embodiment does not limit the specific types of patches. That is, the patch loading method of this embodiment can be applied to hot patches or For cold patching, the process being patched reads the patch configuration parameters through the storage medium, and loads the patch according to the patch configuration parameters.
需要说明的是,本实施例中的补丁配置信息在补丁加载后,可以通过配置指令进行更改,例如通过外部设备输入相关的配置指令,网元接收到该配置指令后执行本实施例的步骤S100和步骤S200,使得补丁配置参数发生变化,以使进程加载补丁后所能实现的功能发生调整。需要说明的是,被补丁的进程可以在检测到补丁配置参数发生变化的情况下重新加载补丁,以实现补丁功能的调整,也在维持运行的状态下,对补丁函数的入口进行跳转,或者进行补丁文件替换,使得被补丁的进程在执行到具体操作时直接应用更新后的补丁配置,从而实现调整后的补丁功能,具体实现的形式根据实际需求选取即可。It should be noted that after the patch is loaded, the patch configuration information in this embodiment can be modified through configuration instructions, for example, input related configuration instructions through an external device, and the network element executes step S100 of this embodiment after receiving the configuration instructions. In step S200, the patch configuration parameters are changed, so that the functions that can be implemented by the process after the patch is loaded are adjusted. It should be noted that the patched process can reload the patch when it detects that the patch configuration parameters have changed, so as to adjust the patch function, and also jump to the entry of the patch function while maintaining the running state, or The patch file is replaced, so that the patched process directly applies the updated patch configuration when the specific operation is executed, so as to realize the adjusted patch function. The specific implementation form can be selected according to actual needs.
在一实施例中,进程可以通过任意方式从存储介质中获取补丁配置信息,例如通过补丁函数访问内存、文件或者发消息等方式,根据实际需求选取具体方式即可,本实施例并不多作限制。In one embodiment, the process can obtain patch configuration information from the storage medium in any manner, such as accessing memory, files, or sending messages through the patch function. The specific method can be selected according to actual needs. This embodiment does not do much limit.
另外,在一实施例中,补丁配置信息至少包括如下之一:In addition, in an embodiment, the patch configuration information includes at least one of the following:
延时时长;Delay time;
功能开关;Function switch
补丁参数。Patch parameters.
在一实施例中,补丁配置信息可以是全局变量,能够被多个进程应用。需要说明的是,配置指令通常能够实现对已有变量的参数取值和开关进行调整,因此本实施例的补丁配置信息可以是在补丁中已有的变量,例如在补丁中预先设置好延时时长、功能开关、补丁参数等变量,可以在补丁中设置预设值,在补丁的运行过程中,通过配置指令将具体变量的取值更新至存储介质中,实现补丁功能的调整。In an embodiment, the patch configuration information may be a global variable, which can be applied by multiple processes. It should be noted that the configuration instructions can usually adjust the parameter values and switches of existing variables. Therefore, the patch configuration information in this embodiment may be an existing variable in the patch, for example, a delay is preset in the patch. Variables such as duration, function switches, patch parameters, etc., can be set to preset values in the patch. During the patch operation, the values of specific variables are updated to the storage medium through configuration instructions to implement patch function adjustments.
需要说明的是,为了配置的统一,可以将补丁配置信息写入到全局存储介质中,例如写入到主控板和线卡的全局存储介质,使得每个线卡可以读取相同的补丁配置参数进行应用,也可以在新增线卡或者设备重启时从主控板读取补丁配置信息进行补丁的加载,确保补丁的稳定性和配置信息的一致性。It should be noted that in order to unify the configuration, the patch configuration information can be written into the global storage medium, such as the global storage medium of the main control board and the line card, so that each line card can read the same patch configuration The parameters are applied, and the patch configuration information can be read from the main control board to load the patch when a new line card is added or the device is restarted, so as to ensure the stability of the patch and the consistency of the configuration information.
另外,参照图3,在一实施例中,图2中所示实施例的步骤S200可以包括但不限于有以下步骤:In addition, referring to FIG. 3, in an embodiment, step S200 of the embodiment shown in FIG. 2 may include but is not limited to the following steps:
步骤S210,根据延时时长,使进程延迟加载补丁。In step S210, the process delays the loading of the patch according to the delay time.
在一实施例中,延时时长可以是大于等于0的任意取值,若取值为0,则进程启动后立刻运行补丁函数,若取值为大于0的数值,在进程启动后以该延时时长进行计时,计时完成后运行补丁函数,能够通过补丁生效时间实现补丁功能的调整,具体的取值和时间单位根据实际需求选取即可。需要说明的是,延时时长可以通过网元中的定时器实现,该定时器可以是补丁加载前已有的定时器,也可以是根据延时时长新增加的定时器,根据实际需求选取即可。In one embodiment, the delay time can be any value greater than or equal to 0. If the value is 0, the patch function will be run immediately after the process is started. If the value is greater than 0, the delay will be used after the process is started. The duration is timed, and the patch function is run after the timing is completed. The patch function can be adjusted through the effective time of the patch. The specific value and time unit can be selected according to actual needs. It should be noted that the delay time can be realized by a timer in the network element. The timer can be an existing timer before the patch is loaded, or a newly added timer based on the delay time, which is selected according to actual needs. Can.
另外,参照图4,在一实施例中,图2中所示实施例的步骤S200可以包括但不限于有以下步骤:In addition, referring to FIG. 4, in an embodiment, step S200 of the embodiment shown in FIG. 2 may include but is not limited to the following steps:
步骤S221,在功能开关处于开启状态下,使进程根据补丁中的补丁函数运行;Step S221, when the function switch is in the on state, make the process run according to the patch function in the patch;
或者,or,
步骤S222,在功能开关处于关闭状态下,使进程根据原函数运行,原函数为补丁加载前的运行函数。In step S222, when the function switch is in the off state, the process is caused to run according to the original function, which is the running function before the patch is loaded.
需要说明的是,为了实现功能的开关,可以在补丁被打入网元后,保留原有的配置参数,通过功能开关能够实现补丁功能的选取,在补丁功能不适用的情况下,将功能开关设置为关闭状态即可,无需对补丁去激活,操作便利。以下通过具体示例对功能开关的原理进行举例说明:It should be noted that in order to realize the switch of the function, the original configuration parameters can be retained after the patch is entered into the network element, and the selection of the patch function can be realized through the function switch. When the patch function is not applicable, the function switch Just set it to the off state, no need to deactivate the patch, and the operation is convenient. The following uses specific examples to illustrate the principle of the function switch:
例如,被加载的补丁为热补丁,存储介质中同时保存补丁函数和补丁加载前的原函数的函数入口跳转指令,在步骤S221中,即在功能开关处于开启状态下,被补丁的进程根据补丁中的补丁函数执行后续操作;在步骤S222中,即功能开关处于关闭状态下,即使补丁已经生效,被补丁的进程可以从存储介质中读取原函数的函数入口跳转指令,根据原函数执行后续操作。For example, the loaded patch is a hot patch, and the patch function and the function entry jump instruction of the original function before the patch is loaded are saved in the storage medium. In step S221, that is, when the function switch is turned on, the patched process is based on The patch function in the patch performs subsequent operations; in step S222, that is, when the function switch is turned off, even if the patch is already in effect, the patched process can read the function entry jump instruction of the original function from the storage medium, according to the original function Perform follow-up operations.
又如,被加载的补丁为热补丁,存储介质中既保存有补丁的变量、进程和文件,也保存有打补丁前进程的变量、进程和文件,根据功能开关的状态选取具体的变量、进程和文件即可,具体原理和上述热补丁的原理近似,在此不再赘述。For another example, the loaded patch is a hot patch. The storage medium saves not only the variables, processes, and files of the patch, but also the variables, processes, and files of the process before patching. The specific variables and processes are selected according to the status of the function switch. Just as with the file, the specific principle is similar to the principle of the above-mentioned hot patch, so I won’t repeat it here.
另外,参照图5,在一实施例中,图2中所示实施例的步骤S200可以包括但不限于有以下步骤:In addition, referring to FIG. 5, in an embodiment, step S200 of the embodiment shown in FIG. 2 may include but is not limited to the following steps:
步骤S230,将补丁参数设置为进程的运行参数。In step S230, the patch parameter is set as the running parameter of the process.
在一实施例中,补丁参数可以是与进程运行有关的任意参数,本实施例并不多作限制,能够通过配置指令调整具体数值即可。需要说明的是,本实施例可以是对已有的参数类型的具体取值进行调整,也可以是在原有运行参数的基础上新增参数,本实施例并不多作限 制。需要说明的是,通过配置指令设置补丁参数后,可以是对原有的参数进行替换,若出现补丁参数不符合需求的情况,再次挺过配置指令设置符合需求的补丁参数即可,在此不再赘述。In an embodiment, the patch parameter may be any parameter related to the running of the process. This embodiment is not limited, and the specific value can be adjusted through a configuration command. It should be noted that this embodiment can adjust the specific values of the existing parameter types, or add new parameters on the basis of the original operating parameters, and this embodiment does not impose many limitations. It should be noted that after the patch parameters are set through the configuration instructions, the original parameters can be replaced. If the patch parameters do not meet the requirements, the patch parameters that meet the requirements can be set again through the configuration instructions. Repeat it again.
另外,参照图6,在一实施例中,补丁配置信息还包括至少两个场景参数,图2中所示实施例的步骤S200可以包括但不限于有以下步骤:In addition, referring to FIG. 6, in an embodiment, the patch configuration information further includes at least two scene parameters. Step S200 in the embodiment shown in FIG. 2 may include, but is not limited to, the following steps:
步骤S241,获取进程的配置参数;Step S241, obtaining the configuration parameters of the process;
步骤S242,若配置参数与场景参数相匹配,将补丁参数设置为进程的运行参数。In step S242, if the configuration parameters match the scene parameters, the patch parameters are set as the running parameters of the process.
在一实施例中,场景参数的数量可以是任意,使得补丁参数在不同的场景下应用,可以设置在补丁配置信息中设置不同的场景参数和与不同的补丁参数相对应,例如,在修复相同的故障时,每个运营商的故障判定标准和修复要求不同,则可以设置第一场景参数和第一补丁参数以满足一个运营商的需求,同时设置第二场景参数和第二补丁参数以满足另一个运营商的需求,能够通过场景参数选取不同的补丁参数即可。In one embodiment, the number of scene parameters can be arbitrary, so that the patch parameters can be applied in different scenarios. Different scene parameters can be set in the patch configuration information and correspond to different patch parameters, for example, when repairing the same In the event of a failure, each operator’s failure determination criteria and repair requirements are different, you can set the first scenario parameters and the first patch parameters to meet the needs of an operator, and set the second scenario parameters and the second patch parameters to meet For another operator's requirement, different patch parameters can be selected through scene parameters.
在一实施例中,可以通过任意参数与场景参数进行匹配,例如通过进程、线卡或者网元的配置参数以区分不同的运营商,也可以以进程的当前运行参数作为场景参数,例如当前的网络传输速度或者处理速度等,具体的匹配方法根据实际需求选取即可,在此不再赘述。In an embodiment, any parameter can be used to match the scene parameter, for example, the configuration parameters of the process, line card or network element can be used to distinguish different operators. The current operating parameters of the process can also be used as the scene parameter, such as the current Network transmission speed or processing speed, etc., the specific matching method can be selected according to actual needs, and will not be repeated here.
需要说明的是,采用场景参数能够实现不同常见下使用相同或不同的补丁参数,例如,针对相同的故障和新增功能,以不同运行商的设备配置作为场景参数,根据场景参数识别出不同的运营商,再根据每个运营商的需求制定补丁参数,补丁加载后,不同运营商的设备能够加载各对应的补丁参数,大大减少了厂商发布补丁包的频率,只需要发布一个通用的补丁包,通过场景参数和补丁参数即可满足不同运营商的补丁需求。另外,也可以根据其他参数作为场景参数的匹配,能够实现运行场景的匹配即可,本实施例并不多作限制。It should be noted that the use of scene parameters can realize the use of the same or different patch parameters under different common conditions. For example, for the same faults and new functions, the equipment configurations of different operators are used as the scene parameters, and different scenarios can be identified according to the scene parameters. Operators then formulate patch parameters according to the needs of each operator. After the patch is loaded, devices of different operators can load the corresponding patch parameters, which greatly reduces the frequency of the manufacturer’s release of patch packages, and only needs to release a common patch package. , The patch requirements of different operators can be met by scene parameters and patch parameters. In addition, other parameters can also be used as the matching of scene parameters, so that the matching of the running scene can be realized, and this embodiment is not limited.
参照图7,以下以一个具体示例对本申请实施例中应用补丁配置信息的技术方案进行举例说明:Referring to FIG. 7, the following uses a specific example to illustrate the technical solution of applying patch configuration information in the embodiment of the present application:
如图7所示,补丁配置信息包括补丁延时时长、补丁功能开关和补丁参数,同时在存储介质中还存储有原延时时长、原函数和原参数。需要说明的是,本示例仅考虑补丁处于激活状态下,若补丁处于去激活的状态下,进程根据原时长、原函数和原参数执行即可,在此不再赘述。As shown in Figure 7, patch configuration information includes patch delay time, patch function switches, and patch parameters. At the same time, the original delay time, original function, and original parameters are also stored in the storage medium. It should be noted that this example only considers that the patch is in the activated state. If the patch is in the deactivated state, the process can be executed according to the original duration, original function, and original parameters, which will not be repeated here.
若补丁延时时长的值大于0,根据该补丁延时时长延迟后读取补丁功能开关和补丁参数,若补丁功能开关为开且设置了补丁参数,进程根据补丁函数和补丁参数运行;若补丁功能开关为关且设置了补丁参数,进程根据原函数和补丁参数运行;若补丁功能开关为开 且未设置补丁参数,进程根据补丁函数和原参数运行;若补丁功能开关为关且未设置补丁参数,进程根据原函数和原参数运行。If the value of the patch delay time is greater than 0, the patch function switch and patch parameters are read after the patch delay time is delayed. If the patch function switch is on and the patch parameters are set, the process runs according to the patch function and patch parameters; if the patch is patched If the function switch is off and the patch parameters are set, the process runs according to the original function and patch parameters; if the patch function switch is on and the patch parameters are not set, the process runs according to the patch function and original parameters; if the patch function switch is off and the patch is not set Parameters, the process runs according to the original function and original parameters.
若补丁延时时长等于0,则该立刻读取补丁功能开关和补丁参数,补丁功能开关和补丁参数处于不同状态的执行方法与上述补丁延时时长的值大于0的执行方法相同,在此不再赘述。If the patch delay time is equal to 0, the patch function switch and patch parameters should be read immediately. The execution method of the patch function switch and patch parameter in different states is the same as the execution method of the patch delay time greater than 0. Repeat it again.
另外,参照图8,在一实施例中,执行图2中实施例所示的步骤S200后,还包括但不限于以下步骤:In addition, referring to FIG. 8, in an embodiment, after step S200 shown in the embodiment in FIG. 2 is executed, it further includes but is not limited to the following steps:
步骤S310,根据存储介质中的补丁配置信息生成备份文件。Step S310: Generate a backup file according to the patch configuration information in the storage medium.
在一实施例中,由于存储介质通常为内存和闪存,若发生设备重启,存储介质中的数据通常会被清空,为了保持补丁配置信息的一致性,可以在补丁配置信息写入至存储介质后进行备份,生成记录补丁配置信息的备份文件。需要说明的是,备份文件可以是任意文件类型,例如常见的文本文档,能够记录补丁配置信息即可。需要说明的是,由于存储介质在断电后会清空,因此可以将备份文件保存至网元的主用主控板和/或备用主控板中,能够确保断电或者网元重启后能够被读取即可。In one embodiment, since the storage medium is usually memory and flash memory, if the device restarts, the data in the storage medium is usually cleared. In order to maintain the consistency of the patch configuration information, you can write the patch configuration information to the storage medium. Make a backup and generate a backup file that records patch configuration information. It should be noted that the backup file can be any file type, such as a common text file, which can record patch configuration information. It should be noted that since the storage medium will be emptied after a power failure, the backup file can be saved to the main control board and/or standby main control board of the network element, which can ensure that it can be deleted after the power is cut off or the network element is restarted. Just read it.
另外,参照图9,在一实施例中,还包括但不限于以下步骤:In addition, referring to FIG. 9, in an embodiment, it further includes but not limited to the following steps:
步骤S410,若网元重新启动,从备份文件中读取补丁配置信息,并将补丁配置信息写入存储介质。In step S410, if the network element restarts, read the patch configuration information from the backup file, and write the patch configuration information into the storage medium.
在一实施例中,若网元重新启动,可以通过先启动的进程创建并初始化主用主控板和线卡上的存储介质,例如可以是版本管理进程等,根据实际需求选取具体进程即可。存储介质初始化后,从主用主控板或备用主控板中读取备份文件,将备份文件中补丁配置信息写入存储介质,从而使得被补丁的进程能够获取补丁配置信息,从而实现补丁配置信息的一致性。In one embodiment, if the network element is restarted, the storage medium on the main main control board and line card can be created and initialized through the first started process, such as the version management process, etc., and the specific process can be selected according to actual needs. . After the storage medium is initialized, the backup file is read from the active main control board or the standby main control board, and the patch configuration information in the backup file is written to the storage medium, so that the patched process can obtain the patch configuration information, thereby realizing patch configuration Consistency of information.
另外,参照图10,在一实施例中,执行图2中实施例所示的步骤S200后,还包括但不限于以下步骤:In addition, referring to FIG. 10, in an embodiment, after step S200 shown in the embodiment in FIG. 2 is executed, it further includes but is not limited to the following steps:
步骤S320,在存储介质中生成标识文件。In step S320, an identification file is generated in the storage medium.
在一实施例中,在补丁配置信息写入存储介质后,可以存储介质中生成标识文件,以避免被补丁的进程在补丁配置信息未被写入完成的情况下进行读取,导致无法正确加载补丁。例如,在网元重新启动的情况下,被补丁进程在启动阶段,若从存储介质中读取到标识文件,则存储介质中的补丁配置信息已经写入完成,使得被补丁的进程能够读取完整的补丁配置信息并加载补丁。又如,在网元中新增线卡,从主用主控板中获取补丁配置信息,并写入该线卡的存储介质中,首次写入完成后,创建标识文件,被补丁的进程识别到该标 识文件后加载补丁。In one embodiment, after the patch configuration information is written to the storage medium, an identification file can be generated in the storage medium to avoid the process of being patched from reading the patch configuration information when the patch configuration information has not been written, resulting in failure to load correctly patch. For example, when the network element is restarted, the patched process is in the startup phase. If the identification file is read from the storage medium, the patch configuration information in the storage medium has been written, so that the patched process can be read Complete patch configuration information and load the patch. Another example is to add a line card to the network element, obtain the patch configuration information from the main control board, and write it into the storage medium of the line card. After the first writing is completed, an identification file is created and recognized by the patch process Load the patch after the logo file is reached.
另外,参照图11,在一实施例中,图10中实施例所示的步骤S320,还包括但不限于以下步骤:In addition, referring to FIG. 11, in an embodiment, step S320 shown in the embodiment in FIG. 10 further includes but is not limited to the following steps:
步骤S330,在标识文件生成之前,读取预先设定的等待时长,并控制进程根据等待时长延迟启动。In step S330, before the identification file is generated, the preset waiting time is read, and the control process delays the start according to the waiting time.
基于上述实施例,在未检测到标识文件的情况下,可以通过等待时长控制进程延迟启动,使得补丁配置信息能够在延迟过程中完成写入,具体的等待时长可以根据实际需求选取,本实施例不多作限制。需要说明的是,为了避免进程延迟时间过长影响网元的正常运行,进程根据等待时长完成计时后,若未检测到标识文件,可以根据补丁前的原函数和原参数运行,也可以再次根据等待时长进行延迟启动,根据实际需求选取具体方式即可。Based on the above embodiment, when the identification file is not detected, the waiting time control process can be used to delay the start, so that the patch configuration information can be written in the delayed process. The specific waiting time can be selected according to actual needs. This embodiment No restrictions. It should be noted that, in order to avoid the process delay time being too long to affect the normal operation of the network element, after the process is timed according to the waiting time, if the identification file is not detected, it can run according to the original function and original parameters before the patch, or according to the original parameters again. Wait for the length of time to delay the start, and select the specific method according to actual needs.
参照图12,图12为本申请实施例的网元执行补丁加载方法的原理图,以下以若干个具体示例对本申请实施例的具体原理进行举例说明:Referring to FIG. 12, FIG. 12 is a schematic diagram of a method for performing patch loading by a network element according to an embodiment of the present application. The following uses several specific examples to illustrate the specific principles of the embodiment of the present application:
在一实施例中,网元包括主用主控板1220、备用主控板1230和线卡1240,主用主控板1220与外部设备1210通信连接,外部设备1210可以是电脑、服务器、手机等终端,能够向网元发送配置指令即可,本实施例不多作限制。其中,线卡1240的数量可以是根据实际需求增加或减少,为了便于叙述,本实施例以一个线卡1240进行原理说明。其中,为了便于叙述,本示例的存储介质以共享内存为例进行示例说明。In an embodiment, the network element includes a main main control board 1220, a standby main control board 1230, and a line card 1240. The main main control board 1220 is in communication connection with an external device 1210, which may be a computer, server, mobile phone, etc. The terminal only needs to be able to send configuration instructions to the network element, and this embodiment does not limit it. Wherein, the number of line cards 1240 may be increased or decreased according to actual needs. For ease of description, this embodiment uses one line card 1240 for principle description. Among them, for ease of description, the storage medium in this example uses shared memory as an example for illustration.
示例一:Example 1:
在本示例中,各设备固定配置,外部设备1210向网元发送配置指令,网元通过第一进程从配置指令中获取补丁配置信息,其中,第一进程可以是网元的人机交互进程;第一进程将补丁配置信息发送至主用主控板1220的第二进程,其中,第二进程可以是命令解析进程;通过第二进程对补丁配置信息进行解析,将得出延时时长、补丁参数、功能开关等配置信息发送至第三进程,其中,第三进程为主用主控板1220、备用主控板1230和线卡1240均有的进程;第三进程将所得的补丁配置信息写入本板的共享内存,线卡1240中被补丁的进程从共享内存中读取补丁配置信息的具体数值并加载补丁。另外,主用主控板将共享内存中的补丁配置信息保存成备份文件,为了确保数据的安全性,同时在备用主控板1230中同步生成备份文件。In this example, each device has a fixed configuration, the external device 1210 sends a configuration instruction to the network element, and the network element obtains patch configuration information from the configuration instruction through a first process, where the first process may be a human-computer interaction process of the network element; The first process sends the patch configuration information to the second process of the main main control board 1220, where the second process can be a command parsing process; the patch configuration information is parsed through the second process to obtain the delay time and patch Configuration information such as parameters and function switches are sent to the third process, where the third process is a process shared by the active main control board 1220, the standby main control board 1230 and the line card 1240; the third process writes the obtained patch configuration information Into the shared memory of this board, the patched process in the line card 1240 reads the specific value of the patch configuration information from the shared memory and loads the patch. In addition, the active main control board saves the patch configuration information in the shared memory as a backup file. In order to ensure the security of the data, the backup file is synchronously generated in the standby main control board 1230 at the same time.
在被补丁的进程启动后,加载补丁配置信息,同时对原配置信息或者原文件进行保留,并根据延时时长执行等待。等待完成后,若功能开关为开,根据补丁函数运行;若功能开关为关,根据原函数运行。同时,若补丁配置信息中设置了补丁参数和场景参数,则根据场景参数选择对应的补丁参数运行,若未设置补丁参数,根据原参数运行。After the patched process is started, the patch configuration information is loaded, while the original configuration information or original file is retained, and the wait is executed according to the delay time. After the waiting is completed, if the function switch is on, it runs according to the patch function; if the function switch is off, it runs according to the original function. At the same time, if the patch parameters and scene parameters are set in the patch configuration information, the corresponding patch parameters are selected for operation according to the scene parameters, and if the patch parameters are not set, the operation is performed according to the original parameters.
示例二:Example two:
在本示例中,对新增新卡的使用场景进行举例说明,为了叙述简便,网元中补丁配置信息的获取可以参考示例一,本示例不多作叙述。当网元中新增线卡时,新增的线卡通过线卡管理进程向主用主控板发消息的方式获取补丁配置信息,并写入至本板的共享内存,在首次写入完成后,创建标识文件,被补丁的进程启动时若未能检测到该标识文件,根据等待时长延迟启动,例如延迟3秒;若3秒内检测到标识文件,被补丁的进程启动并加载补丁;若3秒后仍未能检测到标识文件,被补丁的进程启动并加载原配置信息。In this example, an example is given to illustrate the use scenario of the newly added new card. For the sake of simplicity, the acquisition of patch configuration information in the network element can refer to Example 1, and this example will not be described. When a new line card is added to the network element, the newly added line card obtains the patch configuration information by sending a message to the main control board through the line card management process, and writes it to the shared memory of the board. The first write is completed After that, create an identification file. If the patched process fails to detect the identification file when it is started, the startup will be delayed according to the waiting time, such as a delay of 3 seconds; if the identification file is detected within 3 seconds, the patched process will start and load the patch; If the identification file is still not detected after 3 seconds, the patched process starts and loads the original configuration information.
示例三:Example three:
在本示例中,对设备重启的情况进行举例说明,为了叙述简便,网元中补丁配置信息的获取可以参考示例一,本示例不多作叙述。当设备出现重启,最先启动的版本管理进程创建并初始化主用主控板1220、备用主控板1230和线卡1240的共享内存,主用主控板1220从备份文件中读取补丁配置信息,并将该补丁配置信息写入至共享内存中,备用主控板1230和线卡1240从主用主控板1220中获取补丁配置信息并写入本板的共享内存,实现补丁的加载。同时,首次写完补丁配置信息后生成标识文件,其原理与示例二相似,在此不再赘述。In this example, an example is given for the restart of the device. For the sake of simplicity, the acquisition of patch configuration information in the network element can refer to Example 1, and this example will not be described. When the device restarts, the version management process started first creates and initializes the shared memory of the active main control board 1220, the standby main control board 1230, and the line card 1240. The main control board 1220 reads the patch configuration information from the backup file , And write the patch configuration information into the shared memory. The standby main control board 1230 and the line card 1240 obtain the patch configuration information from the main main control board 1220 and write it into the shared memory of the board to implement patch loading. At the same time, the identification file is generated after the patch configuration information is written for the first time. The principle is similar to that of Example 2, so I won't repeat it here.
另外,本申请的一个实施例还提供了一种网元,该网元包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序。In addition, an embodiment of the present application also provides a network element. The network element includes a memory, a processor, and a computer program stored on the memory and running on the processor.
处理器和存储器可以通过总线或者其他方式连接。The processor and the memory can be connected by a bus or in other ways.
实现上述实施例的补丁加载方法所需的非暂态软件程序以及指令存储在存储器中,当被处理器执行时,执行上述实施例中的应用于网元的补丁加载方法,例如,执行以上描述的图2中的方法步骤S100至S200,图3中的方法步骤S210,图4中的方法步骤S221至S222,图5中的方法步骤S230,图6中的方法步骤S241至S242,图8中的方法步骤S310,图9中的方法步骤S410,图10中的方法步骤S320,图11中的方法步骤S330。The non-transitory software programs and instructions required to implement the patch loading method of the foregoing embodiment are stored in the memory. When executed by the processor, the patch loading method applied to the network element in the foregoing embodiment is executed, for example, the foregoing description is executed The method steps S100 to S200 in FIG. 2, the method steps S210 in FIG. 3, the method steps S221 to S222 in FIG. 4, the method steps S230 in FIG. 5, the method steps S241 to S242 in FIG. 6, in FIG. 8 The method step S310, the method step S410 in FIG. 9, the method step S320 in FIG. 10, and the method step S330 in FIG.
以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
此外,本申请的一个实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个处理器或控制器执行,例如,被上述网元实施例中的一个处理器执行,可使得上述处理器执行上述实施例中的应用于网元的补丁加载方法,例如,执行以上描述的图2中的方法步骤S100至S200,图3中的方法步骤S210,图4中的方法步骤S221至S222,图5中的方法步骤S230,图6中的方法步骤 S241至S242,图8中的方法步骤S310,图9中的方法步骤S410,图10中的方法步骤S320,图11中的方法步骤S330。In addition, an embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are executed by a processor or a controller, for example, by the aforementioned The execution of a processor in the network element embodiment can make the above-mentioned processor execute the patch loading method applied to the network element in the above-mentioned embodiment, for example, execute the method steps S100 to S200 in FIG. 2 described above, as shown in FIG. The method step S210, the method steps S221 to S222 in FIG. 4, the method step S230 in FIG. 5, the method steps S241 to S242 in FIG. 6, the method step S310 in FIG. 8, the method step S410 in FIG. The method step S320 in 10, and the method step S330 in FIG. 11.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。A person of ordinary skill in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Certain physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or a non-transitory medium) and a communication medium (or a transitory medium). As is well known by those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media. Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or Any other medium used to store desired information and that can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, a communication medium usually contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium. .
以上是对本申请的较佳实施进行了具体说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a detailed description of the preferred implementation of the application, but the application is not limited to the above-mentioned embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the application. Equivalent modifications or replacements are all included in the scope defined by the claims of this application.

Claims (12)

  1. 一种补丁加载方法,应用于网元,包括:A patch loading method applied to network elements, including:
    获取配置指令,根据所述配置指令获取补丁配置信息;以及Obtaining a configuration instruction, and obtaining patch configuration information according to the configuration instruction; and
    将所述补丁配置信息写入存储介质,以使进程从所述存储介质中获取所述补丁配置信息,并根据所述补丁配置信息加载补丁。The patch configuration information is written into the storage medium, so that the process obtains the patch configuration information from the storage medium, and loads the patch according to the patch configuration information.
  2. 根据权利要求1所述的一种补丁加载方法,其中,所述补丁配置信息至少包括如下之一:The patch loading method according to claim 1, wherein the patch configuration information includes at least one of the following:
    延时时长;或Delay time; or
    功能开关;或Function switch; or
    补丁参数。Patch parameters.
  3. 根据权利要求2所述的一种补丁加载方法,其中,所述并根据所述补丁配置信息加载补丁,包括:The patch loading method according to claim 2, wherein said loading a patch according to said patch configuration information comprises:
    根据所述延时时长,使所述进程延迟加载所述补丁。According to the delay time, the process is delayed to load the patch.
  4. 根据权利要求3所述的一种补丁加载方法,其中,所述使所述进程延迟加载所述补丁后,还包括:The patch loading method according to claim 3, wherein after said delaying loading of said patch by said process, the method further comprises:
    在所述功能开关处于开启状态下,使所述进程根据所述补丁中的补丁函数运行;When the function switch is in the on state, enabling the process to run according to the patch function in the patch;
    或者,or,
    在所述功能开关处于关闭状态下,使所述进程根据原函数运行,所述原函数为所述补丁加载前的运行函数。When the function switch is in the off state, the process is caused to run according to the original function, and the original function is the running function before the patch is loaded.
  5. 根据权利要求3所述的一种补丁加载方法,其中,所述使所述进程延迟加载所述补丁后,还包括:The patch loading method according to claim 3, wherein after said delaying loading of said patch by said process, the method further comprises:
    将所述补丁参数设置为所述进程的运行参数。The patch parameter is set as the operating parameter of the process.
  6. 根据权利要求5所述的一种补丁加载方法,其中,所述补丁配置信息还包括至少两个场景参数,所述将所述补丁参数设置为所述进程的运行参数,包括:The patch loading method according to claim 5, wherein the patch configuration information further includes at least two scene parameters, and the setting the patch parameters as operating parameters of the process includes:
    获取所述进程的配置参数;以及Obtain the configuration parameters of the process; and
    若所述配置参数与所述场景参数相匹配,将所述补丁参数设置为所述进程的运行参数。If the configuration parameter matches the scene parameter, the patch parameter is set as the operating parameter of the process.
  7. 根据权利要求1所述的一种补丁加载方法,其中,所述将所述补丁配置信息写入存储介质后,还包括:The patch loading method according to claim 1, wherein after the said patch configuration information is written into the storage medium, the method further comprises:
    根据所述存储介质中的所述补丁配置信息生成备份文件。Generate a backup file according to the patch configuration information in the storage medium.
  8. 根据权利要求7所述的一种补丁加载方法,还包括:A patch loading method according to claim 7, further comprising:
    若所述网元重新启动,从所述备份文件中读取所述补丁配置信息,并将所述补丁配置信息写入所述存储介质。If the network element restarts, read the patch configuration information from the backup file, and write the patch configuration information into the storage medium.
  9. 根据权利要求1所述的一种补丁加载方法,还包括,所述将所述补丁配置信息写入存储介质后,还包括:The patch loading method according to claim 1, further comprising, after the patch configuration information is written into a storage medium, the method further comprises:
    在所述存储介质中生成标识文件。An identification file is generated in the storage medium.
  10. 根据权利要求9所述的一种补丁加载方法,其中,所述以使进程从所述存储介质中获取所述补丁配置信息,包括:A patch loading method according to claim 9, wherein said enabling a process to obtain said patch configuration information from said storage medium comprises:
    在所述标识文件生成之前,读取预先设定的等待时长,并控制所述进程根据所述等待时长延迟启动。Before the identification file is generated, the preset waiting time length is read, and the process is controlled to delay startup according to the waiting time length.
  11. 一种网元,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1至10中任意一项所述的补丁加载方法。A network element comprising: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program as described in any one of claims 1 to 10 The described patch loading method.
  12. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如权利要求1至10中任意一项所述的补丁加载方法。A computer-readable storage medium storing computer-executable instructions for executing the patch loading method according to any one of claims 1 to 10.
PCT/CN2021/100400 2020-06-24 2021-06-16 Patch loading method, network element, and computer-readable storage medium WO2021259109A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010591719.2 2020-06-24
CN202010591719.2A CN113835741A (en) 2020-06-24 2020-06-24 Patch loading method, network element and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2021259109A1 true WO2021259109A1 (en) 2021-12-30

Family

ID=78964805

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/100400 WO2021259109A1 (en) 2020-06-24 2021-06-16 Patch loading method, network element, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN113835741A (en)
WO (1) WO2021259109A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115437683A (en) * 2022-11-10 2022-12-06 平安银行股份有限公司 SDK-based variable configuration method and device and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942073A (en) * 2014-04-08 2014-07-23 北京奇虎科技有限公司 Method and device for realizing system hot patching
CN104915595A (en) * 2015-06-30 2015-09-16 北京奇虎科技有限公司 Virtualization bug fixing method and device through cloud platform
CN110413305A (en) * 2019-06-06 2019-11-05 奇安信科技集团股份有限公司 The loophole remediation management method, apparatus and electronic equipment of fining
EP3637251A1 (en) * 2017-05-17 2020-04-15 Huawei Technologies Co., Ltd. Method, device and terminal for executing hotpatch
CN111078262A (en) * 2018-10-18 2020-04-28 百度在线网络技术(北京)有限公司 Application thermal restoration method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942073A (en) * 2014-04-08 2014-07-23 北京奇虎科技有限公司 Method and device for realizing system hot patching
CN104915595A (en) * 2015-06-30 2015-09-16 北京奇虎科技有限公司 Virtualization bug fixing method and device through cloud platform
EP3637251A1 (en) * 2017-05-17 2020-04-15 Huawei Technologies Co., Ltd. Method, device and terminal for executing hotpatch
CN111078262A (en) * 2018-10-18 2020-04-28 百度在线网络技术(北京)有限公司 Application thermal restoration method and device
CN110413305A (en) * 2019-06-06 2019-11-05 奇安信科技集团股份有限公司 The loophole remediation management method, apparatus and electronic equipment of fining

Also Published As

Publication number Publication date
CN113835741A (en) 2021-12-24

Similar Documents

Publication Publication Date Title
US9146839B2 (en) Method for pre-testing software compatibility and system thereof
CN102023908B (en) Method and device for backing up boot program
EP4083786A1 (en) Cloud operating system management method and apparatus, server, management system, and medium
US10929150B2 (en) Optical line terminal and method for upgrading primary device and secondary device of optical line terminal
CN108880898B (en) Main and standby container system switching method and device
US11314665B2 (en) Information processing system, information processing device, BIOS updating method for information processing device, and BIOS updating program for information processing device
CN108874459B (en) Rapid starting method and device based on virtualization technology
US8612799B2 (en) Method and apparatus of backing up subversion repository
WO2021259109A1 (en) Patch loading method, network element, and computer-readable storage medium
US20190196864A1 (en) Process Processing Method and Apparatus
CN111474860A (en) Processing method and device based on failure intelligent scene and storage medium
CN103888491A (en) Diskless workstation start system and method
CN113867807A (en) Method, device, equipment and storage medium for shortening power-on time of server
CN114676118B (en) Database switching method, device, equipment and storage medium
WO2020066552A1 (en) Bmc and method for determining bmc firmware
CN111158963A (en) Server firmware redundancy starting method and server
US6832336B2 (en) Method and apparatus for maintaining consistent data
CN106708541A (en) Version upgrading processing method and apparatus
CN113064614B (en) Firmware upgrading method and system for redundant power supply system of server
WO2017096889A1 (en) Method and device for upgrading and downgrading system
US20140181492A1 (en) Method of booting an electronic system and an electronic system applying the same
CN104461659A (en) High-reliability computer starting method
CN111475335B (en) Method, system, terminal and storage medium for quickly recovering database
CN109634685B (en) Starting and stopping method and related device for PXE function of PCH gigabit Ethernet
CN107704399B (en) Method and device for storing data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21828810

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12/05/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21828810

Country of ref document: EP

Kind code of ref document: A1