Disclosure of Invention
The invention mainly solves the technical problem of providing a protocol management method and a system of a distributed network system, which can simplify the protocol configuration process, improve the operation accuracy, reduce the cost of manual maintenance and improve the working efficiency.
In order to solve the technical problems, the invention adopts a technical scheme that: there is provided a protocol management method of a distributed network system, the method comprising: collecting protocol configuration data to generate protocol configuration data, and configuring a database according to the protocol configuration data; importing protocol configuration data to an access layer so that the access layer has a routing management function; receiving a front-end request instruction; searching protocol configuration information matched with the protocol identifier in the protocol configuration data according to the protocol identifier in the front-end request instruction; and the access layer sends the front-end request instruction to a corresponding service background server according to the matched protocol configuration information so as to execute the corresponding service.
Wherein, the step of importing the current latest protocol configuration data to the access stratum further comprises: and leading protocol configuration data into the access layer at fixed time so as to lead the protocol configuration data into the access layer.
Wherein, the step of importing the current latest protocol configuration data to the access stratum further comprises: monitoring whether protocol configuration data is changed in real time; when the protocol configuration data is changed, the changed protocol configuration data is imported to be used as the protocol configuration data.
Wherein, collecting protocol configuration data to the management system and managing.
Wherein, the management of the protocol configuration data by the management system comprises: modifying protocol configuration data, adding new protocol configuration data, and deleting protocol configuration data.
The protocol configuration data comprises protocol identification, protocol configuration information and the corresponding relation between the protocol identification and the protocol configuration information.
Wherein, the management system is installed in a computer, a mobile terminal or a workstation.
In order to solve the technical problem, the invention adopts another technical scheme that: a protocol management system of a distributed network system, the system comprising: the collection module is used for collecting the protocol configuration data to manage and generate the protocol configuration data; a configuration module for configuring the database according to the protocol configuration data; the import module is used for importing the protocol configuration data to the access layer so that the access layer has a routing management function; the receiving module is used for receiving a front-end request instruction; the matching module is used for searching protocol configuration information matched with the protocol identifier in the protocol configuration data according to the protocol identifier in the front-end request instruction; and the routing module is used for sending the front-end request instruction to the corresponding service background server according to the matched protocol configuration information so as to execute the corresponding service.
Wherein, further include: and the timing module is used for setting a preset time interval to trigger the import module to import the protocol configuration data to the access layer at a fixed time.
Wherein, further include: and the monitoring module is used for monitoring whether the protocol configuration data are changed in real time and triggering the import module to import the changed protocol configuration data as the protocol configuration data when the protocol configuration data are monitored to be changed.
According to the scheme, the database is configured according to the latest protocol configuration data, the access layer is led in to enable the access layer to have a routing management function, the protocol configuration information matched with the protocol identification is searched in the current latest protocol configuration data according to the protocol identification in the request instruction received by the front end, and the front end request instruction is sent to the corresponding service background server according to the matched protocol configuration information to execute the corresponding service.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a protocol management method of a distributed network system according to an embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 1 if the results are substantially the same. As shown in fig. 1, the method comprises the steps of:
s101: protocol configuration data is collected to generate protocol configuration data, and the database is configured according to the protocol configuration data.
A protocol refers to a set of rules, standards, or conventions established for exchanging data over a computer network.
The method comprises the steps of collecting protocol configuration data to a management system and managing the protocol configuration data to generate current latest protocol configuration data, and configuring a database according to the current latest protocol configuration data.
The protocol configuration data are collected to the management system, the management system manages uniformly to produce the current latest protocol configuration data, and the database is configured according to the current latest protocol configuration data, so that on one hand, errors caused by manual independent configuration can be reduced through uniform management, on the other hand, the management system produces the current latest protocol configuration data, protocol conflicts can be avoided, protocol messy delivery can be avoided, functions are not responded, and service functions are not available.
Wherein, the management of the protocol configuration data by the management system comprises: modifying protocol configuration data, adding new protocol configuration data, and deleting protocol configuration data.
When the original protocol configuration data is only changed a little, only the protocol configuration data can be modified; when new protocol configuration data exists, the addition can be carried out; deletion may be performed when the original protocol configuration data is invalid or is no longer being employed.
In particular, the management system may be a visualization management system. Visualization management, which is simply: the objects to be managed are embodied in a clear way. The visual management can make the flow more intuitive, make the information realize the visualization to can obtain more effective transmission, thereby realize the transparence of management.
The visual management system may be a Web management system, a Personal Computer (PC), a mobile phone client, or the like, and is not limited to a real form.
Specifically, the management system may be installed in a computer, a mobile terminal, or a workstation.
The database may be a relational database, an unstructured query Language (NoSQL) database, or the like.
S102: and importing protocol configuration data to the access layer so that the access layer has a routing management function.
The access layer is a layer of service which is directly connected and butted with the client in the background of the distributed network. And importing the current latest protocol configuration data into the access layer, so that the access layer has the current latest protocol configuration data, and the routing management function can be executed.
Wherein the current latest protocol configuration data is imported to the access stratum.
Optionally, the step of importing the current latest protocol configuration data into the access stratum may further include: and leading protocol configuration data into the access layer at fixed time so as to lead the latest protocol configuration data into the access layer.
That is, the lead-in time period may be preset, and then the protocol configuration data is led into the access stratum at a fixed time each time according to the lead-in time period.
Optionally, the step of importing the current latest protocol configuration data to the access stratum may further include: monitoring whether protocol configuration data is changed in real time; when the protocol configuration data is changed, the changed protocol configuration data is imported to be used as the current latest protocol configuration data.
That is, whether the protocol configuration data is changed or not is monitored in real time, and if the protocol configuration data is changed, the changed protocol configuration data is imported to be used as the current latest protocol configuration data.
The two modes can be selected according to actual application conditions, and the importing time can be set and determined according to actual needs.
S103: a front-end request instruction is received.
S104: and searching the protocol configuration information matched with the protocol identification in the protocol configuration data according to the protocol identification in the front-end request instruction.
The protocol identification and the protocol configuration information are in one-to-one correspondence, and the corresponding matched protocol configuration information can be found in the current latest protocol configuration data according to the protocol identification in the front-end request instruction.
And searching the protocol configuration information matched with the protocol identifier in the current latest protocol configuration data according to the protocol identifier in the front-end request instruction.
The protocol configuration data may include a protocol identifier, protocol configuration information, and a correspondence between the protocol identifier and the protocol configuration information.
The protocol configuration information may be a configuration address.
S105: and the access layer sends the front-end request instruction to a corresponding service background server according to the matched protocol configuration information so as to execute the corresponding service.
The protocol configuration information indicates that a corresponding service background server exists, so that the front-end request instruction can be sent to the corresponding service background server according to the matched protocol configuration information, and the service background server can execute the corresponding service conveniently.
In one application scenario, as shown in fig. 2, fig. 2 is a specific flowchart of a protocol management method of the distributed network system according to the present invention. Fig. 3 is a table of configuration data generated in fig. 2. The visualization management system configures collected protocol configuration data, such as a configuration data table shown in fig. 3, to a database, the database loads new protocol configuration data to an access layer, the access layer can execute a routing management function according to the current latest protocol configuration data, a protocol identifier in a received front-end request instruction is matched with the current latest protocol configuration data, protocol configuration information obtained after the protocol identifier in the front-end request instruction is matched with the current latest protocol configuration data is shown in (1, 2) and (3, 2) in fig. 2, and the access layer sends a corresponding front-end request instruction to a corresponding service background server according to the protocol configuration information to execute a corresponding service.
In the embodiment, the database is configured according to the latest protocol configuration data, the access layer is introduced to enable the access layer to have a routing management function, the protocol configuration information matched with the protocol identifier is searched in the current latest protocol configuration data according to the protocol identifier in the request instruction received by the front end, and the front end request instruction is sent to the corresponding service background server according to the matched protocol configuration information to execute the corresponding service.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a structure of a protocol management system of a distributed network system according to an embodiment of the present invention. It should be noted that the system of the present embodiment may perform the steps in the method, and for a detailed description of related contents, refer to the method section above, which is not described in detail herein.
The protocol management system 40 of the distributed network system includes: a collection module 41, a configuration module 42, an import module 43, a receive module 44, a matching module 45, and a routing module 46.
The collection module 41 is used to collect protocol configuration data for management to generate protocol configuration data.
The configuration module 42 is used to configure the database according to the protocol configuration data.
The import module 43 is used for importing the protocol configuration data to the access stratum so that the access stratum has a routing management function.
The receiving module 44 is configured to receive a front-end request instruction.
The matching module 45 is configured to find the protocol configuration information matching the protocol identifier in the protocol configuration data according to the protocol identifier in the front-end request instruction.
The routing module 46 is configured to send the front-end request instruction to the corresponding service backend server according to the matched protocol configuration information to execute the corresponding service.
The collecting module 41 is specifically configured to collect protocol configuration data to a management system for management, and generate current latest protocol configuration data.
The collection module 41 is specifically configured to modify protocol configuration data, add new protocol configuration data, and delete protocol configuration data.
The protocol configuration data collected by the collection module 41 specifically includes a protocol identifier, protocol configuration information, and a corresponding relationship between the protocol identifier and the protocol configuration information.
Wherein, the management system in the collection module 41 may be a visualization management system.
Wherein, the management system in the collection module 41 can be installed in a computer, a mobile terminal or a workstation.
The configuration module 42 is specifically configured to configure the database according to the current latest protocol configuration data.
The importing module 43 is specifically configured to import the current latest protocol configuration data to the access stratum so that the access stratum has a routing management function.
The matching module 45 is specifically configured to search, according to the protocol identifier in the front-end request instruction, the protocol configuration information matching the protocol identifier in the current latest protocol configuration data.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another embodiment of a protocol management system of a distributed network system according to the present invention. Different from the previous embodiment, the protocol management system 40 of the distributed network system according to the present embodiment further includes: a timing module 47.
The timing module 47 is used for setting a predetermined time interval to trigger the importing module to import the protocol configuration data to the access stratum at a timing.
The timing module 47 is specifically configured to set a predetermined time interval to trigger the importing module to import the current latest protocol configuration data to the access stratum at a fixed time.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a protocol management system of a distributed network system according to still another embodiment of the present invention. Different from the previous embodiment, the protocol management system 40 of the distributed network system according to the present embodiment further includes: a monitoring module 48.
The monitoring module 48 is configured to monitor whether the protocol configuration data is changed in real time, and when it is monitored that the protocol configuration data is changed, activate the importing module to import the changed protocol configuration data as the protocol configuration data.
In the embodiment, the database is configured according to the latest protocol configuration data, the access layer is introduced to enable the access layer to have a routing management function, the protocol configuration information matched with the protocol identifier is searched in the current latest protocol configuration data according to the protocol identifier in the request instruction received by the front end, and the front end request instruction is sent to the corresponding service background server according to the matched protocol configuration information to execute the corresponding service.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.