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 PDFInfo
- 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
- http
- sent
- terminal
- multiple 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/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- 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/56—Provisioning 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
Technical field
The present invention relates to field of cloud calculation, more particularly to a kind of multiple data centers access method, terminal proxy server, clothes
Business device proxy server and system.
Background technology
In cloud computing environment, multiple data centers deployment has become a kind of very common mode, and multiple data centers are often
There is the difference in geographical position, and majority is interconnected by public network, cooperated, and collectively constitutes the cloud ring of a big fusion
Border.
In the prior art, accessed between multiple data centers and mutual access is realized by technologies such as VPN, and such a method implements difficult
Degree is big, it is desirable to high, therefore, how to study access method between a kind of efficient and simple multiple data centers, is to be currently needed for solving
The problem of.
The content of the invention
In view of this, it is an object of the invention to provide a kind of multiple data centers access method, terminal proxy server, clothes
Business device proxy server and system, to realize access method between efficient and simple multiple data centers.Its concrete scheme is as follows:
A kind of multiple data centers access method, applied to Web service, including:
The Http requests that receiving terminal is sent;
Using the Http ask in server address information, found in address scheme table set in advance with
The address information of the corresponding server agent server of the server;
Using the address information of the server agent server, Http requests are sent to the server agent
Server;
Receive the Http answers that the server agent server is sent;
The Http is replied and sent to the terminal.
Optionally, it is described to ask the Http to send to the process of the server agent server, including:
Idle connection is chosen from the TLS connection pools pre-established, the TLS connections is obtained, the Http is asked
Utilize the TLS linkup transmits to the server agent server.
Optionally, the process for receiving the Http answers that the server agent server is sent, including:
The Http for receiving TLS linkup transmits described in the server agent server by utilizing is replied.
Optionally, described reply the Http is sent to the process of the terminal, including:
Using the first mapping relations, the Http is replied by the TCP linkup transmits of the terminal to the terminal;
Wherein, first mapping relations are the corresponding relation that the TLS connections are connected with the TCP of the terminal.
The invention also discloses access method between a kind of multiple data centers, applied to Web service, including:
The Http requests that receiving terminal proxy server is sent;
Server address information in being asked using the Http, Http requests are sent to server;
Receive the Http answers that the server is sent;
The Http is replied and sent to terminal proxy server.
Optionally, described reply the Http is sent to the process of terminal proxy server, including:
Using the second mapping relations, the Http is replied and acted on behalf of by TLS linkup transmits to the terminal server;
Wherein, second mapping relations are that the terminal proxy server sends the TLS companies that the Http requests are used
Connect the corresponding relation being connected with the TCP of server.
Accordingly, the invention also discloses a kind of multiple data centers terminal proxy server, applied to Web service, including:
First receiving module, the Http requests sent for receiving terminal;
Searching modul, for using the server address information in Http requests, in address scheme set in advance
The address information of server agent server corresponding with the server is found in table;
First sending module, using the address information of the server agent server, Http requests are sent extremely
The server agent server;
Second receiving module, is replied for receiving the Http that the server agent server is sent;
Second sending module, sends to the terminal for the Http to be replied.
Accordingly, the invention also discloses a kind of multiple data centers server agent server, applied to Web service, bag
Include:
First receiving module, the Http requests sent for receiving terminal proxy server;
First sending module, for using the server address information in Http requests, the Http being asked to send out
Deliver to server;
Second receiving module, is replied for receiving the Http that the server is sent;
Second sending module, sends to terminal proxy server for the Http to be replied.
The present invention accesses system between further disclosing a kind of multiple data centers server, applied to Web service, including
Foregoing disclosed multiple data centers terminal proxy server and multiple data centers server agent server.
In the present invention, access method between multiple data centers, including:The Http requests that receiving terminal is sent;Please using Http
The address information of server in asking, finds server agent corresponding with server in address scheme table set in advance
The address information of server;Using the address information of server agent server, Http requests are sent to server agent and taken
Business device;The Http that the reception server proxy server is sent is replied;Http is replied and sent to terminal.The present invention is in terminal and clothes
Communication between business device, as transfer, makes the Http requests that terminal is sent send to terminal agent service using proxy server
Device, then sent Http requests to server agent server, and the reception server proxy server by terminal proxy server
The Http of transmission is replied, and last reply Http is forwarded to terminal, realizes access between efficient and simple multiple data centers
Method.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is access method schematic flow sheet between a kind of multiple data centers disclosed in the embodiment of the present invention;
Fig. 2 is access method schematic flow sheet between another multiple data centers disclosed in the embodiment of the present invention;
Fig. 3 is a kind of multiple data centers terminal proxy server structural representation disclosed in the embodiment of the present invention;
Fig. 4 is a kind of multiple data centers server agent server architecture schematic diagram disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
It is shown in Figure 1 applied to Web service the embodiment of the invention discloses access method between a kind of multiple data centers,
This method includes:
Step S11:The Http requests that receiving terminal is sent.
Specifically, terminal proxy server receiving terminal is asked by the Http of TCP linkup transmits.
Step S12:The address information of server in being asked using Http, is searched in address scheme table set in advance
To the address information of server agent server corresponding with server.
Specifically, Http requests include the address information of destination server, and preserved in terminal proxy server pre-
Address information, the address of server agent server of server are have recorded in the address scheme table first set up, address scheme table
The corresponding relation of information and server and server agent server, therefore, the address letter of the server in being asked using Http
Breath, can find the address information of server agent server corresponding with server in address scheme table.
Step S13:Using the address information of server agent server, Http requests are sent to server agent service
Device.
Specifically, terminal proxy server is found after the address information of server agent server, Http is asked to send out
Server agent server is delivered to, wherein, terminal proxy server can choose the free time from the TLS connection pools pre-established
Connection, obtains a TLS being connected with server agent server and is connected, and Http requests are extremely serviced using TLS linkup transmits
Device proxy server, transmits data using TLS encryption connections, improves security of the data in transmittance process.
Step S14:The Http that the reception server proxy server is sent is replied.
It it should be noted that being managed by TLS connection poolizations, can be connected with the multiplexing of maximum possible, improve connection and use
Efficiency, therefore, terminal proxy server can be replied with the reception server proxy server using the Http of TLS linkup transmits, its
In, the TLS connections between terminal proxy server and server agent server do not change, still for terminal proxy server to
Server agent server sends the TLS connections of Http requests, realizes TLS connection multiplexings.
Step S15:Http is replied and sent to terminal.
In the embodiment of the present invention, terminal proxy server can utilize the first mapping relations, and Http is replied and passes through terminal
TCP linkup transmits to terminal;Wherein, the first mapping relations are the corresponding relation that TLS connections are connected with the TCP of terminal, first
Mapping relations utilize terminal and terminal when terminal proxy server is set up the TLS connected with server agent server and is connected
The mark of TCP connections is connected and bound with TLS between proxy server, so as to obtain the first mapping relations, is closed using the first mapping
System can determine that TLS connections are corresponding with that terminal, terminal proxy server is quickly sent Http to terminal and answer
It is multiple, without recycling the address information in Http answers to search the address information of terminal.
It can be seen that, communication of the embodiment of the present invention between terminal and server, as transfer, makes end using proxy server
The Http requests that end is sent are sent to terminal proxy server, then are sent Http requests to server by terminal proxy server
Proxy server, and the Http answers that the reception server proxy server is sent, and last reply Http is forwarded to terminal, it is real
Access method between efficient and simple multiple data centers is showed.
The embodiment of the invention also discloses access method between a kind of multiple data centers, applied to Web service, referring to Fig. 2 institutes
Show, this method includes:
Step S21:The Http requests that receiving terminal proxy server is sent.
Specifically, what server agent server can be sent by TLS connection receiving terminals terminal proxy server
Http is asked.
Step S22:Server address information in being asked using Http, Http requests are sent to server.
Specifically, server agent server can utilize TCP connections, Http requests are sent to server.
Further, the corresponding relation that TLS connections are connected with TCP can be now set up, TLS connections is connected with TCP
Mark is bound, so as to obtain the second mapping relations.
Step S23:The Http that the reception server is sent is replied.
Specifically, after the complete Http requests of server process, server generation Http is replied, and server agent server connects
The Http for receiving server generation is replied.
Step S24:Http is replied and sent to terminal proxy server.
Specifically, server agent server, it is possible to use the second mapping relations judge the TCP connections that server is used
Corresponding TSL connections, are acted on behalf of so that Http be replied by TLS linkup transmits to terminal server corresponding with server;Its
In, the second mapping relations are that terminal proxy server sends pair that Http asks the TLS connections used to be connected with the TCP of server
It should be related to.
Accordingly, the embodiment of the invention also discloses a kind of multiple data centers terminal proxy server, applied to Web clothes
Business, shown in Figure 3, the terminal proxy server includes:
First receiving module 11, the Http requests sent for receiving terminal;
Searching modul 12, for using the server address information in Http requests, in address scheme table set in advance
In find the address information of server agent server corresponding with server;
First sending module 13, using the address information of server agent server, Http requests are sent to server
Proxy server;
Second receiving module 14, is replied for the Http that the reception server proxy server is sent;
Second sending module 15, sends to terminal for Http to be replied.
It can be seen that, communication of the embodiment of the present invention between terminal and server, as transfer, makes end using proxy server
The Http requests that end is sent are sent to terminal proxy server, then are sent Http requests to server by terminal proxy server
Proxy server, and the Http answers that the reception server proxy server is sent, and last reply Http is forwarded to terminal, it is real
Access method between efficient and simple multiple data centers is showed.
In the embodiment of the present invention, above-mentioned first sending module 13, including choose unit and transmitting element;Wherein,
Unit is chosen, for choosing idle connection from the TLS connection pools pre-established, TLS connections are obtained;
Transmitting element, for Http requests to be utilized into TLS linkup transmits to server agent server.
Above-mentioned second receiving module 14 can utilize TLS linkup transmits specifically for the reception server proxy server
Http is replied.
Above-mentioned second sending module 15, specifically for utilizing the first mapping relations, Http is replied and connected by the TCP of terminal
Terminal is delivered in sending and receiving;Wherein, the first mapping relations are the corresponding relation that TLS connections are connected with the TCP of terminal.
Accordingly, the embodiment of the invention also discloses a kind of multiple data centers server agent server, applied to Web clothes
Business, shown in Figure 4, the server agent server includes:
First receiving module 21, the Http requests sent for receiving terminal proxy server;
First sending module 22, for using the server address information in Http requests, Http requests being sent and extremely taken
Business device;
Second receiving module 23, is replied for the Http that the reception server is sent;
Second sending module 24, sends to terminal proxy server for Http to be replied.
In the embodiment of the present invention, above-mentioned second sending module 24 can be specifically for utilizing the second mapping relations, by Http
Reply and acted on behalf of by TLS linkup transmits to terminal server;Wherein, the second mapping relations are that terminal proxy server sends Http
The corresponding relation for asking the TLS connections used to be connected with the TCP of server.
Secondly, the invention also discloses system is accessed between a kind of multiple data centers server, applied to Web service, including
Multiple data centers terminal proxy server and multiple data centers server agent server disclosed in previous embodiment.On
The specific configuration of multiple data centers terminal proxy server and multiple data centers server agent server may be referred to foregoing
Corresponding contents disclosed in embodiment, are no longer repeated herein.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include that
A little key elements, but also other key elements including being not expressly set out, or also include be this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged
Except also there is other identical element in the process including the key element, method, article or equipment.
Above to a kind of multiple data centers access method provided by the present invention, terminal proxy server, server agent
Server and system are described in detail, and specific case used herein is carried out to the principle and embodiment of the present invention
Illustrate, the explanation of above example is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for this area
Those skilled in the art, according to the present invention thought, will change in specific embodiments and applications, to sum up
Described, this specification content should not be construed as limiting the invention.
Claims (9)
1. access method between a kind of multiple data centers, it is characterised in that applied to Web service, including:
The Http requests that receiving terminal is sent;
Using the Http ask in server address information, found in address scheme table set in advance with it is described
The address information of the corresponding server agent server of server;
Using the address information of the server agent server, Http requests are sent to the server agent service
Device;
Receive the Http answers that the server agent server is sent;
The Http is replied and sent to the terminal.
2. access method between multiple data centers according to claim 1, it is characterised in that described to ask the Http to send out
The process of the server agent server is delivered to, including:
Idle connection is chosen from the TLS connection pools pre-established, the TLS connections are obtained, the Http is asked to utilize
The TLS linkup transmits are to the server agent server.
3. access method between multiple data centers according to claim 2, it is characterised in that the reception server generation
The process for the Http answers that server is sent is managed, including:
The Http for receiving TLS linkup transmits described in the server agent server by utilizing is replied.
4. access method between multiple data centers according to claim 2, it is characterised in that described reply the Http is sent out
The process of the terminal is delivered to, including:
Using the first mapping relations, the Http is replied by the TCP linkup transmits of the terminal to the terminal;
Wherein, first mapping relations are the corresponding relation that the TLS connections are connected with the TCP of the terminal.
5. access method between a kind of multiple data centers, it is characterised in that applied to Web service, including:
The Http requests that receiving terminal proxy server is sent;
Server address information in being asked using the Http, Http requests are sent to server;
Receive the Http answers that the server is sent;
The Http is replied and sent to terminal proxy server.
6. access method between multiple data centers according to claim 5, it is characterised in that described reply the Http is sent out
The process of terminal proxy server is delivered to, including:
Using the second mapping relations, the Http is replied and acted on behalf of by TLS linkup transmits to the terminal server;
Wherein, second mapping relations be the terminal proxy server send the TLS connections that Http request uses and
The corresponding relation of the TCP connections of server.
7. a kind of multiple data centers terminal proxy server, it is characterised in that applied to Web service, including:
First receiving module, the Http requests sent for receiving terminal;
Searching modul, for using the server address information in Http requests, in address scheme table set in advance
Find the address information of server agent server corresponding with the server;
First sending module, using the address information of the server agent server, Http requests are sent to described
Server agent server;
Second receiving module, is replied for receiving the Http that the server agent server is sent;
Second sending module, sends to the terminal for the Http to be replied.
8. a kind of multiple data centers server agent server, it is characterised in that applied to Web service, including:
First receiving module, the Http requests sent for receiving terminal proxy server;
First sending module, for using the server address information in Http requests, Http requests to be sent extremely
Server;
Second receiving module, is replied for receiving the Http that the server is sent;
Second sending module, sends to terminal proxy server for the Http to be replied.
9. access system between a kind of multiple data centers server, it is characterised in that applied to Web service, including such as claim 7
Described multiple data centers terminal proxy server and multiple data centers server agent as claimed in claim 8 service
Device.
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)
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)
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 |
-
2017
- 2017-06-15 CN CN201710452735.1A patent/CN107231426A/en active Pending
Patent Citations (3)
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)
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 |
---|---|---|
CN104125208B (en) | Data transmission method and device | |
CN106790420B (en) | A kind of more session channel method for building up and system | |
CN103067257B (en) | Method and server and system for achieving data mutual communication in social networking service | |
CN102404229A (en) | System, device and method for load balancing | |
CN106330869A (en) | Data security protection system and method based on cloud application | |
CN104811371A (en) | Brand-new instant messaging system | |
CN103812913A (en) | Remote access method and device based on VNC (virtual network computing) | |
CN107231426A (en) | A kind of multiple data centers access method, proxy server and system | |
CN105991565A (en) | Reading and writing separation method and system and database agent server | |
CN104917791A (en) | Method and apparatus for transmitting control instructions | |
CN103618801A (en) | Method, device and system for sharing P2P (Peer-to-Peer) resources | |
CN105872039A (en) | Method for transmitting file between terminal devices, terminal device and a file transmission system | |
CN103888999A (en) | WebCache service and CDN service fusion method and device | |
CN109862103A (en) | File data secure sharing method and device based on block chain | |
US10225358B2 (en) | Page push method, device, server and system | |
CN107577541A (en) | A kind of application and a kind of call method of component | |
CN111343070B (en) | Communication control method for sdwan network | |
Li et al. | Supporting efficient machine-to-machine communications in the future mobile internet | |
CN106559788A (en) | A kind of Portal service implementation methods and its system based on many SSID | |
CN104735174A (en) | HTTP transparent proxy implementing method and device | |
CN102571817A (en) | Method and device for accessing application server | |
CN106411771A (en) | Data forwarding method and system | |
CN104333500B (en) | A kind of signal conversion method, apparatus and system | |
CN110086878A (en) | A kind of 5G private network and construction method | |
CN102025773B (en) | Method and device for interconnected control of splicing wall |
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 |