CN119211370A - A service flow switching method and related device - Google Patents
A service flow switching method and related device Download PDFInfo
- Publication number
- CN119211370A CN119211370A CN202411369005.1A CN202411369005A CN119211370A CN 119211370 A CN119211370 A CN 119211370A CN 202411369005 A CN202411369005 A CN 202411369005A CN 119211370 A CN119211370 A CN 119211370A
- Authority
- CN
- China
- Prior art keywords
- configuration
- modification
- query
- script
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0807—Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/306—User profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3297—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving time stamps, e.g. generation of time stamps
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a service flow switching method and a related device, relating to the technical field of computers. And the user access unit is used for receiving and checking the service flow switching request of the user, and if the service flow switching request passes the check, the user access unit sends parameters for modifying the configuration of the background software for carrying out service flow switching to the data processing unit. The data processing unit is used for analyzing the parameters and checking the format, if the format check is passed, the obtained configuration modification data are converted into script modification parameters and are sent to the configuration checking and modifying unit, so that the risk of configuration errors caused by data format errors is reduced. The configuration checking and modifying unit is used for transmitting the script modification parameters into a preset configuration modification script, and automatically modifying the target modification configuration by executing the configuration modification script, so that the configuration modification time is greatly shortened, and the accuracy and efficiency of service flow switching are greatly improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a service traffic switching method and a related device.
Background
With the rapid expansion of business scale, enterprises are faced with increasingly aggressive market competition and rapidly changing market demands. Enterprises need to dynamically adjust the distribution of user requests among different services or products, and adapt to different business scenes. Therefore, the importance of traffic switching is becoming more and more pronounced.
Currently, the configuration of the background software is typically manually modified.
However, when the configuration content of the background software is complex or many, the configuration content is manually modified one by one, the efficiency of service flow switching is low, and input errors or omission are easy to occur, so that the accuracy of service flow switching is poor.
Disclosure of Invention
In view of the above problems, the present application provides a service flow switching method and related device, so as to improve the efficiency and accuracy of service flow switching. The specific scheme is as follows:
the first aspect of the present application provides a service flow switching device, which comprises a user access unit, a data processing unit and a configuration checking unit,
The user access unit is used for receiving a service flow switching request of a user, wherein the service flow switching request carries parameters for modifying target modification configuration of background software and digital signature credentials for identifying the identity of the user, and the target modification configuration is configured to be modified required by service flow switching;
the user access unit is further configured to check the service flow switching request, and if the check is passed, send the parameter for modifying the target modification configuration of the background software to the data processing unit;
The data processing unit is used for analyzing the parameters for modifying the target modification configuration of the background software to obtain at least one group of configuration modification data, performing format verification on the obtained configuration modification data, and if the format verification is passed, converting the obtained configuration modification data into script modification parameters and sending the script modification parameters to the configuration verification unit;
The configuration checking and changing unit is used for transmitting the script modification parameters into a preset configuration modification script, and then executing the configuration modification script to modify the target modification configuration.
The second aspect of the present application provides a service flow switching method, which is applied to any one of the service flow switching devices, and the method includes:
The user access unit receives a service flow switching request of a user, wherein the service flow switching request carries parameters for modifying target modification configuration of background software and digital signature credentials for identifying the identity of the user, and the target modification configuration is configured to be modified required by service flow switching;
the user access unit checks the service flow switching request, and if the service flow switching request passes the check, the parameters for modifying the target modification configuration of the background software are sent to the data processing unit;
the data processing unit analyzes the parameters for modifying the target modification configuration of the background software to obtain at least one group of configuration modification data, performs format verification on the obtained configuration modification data, converts the obtained configuration modification data into script modification parameters if the format verification is passed, and sends the script modification parameters to the configuration verification unit;
the configuration checking and modifying unit transmits the script modification parameters into a preset configuration modification script, and then executes the configuration modification script to modify the target modification configuration.
A third aspect of the present application provides a computer program product comprising computer readable instructions which, when run on an electronic device, cause the electronic device to implement the traffic switching method of the second aspect described above.
A fourth aspect of the application provides an electronic device comprising at least one processor and a memory coupled to the processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to enable the electronic device to implement the service traffic switching method of the second aspect.
A fifth aspect of the present application provides a computer storage medium carrying one or more computer programs which, when executed by an electronic device, enable the electronic device to perform the traffic switching method of the second aspect.
By means of the technical scheme, the service flow switching method and the related device are provided. The device comprises a user access unit, a data processing unit and a configuration checking unit. The user access unit is used for receiving a service flow switching request of a user, checking the service flow switching request, if the checking is passed, sending parameters for modifying configuration of background software required to be modified for service flow switching to the data processing unit, and only legal requests can be further processed, so that possibility of misoperation is reduced, the data processing unit is used for analyzing parameters for modifying target modification configuration of the background software to obtain at least one group of configuration modification data, performing format checking on the obtained configuration modification data, and if the format checking is passed, converting the obtained configuration modification data into script modification parameters and sending the script modification parameters to the configuration modification unit, so that configuration error risk caused by data format errors is reduced. The configuration checking and modifying unit is used for transmitting the script modification parameters into a preset configuration modification script, and automatically modifying the target modification configuration by executing the configuration modification script, so that the configuration modification time is greatly shortened, and the accuracy and efficiency of service flow switching are greatly improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a schematic structural diagram of a service flow switching device according to an embodiment of the present application;
Fig. 2 is a flow chart of a service flow switching method according to an embodiment of the present application;
fig. 3 is a flow chart of another service flow switching method according to an embodiment of the present application;
fig. 4 is a schematic hardware structure of a service flow switching device according to an embodiment of the present application.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment," another embodiment "means" at least one additional embodiment, "and" some embodiments "means" at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
In order to improve the efficiency and accuracy of service flow switching, the application provides a service flow switching device, and the service flow switching device provided by the application is further described in detail below with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a service flow switching device according to an embodiment of the present application. The service flow switching device comprises a user access unit 11, a data processing unit 12 and a configuration checking and modifying unit 13.
The user access unit 11 is configured to receive a service flow switching request of a user, where the service flow switching request carries a parameter for modifying a target modification configuration of the background software and a digital signature credential for identifying an identity of the user, and the target modification configuration is a configuration for performing a modification required for service flow switching.
It should be noted that, the user needs to know and grasp the correspondence between the service and the configuration in advance, that is, to determine which service corresponds to which configuration, so that the user is helped to construct more accurately the parameters for modifying the target modification configuration of the background software in the service flow switching request, and unnecessary errors or confusion are avoided.
In the present application, the user access unit 11 serves as a bridge for interaction with users, typically service invokers or maintenance personnel of the background software, who wish to achieve a fast switching of service traffic by modifying the configuration of the background software. The subscriber access unit 11 is mainly responsible for receiving, processing and forwarding service traffic switching requests of subscribers. The traffic handoff request typically contains parameters that modify the target modification configuration of the background software, as well as a digital signature credential Token that identifies the user's identity. Wherein, the parameters for modifying the target modification configuration of the background software specifically describe how the user wants to modify the configuration to realize the switching of the service flow.
The user access unit 11 is further configured to check the service flow switching request, and if the check is passed, send parameters for modifying the target modification configuration of the background software to the data processing unit.
In the application, the upstream software configures a user name and a password for calling a Token authentication API (Application Programming Interface ) in the device, and the user logs in by using the user name and the password. After receiving a service flow switching request (e.g., HTTP request) from a user, the user access unit 11 may verify the user's user name and password through a protocol (e.g., HTTP) based interface (e.g., token authentication API), generate a Token according to the user name and password after the verification is passed, and return the Token to the user.
At this point, the user has successfully authenticated and obtained Token through the Token authentication API, and when the user invokes the configuration modification API, the user needs to put this Token into the header information of the traffic switching request (e.g., HTTP HEADER). The subscriber access unit 11 extracts Token from the header information of the traffic switching request and compares it with Token stored in the device in advance to verify the validity of the identity of the subscriber. It is ensured that only authorized users can access and modify the configuration.
After Token authentication is passed, the subscriber access unit 11 may also perform a series of checks on the traffic switching request itself to ensure the validity, validity and security of the traffic switching request. These checks may include checking the integrity, format compliance, rights verification, etc. of parameters that modify the target modification configuration of the background software.
If the service flow switching request passes the authentication and verification, the user access unit 11 extracts parameters for modifying the background software target modification configuration from the service flow switching request and sends the parameters to the data processing unit.
If the authentication or verification fails, the service flow switching request is refused, and error information is returned to the user.
The data processing unit 12 is configured to parse parameters for modifying the target modification configuration of the background software to obtain at least one set of configuration modification data, perform format verification on the obtained configuration modification data, and if the format verification passes, convert the obtained configuration modification data into script modification parameters, and send the script modification parameters to the configuration verification unit 13.
In the present application, the data processing unit 12 first parses the received parameters for modifying the target modification configuration of the background software, extracts useful data, i.e. configuration modification data, which includes configuration items to be modified and new values thereof, then performs format verification (such as checking data types, value fields, format specifications, etc.) on the configuration modification data, and if the format verification passes, it is indicated that the configuration modification data meets the format requirement expected by the device, and the data processing unit 12 converts the configuration modification data into script modification parameters. Finally, the script modification parameters are sent to the configuration checking unit 13.
It should be noted that, the parameters for modifying the target modification configuration of the background software may have various forms, such as JSON, XML, CSV. Script modification parameters also exist in a variety of forms, such as Bash, python, powerShell, which are specifically designed for modifying scripts for preset configurations so that the script can understand and perform the corresponding modification operations.
The configuration checking and modifying unit 13 is configured to transfer the script modification parameters into a preset configuration modification script, and then execute the configuration modification script to modify the target modification configuration.
In the present application, the configuration modification unit 13 firstly transmits the script modification parameters received and matched into a preset configuration modification script, then executes the configuration modification script, the configuration modification script determines the target modification configuration according to the script modification parameters, establishes a parameter modification file with the current timestamp as a suffix, writes the script modification parameters into the parameter modification file, and sends the parameter modification file to a server running background software, so that the server modifies the target modification configuration according to the parameter modification file.
It should be noted that the configuration modification script is pre-written and includes all logic and instructions required to perform the configuration modification. The configuration modification script automatically modifies the configuration of the background software according to the entered script modification parameters.
Specifically, the configuration checking and modifying unit 13 may check the input script modification parameters, so as to determine which configuration item is modified by the user, then create parameter modification files with the current timestamp as the suffix, write the script modification parameters into the parameter modification files, and connect multiple servers of the upstream software by using the multithreading technology, and transmit the parameter modification files to the servers in parallel, so that the servers instruct the servers to perform modification operations such as adding, deleting, replacing, and the like on the target modification configuration according to the parameter modification files. The parameter modification file is used for storing parameter information required by the execution of the configuration modification script.
In summary, the present application provides a service traffic switching device. The device comprises a user access unit, a data processing unit and a configuration checking unit. The user access unit is used for receiving a service flow switching request of a user, checking the service flow switching request, if the checking is passed, sending parameters for modifying configuration of background software required to be modified for service flow switching to the data processing unit, and only legal requests can be further processed, so that possibility of misoperation is reduced, the data processing unit is used for analyzing parameters for modifying target modification configuration of the background software to obtain at least one group of configuration modification data, performing format checking on the obtained configuration modification data, and if the format checking is passed, converting the obtained configuration modification data into script modification parameters and sending the script modification parameters to the configuration modification unit, so that configuration error risk caused by data format errors is reduced. The configuration checking and modifying unit is used for transmitting the script modification parameters into a preset configuration modification script, and automatically modifying the target modification configuration by executing the configuration modification script, so that the configuration modification time is greatly shortened, and the accuracy and efficiency of service flow switching are greatly improved.
Further, on the basis of the device, the device can further comprise:
the configuration checking unit 13 is further configured to obtain modification result data of the target modification configuration, and send the modification result data to the data processing unit 12.
In the application, the current time stamp is used as the suffix to respectively create the parameter modification file and the log modification file, and the log modification file is used for recording the result data generated by the execution of the configuration modification script, so that after the configuration modification script is executed to complete the modification of the target modification configuration, the modification result is written back to the local log modification file. The configuration checking and modifying unit 13 parses the log file, performs processing such as comparison, deduplication, aggregation, etc. on the recorded operation results to generate final modified result data, and returns the final modified result data to the data processing unit 12.
It should be noted that, the modification result data may detail the modification result of each configuration item, including which modification succeeds, which fails, and the reason of the failure.
The data processing unit 12 is further configured to parse the modification result data, screen the modification data obtained after parsing according to the service flow switching request, and send the screened modification data to the user access unit 11.
In the present application, after receiving the modification result data, the data processing unit 12 first parses the received data to extract specific modification result information. And then screening the parsed modified data according to specific instructions or requirements contained in the service flow switching request to extract key information or response data in a specific format which are possibly concerned by the user. And finally, the screened modified data is sent to the user access unit 11.
The user access unit 11 is further configured to output the filtered modification data to a user.
In the present application, the user access unit 11 first converts the received filtered modified data into a format (such as JSON, XML, HTML, etc.) suitable for the user to receive, and then sends the filtered modified data back to the user through a corresponding network protocol (such as HTTP). The user can receive and view the screened modified data through a browser, a command line tool, an API client and the like.
In summary, the application greatly reduces redundant and irrelevant information of data by configuring the cooperative work of the checking and modifying unit, the data processing unit and the user access unit, improves the data utilization rate, ensures that the user can obtain the modification result more quickly, and ensures the user experience of the user.
Further, on the basis of the device, the device can further comprise:
The user access unit 11 is further configured to receive a configuration query request of a user, where the configuration query request carries a parameter for querying a target query configuration of the background software and a digital signature credential for identifying an identity of the user, and the target query configuration is a configuration for querying required for service traffic switching.
It should be noted that, the user needs to know and grasp the correspondence between the service and the configuration in advance, that is, to determine which service corresponds to which configuration, which is helpful for the user to construct more accurately the parameter for querying the target query configuration of the background software in the configuration query request, and avoid unnecessary errors or confusion.
In the present application, the user access unit 11 serves as a bridge for interaction with a user, typically a service caller or maintainer of the background software. The subscriber access unit 11 is mainly responsible for receiving, processing and forwarding configuration query requests of subscribers. The configuration query request typically contains parameters that query the target query configuration of the background software, as well as digital signature credentials Token that identify the user's identity.
The user access unit 11 is further configured to check the configuration query request, and if the configuration query request passes the check, send a parameter for querying the target query configuration of the background software to the data processing unit 12.
In the application, the upstream software configures a user name and a password for calling the Token authentication API in the device, and the user logs in by using the user name and the password. The user access unit 11, upon receiving a configuration query request (e.g., HTTP request) from a user, may verify the user's user name and password through a protocol (e.g., HTTP) based interface (e.g., token authentication API), and after the verification, generate a Token based on the user name and password and return the Token to the user.
At this point, the user has successfully authenticated and obtained the Token through the Token authentication API, and when the user invokes the configuration query API, the user needs to put this Token into the header information of the configuration query request (e.g., HTTP HEADER). The subscriber access unit 11 extracts Token from the header information of the configuration query request and compares it with the Token stored in the device in advance to verify the validity of the identity of the subscriber. Ensuring that only authorized users can access and query the configuration.
After Token authentication is passed, the subscriber access unit 11 may also perform a series of checks on the configuration query request itself to ensure the validity, validity and security of the traffic switching request. Such checks may include checking the integrity, format compliance, authority verification, etc. of parameters that query the target query configuration of the background software.
If the configuration query request passes the authentication and verification, the user access unit 11 sends parameters for querying the target query configuration of the background software extracted from the configuration query request to the data processing unit 12.
If the authentication or verification fails, the configuration query request is rejected and an error message is returned to the user.
The data processing unit 12 is further configured to parse parameters for querying the target query configuration of the background software to obtain at least one set of configuration query data, perform format verification on the obtained configuration query data, and if the format verification passes, convert the obtained configuration query data into script query parameters, and send the script query parameters to the configuration query unit 13.
In the present application, the data processing unit 12 first analyzes the received parameters for querying the target query configuration of the background software, extracts useful data, i.e. configuration query data, which includes the configuration items to be queried and new values thereof, then performs format verification (such as checking data types, value fields, format specifications, etc.) on the configuration query data, if the format verification passes, it is indicated that the configuration query data meets the format requirement expected by the device, and the data processing unit 12 converts the configuration query data into script query parameters. Finally, the script query parameters are sent to the configuration modification unit 13.
It should be noted that, there are various forms of parameters for querying the target query configuration of the background software, such as JSON, XML, CSV. Script query parameters also exist in various forms, such as Bash, python, powerShell, which are specifically designed for preset configuration query scripts so that the script can understand and execute corresponding query operations.
The configuration checking unit 13 is further configured to transfer the script query parameters into a preset configuration query script, and then execute the configuration query script to query the target query configuration.
In the present application, the configuration change unit 13 firstly transmits the received matched script query parameters to a preset configuration query parameter script, then executes the configuration query script, the configuration query script determines the target query configuration according to the script query parameters, establishes a parameter query file by taking the current timestamp as a suffix, writes the script query parameters into the parameter query file, and sends the parameter query file to a server running background software, so that the server queries the target query configuration according to the parameter query file.
It should be noted that, the configuration query script is pre-written and includes all logic and instructions required for executing the configuration query. The configuration query script automatically queries the configuration of the background software according to the entered script query parameters.
Specifically, the configuration checking and modifying unit 13 may check the input script query parameters, so as to determine which configuration item is queried by the user, then create parameter query files with the current timestamp as the suffix, write the script query parameters into the parameter query files, and connect multiple servers of the upstream software by adopting the multithreading technology, and transmit the parameter query files to the servers in parallel, so that the servers are instructed to query the target query configuration according to the parameter query files. The parameter inquiry file is used for storing parameter information required by executing the configuration inquiry script.
In summary, the device provided by the application comprises a user access unit, a data processing unit and a configuration checking and modifying unit. The user access unit is used for receiving a configuration query request of a user, checking the configuration query request, if the configuration query request passes the check, sending parameters for querying the configuration required by the service flow switching of the background software to the data processing unit, only the legal request can be further processed, the possibility of misoperation is reduced, the data processing unit is used for analyzing the parameters for querying the target query configuration of the background software to obtain at least one group of configuration query data, and performing format check on the obtained configuration query data, if the format check passes the check, converting the obtained configuration query data into script query parameters and sending the script query parameters to the configuration query unit, so that the risk of configuration errors caused by data format errors is reduced. The configuration inquiring unit is used for transmitting script inquiring parameters into a preset configuration inquiring script, and automatically inquiring the target inquiring configuration by executing the configuration inquiring script, so that the time for inquiring the configuration is greatly shortened, and the speed of switching the service flow is increased.
Further, on the basis of the device, the device can further comprise:
The configuration changing unit 13 is further configured to obtain query result data of the target query configuration, and send the query result data to the data processing unit 12.
In the application, the current time stamp is used as the suffix to respectively create the parameter query file and the log query file, and the log query file is used for recording the result data generated by the execution of the configuration query script, so that after the execution of the configuration query script to complete the query on the target query configuration, the query result is written back to the local log query file. The configuration checking unit 13 parses the log file, performs processing such as comparison, deduplication, aggregation, etc. on the recorded operation results to generate final query result data, and returns the final query result data to the data processing unit 12.
It should be noted that, the query result data may detail the query result of each configuration item, including which queries succeed, which fail, and the reason of the failure.
The data processing unit 12 is further configured to parse the query result data, filter the parsed query data according to the configuration query request, and send the filtered query data to the user access unit 11.
In the present application, after receiving the query result data, the data processing unit 12 first analyzes the received data to extract specific query result information. And then screening the analyzed query data according to specific instructions or requirements contained in the configuration query request to extract key information or response data in a specific format which can be concerned by the user. And finally, the filtered query data is sent to the user access unit 11.
The user access unit 11 is further configured to output the filtered query data to a user.
In the present application, the user access unit 11 first converts the received filtered query data into a format (such as JSON, XML, HTML, etc.) suitable for the user to receive, and then sends the filtered query data back to the user through a corresponding network protocol (such as HTTP). The user can receive and view the filtered query data through a browser, a command line tool, an API client and the like.
In summary, the application greatly reduces redundant and irrelevant information of data by configuring the cooperative work of the checking unit, the data processing unit and the user access unit, improves the data utilization rate, ensures that a user can inquire the result more quickly, and ensures the user experience of the user.
The foregoing embodiments of the present application describe the service flow switching device in detail, and various methods may be applied to the service flow switching device of the present application, so the service flow switching method provided by the present application will be described in further detail below with reference to the accompanying drawings and the detailed description.
Referring to fig. 2, fig. 2 is a flow chart of a service flow switching method according to an embodiment of the present application. The service flow switching device to which the method is applied may include the following steps:
Step S101, a user access unit receives a user service flow switching request, wherein the service flow switching request carries parameters for modifying target modification configuration of background software and digital signature credentials for identifying the identity of the user, and the target modification configuration is the configuration for carrying out modification required by service flow switching.
Step S102, the user access unit checks the service flow switching request, and if the service flow switching request passes the check, the parameters for modifying the target modification configuration of the background software are sent to the data processing unit.
Step S103, the data processing unit analyzes the parameters for modifying the target modification configuration of the background software to obtain at least one group of configuration modification data, performs format verification on the obtained configuration modification data, converts the obtained configuration modification data into script modification parameters if the format verification is passed, and sends the script modification parameters to the configuration verification unit.
Step S104, the configuration checking and modifying unit transmits the script modification parameters into a preset configuration modification script, and then executes the configuration modification script to modify the target modification configuration.
On the basis of the method, the method can further comprise the following steps:
Step S105, the configuration checking and changing unit obtains the modification result data of the target modification configuration and sends the modification result data to the data processing unit.
And S106, the data processing unit analyzes the modification result data, screens the modification data obtained after analysis according to the service flow switching request, and sends the screened modification data to the user access unit.
Step S107, the user access unit outputs the filtered modified data to the user.
On the basis of the embodiment disclosed by the application, in still another embodiment of the application, a specific implementation manner of service traffic switching is described in detail.
As an implementation manner, please refer to fig. 3, which is a schematic flow chart of another service traffic switching method provided in an embodiment of the present application. The method may comprise the steps of:
in step S201, a user access unit receives a configuration query request of a user, wherein the configuration query request carries parameters for querying target query configuration of background software and digital signature credentials for identifying the identity of the user, and the target query configuration is the configuration for querying required by service flow switching.
Step S202, the user access unit checks the configuration query request, and if the configuration query request passes the check, the user access unit sends parameters for querying the target query configuration of the background software to the data processing unit.
And step 203, the data processing unit analyzes the parameters for inquiring the target inquiry configuration of the background software to obtain at least one group of configuration inquiry data, performs format verification on the obtained configuration inquiry data, converts the obtained configuration inquiry data into script inquiry parameters if the format verification is passed, and sends the script inquiry parameters to the configuration inquiry unit.
Step S204, the configuration query unit transmits the script query parameters into a preset configuration query script, and then executes the configuration query script to query the target query configuration.
On the basis of the method, the method can further comprise the following steps:
Step S205, the configuration checking unit obtains the query result data of the target query configuration and sends the query result data to the data processing unit.
And S206, the data processing unit analyzes the query result data, screens the query data obtained after analysis according to the configuration query request, and sends the screened query data to the user access unit.
Step S207, the user access unit outputs the filtered inquiry data to the user.
On the basis of the above-described embodiments of the present application, in still another embodiment of the present application, a specific implementation manner in which the configuration modification script is executed on the configuration modification unit to modify the target modification configuration is described in detail.
As an embodiment, the method may specifically be set up as follows:
The configuration checking and modifying unit executes a configuration modification script, the configuration modification script determines target modification configuration according to the script modification parameters, a parameter modification file is established by taking the current timestamp as a suffix, the script modification parameters are written into the parameter modification file, and the parameter modification file is sent to a server running background software, so that the server modifies the target modification configuration according to the parameter modification file.
On the basis of the embodiment disclosed by the application, in still another embodiment of the application, a specific implementation manner of executing the configuration query script by the configuration query unit to query the target query configuration is described in detail.
As an embodiment, the method may specifically be set up as follows:
The configuration inquiring unit executes a configuration inquiring script, the configuration inquiring script determines target inquiring configuration according to the script inquiring parameters, a parameter inquiring file is established by taking the current timestamp as a suffix, script inquiring parameters are written into the parameter inquiring file, and the parameter inquiring file is sent to a server running background software, so that the server inquires the target inquiring configuration according to the parameter inquiring file.
The embodiment of the application also provides electronic equipment. Referring to fig. 4, a schematic diagram of an electronic device suitable for use in implementing embodiments of the present application is shown. The electronic device in the embodiment of the present application may include, but is not limited to, a fixed terminal such as a mobile phone, a notebook computer, a PDA (personal digital assistant), a PAD (tablet computer), a desktop computer, and the like. The electronic device shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the application.
As shown in fig. 4, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the state where the electronic device is powered on, various programs and data necessary for the operation of the electronic device are also stored in the RAM 403. The processing device 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, devices may be connected to I/O interface 405 including input devices 406 such as a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc., output devices 407 including Liquid Crystal Displays (LCDs), speakers, vibrators, etc., storage devices 408 including memory cards, hard disks, etc., and communications devices 409. The communication means 409 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 shows an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
The embodiment of the application also provides a computer program product, which comprises computer readable instructions, wherein the computer readable instructions, when running on the electronic equipment, cause the electronic equipment to realize any service flow switching method provided by the embodiment of the application.
The embodiment of the application also provides a computer readable storage medium, which carries one or more computer programs, and when the one or more computer programs are executed by the electronic device, the electronic device can realize any service flow switching method provided by the embodiment of the application.
It should be further noted that the above-described apparatus embodiments are merely illustrative, and that the units described as separate units may or may not be physically separate, and that units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the application, the connection relation between the modules represents that the modules have communication connection, and can be specifically implemented as one or more communication buses or signal lines.
From the above description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented by means of software plus necessary general purpose hardware, or of course by means of special purpose hardware including application specific integrated circuits, special purpose CPUs, special purpose memories, special purpose components, etc. Generally, functions performed by computer programs can be easily implemented by corresponding hardware, and specific hardware structures for implementing the same functions can be varied, such as analog circuits, digital circuits, or dedicated circuits. But a software program implementation is a preferred embodiment for many more of the cases of the present application. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a readable storage medium, such as a floppy disk, a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk or an optical disk of a computer, etc., comprising several instructions for causing a computer device (which may be a personal computer, a training device, a network device, etc.) to perform the method according to the embodiments of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via a wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a training device, a data center, or the like that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (Solid STATE DISK, SSD)), etc.
Claims (10)
1. A service flow switching device is characterized by comprising a user access unit, a data processing unit and a configuration checking unit,
The user access unit is used for receiving a service flow switching request of a user, wherein the service flow switching request carries parameters for modifying target modification configuration of background software and digital signature credentials for identifying the identity of the user, and the target modification configuration is configured to be modified required by service flow switching;
the user access unit is further configured to check the service flow switching request, and if the check is passed, send the parameter for modifying the target modification configuration of the background software to the data processing unit;
The data processing unit is used for analyzing the parameters for modifying the target modification configuration of the background software to obtain at least one group of configuration modification data, performing format verification on the obtained configuration modification data, and if the format verification is passed, converting the obtained configuration modification data into script modification parameters and sending the script modification parameters to the configuration verification unit;
The configuration checking and changing unit is used for transmitting the script modification parameters into a preset configuration modification script, and then executing the configuration modification script to modify the target modification configuration.
2. The traffic switching device according to claim 1, wherein,
The configuration checking and changing unit is further configured to obtain modification result data of the target modification configuration, and send the modification result data to the data processing unit;
the data processing unit is further configured to parse the modification result data, screen the modification data obtained after parsing according to the service traffic switching request, and send the screened modification data to the user access unit;
The user access unit is further configured to output the filtered modification data to a user.
3. The traffic switching device according to claim 1, wherein,
The user access unit is further configured to receive a configuration query request of the user, where the configuration query request carries a parameter for querying a target query configuration of background software and a digital signature credential for identifying an identity of the user, and the target query configuration is configured to perform a configuration of a query required for service traffic switching;
the user access unit is further configured to check the configuration query request, and if the configuration query request passes the check, send the parameter for querying the target query configuration of the background software to the data processing unit;
The data processing unit is further configured to parse the parameter that queries the target query configuration of the background software to obtain at least one set of configuration query data, perform format verification on the obtained configuration query data, and if the format verification is passed, convert the obtained configuration query data into script query parameters and send the script query parameters to the configuration query unit;
the configuration checking and modifying unit is further configured to transmit the script query parameter to a preset configuration query script, and then execute the configuration query script to query the target query configuration.
4. The traffic switching device according to claim 3, wherein,
The configuration checking and changing unit is further configured to obtain query result data of the target query configuration, and send the query result data to the data processing unit;
The data processing unit is further used for analyzing the query result data, screening the query data obtained after analysis according to the configuration query request, and sending the screened query data to the user access unit;
The user access unit is further configured to output the filtered query data to a user.
5. The service flow switching device according to claim 1, wherein the configuration checking unit executes the configuration modification script to modify the target modification configuration, specifically configured to:
The configuration checking and modifying unit executes the configuration modification script, the configuration modification script determines the target modification configuration according to the script modification parameters, a parameter modification file is established by taking a current timestamp as a suffix, the script modification parameters are written into the parameter modification file, and the parameter modification file is sent to a server running the background software, so that the server modifies the target modification configuration according to the parameter modification file.
6. The service flow switching device according to claim 3, wherein the configuration checking unit executes the configuration inquiry script to inquire the target inquiry configuration, specifically configured to:
The configuration query unit executes the configuration query script, the configuration query script determines the target query configuration according to the script query parameters, a parameter query file is built by taking a current timestamp as a suffix, the script query parameters are written into the parameter query file, and the parameter query file is sent to a server running the background software, so that the server queries the target query configuration according to the parameter query file.
7. A service flow switching method, applied to the service flow switching device of any one of claims 1 to 6, comprising:
The user access unit receives a service flow switching request of a user, wherein the service flow switching request carries parameters for modifying target modification configuration of background software and digital signature credentials for identifying the identity of the user, and the target modification configuration is configured to be modified required by service flow switching;
the user access unit checks the service flow switching request, and if the service flow switching request passes the check, the parameters for modifying the target modification configuration of the background software are sent to the data processing unit;
the data processing unit analyzes the parameters for modifying the target modification configuration of the background software to obtain at least one group of configuration modification data, performs format verification on the obtained configuration modification data, converts the obtained configuration modification data into script modification parameters if the format verification is passed, and sends the script modification parameters to the configuration verification unit;
the configuration checking and modifying unit transmits the script modification parameters into a preset configuration modification script, and then executes the configuration modification script to modify the target modification configuration.
8. A computer program product comprising computer readable instructions which, when run on an electronic device, cause the electronic device to implement the traffic switching method of claim 7.
9. An electronic device comprising at least one processor and a memory coupled to the processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to enable the electronic device to implement the traffic switching method according to claim 7.
10. A computer storage medium carrying one or more computer programs which, when executed by an electronic device, enable the electronic device to implement the traffic switching method of claim 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411369005.1A CN119211370A (en) | 2024-09-27 | 2024-09-27 | A service flow switching method and related device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411369005.1A CN119211370A (en) | 2024-09-27 | 2024-09-27 | A service flow switching method and related device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN119211370A true CN119211370A (en) | 2024-12-27 |
Family
ID=94049497
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411369005.1A Pending CN119211370A (en) | 2024-09-27 | 2024-09-27 | A service flow switching method and related device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN119211370A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108459792A (en) * | 2018-01-25 | 2018-08-28 | 阿里巴巴集团控股有限公司 | A kind of flow switching method, device and computer equipment |
| CN111538542A (en) * | 2020-03-24 | 2020-08-14 | 中国平安人寿保险股份有限公司 | System configuration method and related device |
| CN115550261A (en) * | 2022-09-30 | 2022-12-30 | 中国农业银行股份有限公司 | Flow control parameter adjusting method and device, electronic equipment and storage medium |
| WO2023185828A1 (en) * | 2022-03-31 | 2023-10-05 | 阿里云计算有限公司 | Traffic control method, gateway and switch |
| CN118612096A (en) * | 2024-07-09 | 2024-09-06 | 北京建恒信安科技有限公司 | A method and device for verifying operation and maintenance identity security |
-
2024
- 2024-09-27 CN CN202411369005.1A patent/CN119211370A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108459792A (en) * | 2018-01-25 | 2018-08-28 | 阿里巴巴集团控股有限公司 | A kind of flow switching method, device and computer equipment |
| CN111538542A (en) * | 2020-03-24 | 2020-08-14 | 中国平安人寿保险股份有限公司 | System configuration method and related device |
| WO2023185828A1 (en) * | 2022-03-31 | 2023-10-05 | 阿里云计算有限公司 | Traffic control method, gateway and switch |
| CN115550261A (en) * | 2022-09-30 | 2022-12-30 | 中国农业银行股份有限公司 | Flow control parameter adjusting method and device, electronic equipment and storage medium |
| CN118612096A (en) * | 2024-07-09 | 2024-09-06 | 北京建恒信安科技有限公司 | A method and device for verifying operation and maintenance identity security |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7389791B2 (en) | Implementing Compliance Settings with Mobile Devices to Adhere to Configuration Scenarios | |
| US12231426B2 (en) | Contextual and risk-based multi-factor authentication | |
| US12088588B2 (en) | Managing voice applications within a digital workspace | |
| CN111400777B (en) | Network storage system, user authentication method, device and equipment | |
| CN106161356B (en) | Method and system for rapidly logging in website through client | |
| JP2008015733A (en) | Log management computer | |
| CN116170274A (en) | Web application access method, device, system and computing equipment | |
| CN105007269B (en) | A kind of restoration methods of user cipher | |
| CN103997437A (en) | Cloud server registration function testing method | |
| CN117528519B (en) | Method and device for realizing expansion of smart card | |
| CN114675876A (en) | A business processing method, device, electronic device and storage medium | |
| CA3136021A1 (en) | Log storage method and device and computer system | |
| CN114430340A (en) | Cross-domain single sign-on method, device and equipment | |
| CN114143053A (en) | Third-party service login method and device, terminal equipment and storage medium | |
| JP2024107176A (en) | Analytical device, analytical method, and analytical program | |
| CN119211370A (en) | A service flow switching method and related device | |
| CN107766232B (en) | Plug-in management method and device | |
| CN111652625B (en) | Authentication method and device, electronic equipment and computer readable storage medium | |
| CN111581613A (en) | Account login verification method and system | |
| CN113641966B (en) | Application integration method, system, equipment and medium | |
| CN112261051B (en) | User registration method, device and system | |
| CN119207749A (en) | Service system correction method, device, computer equipment and storage medium | |
| CN117579454A (en) | Network configuration method, system, electronic equipment and medium | |
| CN115941772A (en) | Third-party service access method, device, equipment and medium | |
| CN117082047A (en) | Data processing method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |