A gateway customized middleware dynamic loading method, system, device and medium
By obtaining and segmenting system node information, and dynamically loading customized system segments, the problems of server efficiency and user experience during gateway system update process are solved, and efficient operation of functions can still be dynamically mobilized during the update process.
Patent Information
- Application Number
- CN202410809313.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-06-21
AI Technical Summary
When the gateway system provides customized functions, users need to stop the existing system, update and deploy a new gateway system, resulting in reduced server service efficiency and poor user experience, and the functions cannot be dynamically mobilized during the update process.
By obtaining customized information and server system node information, system node segmentation is performed, customized system segments are dynamically loaded, and users are still allowed to access when the update is not completed, ensuring that the normal operation and update of the server does not affect the service.
It realizes the function of dynamically mobilizing when the server has not completed the custom module update, improving the server service efficiency and user experience.
Smart Images

Figure CN118487958B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of dynamic loading, and in particular to a method, system, device and medium for dynamic loading of gateway customized middleware. Background Art
[0002] With the rapid development of Internet systems, microservice gateway systems provide request forwarding services. When the gateway provides new customized functions, developers need to encode in the existing gateway project and debug the encoded gateway project to determine the applicability of the gateway project. After debugging, it is necessary to stop the existing gateway system, update the gateway system according to the encoded gateway project, and then deploy the updated gateway system to the server to provide users with new customized functions.
[0003] The inventor believes that in the process of launching customized functions, users are subject to restricted operations. That is, in the process of deploying the updated gateway system to the server, users can only continue to access the server after the gateway system deployment is completed. This not only reduces the service efficiency of the server, but also reduces the user's application experience. Summary of the invention
[0004] In order to solve at least one of the above technical problems, the present application provides a gateway customized middleware dynamic loading method, system, device and medium.
[0005] In a first aspect, the present application provides a gateway customized middleware dynamic loading method, which adopts the following technical solution:
[0006] Obtain customized information and system node information of the server, wherein the customized information is function module information formulated according to user needs and node information where the system node information and the function module information have matching points, and the system node information is each system node processing and flow information performed by the server in response to user needs when the user applies different function modules of the server;
[0007] After detecting the user request information, determining whether the server loads and updates the customized information to the system node information, and if not, segmenting the system node information into system nodes based on the customized information to obtain at least two operating system segments and a customized system segment;
[0008] Determine a system operation order according to the system node information, and sequentially operate the at least two operation system segments and the customized system segment according to the system operation order;
[0009] When the detection system runs to the customized system segment, the function module in the customized information is executed and started, and the customized data generated after the execution is used to overwrite and update the data generated by the customized system segment to obtain updated customized system segment data;
[0010] Logically process the data generated corresponding to the at least two operating system segments and the data generated corresponding to the customized system segment to obtain user demand information.
[0011] In a possible implementation, the system node information is segmented based on the customized information to obtain at least two operating system segments and a customized system segment, including:
[0012] determining at least one target system node based on the customized information;
[0013] The system node information is segmented into system nodes according to the target system node to obtain at least two operating system segments and a customized system segment.
[0014] In a possible implementation, the performing logical processing on the data generated corresponding to the at least two operating system segments and the data generated corresponding to the customized system segment to obtain the user demand information includes:
[0015] Acquire a data center address of data generated corresponding to the at least two operating system segments and a module communication address of data generated corresponding to the customized system segment;
[0016] Perform IPv6 stealth terminal deployment on the data center address and the module communication address respectively, to obtain a first terminal device corresponding to the data center address and a second terminal device corresponding to the module communication address;
[0017] Determine pre-protected data information based on the data center address and the module communication address;
[0018] According to the preset certificate allocation rule, the first terminal device, the second terminal device and the pre-protected data information are bound with security certificates to obtain the first pass identity information corresponding to the first terminal device, the second pass identity information corresponding to the second terminal device and the third pass identity information corresponding to the pre-protected data information;
[0019] Performing access parameter screening on the user request information to obtain an access parameter data group;
[0020] The access parameter data group is logically analyzed based on the first access identity information, the second access identity information, and the third access identity information to obtain user demand data.
[0021] In a possible implementation, the performing logical analysis on the access parameter data group based on the first access identity information, the second access identity information, and the third access identity information to obtain user demand data includes:
[0022] Determine whether the identity parameter data in the access parameter data group conforms to the first communication identity information and the second communication identity information; if so, determine user identity data based on the identity parameter data and the first communication identity information / the second communication identity information, and add the user identity data to the access parameter data group to obtain a primary data group;
[0023] Determine a verification address corresponding to the user identity data according to the primary data group and the dynamic DNS module in the IPv6 network, and judge whether the verification address conforms to a preset verification address set, and if so, use the verification address as a target address to establish a secure connection with the server;
[0024] Analyzing the access parameter data in the primary data group to obtain access data;
[0025] Based on the third pass identity information, determine whether the user identity data has the authority to access the access data. If so, determine the target address based on the access data, and establish a connection between the target address and the database corresponding to the pre-protected data information to obtain user demand data. The target address is the application address corresponding to the access data.
[0026] In a possible implementation, analyzing the access parameter data in the primary data group to obtain the access data includes:
[0027] determining the user access rights corresponding to the user request information based on the access parameter data;
[0028] The user access rights are matched with different access rights in a preset permission framework to determine whether the user access rights have direct access rights. If so, a permission tag matching the user access rights is determined based on the preset permission framework, and the permission tag is added to the access parameters to obtain access data.
[0029] In a possible implementation manner, the determining whether the user access rights include direct access rights further includes:
[0030] If the user access right does not have direct access rights, determining an acquisition authority node for the user access right according to the preset authority framework, and generating node verification information according to the acquisition authority node;
[0031] Send the node verification information to the authority device corresponding to the authority acquisition node, and receive the verification return information returned by the authority device;
[0032] Determine whether the verification status in the verification return information returned within a preset time has a preset change, and if so, update the primary data group based on the verification return information and the set access time limit to obtain a secondary data group;
[0033] Access data is determined based on the secondary data set.
[0034] In one possible implementation, the method further includes:
[0035] Acquire traffic transmission information between the user equipment and the server in real time;
[0036] Arrange the traffic transmission information according to transmission time nodes to obtain a transmission fluctuation graph of data transmission between the user equipment and the server;
[0037] Fitting the transmission fluctuation graph with the preset traffic transmission graph according to the transmission time nodes, determining whether the traffic transmission data corresponding to different transmission time nodes are abnormal, and if so, obtaining historical traffic transmission data, and performing data transmission abnormality analysis on the user device and the server based on the historical traffic transmission data to obtain the abnormal access degree of the user device, wherein the historical traffic transmission data is traffic transmission data when different models of user devices communicate with the server;
[0038] The abnormal access degree is compared with the access degree in the abnormal access standard to obtain a user access rule, and the access parameter data in the first-level data group is adjusted based on the user access rule.
[0039] In a second aspect, the present application provides a gateway customized middleware dynamic loading system, which adopts the following technical solutions:
[0040] A gateway customized middleware dynamic loading system, comprising:
[0041] An information acquisition module, used to acquire customized information and system node information of the server, wherein the customized information is function module information formulated according to user needs and node information where the system node information and the function module information have a matching point, and the system node information is each system node processing and flow information performed by the server in response to user needs when the user applies different function modules of the server;
[0042] A node segmentation module, configured to determine whether the server loads and updates the customized information into the system node information after detecting the user request information, and if not, segment the system node information into system nodes based on the customized information to obtain at least two operating system segments and a customized system segment;
[0043] A system operation module, used to determine a system operation order according to the system node information, and sequentially operate the at least two operation system segments and the customized system segment according to the system operation order;
[0044] A data updating module, used for executing and starting the function module in the customized information when the detection system runs to the customized system segment, and overwriting and updating the data generated by the customized system segment with the customized data generated after the execution, so as to obtain the updated customized system segment data;
[0045] The logic processing module is used to perform logic processing on the data generated corresponding to the at least two operating system segments and the data generated corresponding to the customized system segment to obtain user demand information.
[0046] In a possible implementation, when the node segmentation module performs system node segmentation on the system node information based on the customized information to obtain at least two operating system segments and a customized system segment, it is specifically used to:
[0047] determining at least one target system node based on the customized information;
[0048] The system node information is segmented into system nodes according to the target system node to obtain at least two operating system segments and a customized system segment.
[0049] In another possible implementation, when the logic processing module performs logic processing on the data generated corresponding to the at least two operating system segments and the data generated corresponding to the customized system segment to obtain the user demand information, it is specifically used to:
[0050] Acquire a data center address of data generated corresponding to the at least two operating system segments and a module communication address of data generated corresponding to the customized system segment;
[0051] Perform IPv6 stealth terminal deployment on the data center address and the module communication address respectively, to obtain a first terminal device corresponding to the data center address and a second terminal device corresponding to the module communication address;
[0052] Determine pre-protected data information based on the data center address and the module communication address;
[0053] According to the preset certificate allocation rule, the first terminal device, the second terminal device and the pre-protected data information are bound with security certificates to obtain the first pass identity information corresponding to the first terminal device, the second pass identity information corresponding to the second terminal device and the third pass identity information corresponding to the pre-protected data information;
[0054] Performing access parameter screening on the user request information to obtain an access parameter data group;
[0055] The access parameter data group is logically analyzed based on the first access identity information, the second access identity information, and the third access identity information to obtain user demand data.
[0056] In another possible implementation, when the logic processing module performs a logic analysis on the access parameter data group based on the first access identity information, the second access identity information, and the third access identity information to obtain the user demand data, it is specifically used to:
[0057] Determine whether the identity parameter data in the access parameter data group conforms to the first communication identity information and the second communication identity information; if so, determine user identity data based on the identity parameter data and the first communication identity information / the second communication identity information, and add the user identity data to the access parameter data group to obtain a primary data group;
[0058] Determine a verification address corresponding to the user identity data according to the primary data group and the dynamic DNS module in the IPv6 network, and judge whether the verification address conforms to a preset verification address set, and if so, use the verification address as a target address to establish a secure connection with the server;
[0059] Analyzing the access parameter data in the primary data group to obtain access data;
[0060] Based on the third pass identity information, determine whether the user identity data has the authority to access the access data. If so, determine the target address based on the access data, and establish a connection between the target address and the database corresponding to the pre-protected data information to obtain user demand data. The target address is the application address corresponding to the access data.
[0061] In another possible implementation, when the logic processing module analyzes the access parameter data in the primary data group to obtain the access data, it is specifically used to:
[0062] determining the user access rights corresponding to the user request information based on the access parameter data;
[0063] The user access rights are matched with different access rights in a preset permission framework to determine whether the user access rights have direct access rights. If so, a permission tag matching the user access rights is determined based on the preset permission framework, and the permission tag is added to the access parameters to obtain access data.
[0064] In another possible implementation, the system further includes: an authority determination module, an information receiving module, an updating module, and a data determination module, wherein:
[0065] An authority determination module, for determining, when the user access right does not have direct access right, an acquisition authority node of the user access right according to the preset authority framework, and generating node verification information according to the acquisition authority node;
[0066] An information receiving module, used to send the node verification information to the authority device corresponding to the authority acquisition node, and receive the verification return information returned by the authority device;
[0067] An updating module, used for determining whether a preset change occurs to the verification status in the verification return information returned within a preset time, and if so, updating the primary data group based on the verification return information and the set access time limit to obtain a secondary data group;
[0068] The data determination module is used to determine access data according to the secondary data group.
[0069] In another possible implementation, the system further includes: a traffic acquisition module, an information sorting module, an anomaly analysis module, and an anomaly comparison module, wherein:
[0070] The traffic acquisition module is used to acquire the traffic transmission information between the user equipment and the server in real time;
[0071] The information sorting module is used to sort the traffic transmission information according to the transmission time nodes to obtain a transmission fluctuation graph of the data transmission between the user equipment and the server;
[0072] The abnormality analysis module is used to fit the transmission fluctuation graph with the preset traffic transmission graph according to the transmission time nodes, determine whether the traffic transmission data corresponding to different transmission time nodes are abnormal, and if so, obtain historical traffic transmission data, and perform data transmission abnormality analysis on the user device and the server based on the historical traffic transmission data to obtain the abnormal access degree of the user device, wherein the historical traffic transmission data is the traffic transmission data when different models of user devices communicate with the server;
[0073] The abnormal comparison module is used to compare the abnormal access degree with the access degree in the abnormal access standard to obtain the user access rule, and adjust the access parameter data in the primary data group based on the user access rule.
[0074] On the third side, the present application provides an electronic device, which adopts the following technical solution:
[0075] at least one processor;
[0076] Memory;
[0077] At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute a gateway customized middleware dynamic loading method as described in any one of the first aspects.
[0078] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0079] A computer-readable storage medium stores a computer program thereon. When the computer program is executed in a computer, the computer is caused to execute the gateway customized middleware dynamic loading method as described in any one of the first aspects.
[0080] In summary, the present application includes at least one of the following beneficial technical effects:
[0081] When the customized module of the server is updated, the customized information and the system node information of the server are obtained. The customized information is the functional module information formulated according to the user's needs and the node information where the system node information and the functional module information have a matching point. The system node information is the processing and flow information of each system node performed by the server in response to the user's needs when the user applies different functional modules of the server. Then, when the user request information is detected, it is determined whether the server loads and updates the customized information to the system node information. If not, the system node information is segmented based on the customized information to obtain at least two running system segments and customized system segments. The system running order is determined according to the system node information, and the system running order is determined according to the system running order. The at least two operating system segments and the customized system segment are sequentially run, and then when the detection system runs to the customized system segment, the function module in the startup customized information is executed, and the customized data generated after the execution is used to overwrite and update the data generated by the customized system segment to obtain the updated customized system segment data, and then the data corresponding to the at least two operating system segments and the data corresponding to the customized system segment are logically processed to obtain user demand information, so that when the server has not completed the customized module update, the user can still dynamically mobilize the corresponding function in the customized module, and at the same time, it does not affect the normal operation of the server and the update of the customized module, thereby achieving the effect of improving the server service efficiency and the user application experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] Figure 1 A flowchart of a gateway customized middleware dynamic loading method provided in an embodiment of the present application.
[0083] Figure 2 A schematic diagram of the structure of a gateway customized middleware dynamic loading system provided in an embodiment of the present application.
[0084] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0085] The following is combined with Figure 1-3 This application is described in further detail.
[0086] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, a person skilled in the art may make non-creative modifications to the present embodiment as needed, but such modifications are protected by the patent law as long as they are within the scope of the present application.
[0087] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0088] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0089] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0090] The embodiment of the present application provides a method for dynamically loading gateway customized middleware, which is executed by an electronic device, which can be a server or a terminal device, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, and the embodiment of the present application does not limit this. Figure 1 As shown, the method includes:
[0091] Step S10: Obtain customized information and system node information of the server.
[0092] Among them, customized information is the functional module information formulated according to user needs and the node information where the system node information and the functional module information have points of convergence. The system node information is the system node processing and flow information performed by the server in response to user needs when the user applies different functional modules of the server.
[0093] For the embodiment of the present application, when the customized information is dynamically loaded to the server, the SPI mechanism and class loading method provided by JAVA are used to achieve the deployment and dynamic loading effect of the customized information server without the help of a third party. Specifically, the SPI mechanism is an interface specially provided to service providers or developers who extend framework functions. SPI separates the service interface from the specific service implementation, decouples the service caller from the service implementer, thereby improving the scalability and maintainability of the program. At the same time, when there is a modification or replacement of the service, the modification or replacement operation can be completed without modifying the caller.
[0094] Specifically, a customized project created by the gateway customized basic package is introduced. The customized basic package mainly defines an abstract interface for the customized project to implement. Then the customized project implements the functions of the relevant abstract interface according to its own business process, and packages the customized project and uploads it to the specified directory. The microservice gateway system uses a timed scan of the specified directory to load relevant customized functions to obtain customized information.
[0095] Step S11, after detecting the user request information, determine whether the server loads and updates the customized information to the system node information, if not, segment the system node information based on the customized information to obtain at least two operating system segments and a customized system segment.
[0096] Specifically, at least one target system node is determined based on the customized information, and the system node information is segmented into system nodes according to the target system node to obtain at least two operating system segments and a customized system segment.
[0097] Step S12: determining a system operation sequence according to the system node information, and sequentially operating at least two operating system segments and a customized system segment according to the system operation sequence.
[0098] Step S13, when the detection system runs to the customized system segment, the function module in the customized information is executed and the customized data generated after the execution is used to overwrite and update the data generated by the customized system segment to obtain updated customized system segment data.
[0099] Step S14: logically process the data generated corresponding to the at least two operating system segments and the data generated corresponding to the customized system segment to obtain user demand information.
[0100] Specifically, a data center address of data generated corresponding to at least two operating system segments and a module communication address of data generated corresponding to a customized system segment are obtained, and IPv6 stealth terminal deployment is performed on the data center address and the module communication address respectively to obtain a first terminal device corresponding to the data center address and a second terminal device corresponding to the module communication address, and pre-protected data information is determined based on the data center address and the module communication address, and security certificates are assigned and bound to the first terminal device, the second terminal device, and the pre-protected data information according to a preset certificate allocation rule to obtain first access identity information corresponding to the first terminal device, second access identity information corresponding to the second terminal device, and third access identity information corresponding to the pre-protected data information, and access parameter screening is performed on user request information to obtain an access parameter data group, and the access parameter data group is logically analyzed based on the first access identity information, the second access identity information, and the third access identity information to obtain user demand data.
[0101] Further, determine whether the identity parameter data in the access parameter data group conforms to the first access identity information and the second access identity information. If so, determine the user identity data based on the identity parameter data and the first communication identity information / the second access identity information, and add the user identity data to the access parameter data group to obtain a first-level data group. Determine the verification address corresponding to the user identity data based on the first-level data group and the dynamic DNS module in the IPv6 network, and determine whether the verification address conforms to the preset verification address set. If so, use the verification address as the target address to establish a secure connection with the server, analyze the access parameter data in the first-level data group to obtain access data, determine whether the user identity data has the authority to access the access data based on the third access identity information, if so, determine the target address based on the access data, and establish a connection between the target address and the database corresponding to the pre-protected data information to obtain user demand data, and the target address is the application address corresponding to the access data.
[0102] In an embodiment of the present application, the user access rights corresponding to the user request information are determined based on the access parameter data, the user access rights are matched with different access rights in the preset permission framework, and it is determined whether the user access rights have direct access rights. If so, the permission tag that matches the user access rights is determined based on the preset permission framework, and the permission tag is added to the access parameters to obtain the access data.
[0103] In the embodiment of the present application, when the customized module of the server is updated, the customized information and the system node information of the server are obtained, the customized information is the functional module information formulated according to the user's needs and the node information where the system node information and the functional module information have a matching point, the system node information is the processing and flow information of each system node performed by the server in response to the user's needs when the user applies different functional modules of the server, and then when the user request information is detected, it is determined whether the server loads and updates the customized information to the system node information, if not, the system node information is segmented based on the customized information to obtain at least two running system segments and customized system segments, the system running order is determined according to the system node information, and according to The system operation sequence runs at least two operating system segments and a customized system segment in sequence, and then when the detection system runs to the customized system segment, the function module in the startup customized information will be executed, and the customized data generated after the execution will be used to overwrite and update the data generated by the customized system segment to obtain the updated customized system segment data, and then the data corresponding to the at least two operating system segments and the data corresponding to the customized system segment are logically processed to obtain user demand information, so that when the server has not completed the customized module update, the user can still dynamically mobilize the corresponding function in the customized module, and at the same time will not affect the normal operation of the server and the update of the customized module, thereby achieving the effect of improving the server service efficiency and user application experience.
[0104] Further, in an embodiment of the present application, determining whether there is direct access right for user access rights also includes: if there is no direct access right for user access rights, determining the acquisition permission node of the user access rights according to a preset permission framework, and generating node verification information according to the acquisition permission node, sending the node verification information to the permission device corresponding to the acquisition permission node, and receiving the verification return information returned by the permission device, judging whether the verification status in the verification return information returned within a preset time has undergone a preset change, and if so, updating the first-level data group based on the verification return information and the set access time limit to obtain a second-level data group, and determining the access data based on the second-level data group.
[0105] Furthermore, in an embodiment of the present application, the method also includes: acquiring the flow transmission information between the user device and the server in real time, organizing the flow transmission information according to the transmission time nodes, obtaining a transmission fluctuation graph of the data transmission between the user device and the server, fitting the transmission fluctuation graph with the preset flow transmission graph according to the transmission time nodes, determining whether there are abnormalities in the flow transmission data corresponding to different transmission time nodes, and if so, acquiring historical flow transmission data, and performing data transmission abnormality analysis on the user device and the server based on the historical flow transmission data to obtain the abnormal access degree of the user device, the historical flow transmission data being the flow transmission data when different models of user devices communicate data with the server, comparing the abnormal access degree with the access degree in the abnormal access standard to obtain the user access rule, and adjusting the access application parameter data in the first-level data group based on the user access rule.
[0106] For the embodiment of the present application, the highest traffic transmission rate and the lowest traffic transmission rate in each data communication process between different types of user devices and the server are determined based on the historical traffic transmission data, and the highest traffic transmission rate and the lowest traffic transmission rate are used as the transmission numerator, and the time used for each data communication process is used as the transmission denominator. Then, the transmission rate change value of each data communication process is obtained based on the ratio of the transmission numerator to the transmission denominator, and the transmission rate change values are arranged in time sequence to obtain the transmission sequence of the historical traffic transmission data. According to the change values corresponding to the transmission rates of different types of user devices and the server each time in the transmission sequence and the value of each transmission rate, all the segmentation points in the transmission sequence are obtained, and according to all the segmentation points And the transmission sequence is segmented in a preset monitoring time period, the similarity of the change value sequence corresponding to each two adjacent transmission sequences is obtained, and whether each two adjacent transmission sequences need to be merged is determined according to the similarity, and two or more transmission data segments are obtained, and each change value corresponding to each transmission data segment is analyzed for abnormalities according to the data security situation of each change value corresponding to each transmission data segment within a preset time in the future, and the abnormality degree of different change values corresponding to different transmission data segments during each data communication between different models of user devices and the server is obtained, and based on the abnormality degree, the abnormal access degree of the transmission data segment corresponding to the user device, the server and the transmission time node with traffic transmission data abnormality is obtained.
[0107] The following is an introduction to a gateway customized middleware dynamic loading system provided by an embodiment of the present application. The gateway customized middleware dynamic loading system described below and the gateway customized middleware dynamic loading method described above can be referred to each other. Please refer to Figure 2 , Figure 2 : is a schematic diagram of a structure of a gateway customized middleware dynamic loading system 20 provided in an embodiment of the present application, including:
[0108] The information acquisition module 21 is used to acquire customized information and system node information of the server. The customized information is the function module information formulated according to user needs and the node information where the system node information and the function module information have a matching point. The system node information is the processing and flow information of each system node performed by the server in response to user needs when the user applies different function modules of the server;
[0109] The node segmentation module 22 is used to determine whether the server loads and updates the customized information to the system node information after detecting the user request information, and if not, segment the system node information based on the customized information to obtain at least two operating system segments and a customized system segment;
[0110] The system operation module 23 is used to determine the system operation order according to the system node information, and to sequentially operate at least two operation system segments and the customized system segment according to the system operation order;
[0111] The data updating module 24 is used for executing the function module in the startup customization information when the detection system runs to the customized system segment, and overwriting and updating the data generated by the customized system segment with the customized data generated after the execution, so as to obtain the updated customized system segment data;
[0112] The logic processing module 25 is used to perform logic processing on the data generated corresponding to the at least two operating system segments and the data generated corresponding to the customized system segment to obtain user demand information.
[0113] In a possible implementation manner in the embodiment of the present application, when the node segmentation module 22 segments the system node information based on the customized information to obtain at least two operating system segments and a customized system segment, it is specifically used to:
[0114] determining at least one target system node based on the customized information;
[0115] The system node information is segmented according to the target system node to obtain at least two operating system segments and a customized system segment.
[0116] In another possible implementation of the embodiment of the present application, the logic processing module 25 performs logic processing on the data generated corresponding to the at least two operating system segments and the data generated corresponding to the customized system segment to obtain the user demand information, specifically for:
[0117] Obtaining data center addresses of data generated corresponding to at least two operating system segments and module communication addresses of data generated corresponding to the customized system segment;
[0118] Perform IPv6 stealth terminal deployment on the data center address and the module communication address respectively, and obtain a first terminal device corresponding to the data center address and a second terminal device corresponding to the module communication address;
[0119] Determine pre-protected data information based on the data center address and the module communication address;
[0120] According to the preset certificate allocation rule, the first terminal device, the second terminal device and the pre-protected data information are assigned and bound with security certificates to obtain the first pass identity information corresponding to the first terminal device, the second pass identity information corresponding to the second terminal device and the third pass identity information corresponding to the pre-protected data information;
[0121] Performing access parameter screening on user request information to obtain an access parameter data group;
[0122] The access parameter data group is logically analyzed based on the first access identity information, the second access identity information and the third access identity information to obtain user demand data.
[0123] In another possible implementation of the embodiment of the present application, when the logic processing module 22 performs a logic analysis on the access parameter data group based on the first pass identity information, the second pass identity information, and the third pass identity information to obtain the user demand data, it is specifically used to:
[0124] Determine whether the identity parameter data in the access parameter data group conforms to the first communication identity information and the second communication identity information. If so, determine the user identity data based on the identity parameter data and the first communication identity information / the second communication identity information, and add the user identity data to the access parameter data group to obtain a primary data group.
[0125] Determine the verification address corresponding to the user identity data based on the primary data group and the dynamic DNS module in the IPv6 network, and judge whether the verification address conforms to the preset verification address set. If so, use the verification address as the target address to establish a secure connection with the server;
[0126] Analyze the access parameter data in the primary data group to obtain access data;
[0127] Based on the third pass identity information, determine whether the user identity data has the authority to access the access data. If so, determine the target address based on the access data, and establish a connection between the target address and the database corresponding to the pre-protected data information to obtain the user demand data. The target address is the application address corresponding to the access data.
[0128] In another possible implementation of the embodiment of the present application, when the logic processing module 22 analyzes the access parameter data in the primary data group to obtain the access data, it is specifically used to:
[0129] determining the user access rights corresponding to the user request information based on the access parameter data;
[0130] Match the user's access rights with the different access rights in the preset permission framework to determine whether the user's access rights have direct access rights. If so, determine the permission tag that matches the user's access rights based on the preset permission framework, and add the permission tag to the access parameters to obtain the access data.
[0131] In another possible implementation of the embodiment of the present application, the system 20 further includes: an authority determination module, an information receiving module, an update module and a data determination module, wherein:
[0132] The permission determination module is used to determine the acquisition permission node of the user's access rights according to the preset permission framework when there is no direct access right for the user's access rights, and generate node verification information according to the acquisition permission node;
[0133] An information receiving module is used to send the node verification information to the authority device corresponding to the authority node, and receive the verification return information returned by the authority device;
[0134] An update module is used to determine whether the verification status in the verification return information returned within a preset time has a preset change. If so, the primary data group is updated based on the verification return information and the set access time limit to obtain a secondary data group;
[0135] The data determination module is used to determine access data according to the secondary data group.
[0136] In another possible implementation of the embodiment of the present application, the system 20 further includes: a traffic acquisition module, an information sorting module, an abnormality analysis module and an abnormality comparison module, wherein:
[0137] Traffic acquisition module, used to obtain traffic transmission information between user equipment and server in real time;
[0138] An information sorting module is used to sort the traffic transmission information according to the transmission time nodes to obtain a transmission fluctuation diagram of the data transmission between the user equipment and the server;
[0139] The abnormality analysis module is used to fit the transmission fluctuation graph with the preset traffic transmission graph according to the transmission time nodes, and determine whether the traffic transmission data corresponding to different transmission time nodes are abnormal. If so, the historical traffic transmission data is obtained, and the data transmission abnormality analysis of the user equipment and the server is performed based on the historical traffic transmission data to obtain the abnormal access degree of the user equipment. The historical traffic transmission data is the traffic transmission data when different models of user equipment communicate with the server;
[0140] The abnormal comparison module is used to compare the abnormal access degree with the access degree in the abnormal access standard to obtain the user access rule, and adjust the access parameter data in the primary data group based on the user access rule.
[0141] An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below and the gateway customized middleware dynamic loading method described above can refer to each other.
[0142] The present application embodiment provides an electronic device, such as Figure 3 As shown, Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 3 The electronic device 300 shown includes: a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, such as through a bus 302. Optionally, the electronic device 300 may also include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation on the embodiments of the present application.
[0143] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present application. The processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0144] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0145] The memory 303 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0146] The memory 303 is used to store application code for executing the solution of the embodiment of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the content shown in the above method embodiment.
[0147] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0148] A computer-readable storage medium provided in an embodiment of the present application is introduced below. The computer-readable storage medium described below and the method described above can be referenced to each other.
[0149] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned gateway customized middleware dynamic loading method are implemented.
[0150] Since the embodiments of the computer-readable storage medium part and the embodiments of the method part correspond to each other, the embodiments of the computer-readable storage medium part refer to the description of the embodiments of the method part.
[0151] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0152] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A gateway customized middleware dynamic loading method, characterized in that: include: Obtain customized information and system node information of the server, wherein the customized information is function module information formulated according to user needs and node information where the system node information and the function module information have matching points, and the system node information is each system node processing and flow information performed by the server in response to user needs when the user applies different function modules of the server; After detecting the user request information, determining whether the server loads and updates the customized information to the system node information, and if not, segmenting the system node information into system nodes based on the customized information to obtain at least two operating system segments and a customized system segment; Determine a system operation order according to the system node information, and sequentially operate the at least two operation system segments and the customized system segment according to the system operation order; When the detection system runs to the customized system segment, the function module in the customized information is executed and started, and the customized data generated after the execution is used to dynamically update the data generated by the customized system segment to obtain updated customized system segment data; Performing logical processing on the data generated corresponding to the at least two operating system segments and the data generated corresponding to the customized system segment to obtain user demand information; The step of performing logical processing on the data generated corresponding to the at least two operating system segments and the data generated corresponding to the customized system segment to obtain user demand information includes: Acquire a data center address of data generated corresponding to the at least two operating system segments and a module communication address of data generated corresponding to the customized system segment; Perform IPv6 stealth terminal deployment on the data center address and the module communication address respectively, to obtain a first terminal device corresponding to the data center address and a second terminal device corresponding to the module communication address; Determine pre-protected data information based on the data center address and the module communication address; According to the preset certificate allocation rule, the first terminal device, the second terminal device and the pre-protected data information are bound with security certificates to obtain the first pass identity information corresponding to the first terminal device, the second pass identity information corresponding to the second terminal device and the third pass identity information corresponding to the pre-protected data information; Performing access parameter screening on the user request information to obtain an access parameter data group; Performing a logical analysis on the access parameter data group based on the first access identity information, the second access identity information, and the third access identity information to obtain user demand data; The step of performing a logical analysis on the access parameter data group based on the first access identity information, the second access identity information, and the third access identity information to obtain user demand data includes: Determine whether the identity parameter data in the access parameter data group conforms to the first communication identity information and the second communication identity information; if so, determine user identity data based on the identity parameter data and the first communication identity information / the second communication identity information, and add the user identity data to the access parameter data group to obtain a primary data group; Determine a verification address corresponding to the user identity data according to the primary data group and the dynamic DNS module in the IPv6 network, and judge whether the verification address conforms to a preset verification address set, and if so, use the verification address as a target address to establish a secure connection with the server; Analyzing the access parameter data in the primary data group to obtain access data; Based on the third pass identity information, determine whether the user identity data has the authority to access the access data. If so, determine the target address based on the access data, and establish a connection between the target address and the database corresponding to the pre-protected data information to obtain user demand data. The target address is the application address corresponding to the access data.
2. A gateway customized middleware dynamic loading method according to claim 1, characterized in that: The performing system node segmentation on the system node information based on the customized information to obtain at least two operating system segments and a customized system segment includes: determining at least one target system node based on the customized information; The system node information is segmented into system nodes according to the target system node to obtain at least two operating system segments and a customized system segment.
3. A gateway customized middleware dynamic loading method according to claim 1, characterized in that: The step of analyzing the access parameter data in the primary data group to obtain the access data includes: determining the user access rights corresponding to the user request information based on the access parameter data; The user access rights are matched with different access rights in a preset permission framework to determine whether the user access rights have direct access rights. If so, a permission tag matching the user access rights is determined based on the preset permission framework, and the permission tag is added to the access parameters to obtain access data.
4. A gateway customized middleware dynamic loading method according to claim 3, characterized in that: The determining whether the user access right has direct access right also includes: If the user access right does not have direct access rights, determining an acquisition authority node for the user access right according to the preset authority framework, and generating node verification information according to the acquisition authority node; Send the node verification information to the authority device corresponding to the authority acquisition node, and receive the verification return information returned by the authority device; Determine whether the verification status in the verification return information returned within a preset time has a preset change, and if so, update the primary data group based on the verification return information and the set access time limit to obtain a secondary data group; Access data is determined based on the secondary data set.
5. A gateway customized middleware dynamic loading method according to claim 1, characterized in that: The method further comprises: Acquire traffic transmission information between the user equipment and the server in real time; Arrange the traffic transmission information according to transmission time nodes to obtain a transmission fluctuation graph of data transmission between the user equipment and the server; Fitting the transmission fluctuation graph with the preset traffic transmission graph according to the transmission time nodes, determining whether the traffic transmission data corresponding to different transmission time nodes are abnormal, and if so, obtaining historical traffic transmission data, and performing data transmission abnormality analysis on the user device and the server based on the historical traffic transmission data to obtain the abnormal access degree of the user device, wherein the historical traffic transmission data is traffic transmission data when different models of user devices communicate with the server; The abnormal access degree is compared with the access degree in the abnormal access standard to obtain a user access rule, and the access parameter data in the primary data group is adjusted based on the user access rule.
6. A gateway customized middleware dynamic loading system, characterized in that: include: An information acquisition module, used to acquire customized information and system node information of the server, wherein the customized information is function module information formulated according to user needs and node information where the system node information and the function module information have a matching point, and the system node information is each system node processing and flow information performed by the server in response to user needs when the user applies different function modules of the server; A node segmentation module, configured to determine whether the server loads and updates the customized information into the system node information after detecting the user request information, and if not, segment the system node information into system nodes based on the customized information to obtain at least two operating system segments and a customized system segment; A system operation module, used to determine a system operation order according to the system node information, and sequentially operate the at least two operation system segments and the customized system segment according to the system operation order; A data updating module, used for executing and starting the function module in the customized information when the detection system runs to the customized system segment, and dynamically updating the data generated by the customized system segment with the customized data generated after the execution, so as to obtain updated customized system segment data; A logic processing module, used for performing logic processing on the data generated corresponding to the at least two operating system segments and the data generated corresponding to the customized system segment to obtain user demand information; Wherein, when the logic processing module performs logic processing on the data generated corresponding to the at least two operating system segments and the data generated corresponding to the customized system segment to obtain the user demand information, it is specifically used to: Acquire a data center address of data generated corresponding to the at least two operating system segments and a module communication address of data generated corresponding to the customized system segment; Perform IPv6 stealth terminal deployment on the data center address and the module communication address respectively, to obtain a first terminal device corresponding to the data center address and a second terminal device corresponding to the module communication address; Determine pre-protected data information based on the data center address and the module communication address; According to the preset certificate allocation rule, the first terminal device, the second terminal device and the pre-protected data information are bound with security certificates to obtain the first pass identity information corresponding to the first terminal device, the second pass identity information corresponding to the second terminal device and the third pass identity information corresponding to the pre-protected data information; Performing access parameter screening on the user request information to obtain an access parameter data group; Performing a logical analysis on the access parameter data group based on the first access identity information, the second access identity information, and the third access identity information to obtain user demand data; Wherein, when the logic processing module performs logic analysis on the access parameter data group based on the first access identity information, the second access identity information and the third access identity information to obtain the user demand data, it is specifically used to: Determine whether the identity parameter data in the access parameter data group conforms to the first communication identity information and the second communication identity information; if so, determine user identity data based on the identity parameter data and the first communication identity information / the second communication identity information, and add the user identity data to the access parameter data group to obtain a primary data group; Determine a verification address corresponding to the user identity data according to the primary data group and the dynamic DNS module in the IPv6 network, and judge whether the verification address conforms to a preset verification address set, and if so, use the verification address as a target address to establish a secure connection with the server; Analyzing the access parameter data in the primary data group to obtain access data; Based on the third pass identity information, determine whether the user identity data has the authority to access the access data. If so, determine the target address based on the access data, and establish a connection between the target address and the database corresponding to the pre-protected data information to obtain user demand data. The target address is the application address corresponding to the access data.
7. An electronic device, characterized in that: include: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute a gateway customized middleware dynamic loading method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute a gateway customized middleware dynamic loading method as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Identity management system and method including architecture for the same
CA2801659A1
Secure access control system and method for network terminal nodes
CN104796261A
Data communication method, device, equipment and medium
CN117134979A
System and method for securing communications with remote security devices
WO2018157247A1
