Nothing Special   »   [go: up one dir, main page]

CN107231426A - A kind of multiple data centers access method, proxy server and system - Google Patents

A kind of multiple data centers access method, proxy server and system Download PDF

Info

Publication number
CN107231426A
CN107231426A CN201710452735.1A CN201710452735A CN107231426A CN 107231426 A CN107231426 A CN 107231426A CN 201710452735 A CN201710452735 A CN 201710452735A CN 107231426 A CN107231426 A CN 107231426A
Authority
CN
China
Prior art keywords
server
terminal
proxy server
http
sending
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
Application number
CN201710452735.1A
Other languages
Chinese (zh)
Inventor
荆帅帅
闫冬冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710452735.1A priority Critical patent/CN107231426A/en
Publication of CN107231426A publication Critical patent/CN107231426A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

This application discloses a kind of multiple data centers access method, proxy server and system, applied to Web service, including:The Http requests that receiving terminal is sent;The address information of server in being asked using Http, finds the address information of server agent server corresponding with server in address scheme table set in advance;Using the address information of server agent server, Http requests are sent to server agent server;The Http that the reception server proxy server is sent is replied;Http is replied and sent to terminal.Communication of the application between terminal and server is used as transfer using proxy server, the Http requests for sending terminal are sent to terminal proxy server, Http requests are sent to server agent server by terminal proxy server again, and the Http that the reception server proxy server is sent is replied, and last reply Http is forwarded to terminal, realizes access method between efficient and simple multiple data centers.

Description

Multi-data center access method, proxy server and system
Technical Field
The invention relates to the field of cloud computing, in particular to a multi-data center access method, a terminal proxy server, a server proxy server and a system.
Background
In a cloud computing environment, deployment of multiple data centers has become a common mode, and multiple data centers often have geographic position differences and are mostly interconnected and cooperated through a public network to form a large converged cloud environment.
In the prior art, mutual access among multiple data centers is realized through technologies such as VPN (virtual private network), and the like, but the implementation difficulty of the method is high, and the requirement is high, so that how to research an efficient and simple access method among multiple data centers is a problem to be solved at present.
Disclosure of Invention
In view of the above, the present invention provides a multi-data center access method, a terminal proxy server, a server proxy server and a system, so as to implement an efficient and simple inter-data center access method. The specific scheme is as follows:
a multi-data center access method is applied to Web services and comprises the following steps:
receiving an Http request sent by a terminal;
searching address information of a server proxy server corresponding to the server in a preset address scheme table by using the address information of the server in the Http request;
sending the Http request to the server proxy server by using the address information of the server proxy server;
receiving an Http reply sent by the server proxy server;
and sending the Http reply to the terminal.
Optionally, the sending the Http request to the server proxy server includes:
and selecting idle connection from a pre-established TLS connection pool to obtain the TLS connection, and sending the Http request to the server proxy server by using the TLS connection.
Optionally, the process of receiving the Http reply sent by the server proxy server includes:
and receiving the Http reply sent by the server proxy server by using the TLS connection.
Optionally, the sending the Http reply to the terminal includes:
sending the Http reply to the terminal through the TCP connection of the terminal by using a first mapping relation;
and the first mapping relation is the corresponding relation between the TLS connection and the TCP connection of the terminal.
The invention also discloses a method for accessing among multiple data centers, which is applied to Web service and comprises the following steps:
receiving an Http request sent by a terminal proxy server;
sending the Http request to a server by utilizing the server address information in the Http request;
receiving an Http reply sent by the server;
and sending the Http reply to a terminal proxy server.
Optionally, the sending the Http reply to the terminal proxy server includes:
sending the Http reply to the terminal server agent through a TLS connection by using a second mapping relation;
and the second mapping relation is the corresponding relation between the TLS connection used by the Http request sent by the terminal proxy server and the TCP connection of the server.
Correspondingly, the invention also discloses a multi-data center terminal proxy server, which is applied to Web service and comprises the following steps:
the first receiving module is used for receiving an Http request sent by a terminal;
the searching module is used for searching the address information of the server proxy server corresponding to the server in a preset address scheme table by utilizing the server address information in the Http request;
the first sending module is used for sending the Http request to the server proxy server by utilizing the address information of the server proxy server;
the second receiving module is used for receiving the Http reply sent by the server proxy server;
and the second sending module is used for sending the Http reply to the terminal.
Correspondingly, the invention also discloses a multi-data center server proxy server, which is applied to Web services and comprises the following steps:
the first receiving module is used for receiving an Http request sent by a terminal proxy server;
the first sending module is used for sending the Http request to a server by utilizing the server address information in the Http request;
the second receiving module is used for receiving the Http reply sent by the server;
and the second sending module is used for sending the Http reply to the terminal proxy server.
The invention further discloses an access system among the multiple data center servers, which is applied to Web services and comprises the multiple data center terminal proxy server and the multiple data center server proxy server.
In the invention, the method for accessing among multiple data centers comprises the following steps: receiving an Http request sent by a terminal; searching address information of a server proxy server corresponding to the server in a preset address scheme table by using the address information of the server in the Http request; sending the Http request to a server proxy server by using the address information of the server proxy server; receiving an Http reply sent by a server proxy server; the Http reply is sent to the terminal. The invention adopts the proxy server as the relay in the communication between the terminal and the server, so that the Http request sent by the terminal is sent to the terminal proxy server, the terminal proxy server sends the Http request to the server proxy server, receives the Http reply sent by the server proxy server, and finally forwards the Http reply to the terminal, thereby realizing the high-efficiency and simple access method between multiple data centers.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of an inter-multiple data center access method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another inter-multiple data center access method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a multi-data center terminal proxy server according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a multiple data center server proxy server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a method for accessing multiple data centers, which is applied to Web service and is shown in figure 1, and the method comprises the following steps:
step S11: and receiving an Http request sent by the terminal.
Specifically, the terminal proxy server receives an Http request sent by the terminal through a TCP connection.
Step S12: and searching the address information of the server proxy server corresponding to the server in a preset address scheme table by using the address information of the server in the Http request.
Specifically, the Http request includes address information of the target server, and the terminal proxy server stores a pre-established address scheme table, where the address scheme table records address information of the server, address information of the server proxy server, and a correspondence between the server and the server proxy server, so that the address information of the server proxy server corresponding to the server can be found in the address scheme table by using the address information of the server in the Http request.
Step S13: and sending the Http request to the server proxy server by using the address information of the server proxy server.
Specifically, after the address information of the server proxy server is found by the terminal proxy server, the Http request is sent to the server proxy server, wherein the terminal proxy server can select a free connection from a pre-established TLS connection pool to obtain a TLS connection connected with the server proxy server, the Http request is sent to the server proxy server by using the TLS connection, and the TLS is used for encrypting the connection and transmitting data, so that the security of the data in the transmission process is improved.
Step S14: and receiving an Http reply sent by the server proxy server.
It should be noted that, by means of the TLS connection pooling management, the multiplexing connection can be performed to the maximum extent possible, and the connection utilization efficiency is improved, so that the terminal proxy server can receive the Http reply sent by the server proxy server through the TLS connection, where the TLS connection between the terminal proxy server and the server proxy server is not changed, and the TLS connection multiplexing is still implemented by sending the Http request to the server proxy server for the terminal proxy server.
Step S15: the Http reply is sent to the terminal.
In the embodiment of the invention, the terminal proxy server can send the Http reply to the terminal through the TCP connection of the terminal by using the first mapping relation; the first mapping relation is a corresponding relation between a TLS connection and a TCP connection of a terminal, when the TLS connection connected with a server proxy server is established by a terminal proxy server, the first mapping relation is bound with the TLS connection by using a mark of the TCP connection between the terminal and the terminal proxy server, so that the first mapping relation is obtained, the TLS connection can be determined to correspond to the terminal by using the first mapping relation, the terminal proxy server can quickly send an Http reply to the terminal, and address information of the terminal is not required to be searched by using address information in the Http reply.
Therefore, the communication between the terminal and the server adopts the proxy server as the relay, so that the Http request sent by the terminal is sent to the terminal proxy server, the terminal proxy server sends the Http request to the server proxy server, receives the Http reply sent by the server proxy server, and finally forwards the Http reply to the terminal, thereby realizing the efficient and simple multi-data center access method.
The embodiment of the invention also discloses a method for accessing among multiple data centers, which is applied to Web services and is shown in figure 2, and the method comprises the following steps:
step S21: and receiving an Http request sent by the terminal proxy server.
Specifically, the server proxy server may receive the Http request sent by the terminal proxy server through the TLS connection.
Step S22: and sending the Http request to the server by utilizing the server address information in the Http request.
Specifically, the server proxy server may send the Http request to the server using a TCP connection.
Further, at this time, a corresponding relationship between the TLS connection and the TCP connection may be established, and the label of the TLS connection and the label of the TCP connection are bound, so as to obtain the second mapping relationship.
Step S23: and receiving an Http reply sent by the server.
Specifically, after the server processes the Http request, the server generates a Http response, and the server proxy receives the Http response generated by the server.
Step S24: and sending the Http reply to the terminal proxy server.
Specifically, the server proxy server may determine, by using the second mapping relationship, a TSL connection corresponding to a TCP connection used by the server, so as to send the Http response to the terminal server proxy corresponding to the server through the TLS connection; the second mapping relation is the corresponding relation between the TLS connection used by the terminal proxy server for sending the Http request and the TCP connection of the server.
Correspondingly, the embodiment of the present invention also discloses a multi-data center terminal proxy server, which is applied to Web services, and as shown in fig. 3, the terminal proxy server includes:
a first receiving module 11, configured to receive an Http request sent by a terminal;
the searching module 12 is configured to search, by using the server address information in the Http request, address information of a server proxy server corresponding to the server in a preset address scheme table;
a first sending module 13, which sends the Http request to the server proxy server by using the address information of the server proxy server;
a second receiving module 14, configured to receive an Http reply sent by the server proxy;
and a second sending module 15, configured to send the Http reply to the terminal.
Therefore, the communication between the terminal and the server adopts the proxy server as the relay, so that the Http request sent by the terminal is sent to the terminal proxy server, the terminal proxy server sends the Http request to the server proxy server, receives the Http reply sent by the server proxy server, and finally forwards the Http reply to the terminal, thereby realizing the efficient and simple multi-data center access method.
In this embodiment of the present invention, the first sending module 13 includes a selecting unit and a sending unit; wherein,
the selection unit is used for selecting idle connection from a preset TLS connection pool to obtain TLS connection;
and the sending unit is used for sending the Http request to the server proxy server by using the TLS connection.
The second receiving module 14 may be specifically configured to receive an Http reply sent by the server proxy server through the TLS connection.
The second sending module 15 is specifically configured to send the Http reply to the terminal through the TCP connection of the terminal by using the first mapping relationship; wherein, the first mapping relation is the corresponding relation between the TLS connection and the TCP connection of the terminal.
Correspondingly, the embodiment of the present invention further discloses a multi-data center server proxy server, which is applied to Web services, and as shown in fig. 4, the server proxy server includes:
a first receiving module 21, configured to receive an Http request sent by a terminal proxy server;
a first sending module 22, configured to send the Http request to the server by using the server address information in the Http request;
a second receiving module 23, configured to receive an Http reply sent by the server;
and a second sending module 24, configured to send the Http reply to the terminal proxy server.
In this embodiment of the present invention, the second sending module 24 may be specifically configured to send the Http reply to the terminal server agent through the TLS connection by using the second mapping relationship; the second mapping relation is the corresponding relation between the TLS connection used by the terminal proxy server for sending the Http request and the TCP connection of the server.
The invention further discloses an access system among the multiple data center servers, which is applied to Web services and comprises the multiple data center terminal proxy server and the multiple data center server proxy server disclosed in the embodiment. For specific configurations of the multiple data center terminal proxy server and the multiple data center server proxy server, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described herein again.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The multi-data center access method, the terminal proxy server, the server proxy server and the system provided by the invention are introduced in detail, specific examples are applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A method for accessing among multiple data centers is applied to Web services and comprises the following steps:
receiving an Http request sent by a terminal;
searching address information of a server proxy server corresponding to the server in a preset address scheme table by using the address information of the server in the Http request;
sending the Http request to the server proxy server by using the address information of the server proxy server;
receiving an Http reply sent by the server proxy server;
and sending the Http reply to the terminal.
2. The inter-datacenter access method of claim 1, wherein the sending the Http request to the server proxy server comprises:
and selecting idle connection from a pre-established TLS connection pool to obtain the TLS connection, and sending the Http request to the server proxy server by using the TLS connection.
3. The inter-datacenter access method according to claim 2, wherein the receiving the Http reply sent by the server proxy server comprises:
and receiving the Http reply sent by the server proxy server by using the TLS connection.
4. The inter-datacenter access method according to claim 2, wherein the sending the Http reply to the terminal comprises:
sending the Http reply to the terminal through the TCP connection of the terminal by using a first mapping relation;
and the first mapping relation is the corresponding relation between the TLS connection and the TCP connection of the terminal.
5. A method for accessing among multiple data centers is applied to Web services and comprises the following steps:
receiving an Http request sent by a terminal proxy server;
sending the Http request to a server by utilizing the server address information in the Http request;
receiving an Http reply sent by the server;
and sending the Http reply to a terminal proxy server.
6. The inter-datacenter access method according to claim 5, wherein the sending the Http reply to the terminal proxy server comprises:
sending the Http reply to the terminal server agent through a TLS connection by using a second mapping relation;
and the second mapping relation is the corresponding relation between the TLS connection used by the Http request sent by the terminal proxy server and the TCP connection of the server.
7. A multi-data center terminal proxy server, applied to Web services, comprising:
the first receiving module is used for receiving an Http request sent by a terminal;
the searching module is used for searching the address information of the server proxy server corresponding to the server in a preset address scheme table by utilizing the server address information in the Http request;
the first sending module is used for sending the Http request to the server proxy server by utilizing the address information of the server proxy server;
the second receiving module is used for receiving the Http reply sent by the server proxy server;
and the second sending module is used for sending the Http reply to the terminal.
8. A multi-data center server proxy server, applied to Web services, comprising:
the first receiving module is used for receiving an Http request sent by a terminal proxy server;
the first sending module is used for sending the Http request to a server by utilizing the server address information in the Http request;
the second receiving module is used for receiving the Http reply sent by the server;
and the second sending module is used for sending the Http reply to the terminal proxy server.
9. An inter-multi-data center server access system, applied to Web services, comprising the multi-data center terminal proxy server of claim 7 and the multi-data center server proxy server of claim 8.
CN201710452735.1A 2017-06-15 2017-06-15 A kind of multiple data centers access method, proxy server and system Pending CN107231426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710452735.1A CN107231426A (en) 2017-06-15 2017-06-15 A kind of multiple data centers access method, proxy server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710452735.1A CN107231426A (en) 2017-06-15 2017-06-15 A kind of multiple data centers access method, proxy server and system

Publications (1)

Publication Number Publication Date
CN107231426A true CN107231426A (en) 2017-10-03

Family

ID=59935770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710452735.1A Pending CN107231426A (en) 2017-06-15 2017-06-15 A kind of multiple data centers access method, proxy server and system

Country Status (1)

Country Link
CN (1) CN107231426A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891008A (en) * 2019-11-21 2020-03-17 成都云智天下科技股份有限公司 IP proxy method based on L2TP/IPSEC
CN107734034B (en) * 2017-10-17 2021-01-26 泰康保险集团股份有限公司 Server docking system, method, computer-readable storage medium and front-end processor
CN112511597A (en) * 2020-11-06 2021-03-16 杭州迪普科技股份有限公司 Method and device for multiplexing TLS connection

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110252230A1 (en) * 2010-04-09 2011-10-13 International Business Machines Corporation Secure access to a private network through a public wireless network
CN105378659A (en) * 2013-06-14 2016-03-02 托加里奥有限责任公司 Method and system for enabling access of client device to remote desktop
CN105635338A (en) * 2015-12-31 2016-06-01 迈普通信技术股份有限公司 Data transmission method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110252230A1 (en) * 2010-04-09 2011-10-13 International Business Machines Corporation Secure access to a private network through a public wireless network
CN105378659A (en) * 2013-06-14 2016-03-02 托加里奥有限责任公司 Method and system for enabling access of client device to remote desktop
CN105635338A (en) * 2015-12-31 2016-06-01 迈普通信技术股份有限公司 Data transmission method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107734034B (en) * 2017-10-17 2021-01-26 泰康保险集团股份有限公司 Server docking system, method, computer-readable storage medium and front-end processor
CN110891008A (en) * 2019-11-21 2020-03-17 成都云智天下科技股份有限公司 IP proxy method based on L2TP/IPSEC
CN112511597A (en) * 2020-11-06 2021-03-16 杭州迪普科技股份有限公司 Method and device for multiplexing TLS connection
CN112511597B (en) * 2020-11-06 2022-07-01 杭州迪普科技股份有限公司 Method and device for multiplexing TLS connection

Similar Documents

Publication Publication Date Title
CN107733670B (en) Forwarding strategy configuration method and device
CN109803242B (en) Method, apparatus and readable storage medium for NF discovery through NRF
CN101958914B (en) File sharing method, shared server and mobile communication terminal
CN113452592B (en) Cross-cloud data access method and device under hybrid cloud architecture
EP3278526B1 (en) System, apparatus and method for load balancing
EP2262185A1 (en) Method and system for forwarding data among private networks
CN102769529A (en) Dnssec signing server
RU2005114495A (en) WEB SERVICE FOR DETECTING REMOTE APPLICATIONS
US9319449B2 (en) Method, apparatus, and computer program product for processing data requests
CN103781055A (en) Data downloading method and associated device
CN107231426A (en) A kind of multiple data centers access method, proxy server and system
RU2008138577A (en) NETWORK SYSTEM
EP2709337B1 (en) Service data processing method, device and system
CN106464745A (en) Dns server, client and data synchronization method
CN109729115A (en) Realize method, apparatus, the proxy server, terminal device of distributed computing
EP2656591B1 (en) DNS proxy service for multi-core platforms
CN110225150A (en) Communication means, system and storage medium between different network protocol
CN102170456A (en) Method, device and system for acquiring content in PPN (peer-to-peer network)
JP6540063B2 (en) Communication information control apparatus, relay system, communication information control method, and communication information control program
CN105657055A (en) Local area network equipment finding method and device oriented to WEB page
CN107786594B (en) Service request processing method and device
CN105553712A (en) Server for realizing double-channel connection, terminal, method and system
US10122630B1 (en) Methods for network traffic presteering and devices thereof
CN106856456B (en) Processing method and system for cache cluster service
US9860171B2 (en) Large scale message routing in a distributed network

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171003

RJ01 Rejection of invention patent application after publication