Communication system and communication method for test environment and third party Internet environment
Technical Field
The invention relates to the technical field of network communication, in particular to a communication system and a communication method of a test environment and a third party Internet environment, which mainly realize communication between a telecom operator test environment and the third party Internet environment.
Background
With the interfacing between the telecom operator and the internet application, the production environment generally plans the internet domain to specially deploy the application with interaction, such as the communication system between the production environment and the third party internet environment shown in fig. 1, so as to ensure the access security.
However, for the test environment, no external interaction of the Internet domain is planned, so that inconvenience is brought to joint debugging access of the test environment and the third party Internet application, and potential safety hazards exist.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a communication system and a communication method for a test environment and a third party Internet environment.
The invention discloses a communication system of a test environment and a third party Internet environment, which comprises a host computer;
the host is arranged in the production internet domain, an nginx reverse proxy is deployed on the host, the nginx reverse proxy configures a test environment application forwarding port and a third party internet application forwarding port, and the test environment application forwarding port configures a test F5 load;
The nginx reverse proxy is communicated with the test environment application in the test environment, wherein the ginx reverse proxy opens the related network strategy of the test environment according to the test environment application port; the test environment opens the network policy with the nginx reverse proxy according to a third party internet application forwarding port configured on the nginx reverse proxy;
and the test F5 load maps the public network IP, and the nginx reverse proxy maps the public network IP.
As a further improvement of the present invention, the number of deployments of the host >2.
The invention also discloses a communication method based on the communication system, which comprises the steps that the third party internet application accesses the test environment application;
the method for accessing the test environment application by the third party Internet application comprises the following steps:
The third party internet application accesses the public network map IP for test F5 load, requests through test F5 load to the nginx reverse proxy, which forwards the relevant request to the test environment application.
As a further improvement of the invention, the method also comprises the steps that the test environment application accesses the third party Internet application;
the test environment application accessing a third party internet application, comprising:
The test environment application accesses a third-party Internet application forwarding port configured on the nginx reverse proxy, and the ginx reverse proxy accesses the third-party Internet application through public network mapping IP.
Compared with the prior art, the invention has the beneficial effects that:
1. The unified management, namely, the production environment and the test environment are interacted with the third party Internet application for unified management;
2. The security control, the test environment executes the security policy as the production environment, and the related address is opened in a directional way;
3. And the application interview, namely the test environment and the third party Internet application mutually call and joint call functions, so as to ensure the online quality.
Drawings
FIG. 1 is a schematic diagram of a communication system framework of a conventional production environment and a third party Internet environment;
fig. 2 is a schematic diagram of a communication system framework of a test environment and a third party internet environment according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention is described in further detail below with reference to the attached drawing figures:
The invention provides a communication system and a communication method for a test environment and a third party Internet environment, which can unify the interaction between the test environment and a production environment and the third party Internet application, increase the safety control of external access and ensure the joint debugging access of the test environment and the third party Internet application.
Specific:
as shown in fig. 2, the communication system between the test environment and the third party internet environment of the invention is based on the original fig. 1, wherein, an nginx reverse proxy is added on the production internet domain, a test F5 load is added in the production environment, and a test environment application is added in the test domain of the test environment, and the following specific steps are:
N hosts are prepared in a production Internet domain, N is 2+ stations are recommended to be deployed based on the consideration of the function access quantity and high availability, an nginx reverse proxy is deployed on the prepared hosts, and a test environment application forwarding port and a third party Internet application forwarding port are configured, wherein the implementation method comprises the following steps:
The invention configures the test F5 load on the test environment application forwarding port, which ensures high availability of the application.
The invention discloses an nginx reverse proxy which communicates with a test environment application under a test environment, wherein the ginx reverse proxy is used for communicating with the test environment from the test environment according to a test environment application port, and communicating with the test environment from the test environment to the ginx according to a third party Internet application forwarding port configured on the ginx reverse proxy.
The test F5 load maps the public network IP, and the nginx reverse proxy maps the public network IP, so that the communication between the third party Internet application and the test environment application is realized.
Based on the communication system shown in fig. 2, the communication method between the test environment and the third party internet environment of the invention comprises the following steps:
1. The third party internet application accesses the test environment application:
The third party internet application accesses the public network map IP for test F5 load, requests through test F5 load to the nginx reverse proxy, which forwards the relevant request to the test environment application.
2. The test environment application accesses a third party internet application:
The test environment application accesses a third-party Internet application forwarding port configured on the nginx reverse proxy, and the ginx reverse proxy accesses the third-party Internet application through public network mapping IP.
The invention has the advantages that:
1. The unified management, namely, the production environment and the test environment are interacted with the third party Internet application for unified management;
2. The security control, the test environment executes the security policy as the production environment, and the related address is opened in a directional way;
3. And the application interview, namely the test environment and the third party Internet application mutually call and joint call functions, so as to ensure the online quality.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.