Method, system and equipment for automatically judging and matching network environment and medium
By automatically judging and matching the network environment, it solves the problem of business system deployment across dedicated network environments, reduces operation and maintenance costs, achieves efficient deployment of business systems, and avoids the high cost of customized development.
Patent Information
- Application Number
- CN202410752636.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, the deployment of business systems across dedicated network environments has problems of repeated construction and unreasonable structures, making it difficult to deploy business systems across network environments, and existing solutions increase operation and maintenance costs through customized development.
By configuring and managing network environment information, we actively obtain and store this information, conduct connectivity checks, generate connectivity check result data, and automatically determine and match the most appropriate network environment based on the results, providing them to business systems for use, reducing the complexity of business systems. Develop coupling.
There is no need to increase additional operation and maintenance costs, it solves the problem of access restrictions of business systems in different network environments, reduces the development coupling of business systems, and improves deployment efficiency.
Smart Images

Figure CN118631701A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer network technology, and in particular to a method, system, device and medium for automatically determining matching of a network environment. Background Art
[0002] With the rapid development of digitalization and information construction, various departments have built a large number of dedicated network environments based on their own business needs, relying on dedicated network environments to deploy and carry out various business systems. However, due to the lack of unified planning in the early stage, these dedicated network environments have problems such as repeated construction and unreasonable structure, which makes the dedicated network environments isolated from each other, making it difficult to deploy and carry out business systems that need to implement business scenarios across dedicated network environments.
[0003] How to deploy and carry out business systems that need to implement business scenarios across dedicated network environments? The current existing solution is to customize and develop proprietary versions of business systems corresponding to different dedicated network environments, and deploy them separately, exchanging time for space to solve the cross-dedicated network problem in disguise. However, adopting this solution will increase the cost of business system operation and maintenance. Summary of the invention
[0004] In view of the needs and shortcomings of current technological development, the present invention provides a method, system, device and medium for automatically determining matching in a network environment, which can solve the problem of deploying and carrying out business systems that need to implement business scenarios across dedicated network environments without increasing additional operation and maintenance costs.
[0005] In a first aspect, the present invention provides a method for automatically determining a match in a network environment. The technical solution adopted to solve the above technical problem is as follows:
[0006] A method for automatically determining a match in a network environment comprises the following steps:
[0007] Configure, define and manage various network environment information;
[0008] Actively obtain and store configuration definitions and managed network environment information;
[0009] Performing a connectivity check on the stored network environment information based on the current network environment, thereby generating connectivity check result data;
[0010] Automatically determine the network environment information that matches the best connectivity with the current network environment based on the connectivity check result data and generate automatic determination matching result data;
[0011] The generated connectivity check result data and automatic matching result data are stored and output, and provided to the business system for query.
[0012] Optionally, the network environment information involved includes the network environment name, the network environment unique identifier, the network environment type, and the network environment connectivity detection logo image resource address.
[0013] Optionally, a connectivity check is performed on the stored network environment information based on the current network environment to generate connectivity check result data. This process specifically includes the following operations:
[0014] Downloading the image resource corresponding to the network environment connectivity detection mark image resource address in the stored network environment information through the network;
[0015] If the download is successful, the connectivity is considered good, and the download time is recorded;
[0016] If the download fails, it is determined that there is no connectivity, and the download time is set to 0;
[0017] The unique identifier of the network environment in the network environment information, as well as the corresponding connectivity status and the duration of downloading are sorted out to generate connectivity check result data.
[0018] Optionally, the network environment information with the best connectivity to the current network environment is automatically determined and matched according to the connectivity check result data, and automatic determination matching result data is generated. This process specifically includes the following operations:
[0019] According to the connectivity check result data, first, the connectivity is determined and the data without connectivity is eliminated. Then, the data with the shortest download time is matched as the target data. If multiple data with equal download time are matched, the first matched data is determined as the target data by default. Finally, the unique identifier of the network environment in the target data is extracted to generate automatic matching result data.
[0020] In a second aspect, the present invention provides a system for automatically determining matching in a network environment. The technical solution adopted to solve the above technical problem is as follows:
[0021] A system for automatically determining matching of a network environment, comprising:
[0022] The management module is used to configure, define and manage various network environment information;
[0023] The processing end module is used to first actively obtain the network environment information configured and managed by the management end module and store it, then perform a connectivity check on the stored network environment information based on the current network environment, and then generate connectivity check result data, and then automatically determine the network environment information that matches the best connectivity with the current network environment based on the connectivity check result data and generate automatic determination matching result data;
[0024] The output module is used to store and output the connectivity check result data and automatic matching result data generated by the processing module, and provide them to the business system for query.
[0025] Optionally, the network environment information involved includes the network environment name, the network environment unique identifier, the network environment type, and the network environment connectivity detection logo image resource address.
[0026] Optionally, the processing end module involved performs a connectivity check on the stored network environment information based on the current network environment, and then generates connectivity check result data. The specific process is as follows:
[0027] Downloading the image resource corresponding to the network environment connectivity detection mark image resource address in the stored network environment information through the network;
[0028] If the download is successful, the connectivity is considered good, and the download time is recorded;
[0029] If the download fails, it is determined that there is no connectivity, and the download time is set to 0;
[0030] The unique identifier of the network environment in the network environment information, as well as the corresponding connectivity status and the duration of downloading are sorted out to generate connectivity check result data.
[0031] Optionally, the processing end module involved automatically determines the network environment information that matches the best connectivity with the current network environment according to the connectivity check result data and generates automatic determination matching result data. The specific process is as follows:
[0032] According to the connectivity check result data, first, the connectivity is determined and the data without connectivity is eliminated. Then, the data with the shortest download time is matched as the target data. If multiple data with equal download time are matched, the first matched data is determined as the target data by default. Finally, the unique identifier of the network environment in the target data is extracted to generate automatic matching result data.
[0033] In a third aspect, the present invention further provides an electronic device, comprising: a memory and at least one processor;
[0034] Wherein, a computer program is stored on the memory;
[0035] At least one processor executes the computer program stored in the memory, so that the at least one processor executes the method for automatically determining a match in a network environment as described in the first aspect.
[0036] In a fourth aspect, the present invention further provides a computer-readable storage medium, in which a computer program is stored. The computer program can be executed by a processor to implement the method for automatically determining a match in a network environment as described in the first aspect.
[0037] The method, system, device and medium for automatically determining matching in a network environment of the present invention have the following beneficial effects compared with the prior art:
[0038] The present invention solves the problem that the business scenario implementation needs to be customized and developed according to the network environment deployed by the business system due to network access restrictions caused by different network environments of the business system, thereby reducing the business development coupling degree of the business system. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Attached Figure 1 It is an implementation flow chart of an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to make the technical solution, the technical problem solved and the technical effect of the present invention more clearly understood, the technical solution of the present invention is clearly and completely described below in conjunction with specific embodiments.
[0041] Embodiment 1:
[0042] Combined with Figure 1 This embodiment proposes a method for automatically determining a match in a network environment, which includes the following steps:
[0043] (1) Configure, define and manage various network environment information;
[0044] The network environment information includes the network environment name, the network environment unique identifier, the network environment type, and the network environment connectivity detection logo image resource address.
[0045] (II) Actively obtain configuration definitions and manage network environment information and store it
[0046] (III) performing a connectivity check on the stored network environment information based on the current network environment, thereby generating connectivity check result data, and this process specifically includes the following operations:
[0047] Downloading the image resource corresponding to the network environment connectivity detection mark image resource address in the stored network environment information through the network;
[0048] If the download is successful, the connectivity is considered good, and the download time is recorded;
[0049] If the download fails, it is determined that there is no connectivity, and the download time is set to 0;
[0050] The unique identifier of the network environment in the network environment information, as well as the corresponding connectivity status and the duration of downloading are sorted out to generate connectivity check result data.
[0051] (iv) automatically determining, based on the connectivity check result data, the network environment information that best matches the current network environment connectivity and generating automatic determination matching result data, and this process specifically includes the following operations:
[0052] According to the connectivity check result data, first, the connectivity is determined and the data without connectivity is eliminated. Then, the data with the shortest download time is matched as the target data. If multiple data with equal download time are matched, the first matched data is determined as the target data by default. Finally, the unique identifier of the network environment in the target data is extracted to generate automatic matching result data.
[0053] (V) Storing and outputting the generated connectivity check result data and automatic matching result data, and providing them to the business system for query.
[0054] Embodiment 2:
[0055] Combined with Figure 1 This embodiment proposes a system for automatically determining a match in a network environment, which includes:
[0056] The management module is used to configure, define and manage various network environment information, including network environment name, network environment unique identifier, network environment type, and network environment connectivity detection mark image resource address;
[0057] The processing end module is used to first actively obtain the network environment information configured and managed by the management end module and store it, then perform a connectivity check on the stored network environment information based on the current network environment, and then generate connectivity check result data, and then automatically determine the network environment information that matches the best connectivity with the current network environment based on the connectivity check result data and generate automatic determination matching result data;
[0058] The output module is used to store and output the connectivity check result data and automatic matching result data generated by the processing module, and provide them to the business system for query.
[0059] In this embodiment, the processing end module involved performs a connectivity check on the stored network environment information based on the current network environment, and then generates connectivity check result data. The specific process is as follows:
[0060] Downloading the image resource corresponding to the network environment connectivity detection mark image resource address in the stored network environment information through the network;
[0061] If the download is successful, the connectivity is considered good, and the download time is recorded;
[0062] If the download fails, it is determined that there is no connectivity, and the download time is set to 0;
[0063] The unique identifier of the network environment in the network environment information, as well as the corresponding connectivity status and the duration of downloading are sorted out to generate connectivity check result data.
[0064] In this embodiment, the processing end module involved automatically determines the network environment information with the best connectivity to the current network environment according to the connectivity check result data and generates automatic determination matching result data. The specific process is as follows:
[0065] According to the connectivity check result data, first, the connectivity is determined and the data without connectivity is eliminated. Then, the data with the shortest download time is matched as the target data. If multiple data with equal download time are matched, the first matched data is determined as the target data by default. Finally, the unique identifier of the network environment in the target data is extracted to generate automatic matching result data.
[0066] Embodiment three:
[0067] This embodiment also provides an electronic device, including: a memory and a processor;
[0068] Wherein, the memory stores computer-executable instructions;
[0069] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the method for automatically determining a match in a network environment as described in the first embodiment.
[0070] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor may be a microprocessor or any conventional processor, etc.
[0071] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory can also include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, a flash memory card, at least one disk storage period, a flash memory device, or other volatile solid-state storage devices.
[0072] Embodiment 4:
[0073] This embodiment also provides a computer-readable storage medium, which stores a plurality of instructions, which are loaded by a processor to enable the processor to execute the method for automatically determining a match in a network environment as described in Embodiment 1. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code for implementing the method for automatically determining a match in a network environment as described in Embodiment 1 is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
[0074] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0075] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RYM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer via a communication network.
[0076] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0077] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for automatically determining a match in a network environment, characterized in that , including the following steps: Configure, define and manage various network environment information; Actively obtain and store configuration definitions and managed network environment information; Performing a connectivity check on the stored network environment information based on the current network environment, thereby generating connectivity check result data; Automatically determine the network environment information that matches the best connectivity with the current network environment based on the connectivity check result data and generate automatic determination matching result data; The generated connectivity check result data and automatic matching result data are stored and output, and provided to the business system for query.
2. The method for automatically determining a match in a network environment according to claim 1, characterized in that: The network environment information includes the network environment name, the network environment unique identifier, the network environment type, and the network environment connectivity detection logo image resource address.
3. The method for automatically determining a match in a network environment according to claim 2, characterized in that: Based on the current network environment, the stored network environment information is checked for connectivity, and connectivity check result data is generated. This process specifically includes the following operations: Downloading the image resource corresponding to the network environment connectivity detection mark image resource address in the stored network environment information through the network; If the download is successful, the connectivity is considered good, and the download time is recorded; If the download fails, it is determined that there is no connectivity, and the download time is set to 0; The unique identifier of the network environment in the network environment information, as well as the corresponding connectivity status and the duration of downloading are sorted out to generate connectivity check result data.
4. The method for automatically determining a match in a network environment according to claim 2, characterized in that: Automatically determine the network environment information that matches the current network environment with the best connectivity based on the connectivity check result data and generate automatic determination matching result data. This process specifically includes the following operations: According to the connectivity check result data, first, the connectivity is determined and the data without connectivity is eliminated. Then, the data with the shortest download time is matched as the target data. If multiple data with equal download time are matched, the first matched data is determined as the target data by default. Finally, the unique identifier of the network environment in the target data is extracted to generate automatic matching result data.
5. A system for automatically determining matching in a network environment, characterized in that , which includes: The management module is used to configure, define and manage various network environment information; The processing end module is used to first actively obtain the network environment information configured and managed by the management end module and store it, then perform a connectivity check on the stored network environment information based on the current network environment, and then generate connectivity check result data, and then automatically determine the network environment information that matches the best connectivity with the current network environment based on the connectivity check result data and generate automatic determination matching result data; The output module is used to store and output the connectivity check result data and automatic matching result data generated by the processing module, and provide them to the business system for query.
6. A system for automatically determining matching in a network environment according to claim 5, characterized in that: The network environment information includes a network environment name, a network environment unique identifier, a network environment type, and a network environment connectivity detection mark image resource address.
7. A system for automatically determining matching in a network environment according to claim 6, characterized in that: The processing end module performs a connectivity check on the stored network environment information based on the current network environment, and then generates connectivity check result data. The specific process is as follows: Downloading the image resource corresponding to the network environment connectivity detection mark image resource address in the stored network environment information through the network; If the download is successful, the connectivity is considered good, and the download time is recorded; If the download fails, it is determined that there is no connectivity, and the download time is set to 0; The unique identifier of the network environment in the network environment information, as well as the corresponding connectivity status and the duration of downloading are sorted out to generate connectivity check result data.
8. The system for automatically determining matching of network environment according to claim 6, characterized in that: The processing end module automatically determines the network environment information that matches the current network environment with the best connectivity based on the connectivity check result data and generates automatic determination matching result data. The specific process is as follows: According to the connectivity check result data, first, the connectivity is determined and the data without connectivity is eliminated. Then, the data with the shortest download time is matched as the target data. If multiple data with equal download time are matched, the first matched data is determined as the target data by default. Finally, the unique identifier of the network environment in the target data is extracted to generate automatic matching result data.
9. An electronic device, characterized in that: include: memory and at least one processor; Wherein, the memory stores a computer program; The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the method for automatically determining a match in a network environment as described in any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which can be executed by a processor to implement the method for automatically determining a match in a network environment as described in any one of claims 1 to 4.
