Terminal patch processing method and device, equipment, medium and product
By establishing a P2P connection within the local area network and collaborating with the patch management platform, the problems of network congestion and low efficiency in high-concurrency terminal patch management are solved, achieving efficient patch distribution and resource sharing, and supporting terminal collaboration in offline environments.
Patent Information
- Application Number
- CN202511107675.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-08
- Publication Date
- 2025-10-28
AI Technical Summary
The existing server architecture cannot meet the requirements of high-concurrency, large-data-volume terminal patch management scenarios, resulting in network congestion and low efficiency in terminal patch distribution.
The patch management platform pushes target patch information to target terminals. The requesting terminal initiates a patch acquisition request within the local area network and establishes a P2P connection with the target terminal to download and install the patch, reducing the bandwidth pressure on the central server and enabling the sharing of patch resources within the local area network.
It reduces the bandwidth pressure on the central server, avoids network congestion, improves patch distribution efficiency, supports inter-terminal collaboration in offline environments, reduces redundant transmissions, and avoids single points of failure.
Smart Images

Figure CN120848907A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software development technology and can be used in the financial technology field. In particular, it relates to a terminal patching method, apparatus, device, medium, and product. Background Technology
[0002] As the number of clients connected to the terminal system management platform continues to expand, clients are sending massive amounts of heartbeat messages to the server at high frequency, while the server needs to simultaneously send patch installation instructions to a large number of terminals. This high-concurrency, high-data-volume interaction scenario renders existing server-side architectures inadequate. Therefore, an efficient method for terminal patch management is urgently needed. Summary of the Invention
[0003] This invention provides a terminal patch processing method, apparatus, device, medium, and product to improve the efficiency of terminal patch processing.
[0004] According to one aspect of the present invention, a terminal patch processing method is provided, applied to a terminal processing system; the terminal processing system includes a patch management platform, a target terminal, and a requesting terminal, comprising:
[0005] The patch management platform pushes the patch installation information of the target patch to the target terminal, so that the target terminal can install the target patch;
[0006] The request terminal initiates a patch retrieval request, including the target patch, within the local area network.
[0007] If the requesting terminal receives a response from the target terminal in the local area network, it sends P2P connection information to the target terminal to establish a connection with the target terminal.
[0008] The target terminal downloads the target patch from the target terminal and installs the patch to obtain the patch installation result.
[0009] According to another aspect of the present invention, a terminal patch processing apparatus is provided, configured in a terminal processing system; the terminal processing system includes a patch management platform, a target terminal, and a requesting terminal, comprising:
[0010] The patch push module is used to push the patch installation information of the target patch to the target terminal through the patch management platform, so that the target terminal can install the target patch;
[0011] The patch retrieval request initiation module is used to initiate a patch retrieval request, including the target patch, through the requesting terminal within the local area network;
[0012] The connection establishment module is used to send P2P connection information to the target terminal to establish a connection with the target terminal if the requesting terminal receives the response information from the target terminal in the local area network.
[0013] The patch download and installation module is used to download the target patch from the target terminal through the requesting terminal, install the patch, and obtain the patch installation result.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] At least one processor; and
[0016] A memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the terminal patching method according to any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the terminal patching method described in any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the terminal patching method according to any embodiment of the present invention.
[0020] The technical solution of this invention pushes the patch installation information of the target patch to the target terminal through a patch management platform, enabling the target terminal to install the target patch. The requesting terminal initiates a patch acquisition request, including the target patch, within the local area network (LAN). If the requesting terminal receives a response from the target terminal in the LAN, it sends P2P connection information to the target terminal to establish a connection. The requesting terminal downloads the target patch from the target terminal and installs it, obtaining the patch installation result. This technical solution, by distributing patches to target terminals so that requesting terminals can obtain patches from them, reduces the bandwidth pressure on the central server, avoids network congestion caused by large-scale concurrent downloads, achieves LAN-wide sharing of patch resources, reduces redundant transmissions, improves patch distribution efficiency, supports inter-terminal collaboration in offline environments, and avoids single points of failure.
[0021] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart of a terminal patching method provided by an embodiment of the present invention;
[0024] Figure 2 This is a flowchart of a terminal patching method provided by an embodiment of the present invention;
[0025] Figure 3 This is a schematic diagram of the structure of a terminal patching device provided in an embodiment of the present invention;
[0026] Figure 4 This is a schematic diagram of the structure of an electronic device that implements the terminal patching method of this invention. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] Furthermore, it should be noted that the information collected in the technical solution of this invention is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of related data all comply with the relevant laws, regulations and standards of relevant countries and regions, necessary confidentiality measures have been taken, and public order and good morals are not violated. Corresponding operation entry points are provided for users to choose to authorize or refuse.
[0030] Figure 1 This is a flowchart of a terminal patch processing method according to an embodiment of the present invention. This embodiment is applicable to processing terminal patches, such as patch acquisition and installation. The method can be executed by a terminal patch processing device, which can be implemented in hardware and / or software. This device can be configured in an electronic device that carries terminal patch processing functionality, such as a terminal processing system. The terminal processing system includes a patch management platform, target terminals, and demand terminals. The patch management platform allows users to manage patches, such as uploading and pushing them. Target terminals refer to terminals that have already installed patches, and demand terminals refer to terminals that need to install patches. Figure 1 As shown, the method includes:
[0031] S110. Push the patch installation information of the target patch to the target terminal through the patch management platform so that the target terminal can install the target patch.
[0032] The patch management platform is a platform for users to manage patches. It can be a server and is operated by an administrator.
[0033] A target patch is a patch that can be distributed to a terminal; a patch is a software update package used to fix vulnerabilities or functional defects in a terminal's operating system, applications, or firmware, and may contain binary files, configuration files, or scripts.
[0034] Specifically, to increase the number of providers of the target patch, the patch management platform initially pushes the patch installation information to the target terminal. It should be noted that the target terminal is a terminal pre-configured by the patch management platform. Once the target terminal installs the target patch, it acts as an available resource node, providing the target patch to other terminals that require patch installation.
[0035] S120. Initiate a patch retrieval request, including the target patch, through the requesting terminal within the local area network.
[0036] Among them, the patch retrieval request refers to the user's request to obtain the target patch, which can be a User Datagram Protocol (UDP) message request.
[0037] Specifically, the requesting terminal initiates a patch acquisition request to the local area network and broadcasts a query to see if there are any available resource nodes, i.e., the target terminal, within the local area network.
[0038] S130. If the requesting terminal receives a response from the target terminal in the local area network, it sends the P2P connection information to the target terminal to establish a connection with the target terminal.
[0039] Among them, P2P connection information refers to the information used for different terminals to connect, including but not limited to IP, port and chunk availability.
[0040] Specifically, if there are available resource nodes (i.e., target terminals) within the local area network, the target terminal will respond after receiving the patch acquisition request; the requesting terminal will send P2P connection information back to the target terminal, and the requesting terminal and the target terminal will establish a connection based on the P2P connection information.
[0041] It should be noted that in this invention, P2P refers to a peer-to-peer communication network.
[0042] S140. Download the target patch from the target terminal through the demand terminal, install the patch, and obtain the patch installation result.
[0043] Specifically, after the connection is successfully established, the requesting terminal downloads the target patch from the target terminal, installs the target patch, and obtains the patch installation result.
[0044] An optional method involves the requesting terminal downloading the target patch from the target terminal, including: the requesting terminal downloading the patch in chunks from the target terminal to obtain patch chunks of the target patch; performing integrity verification on the patch chunks; if the verification is successful, continuing the download; if the verification fails, re-acquiring the patch chunks.
[0045] Specifically, the requesting terminal downloads the target patch in chunks from the target terminal, obtains patch chunks, and performs integrity verification on the patch chunks based on SHA-256; if the verification is successful, the download continues; if the verification fails, the patch chunks are re-acquired; until all patch chunks are downloaded.
[0046] Understandably, downloading and verifying patches in chunks can improve both download and verification efficiency.
[0047] Optionally, if no response is received from the target terminal in the local area network, the target patch is obtained from the patch management platform.
[0048] Specifically, if the requesting terminal does not receive a response from the target terminal in the local area network (LAN), meaning there are no available resource nodes in the LAN, the requesting terminal will obtain the target patch from the patch management platform.
[0049] Understandably, first checking for available resource nodes on the local area network, and then obtaining the patch from the patch management platform if none are found, can reduce server bandwidth pressure and avoid network congestion caused by a large number of terminals simultaneously requesting patches from the platform.
[0050] The technical solution of this invention pushes the patch installation information of the target patch to the target terminal through a patch management platform, enabling the target terminal to install the target patch. The requesting terminal initiates a patch acquisition request, including the target patch, within the local area network (LAN). If the requesting terminal receives a response from the target terminal in the LAN, it sends P2P connection information to the target terminal to establish a connection. The requesting terminal downloads the target patch from the target terminal and installs it, obtaining the patch installation result. This technical solution, by distributing patches to target terminals so that requesting terminals can obtain patches from them, reduces the bandwidth pressure on the central server, avoids network congestion caused by large-scale concurrent downloads, achieves LAN-wide sharing of patch resources, reduces redundant transmissions, improves patch distribution efficiency, supports inter-terminal collaboration in offline environments, and avoids single points of failure.
[0051] Based on the above embodiments, as an optional approach of the present invention, after obtaining the patch installation result, the method further includes: the requesting terminal reporting the patch installation result to the patch management platform via Hypertext Transfer Protocol over Secure Socket Layer (HTTPS); the patch management platform updating the terminal status database based on the patch installation result; if the patch installation result includes successful installation and the P2P enable flag corresponding to the requesting terminal is true, then the patch management platform marking the requesting terminal as a new target terminal.
[0052] The terminal status database is a component of the patch management platform used to record information about terminals that have installed patches. The patch installation result refers to the outcome of installing the target patch on the requested terminal, including but not limited to the patch version number, and whether the installation was successful or failed.
[0053] Specifically, the process terminates when the target patch is installed, the patch installation result is obtained, and the patch installation result is reported to the patch management platform via HTTPS. The patch management platform updates the terminal status database based on the patch installation result, that is, it records the installation status of the requesting terminal in the terminal status database. If the patch installation result indicates successful installation and the P2P enabled flag corresponding to the requesting terminal is true, then the patch management platform marks the requesting terminal as a new target terminal and records it in the terminal status database.
[0054] It is understandable that the patch installation results are fed back to the patch management platform so that the management platform can understand the installation status of the patch on the terminal, and at the same time record the newly added target terminals and available resource nodes, thereby expanding the scope of patch management and providing more available resource nodes for other terminals with different needs.
[0055] Figure 2 This is a flowchart of a terminal patch processing method according to an embodiment of the present invention. Based on the above embodiments, this embodiment further optimizes the process of "the patch management platform pushing the patch installation information of the target patch to the target terminal, so that the target terminal installs the target patch," providing an optional implementation scheme. For example... Figure 2 As shown, the method includes:
[0056] S210. Push the patch installation information of the target patch to the target terminal through the patch management platform so that the target terminal can install the target patch.
[0057] In one alternative approach, the patch management platform pushes the patch installation information of the target patch to the target terminal so that the target terminal can install the target patch, including: obtaining the target patch in response to a patch upload operation; obtaining the patch distribution configuration data of the target patch in response to a distribution configuration operation of the target patch; and pushing the patch installation data of the target patch to the target terminal based on the patch installation data so that the target terminal can install the target patch based on the patch installation data.
[0058] The patch distribution configuration data includes the target terminal group, installation priority, and P2P enable flag; the P2P enable flag indicates whether the target patch supports P2P transmission. Installation priority refers to whether the target patch is installed immediately or delayed. Immediate installation means installing the target patch immediately after downloading; delayed installation means installing the target patch at a specific time after downloading. The target terminal group includes at least one target terminal. The patch installation data includes the patch download address and installation parameters. The patch download address includes the P2P priority download flag and the Content Delivery Network (CDN) / server address, which is the server address corresponding to the patch management platform.
[0059] Specifically, the administrator uploads the patch to the patch management platform. The patch management platform responds to the patch upload operation by obtaining the target patch. The administrator can then configure the distribution of the target patch through the front-end page of the patch management platform. In response to the distribution configuration operation, the patch management platform obtains the patch distribution configuration data for the target patch and writes it to its local terminal state database. After the patch distribution configuration data is updated, the target terminal group is determined based on the patch distribution configuration data, and the patch installation data is pushed to the target terminals in the target terminal group via a long connection or Hypertext Transfer Protocol (HTTP). The target terminals can then install the target patch based on the patch installation data.
[0060] Understandably, implementing patch distribution configuration through a visual front-end page can improve the efficiency of patch distribution configuration.
[0061] Optionally, in response to the patch upload operation, the target patch is obtained, including: in response to the patch upload operation, the initial patch is obtained; the initial patch is checked locally to see if it exists; if it does not exist, the initial patch is used as the target patch; if it exists, a pop-up window is displayed indicating that it already exists.
[0062] Specifically, when an administrator needs to upload a patch, they call the patch upload module on the server through the front-end page of the patch management platform to upload the target patch to the patch management platform. In response, the platform receives the initial patch from the patch upload operation, checks whether it exists locally on the platform, and if it does not exist, it uses the initial patch as the target patch, generates a unique identifier for the target patch, and pops up a message indicating that the upload was successful; if the upload fails, a pop-up message indicates an error message; if the patch exists, a pop-up message indicates that it already exists.
[0063] Understandably, displaying a pop-up notification of the patch upload progress makes it easier to understand the patch's status and avoids duplicate uploads that consume storage resources.
[0064] S220. Initiate a patch retrieval request, including the target patch, within the local area network via the requesting terminal;
[0065] S230. If the requesting terminal receives a response from the target terminal in the local area network, it sends the P2P connection information to the target terminal to establish a connection with the target terminal.
[0066] S240. Download the target patch from the target terminal through the demand terminal, install the patch, and obtain the patch installation result.
[0067] The technical solution of this invention pushes the patch installation information of the target patch to the target terminal through a patch management platform, enabling the target terminal to install the target patch. The requesting terminal initiates a patch acquisition request, including the target patch, within the local area network (LAN). If the requesting terminal receives a response from the target terminal in the LAN, it sends P2P connection information to the target terminal to establish a connection. The requesting terminal downloads the target patch from the target terminal and installs it, obtaining the patch installation result. This technical solution, by distributing patches to target terminals so that requesting terminals can obtain patches from them, reduces the bandwidth pressure on the central server, avoids network congestion caused by large-scale concurrent downloads, achieves LAN-wide sharing of patch resources, reduces redundant transmissions, improves patch distribution efficiency, supports inter-terminal collaboration in offline environments, and avoids single points of failure.
[0068] Figure 3 This is a schematic diagram of a terminal patch processing device according to an embodiment of the present invention. This embodiment is applicable to processing terminal patches, such as patch acquisition and installation. The terminal patch processing device can be implemented in hardware and / or software and can be configured in an electronic device that carries terminal patch processing functions, such as a terminal processing system. The terminal processing system includes a patch management platform, target terminals, and demand terminals. The patch management platform allows users to manage patches, such as uploading and pushing them. Target terminals refer to terminals that have already installed patches, and demand terminals refer to terminals that need to install patches. Figure 3 As shown, the device includes:
[0069] The patch push module 310 is used to push the patch installation information of the target patch to the target terminal through the patch management platform, so that the target terminal can install the target patch;
[0070] The patch retrieval request initiation module 320 is used to initiate a patch retrieval request, including the target patch, through the requesting terminal within the local area network;
[0071] The connection establishment module 330 is used to send P2P connection information to the target terminal to establish a connection with the target terminal if the requesting terminal receives a response information from the target terminal in the local area network.
[0072] The patch download and installation module 340 is used to download the target patch from the target terminal through the demand terminal, install the patch, and obtain the patch installation result.
[0073] The technical solution of this invention pushes the patch installation information of the target patch to the target terminal through a patch management platform, enabling the target terminal to install the target patch. The requesting terminal initiates a patch acquisition request, including the target patch, within the local area network (LAN). If the requesting terminal receives a response from the target terminal in the LAN, it sends P2P connection information to the target terminal to establish a connection. The requesting terminal downloads the target patch from the target terminal and installs it, obtaining the patch installation result. This technical solution, by distributing patches to target terminals so that requesting terminals can obtain patches from them, reduces the bandwidth pressure on the central server, avoids network congestion caused by large-scale concurrent downloads, achieves LAN-wide sharing of patch resources, reduces redundant transmissions, improves patch distribution efficiency, supports inter-terminal collaboration in offline environments, and avoids single points of failure.
[0074] Optionally, the patch push module 310 is used for:
[0075] In response to the patch upload operation, the target patch is obtained;
[0076] In response to the distribution configuration operation of the target patch, the patch distribution configuration data of the target patch is obtained; the patch distribution configuration data includes the target terminal group, installation priority, and P2P enable flag; wherein the P2P enable flag is used to indicate whether the target patch supports P2P transmission;
[0077] Based on the patch distribution configuration data, the patch installation data of the target patch is pushed to the target terminal so that the target terminal can install the target patch based on the patch installation data.
[0078] Optionally, the patch push module 310 is specifically used for:
[0079] In response to the patch upload operation, the initial patch is obtained;
[0080] Check if the initial patch exists locally;
[0081] If it does not exist, the initial patch will be used as the target patch;
[0082] If it exists, a pop-up message will indicate that it already exists.
[0083] Optionally, patch download and install module 340 is used for:
[0084] The requesting terminal downloads the patch chunks from the target terminal to obtain the target patch chunks;
[0085] Perform integrity checks on patch blocks;
[0086] If the verification is successful, continue downloading; if the verification fails, re-acquire the patch chunks.
[0087] Optionally, the device also includes a status update module for:
[0088] After obtaining the patch installation result, the requesting terminal will report the patch installation result to the patch management platform via HTTPS;
[0089] The patch management platform updates the terminal state database based on patch installation results;
[0090] If the patch installation result indicates successful installation and the P2P enable flag for the required terminal is true, the patch management platform will mark the required terminal as the new target terminal.
[0091] Optionally, patch download and install module 340 is also used for:
[0092] If no response is received from the target terminal on the local area network, the target patch is obtained from the patch management platform.
[0093] The terminal patching device provided in this embodiment of the invention can execute the terminal patching method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0094] According to embodiments of the present invention, the present invention also provides an electronic device, a readable storage medium, and a computer program product.
[0095] Figure 4 This is a schematic diagram of the structure of an electronic device that implements the terminal patching method of this invention. Figure 4 A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0096] like Figure 4As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0097] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0098] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as terminal patching methods.
[0099] In some embodiments, the terminal patching method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the terminal patching method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the terminal patching method by any other suitable means (e.g., by means of firmware).
[0100] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0101] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0102] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0103] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0104] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0105] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product within the cloud computing service system to address the shortcomings of traditional physical hosts and virtual private servers, such as high management difficulty and weak business scalability.
[0106] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0107] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A terminal patching method, characterized in that, Applied to terminal processing systems; The terminal processing system includes a patch management platform, target terminals, and required terminals, including: The patch management platform pushes the patch installation information of the target patch to the target terminal, so that the target terminal can install the target patch; The request terminal initiates a patch retrieval request, including the target patch, within the local area network. If the requesting terminal receives a response from the target terminal in the local area network, it sends P2P connection information to the target terminal to establish a connection with the target terminal. The target terminal downloads the target patch from the target terminal and installs the patch to obtain the patch installation result.
2. The method according to claim 1, characterized in that, The patch management platform pushes the patch installation information of the target patch to the target terminal so that the target terminal can install the target patch, including: In response to the patch upload operation, the target patch is obtained; In response to the distribution configuration operation of the target patch, patch distribution configuration data of the target patch is obtained; the patch distribution configuration data includes the target terminal group, installation priority, and P2P enable flag; wherein the P2P enable flag is used to indicate whether the target patch supports P2P transmission; Based on the patch distribution configuration data, the patch installation data of the target patch is pushed to the target terminal so that the target terminal can install the target patch based on the patch installation data.
3. The method according to claim 2, characterized in that, In response to the patch upload operation, the target patch is obtained, including: In response to the patch upload operation, the initial patch is obtained; Check locally to see if the initial patch exists; If it does not exist, then the initial patch will be used as the target patch; If it exists, a pop-up message will indicate that it already exists.
4. The method according to claim 1, characterized in that, The requesting terminal downloads the target patch from the target terminal, including: The requesting terminal downloads the patch chunks from the target terminal to obtain the patch chunks of the target patch; Perform integrity checks on patch blocks; If the verification is successful, the download continues; if the verification fails, the patch chunk is retrieved again.
5. The method according to claim 1, characterized in that, After obtaining the patch installation results, it also includes: The requesting terminal will report the patch installation result to the patch management platform via HTTPS; The patch management platform updates the terminal status database based on the patch installation results. If the patch installation result includes successful installation and the P2P enable flag corresponding to the required terminal is true, then the patch management platform will mark the required terminal as a new target terminal.
6. The method according to claim 1, characterized in that, Also includes: If no response is received from the target terminal in the local area network, the target patch is obtained from the patch management platform.
7. A terminal patch processing device, characterized in that, Configured in the terminal processing system; The terminal processing system includes a patch management platform, target terminals, and required terminals, including: The patch push module is used to push the patch installation information of the target patch to the target terminal through the patch management platform, so that the target terminal can install the target patch; The patch retrieval request initiation module is used to initiate a patch retrieval request, including the target patch, through the requesting terminal within the local area network; The connection establishment module is used to send P2P connection information to the target terminal to establish a connection with the target terminal if the requesting terminal receives the response information from the target terminal in the local area network. The patch download and installation module is used to download the target patch from the target terminal through the requesting terminal, install the patch, and obtain the patch installation result.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the terminal patching method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the terminal patching method according to any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the terminal patching method according to any one of claims 1-6.