Business switching method based on page isolation and terminal

Through a business switching method based on page isolation, page processing logic is constructed and provisioned to output data pages or page copies, which solves the problem that the existing technology is difficult to achieve independent or shared service output during business switching, and improves the flexibility and monitoring efficiency of business pages.

CN120066646APending Publication Date: 2025-05-30FUJIAN TQ ONLINE INTERACTIVE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510112432.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The existing virtualization technologies and monitoring methods have limitations in memory management, virtualization environment construction, monitoring efficiency and business management, especially when business switching, it is difficult to achieve independent or shared service output.

Method used

Using a business switching method based on page isolation, a page processing logic is constructed by obtaining the business data of the services to be switched, and arranging it to the page for processing, so as to output data pages or page copies, and realize flexible allocation and independent management of business pages.

Benefits of technology

It realizes the formulation of independent or shared business output for the page during business switching, improves the flexibility and monitoring efficiency of the business page, and ensures the independent management of business data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066646A_ABST
    Figure CN120066646A_ABST
Patent Text Reader

Abstract

The invention discloses a service switching method based on page isolation and a terminal. The service switching method comprises the following steps: acquiring service data of a service to be switched, constructing corresponding page processing logic from the service data according to service logic, and allocating the page processing logic to a corresponding page for processing so as to output a corresponding data page or a page copy. In this way, the business pages can be flexibly deployed, and independent management of the data corresponding to the business to be switched can be achieved in combination with page isolation modes such as establishment of page copies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of service switching, and particularly to a service switching method and a terminal based on page isolation. Background Art

[0002] In the memory management of computer operating systems, virtual page technology plays a crucial role. This technology realizes the effective mapping from virtual addresses to physical addresses by allocating a corresponding page table entry for each page, thus improving the flexibility and efficiency of memory usage. However, with the continuous development of virtualization technology, the requirements for memory management are also increasing day by day.

[0003] Intel virtualization technology (VT technology), especially the VT-x CPU virtualization technology among them, has brought significant improvements in performance, reliability, and security to the virtualization environment. VT-x provides hardware isolation for memory and virtual machines, enabling virtual machines to run in an independent environment, thus avoiding direct interaction with the host machine and reducing potential security risks. However, to use VT technology to achieve an efficient virtualization environment, a large amount of program code needs to be written to configure and execute specific virtualization instructions, such as VMXON, VMLAUNCH, and VMRESUME, etc. The complexity of these instructions and the configuration requirements of VT technology itself make the construction and maintenance of the entire virtualization environment quite cumbersome.

[0004] In terms of the monitoring of virtualization technology, the HOOK technology is a commonly used means. Through the HOOK technology, it is possible to monitor specific functions or memory addresses, thereby obtaining the running state of the system or conducting fault troubleshooting. However, traditional HOOK technology has some significant drawbacks when using VT technology. First, the instability factors of VT technology may cause abnormalities in the virtualization environment when adapting to different scenarios, thereby affecting the page environment of the entire process. Second, since VT technology requires the configuration of a large number of monitoring scenarios, if a certain scenario is not configured correctly, serious errors may occur when the system executes to this scenario, such as a blue screen, etc. In addition, when the HOOK technology monitors shared memory, it may interfere with other processes and affect the normal operation of the system.

[0005] In traditional service management, although the method of injecting DLL or shellcode can achieve process monitoring, since global memory is shared memory, modifying it will have unpredictable effects on the system. At the same time, adopting a one-to-many monitoring method will reduce the monitoring efficiency, especially when there are too many monitoring targets. In addition, traditional service management methods also have the problem that the monitoring process itself cannot be isolated, that is, there is a lack of independence between the monitoring process and the monitored process, which may affect the accuracy and reliability of the monitoring results.

[0006] In summary, the existing virtualization technologies and monitoring means have certain limitations in aspects such as memory management, virtualization environment construction, monitoring efficiency, and service management. Summary of the Invention

[0007] The technical problem to be solved by the present invention is to provide a service switching method and a terminal based on page isolation, which can be applied to the monitoring of different service pages and formulate independent or shared service outputs for pages during service switching.

[0008] To solve the above technical problem, the technical solution adopted by the present invention is as follows: A service switching method based on page isolation, comprising the steps of: Obtain the service data of the service to be switched, and construct the corresponding page processing logic according to the service logic for the service data; Allocate the page processing logic to the corresponding page for processing, and output the corresponding data page or page copy according to the page processing logic.

[0009] To solve the above technical problem, another technical solution adopted by the present invention is as follows: A service switching terminal based on page isolation, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the computer program, each step of the above-mentioned service switching method based on page isolation is implemented.

[0010] The beneficial effect of the present invention lies in: obtaining the service data of the service to be switched, constructing the corresponding page processing logic according to the service logic for the service data, and allocating the page processing logic to the corresponding page for processing, thereby outputting the corresponding data page or page copy. In this way, service pages can be flexibly allocated, and independent management of the data corresponding to the service to be switched can be achieved by combining page isolation methods such as creating page copies. Brief Description of the Drawings

[0011] Figure 1 It is a flowchart of a service switching method based on page isolation according to an embodiment of the present invention; Figure 2 It is a schematic diagram of a service switching terminal based on page isolation according to an embodiment of the present invention; Figure 3 It is a schematic diagram of the relationship between services and pages according to an embodiment of the present invention; Figure 4 It is a schematic diagram of the internal relationship of service data according to an embodiment of the present invention; Figure 5 It is a flowchart of service output according to an embodiment of the present invention; Figure 6Schematic diagram of the relationship between the data page and the page copy in the embodiment of the present invention; Label description: 1. A service switching terminal based on page isolation; 2. A memory; 3. A processor. Specific implementation manner

[0012] To describe in detail the technical content, the achieved purpose and the effects of the present invention, the following is described in conjunction with the implementation manners and with reference to the accompanying drawings.

[0013] Please refer to Figure 1 , the embodiment of the present invention provides a service switching method based on page isolation, including the steps: Obtain the service data of the service to be switched, and construct the corresponding page processing logic according to the service logic for the service data; Allocate the page processing logic to the corresponding page for processing, and output the corresponding data page or page copy according to the page processing logic.

[0014] It can be seen from the above description that the beneficial effects of the present invention are as follows: obtaining the service data of the service to be switched, constructing the corresponding page processing logic according to the service logic for the service data, and allocating the page processing logic to the corresponding page for processing, so as to output the corresponding data page or page copy. In this way, the service pages can be flexibly allocated, and the independent management of the data corresponding to the service to be switched can be achieved by combining page isolation methods such as establishing page copies.

[0015] Further, before obtaining the service data of the service to be switched, it includes: Establish a binding relationship between the service and the page, and store the service and the corresponding data page and page copy through a binary tree structure.

[0016] It can be seen from the above description that since a service node can be bound to the corresponding data page and page copy, it is convenient to formulate independent or shared service outputs for the service node.

[0017] Further, allocating the page processing logic to the corresponding page for processing, and outputting the corresponding data page or page copy according to the page processing logic, includes: Replace the page bound to the service to be switched with the page corresponding to the page processing logic, and the page corresponding to the page processing logic is a data page or a page copy.

[0018] It can be seen from the above description that through page replacement, the original public area / shared / private page can be replaced with the service page where the page processing logic corresponding to the service to be switched is located, so as to achieve the conversion of page attributes.

[0019] Further, outputting a corresponding data page or a page copy according to the page processing logic further includes: If a corresponding data page is output according to the page processing logic, directly output the page corresponding to the page processing logic; If a corresponding page copy is output according to the page processing logic, copy the page data corresponding to the page processing logic to obtain a page copy.

[0020] As can be seen from the above description, outputting a data page means sharing the business logic among multiple processes, and outputting a page copy means outputting the business logic independently and isolatedly, which further facilitates formulating independent or shared business outputs for business nodes.

[0021] Further, the business data includes business description nodes, the business description nodes store corresponding business data logics, and the business data logics store corresponding business module categories and business objects; Obtaining the business data of the service to be switched further includes: Generate a business script according to the business module category and business object in the business data, so as to output a service according to the business script.

[0022] As can be seen from the above description, by storing the business description, business module category, and business object included in the business data, it is convenient to generate a business script according to the business module category and business object therein to complete the output of the service.

[0023] Please refer to Figure 2 , another embodiment of the present invention provides a service switching terminal based on page isolation, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements each step of the above-mentioned service switching method based on page isolation.

[0024] The above-mentioned service switching method and terminal based on page isolation of the present invention are applicable to the monitoring of different service pages, and formulate independent or shared service outputs for pages during service switching. The following is illustrated by specific embodiments: Please refer to Figure 1 , Embodiment 1 of the present invention is: A service switching method based on page isolation includes the steps of: S1. Obtain the business data of the service to be switched, and construct a corresponding page processing logic according to the business data according to the business logic.

[0025] Please refer to Figure 3, in this embodiment, it is necessary to establish a binding relationship between the service and the page. Specifically, the service logic module is bound to the page processing. Through the flexibility of the page, different service data is used to construct the corresponding page processing logic by the service logic, and it is generated in the page management. The corresponding page processing is allocated by the page management to complete multiple or single independent service logics.

[0026] Among them, the service data is the service description statement, which refers to the content of the service data to be processed. For example: what a certain process needs to do; the service logic is the conditional statement, that is, when encountering what conditions, what things are processed, and a callback is started to distribute and refine the service.

[0027] Please refer to Figure 4 and Figure 5 , the service data includes service description nodes, and the service description nodes store the corresponding service data logics. The service data logics store the corresponding service module categories and service objects. In this embodiment, the service data logic is the sequential data of the conditional data in the service data; the service object is the service processing object, which can be a function address or a shared / global / private memory address. For example, for a function, it is necessary to monitor a certain parameter of the function. Here, the function address can be the directly accessed function address, the address obtained through the function name, or the specified address block; the service module category is specifically to establish the corresponding service data through the category. Furthermore, a service script is generated according to the service module category and service object in the service data, so as to output the service according to the service script.

[0028] In this embodiment, the service and the corresponding data page and page copy are stored through a binary tree structure.

[0029] S2. Allocate the page processing logic to the corresponding page for processing, and output the corresponding data page or page copy according to the page processing logic.

[0030] In this embodiment, the page bound to the service to be switched is replaced with the page corresponding to the page processing logic, and the page corresponding to the page processing logic is a data page or a page copy.

[0031] Specifically, for example, when the original page belongs to the shared attribute, it will affect the service data capture. Therefore, the service page is used to change the original page management attribute, and the public area / shared / private page is replaced with the service page where the service logic is located. Among them, the private page refers to the page that is not shared and only responsible for one process or one specified object, discussing itself, and is applicable to a single research object; the common page refers to the page mounted on multiple process pages, used to manage and maintain multiple processes, which is equivalent to allowing multiple processes to access one page, with complex logic and suitable for complex service management.

[0032] Please refer toFigure 6 In this embodiment, if the corresponding data page is output according to the page processing logic, the page corresponding to the page processing logic is directly output; if the corresponding page copy is output according to the page processing logic, the page data corresponding to the page processing logic is copied to obtain a page copy.

[0033] Among them, the data page is a data page constructed according to the service output and service description, and the page copy is obtained by copying the data in the data page. The page copy can be used when the services are the same, but the logical objects are different, and it is not desired to synchronize the data page and instead wants to output the service data separately.

[0034] For example: Both module X1 and module X2 pass through a function address. However, when only module X1 is desired to be studied without affecting module X2, then the memory of module X1 can be replaced with the service memory, that is, the capture of the local service is completed. At this time, the page copy of the service is output.

[0035] Another example: Both process X3 and process X4 access a function address, but their memories are private. Then, at this time, by directly replacing the page, both X3 and X4 can be captured into the service logic, and in this way, the conversion from private to public can be completed.

[0036] Please refer to Figure 2 , the second embodiment of the present invention is: A service switching terminal 1 based on page isolation, including a memory 2, a processor 3, and a computer program stored on the memory 2 and executable on the processor 3. When the processor 3 executes the computer program, each step of a service switching method based on page isolation in the first embodiment is implemented.

[0037] In summary, a service switching method and terminal based on page isolation provided by the present invention obtain the service data of the service to be switched, construct the corresponding page processing logic according to the service logic for the service data, and allocate the page processing logic to the corresponding page for processing, thereby outputting the corresponding data page or page copy. In this way, the service pages can be flexibly allocated, and the independent management of the data corresponding to the service to be switched can be achieved by combining page isolation methods such as establishing page copies.

[0038] The above are only the embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. All equivalent transformations made using the content of the specification and drawings of the present invention, or directly or indirectly applied in the related technical fields, are equally included in the patent protection scope of the present invention.

Claims

1. A service switching method based on page isolation, characterized in that: Includes steps: Obtain the business data of the business to be switched, and construct the corresponding page processing logic according to the business logic; The page processing logic is deployed to the corresponding page for processing, and the corresponding data page or page copy is output according to the page processing logic.

2. A service switching method based on page isolation according to claim 1, characterized in that: Get the service data of the service to be switched, which previously included: A binding relationship between a business and a page is established, and the business and the corresponding data page and page copy are stored through a binary tree structure.

3. A service switching method based on page isolation according to claim 2, characterized in that: The page processing logic is deployed to the corresponding page for processing, and the corresponding data page or page copy is output according to the page processing logic, including: The page bound to the to-be-switched service is replaced with a page corresponding to the page processing logic, where the page corresponding to the page processing logic is a data page or a page copy.

4. A service switching method based on page isolation according to claim 3, characterized in that: Outputting the corresponding data page or page copy according to the page processing logic also includes: If the corresponding data page is output according to the page processing logic, the page corresponding to the page processing logic is directly output; If a corresponding page copy is output according to the page processing logic, the page data corresponding to the page processing logic is copied to obtain a page copy.

5. A service switching method based on page isolation according to claim 1, characterized in that: The business data includes a business description node, the business description node stores corresponding business data logic, and the business data logic stores corresponding business module categories and business objects; Obtaining the service data of the service to be switched also includes: A service script is generated according to the service module category and the service object in the service data, so as to output the service according to the service script.

6. A service switching terminal based on page isolation, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the following steps are implemented: Obtain the business data of the business to be switched, and construct the corresponding page processing logic according to the business logic; The page processing logic is deployed to the corresponding page for processing, and the corresponding data page or page copy is output according to the page processing logic.

7. A service switching terminal based on page isolation according to claim 6, characterized in that: Get the service data of the service to be switched, which previously included: A binding relationship between a business and a page is established, and the business and the corresponding data page and page copy are stored through a binary tree structure.

8. A service switching terminal based on page isolation according to claim 7, characterized in that: The page processing logic is deployed to the corresponding page for processing, and the corresponding data page or page copy is output according to the page processing logic, including: The page bound to the to-be-switched service is replaced with a page corresponding to the page processing logic, where the page corresponding to the page processing logic is a data page or a page copy.

9. A service switching terminal based on page isolation according to claim 8, characterized in that: Outputting the corresponding data page or page copy according to the page processing logic also includes: If the corresponding data page is output according to the page processing logic, the page corresponding to the page processing logic is directly output; If a corresponding page copy is output according to the page processing logic, the page data corresponding to the page processing logic is copied to obtain a page copy.

10. The service switching terminal based on page isolation according to claim 6, characterized in that: The business data includes a business description node, the business description node stores corresponding business data logic, and the business data logic stores corresponding business module categories and business objects; Obtaining the service data of the service to be switched also includes: A service script is generated according to the service module category and the service object in the service data, so as to output the service according to the service script.