CN105991627A - Data connection establishing method and device - Google Patents
Data connection establishing method and device Download PDFInfo
- Publication number
- CN105991627A CN105991627A CN201510111693.6A CN201510111693A CN105991627A CN 105991627 A CN105991627 A CN 105991627A CN 201510111693 A CN201510111693 A CN 201510111693A CN 105991627 A CN105991627 A CN 105991627A
- Authority
- CN
- China
- Prior art keywords
- resource server
- domain name
- address
- data cube
- cube computation
- 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
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a data connection establishing method and a data connection establishing device. The method is applied to a client and includes the following steps that: a resource server which a user requires to access is matched with a resource server which is pre-configured and is allowed to directly establish a data connection with the client; if the resource server which the user requires to access is successfully matched with the resource server which is pre-configured and is allowed to directly establish the data connection with the client, a data connection with the resource server which the user requires to access is established; and if the resource server which the user requires to access is not matched with the resource server which is pre-configured and is allowed to directly establish the data connection with the client, a data connection with a gateway is established, and the gateway is made to establish a data connection with the resource server which the user requires to access. With the data connection establishing method and the data connection establishing device of the invention adopted, the burden of the gateway can be reduced, and the speed and integrity of data transmission can be improved.
Description
Technical field
The present invention relates to communication technical field, particularly to a kind of data connection establishing method and device.
Background technology
Along with the development of network technology, Internet service amount presents the trend steeply risen.In prior art,
Client typically requires sets up data cube computation by gateway and Resource Server, after setting up data cube computation,
Between client and Resource Server, the data traffic of transmission is forwarded by gateway.Internet service amount
Steeply rise and can cause the surge of data traffic between client and Resource Server, this is just to gateway band
Carry out great burden.When gateway burden is excessive, data stream transmitting speed may be caused relatively low, more have
Notably, it is also possible to the phenomenon of bottom pour ladle occurs, thus cause the integrity of data stream transmitting poor.
Summary of the invention
In view of this, the present invention provides a kind of data connection establishing method and device, to solve gateway burden
Excessive and the data traffic transmission speed that causes and the relatively low problem of integrity.
First aspect according to embodiments of the present invention, the present invention provides a kind of data connection establishing method, institute
Method of stating is applied on the client, and described method includes:
User ask that the Resource Server accessed and the permission being pre-configured with directly set up with described client
The Resource Server of data cube computation mates;
If the match is successful, then the Resource Server accessed is asked to set up data cube computation with described user;
If mating unsuccessful, then set up data cube computation with gateway, and make described gateway ask with described user
The Resource Server accessed sets up data cube computation.
Second aspect according to embodiments of the present invention, the present invention provides a kind of data cube computation to set up device, institute
Stating device to apply on the client, described device includes:
Matching unit, for user asked the Resource Server that accesses and the permission being pre-configured with directly with
Described client is set up the Resource Server of data cube computation and is mated;
First connects unit, for when the match is successful, with the Resource Server that described user asks access
Set up data cube computation;
Second connects unit, for when mating unsuccessful, sets up data cube computation with gateway, and makes described
Gateway and described user ask the Resource Server accessed to set up data cube computation.
In sum, owing to have employed technique scheme, the invention has the beneficial effects as follows:
In the embodiment of the present invention, client by asking the Resource Server accessed and being pre-configured with by user
The Resource Server allowing directly to set up data cube computation with client mate, and the match is successful
Time, client and user ask the Resource Server accessed to set up data cube computation, when mating unsuccessful,
Client asks the Resource Server accessed to set up data cube computation by gateway with user, thus can reduce
The burden of gateway, such that it is able to improve speed and the integrity of data transmission.
Accompanying drawing explanation
Fig. 1 is that the application embodiment of the present invention realizes the application scenarios schematic diagram that data cube computation is set up;
Fig. 2 is an embodiment flow chart of data connection establishing method of the present invention;
Fig. 3 is another embodiment block diagram of data connection establishing method of the present invention;
Fig. 4 is a kind of hardware structure diagram that data cube computation of the present invention sets up device place equipment;
Fig. 5 is the embodiment block diagram that data cube computation of the present invention sets up device.
Detailed description of the invention
For the technical scheme making those skilled in the art be more fully understood that in the embodiment of the present invention, and make
The above-mentioned purpose of the embodiment of the present invention, feature and advantage can become apparent from understandable, the most right
In the embodiment of the present invention, technical scheme is described in further detail.
See Fig. 1, realize, for the application embodiment of the present invention, the application scenarios schematic diagram that data cube computation is set up.
In Fig. 1, client can be computer, mobile phone and iPad etc..Client can directly and Resource Server
Setting up data cube computation, client can also set up data cube computation by gateway and Resource Server.DNS takes
Business device is used for storing between each domain name Yu each IP (Internet Protocol, procotol) address
Corresponding relation, and when the user receiving client transmission asks the domain name of Resource Server of access,
Ask the IP address that the domain name of the Resource Server of access is corresponding with user to client offer.
In embodiments of the present invention, client by asking the Resource Server accessed and joining in advance by user
The Resource Server allowing directly to set up data cube computation with client put mates, and is mating into
During merit, client and user ask the Resource Server accessed to set up data cube computation, when mating unsuccessful,
Client asks the Resource Server accessed to set up data cube computation by gateway with user, thus can reduce
The burden of gateway, such that it is able to improve speed and the integrity of data transmission.
See Fig. 2, for the flow chart of an embodiment of data connection establishing method of the present invention, the method
Application on the client, may comprise steps of:
Step 201, user ask the Resource Server that accesses and the permission being pre-configured with directly and client
End is set up the Resource Server of data cube computation and is mated, if the match is successful, then performs step 202;No
Then, step 203 is performed.
In a preferred embodiment of the invention, due to user can by client input IP address or
Domain name asks to access Resource Server, and therefore client can be first to allowing directly and client foundation
At least one of the IP address of the Resource Server of data cube computation and domain name configures.
The domain name allowing the Resource Server directly setting up data cube computation with client is being joined by client
When putting, can choose and allow directly and the domain name of Resource Server that client sets up data cube computation can
Distinguish the part of this Resource Server and other Resource Servers as domain name key component, and should retaining
On the premise of domain name key component, use accurately coupling or fuzzy matching two ways to configure this domain name and close
The prefix part of key section and suffix portion.Owing to a complete domain name is generally separated by with symbol ". "
The some compositions opened, and under normal circumstances, in domain name, network name part can distinguish this resource service
Device and other Resource Servers, therefore client can be crucial as domain name using the network name part in domain name
Part.Domain name is configured by the present embodiment by accurately coupling and fuzzy matching two ways, permissible
Realize the flexible configuration of domain name.
Such as, IP address and the territory of the Resource Server of data cube computation is set up in and client direct to permission
When at least one of name configures, client can eject for joining IP address and domain name simultaneously
The dialog box put, can include " domain name " and " IP address " two setting options in this dialog box, use
By being somebody's turn to do, " domain name " setting options can directly and client sets up the resource clothes of data cube computation to permission at family
The domain name of business device configures, and user passes through to be somebody's turn to do " IP address " setting options can be to allowing directly with objective
Family end is set up the IP address of the Resource Server of data cube computation and is configured.For allowing directly and client
Setting up data cube computation, domain name is the Resource Server of www.sohu.com, due to Part II in domain name
" sohu " is the network name part of this Resource Server, therefore can be crucial as domain name using " sohu "
Part, client when configuring this domain name can on the premise of retaining domain name key component " sohu ",
Use accurate coupling or fuzzy matching two ways to the prefix part of this domain name key component and suffix portion
Divide and configure.In the present example, when user uses prefix accurate, and the accurate matching way of suffix is joined
When putting the domain name of Resource Server, " www.sohu.com " can be inputted in " domain name " setting options;
When user uses prefix to obscure, when the accurate matching way of suffix configures the domain name of Resource Server, can
To input " * .sohu.com " in " domain name " setting options;When user uses prefix accurate, suffix
When fuzzy matching way configures the domain name of Resource Server, can be defeated in " domain name " setting options
Enter " www.sohu.* ";When user uses prefix to obscure, and the matching way that suffix is fuzzy configures resource
During the domain name of server, " * .sohu.* " can be inputted in " domain name " setting options.Certainly, it is allowed to
Can also dispatch from the factory in domain name and/or the IP address of directly setting up the Resource Server of data cube computation with client
Before pre-save in the client, so that user cannot participate in above-mentioned configuration process.
After above-mentioned IP address and/or domain name have configured, first client can determine that user asks to visit
Asking the mode of Resource Server, user asks the mode accessing Resource Server can include that user passes through IP
Address asks to access Resource Server and user asks to access Resource Server by domain name.
When user asks to access Resource Server by IP address, user can be asked to visit by client
Data are directly set up even with the permission being pre-configured with in the IP address of the Resource Server asked with described client
The IP address of the Resource Server connect is mated, if the match is successful, then performs step 202;Otherwise,
Perform step 203.
When user asks to access Resource Server by domain name, first user can be asked by client
The domain name of the Resource Server accessed directly sets up data cube computation with described client with the permission being pre-configured with
The domain name of Resource Server mate.When user asks the domain name of the Resource Server accessed with in advance
The domain name of the Resource Server allowing directly to set up data cube computation with described client of configuration is mated unsuccessful
Time, perform step 203.When user asks the domain name of the Resource Server of access and the permission being pre-configured with
When directly setting up the domain name of Resource Server of data cube computation with described client the match is successful, client can
To determine whether whether to preserve the territory of the Resource Server asking access with user in its local cache
The IP address that name is corresponding, if preserving, then performs step 202;Otherwise, perform step 203, and
Obtain from DNS (Domain Name System, domain name system) server and ask access with user
The IP address that the domain name of Resource Server is corresponding.
Such as, it is www.sohu.com for domain name, it is allowed to directly and client sets up data cube computation
Resource Server, when user uses prefix to obscure, the accurate matching way of suffix, ejects to client
When " domain name " setting options of dialog box input " * .sohu.com ", if user passes through client
The domain name of the Resource Server that request accesses is " sohu.com ", then it represents that user asks the resource accessed
The domain name of server and allowing directly of being pre-configured with and client set up the Resource Server of data cube computation
The match is successful for domain name;If the domain name that user is accessed by client request is " sohu " or " com "
Deng, then user asks the domain name of the Resource Server accessed directly to be built with client with the permission being pre-configured with
The domain name coupling of the Resource Server of vertical data cube computation is unsuccessful.When user asks the Resource Server of access
Domain name set up the domain name of Resource Server of data cube computation with allowing directly of being pre-configured with and client
When being made into merit, whether client can determine whether to preserve in its local cache and ask to access with user
IP address corresponding to the domain name " www.sohu.com " of Resource Server, if preserving, then perform
Step 202;Otherwise, performing step 203, meanwhile, client structure IP address lookup message is also
This IP address lookup message is sent to dns server, and in this IP address lookup message, source address is pointed to
This client, destination address points to dns server, and includes that user asks the Resource Server of access
Domain name etc..Owing to dns server is the Resource Server that storage has domain name and IP address corresponding relation,
Therefore dns server is after receiving this IP address lookup message, can find out and ask to visit with user
The IP address that the domain name of the Resource Server asked is corresponding, and the IP address found out is returned to client.
This IP address, after receiving this IP address, is preserved and asks the money accessed with user by client
The domain name of source server is associated.
The domain name asking the Resource Server of access in the present embodiment user is direct with the permission being pre-configured with
The match is successful with the domain name of the Resource Server that client sets up data cube computation, but client is slow in this locality
During IP address corresponding to the domain name that do not has in depositing to preserve the Resource Server asking access with user, client
Ask the Resource Server accessed to set up data cube computation by gateway with user, thus can ensure that data pass
Defeated integrity, it is to avoid client cannot ask the Resource Server accessed to set up data cube computation with user.
It addition, now client also can obtain from dns server and to ask, with user, the Resource Server that accesses
The IP address that domain name is corresponding, thus can ensure that when user asks to access this Resource Server next time, client
End need not set up data cube computation by gateway and this Resource Server again, can directly and this Resource Server
Set up data cube computation, thus ensure also to reduce net when user accesses Resource Server by domain name request
The burden closed, improves speed and the integrity of data transmission.
Step 202 and user ask the Resource Server accessed to set up data cube computation.
In a preferred embodiment of the invention, ask to access Resource Server by IP address as user
Time, if user ask IP address and the permission being pre-configured with of Resource Server that access directly with described visitor
Family end sets up the IP address of the Resource Server of data cube computation, and the match is successful, then it represents that user's current request is visited
The Resource Server asked is that directly and client sets up the Resource Server of data cube computation, and client in permission
End has obtained user and has asked the IP address of the Resource Server accessed, and therefore client can be according to user
The IP address of the Resource Server that request accesses, direct and user asks the Resource Server accessed to set up number
According to connection.
When user asks to access Resource Server by domain name, if user asks the resource service accessed
The domain name of device and the Resource Server allowing directly to set up data cube computation with described client being pre-configured with
The match is successful for domain name, and client preserve in local cache with user ask access Resource Server
IP address corresponding to domain name, then it represents that the Resource Server that user's current request accesses for allow directly with
Client sets up the Resource Server of data cube computation, and client has obtained the resource that user asks to access
The IP address of server, therefore client can be according to the domain name asking the Resource Server accessed with user
Corresponding IP address, direct and user asks the Resource Server accessed to set up data cube computation.
Step 203 and gateway set up data cube computation, and make this gateway and user ask the resource accessed to take
Data cube computation set up by business device.
In a preferred embodiment of the invention, ask to access Resource Server by IP address as user
Time, if user asks IP address and the permission being pre-configured with of Resource Server that access directly and this client
The IP address coupling that end sets up the Resource Server of data cube computation is unsuccessful, then it represents that user's current request is visited
The Resource Server asked can not directly and client sets up data cube computation, and therefore client can only first basis
The IP address of gateway, sets up data cube computation with gateway, and then user asks the Resource Server of access
IP address is sent to gateway, so that gateway asks the IP address of the Resource Server accessed according to user,
The Resource Server accessed is asked to set up data cube computation with user.
When user asks to access Resource Server by domain name, if user asks the resource service accessed
The domain name of device and allowing directly of being pre-configured with and this client set up the territory of the Resource Server of data cube computation
The match is successful for name, but client does not has preservation and user to ask the resource service accessed in local cache
The IP address that the domain name of device is corresponding, then it represents that the Resource Server that user's current request accesses is for allowing directly
With the Resource Server that client sets up data cube computation, but client not yet obtain user ask access
The IP address of Resource Server.Due in prior art client in order to be built with Resource Server by gateway
Vertical data cube computation, is typically stored with the IP address of gateway and each domain name and each IP ground in client
The corresponding relation of location, thus, now client can be set up with gateway first according to the IP address of gateway
Data cube computation, then asks the domain name of the Resource Server accessed to be sent to gateway by user.Gateway is connecing
After receiving the domain name of the Resource Server that user asks to access, can first look for out asking to access with user
IP address corresponding to the domain name of Resource Server, then according to and user ask the Resource Server that accesses
IP address corresponding to domain name, ask the Resource Server accessed to set up data cube computation with user.
When user asks to access Resource Server by domain name, if user asks the resource service accessed
The domain name of device and allowing directly of being pre-configured with and this client set up the territory of the Resource Server of data cube computation
Name coupling is unsuccessful, then it represents that the Resource Server that user's current request accesses can not directly be built with client
Vertical data cube computation.Now, client can set up data even first according to the IP address of gateway with gateway
Connect, then user asks that the domain name of the Resource Server accessed be sent to gateway.Gateway is receiving use
Family request access Resource Server domain name after, can first look for out with user ask access resource
The IP address that the domain name of server is corresponding, then according to and user ask the domain name of the Resource Server accessed
Corresponding IP address, asks the Resource Server accessed to set up data cube computation with user.
As seen from the above-described embodiment, in the embodiment of the present invention client by user is asked access resource
Server and allowing directly of being pre-configured with and client are set up the Resource Server of data cube computation and are carried out
Join, and when the match is successful, client and user ask the Resource Server accessed to set up data cube computation,
When mating unsuccessful, client asks the Resource Server accessed to set up data even by gateway with user
Connect, thus can reduce the burden of gateway, such that it is able to improve speed and the integrity of data transmission.
See Fig. 3, for another embodiment flow chart of data connection establishing method of the present invention, this enforcement
Example, by client, gateway, mutual between dns server and Resource Server, describes this in detail
Data cube computation in inventive embodiments sets up process:
To permission, directly and client sets up the resource clothes of data cube computation by client for step 301, user
IP address and the domain name of business device configure.
Step 302, client judge that user is by IP address, or ask to access money by domain name
Source server, when user asks to access Resource Server by IP address, performs step 303;When
When user asks to access Resource Server by domain name, perform step 307.
User is asked the IP address of the Resource Server accessed and is pre-configured with by step 303, client
The IP address directly setting up the Resource Server of data cube computation with client is allowed to mate, if mating into
Merit, then perform step 304;Otherwise, step 305 is performed.
Step 304, client ask the IP address of the Resource Server accessed according to user, please with user
The Resource Server asking access sets up data cube computation.
Step 305, client, according to the IP address of gateway, set up data cube computation with gateway, and by user
The IP address of the Resource Server that request accesses is sent to gateway, performs step 306.
Step 306, gateway ask the IP address of the Resource Server accessed according to user, ask with user
The Resource Server accessed sets up data cube computation.
User is asked the domain name of the Resource Server accessed and permitting of being pre-configured with by step 307, client
The domain name being permitted the direct Resource Server setting up data cube computation with this client is mated, if the match is successful,
Then perform step 308, otherwise, perform step 310.
Whether step 308, client judge to preserve in its local cache asks, with user, the resource that accesses
The IP address that the domain name of server is corresponding, if preserving, then performs step 309, otherwise, performs step
310 and step 312.
Step 309, client are according to asking IP ground corresponding to the domain name of Resource Server that accesses with user
Location, asks the Resource Server accessed to set up data cube computation with user.
Step 310, client, according to the IP address of gateway, set up data cube computation with gateway, and by user
The domain name of the Resource Server that request accesses is sent to gateway, performs step 311.
Step 311, gateway find out the IP ground that the domain name of Resource Server asking to access with user is corresponding
Location, and according to asking IP address corresponding to the domain name of Resource Server that accesses with user, ask with user
The Resource Server accessed sets up data cube computation.
Step 312, client send IP address lookup message, this IP address lookup to dns server
In message, source address points to client, and destination address points to dns server, and includes that user asks to access
The domain name of Resource Server, perform step 313.
Step 313, dns server find out the IP address that the domain name asking to access with user is corresponding, and
The IP address found out is returned to client, so that this IP address is stored and should by client
IP address and this user ask the domain name accessed to be associated.
Corresponding with aforementioned data connection establishment embodiment of the method, present invention also offers data cube computation and set up
The embodiment of device.
Data cube computation of the present invention is set up device embodiment and can be realized by software, it is also possible to by hardware or
The mode of software and hardware combining realizes.As a example by implemented in software, as the device on a logical meaning, it is
By the processor of its place equipment, computer program instructions corresponding in nonvolatile memory is read
Internal memory runs formation.For hardware view, as shown in Figure 4, set up for data cube computation of the present invention
A kind of hardware structure diagram of device place equipment, except the processor shown in Fig. 4, network interface, internal memory
And outside nonvolatile memory, in embodiment, the equipment at device place generally can also include that other are hard
Part, such as the forwarding chip etc. of responsible process message;This equipment from the point of view of from hardware configuration is it is also possible that be distributed
The equipment of formula, potentially includes multiple interface card, in order to carry out the extension of Message processing at hardware view.
Seeing Fig. 5, set up an embodiment block diagram of device for data cube computation of the present invention, this device is applied
On the client, this device may include that
Matching unit 510, for asking the Resource Server accessed straight with the permission being pre-configured with by user
Connect and set up the Resource Server of data cube computation with described client and mate;
First connects unit 520, for when the match is successful, asks the resource accessed to take with described user
Data cube computation set up by business device;
Second connects unit 530, for when mating unsuccessful, setting up data cube computation with gateway, and make
Described gateway and described user ask the Resource Server accessed to set up data cube computation.
In an optional implementation, described device can also include:
Dispensing unit 540, for asking the Resource Server of access and the permission being pre-configured with by user
Directly set up before the Resource Server of data cube computation mates with described client, to allowing directly and
Described client is set up at least one of the IP address of the Resource Server of data cube computation and domain name and is joined
Put.
In another optional implementation, described device can also include:
Determine unit 550, for allowing directly to set up the resource clothes of data cube computation with described client
After at least one of the business IP address of device and domain name configures, determine that user asks to access resource service
The mode of device, described user asks the mode accessing Resource Server to include that user is asked by IP address
Access Resource Server and user to ask to access Resource Server by domain name.
In another optional implementation,
Described matching unit 510, specifically for asking to access Resource Server by IP address as user
Time, user is asked IP address and the permission being pre-configured with of Resource Server that access directly with described visitor
Family end is set up the IP address of the Resource Server of data cube computation and is mated;
Described first connects unit 520, if ask the Resource Server of access specifically for described user
IP address and the Resource Server allowing directly to set up data cube computation with described client being pre-configured with
The match is successful in IP address, then ask the IP address of the Resource Server accessed according to described user, with institute
Stating user asks the Resource Server accessed to set up data cube computation;
Described second connects unit 530, if ask the Resource Server of access specifically for described user
IP address and the Resource Server allowing directly to set up data cube computation with described client being pre-configured with
IP address coupling is unsuccessful, then according to the IP address of gateway, set up data cube computation with described gateway, and
The IP address that described user asks the Resource Server accessed is sent to described gateway, so that described gateway
The IP address of the Resource Server accessed is asked, with the resource that described user asks access according to described user
Server sets up data cube computation.
In another optional implementation,
Described matching unit 510, specifically for when user by domain name ask access Resource Server time,
The domain name that user asks the Resource Server accessed directly is built with described client with the permission being pre-configured with
The domain name of the Resource Server of vertical data cube computation is mated;When described user asks the resource service of access
The domain name of device and the Resource Server allowing directly to set up data cube computation with described client being pre-configured with
Domain name is time the match is successful, it is judged that whether described client preserves in local cache is asked with described user
The IP address that the domain name of Resource Server that accesses is corresponding;
Described first connects unit 520, specifically for asking the Resource Server of access as described user
Domain name and the domain name allowing directly to set up the Resource Server of data cube computation with described client being pre-configured with
When the match is successful, if described client is preserved the territory of the Resource Server asking access with described user
The IP address that name is corresponding, then according to the IP that the domain name of the Resource Server asking access with described user is corresponding
Address, asks the Resource Server accessed to set up data cube computation with described user;
Described second connects unit 530, specifically for asking the Resource Server of access as described user
Domain name and the domain name allowing directly to set up the Resource Server of data cube computation with described client being pre-configured with
When mating unsuccessful, according to the IP address of gateway, set up data cube computation with described gateway, and by described use
The domain name of the Resource Server that family request accesses is sent to described gateway, so that described gateway is determining and institute
After stating the IP address that the domain name of Resource Server that user asks to access is corresponding, ask according to described user
IP address corresponding to domain name accessed, asks the Resource Server accessed to set up data even with described user
Connect;And when described user ask domain name and the permission being pre-configured with of Resource Server that access directly with
When described client is set up the domain name of the Resource Server of data cube computation the match is successful, if in described client
The IP address that the domain name that do not has to preserve the Resource Server asking access with described user is corresponding, then according to net
The IP address closed, sets up data cube computation with described gateway, and described user asks the resource service accessed
The domain name of device is sent to described gateway so that described gateway determine with described user ask access resource
Behind the IP address that the domain name of server is corresponding, according to the territory asking the Resource Server accessed with described user
The IP address that name is corresponding, asks the Resource Server accessed to set up data cube computation with described user.
In another optional implementation, described device can also include:
Whether acquiring unit 560, for preserving in judging described client ask to visit with described user
After the IP address that the domain name of the Resource Server asked is corresponding, if described client does not preserve with described
User asks the IP address that the domain name of Resource Server that accesses is corresponding, then obtain from dns server
The IP address that the domain name of the Resource Server of access is corresponding is asked with described user.
In said apparatus, the function of unit and the process that realizes of effect specifically refer in said method corresponding
Step realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part ginseng
See that the part of embodiment of the method illustrates.Device embodiment described above is only schematically,
The wherein said unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit can be or may not be physical location, i.e. may be located at a place,
Or can also be distributed on multiple NE.Can select according to the actual needs part therein or
The whole module of person realizes the purpose of the present invention program.Those of ordinary skill in the art are not paying creativeness
In the case of work, i.e. it is appreciated that and implements.
As seen from the above-described embodiment, in the embodiment of the present invention client by user is asked access resource
Server and allowing directly of being pre-configured with and client are set up the Resource Server of data cube computation and are carried out
Join, and when the match is successful, client and user ask the Resource Server accessed to set up data cube computation,
When mating unsuccessful, client asks the Resource Server accessed to set up data even by gateway with user
Connect, thus can reduce the burden of gateway, such that it is able to improve speed and the integrity of data transmission.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to this
Other embodiment of invention.The application is intended to any modification, purposes or the adaptability of the present invention
Change, these modification, purposes or adaptations are followed the general principle of the present invention and include this
Bright undocumented common knowledge in the art or conventional techniques means.Description and embodiments only by
Being considered as exemplary, true scope and spirit of the invention are pointed out by claim below.
It should be appreciated that the invention is not limited in described above and illustrated in the accompanying drawings accurately
Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present invention is only by institute
Attached claim limits.
Claims (12)
1. a data connection establishing method, described method is applied on the client, it is characterised in that institute
The method of stating includes:
User ask that the Resource Server accessed and the permission being pre-configured with directly set up with described client
The Resource Server of data cube computation mates;
If the match is successful, then the Resource Server accessed is asked to set up data cube computation with described user;
If mating unsuccessful, then set up data cube computation with gateway, and make described gateway ask with described user
The Resource Server accessed sets up data cube computation.
Method the most according to claim 1, it is characterised in that in the resource that user is asked access
Server is carried out with the Resource Server allowing directly to set up data cube computation with described client being pre-configured with
Before coupling, described method also includes:
To allowing directly to set up the procotol IP ground of the Resource Server of data cube computation with described client
At least one of location and domain name configures.
Method the most according to claim 2, it is characterised in that to allowing directly and described client
End is set up after at least one of the IP address of Resource Server of data cube computation and domain name configure, institute
Method of stating also includes:
Determining that user asks to access the mode of Resource Server, described user asks to access Resource Server
Mode includes that user asks to access Resource Server by IP address and user is asked by domain name
Access Resource Server.
Method the most according to claim 3, it is characterised in that when user is asked by IP address
When seeking access Resource Server, the described Resource Server asking user to access and the permission being pre-configured with
The Resource Server directly setting up data cube computation with described client carries out mating including:
The IP address that user asks the Resource Server accessed is direct with the permission being pre-configured with described
Client is set up the IP address of the Resource Server of data cube computation and is mated;
Described, if the match is successful, then ask the Resource Server accessed to set up data cube computation bag with described user
Include: if described user asks IP address and the permission being pre-configured with of Resource Server that access directly and institute
State client to set up the IP address of Resource Server of data cube computation the match is successful, then please according to described user
Ask the IP address of the Resource Server of access, ask the Resource Server accessed to set up data with described user
Connect;
Mate unsuccessful if described, then set up data cube computation with gateway, and make described gateway and described resource
Server is set up data cube computation and is included:
If described user ask IP address and the permission being pre-configured with of Resource Server that access directly with
The IP address coupling that described client sets up the Resource Server of data cube computation is unsuccessful, then according to gateway
IP address, sets up data cube computation with described gateway, and the Resource Server asking described user to access
IP address is sent to described gateway, so that described gateway asks the Resource Server accessed according to described user
IP address, with described user ask access Resource Server set up data cube computation.
Method the most according to claim 3, it is characterised in that when user asks to visit by domain name
When asking Resource Server, the described Resource Server asking user to access is direct with the permission being pre-configured with
The Resource Server setting up data cube computation with described client carries out mating including:
User is asked domain name and the permission being pre-configured with of Resource Server that access directly with described client
The domain name of the Resource Server that end sets up data cube computation is mated;
When described user asks the domain name of the Resource Server accessed with the permission being pre-configured with directly with described
When client is set up the domain name of the Resource Server of data cube computation the match is successful, it is judged that described client is local
Whether caching is preserved the IP address that the domain name of the Resource Server asking access with described user is corresponding;
Described, if the match is successful, then ask the Resource Server accessed to set up data cube computation bag with described user
Include: when described user asks the domain name of the Resource Server accessed with the permission being pre-configured with directly with described
When client is set up the domain name of the Resource Server of data cube computation the match is successful, if described client preserves
There are the IP address that the domain name of the Resource Server asking access with described user is corresponding, then basis and described use
The IP address that the domain name of Resource Server that family request accesses is corresponding, asks, with described user, the resource that accesses
Server sets up data cube computation;
Mate unsuccessful if described, then set up data cube computation with gateway, and make described gateway and described user
The Resource Server that request accesses is set up data cube computation and is included:
When described user asks the domain name of the Resource Server accessed with the permission being pre-configured with directly with described
Client set up the domain name coupling of the Resource Server of data cube computation unsuccessful time, according to the IP of gateway ground
Location, sets up data cube computation with described gateway, and described user asks the domain name of the Resource Server accessed
It is sent to described gateway, so that described gateway asks, with described user, the Resource Server that accesses determining
Behind the IP address that domain name is corresponding, according to asking IP address corresponding to domain name that access with described user, with
Described user asks the Resource Server accessed to set up data cube computation;And
When described user asks the domain name of the Resource Server accessed with the permission being pre-configured with directly with described
When client is set up the domain name of the Resource Server of data cube computation the match is successful, if described client does not has
Preserve the IP address that the domain name of the Resource Server asking access with described user is corresponding, then according to gateway
IP address, sets up data cube computation with described gateway, and the Resource Server asking described user to access
Domain name is sent to described gateway so that described gateway determine with described user ask access resource service
Behind the IP address that the domain name of device is corresponding, according to the domain name pair asking the Resource Server accessed with described user
The IP address answered, asks the Resource Server accessed to set up data cube computation with described user.
Method the most according to claim 5, it is characterised in that in judging described client whether
After preserving the IP address that the domain name of Resource Server asking to access with described user is corresponding, described side
Method also includes:
If described client not having the domain name preserving the Resource Server asking access with described user corresponding
IP address, then from domain name system DNS server obtain with described user ask access resource clothes
The IP address corresponding to domain name of business device.
7. data cube computation sets up a device, and described device is applied on the client, it is characterised in that institute
State device to include:
Matching unit, for user asked the Resource Server that accesses and the permission being pre-configured with directly with
Described client is set up the Resource Server of data cube computation and is mated;
First connects unit, for when the match is successful, with the Resource Server that described user asks access
Set up data cube computation;
Second connects unit, for when mating unsuccessful, sets up data cube computation with gateway, and makes described
Gateway and described user ask the Resource Server accessed to set up data cube computation.
Device the most according to claim 7, it is characterised in that described device also includes:
Dispensing unit, for asking the Resource Server accessed direct with the permission being pre-configured with by user
Set up before the Resource Server of data cube computation mates with described client, to allowing directly with described
Client is set up at least one of the IP address of the Resource Server of data cube computation and domain name and is configured.
Device the most according to claim 8, it is characterised in that described device also includes:
Determine unit, for allowing directly to set up the Resource Server of data cube computation with described client
IP address and after at least one of domain name configure, determine that user asks to access Resource Server
Mode, described user asks the mode accessing Resource Server to include that user asks access by IP address
Resource Server and user ask to access Resource Server by domain name.
Device the most according to claim 9, it is characterised in that
Described matching unit, specifically for when user by IP address ask access Resource Server time,
User is asked IP address and the permission being pre-configured with of Resource Server that access directly with described client
The IP address of the Resource Server that end sets up data cube computation is mated;
Described first connects unit, if ask the IP ground of the Resource Server accessed specifically for described user
Location and the IP ground allowing directly to set up the Resource Server of data cube computation with described client being pre-configured with
The match is successful in location, then ask the IP address of the Resource Server accessed according to described user, with described user
The Resource Server that request accesses sets up data cube computation;
Described second connects unit, if ask the IP ground of the Resource Server accessed specifically for described user
Location and the IP ground allowing directly to set up the Resource Server of data cube computation with described client being pre-configured with
Location coupling is unsuccessful, then according to the IP address of gateway, set up data cube computation with described gateway, and by described
User asks the IP address of the Resource Server accessed to be sent to described gateway, so that described gateway is according to institute
State user and ask the IP address of the Resource Server accessed, with the Resource Server that described user asks access
Set up data cube computation.
11. devices according to claim 9, it is characterised in that
Described matching unit, specifically for when user asks to access Resource Server by domain name, inciting somebody to action
User asks the domain name of the Resource Server accessed directly to be set up with described client with the permission being pre-configured with
The domain name of the Resource Server of data cube computation is mated;When described user asks the Resource Server of access
Domain name and the territory allowing directly to set up the Resource Server of data cube computation with described client that is pre-configured with
Name is time the match is successful, it is judged that whether described client preserves in local cache is asked to visit with described user
The IP address that the domain name of the Resource Server asked is corresponding;
Described first connects unit, specifically for asking the domain name of the Resource Server accessed as described user
Mate with the domain name of the Resource Server allowing directly to set up data cube computation with described client being pre-configured with
During success, if described client is preserved the domain name pair of the Resource Server asking access with described user
The IP address answered, then according to the IP ground that the domain name of the Resource Server asking access with described user is corresponding
Location, asks the Resource Server accessed to set up data cube computation with described user;
Described second connects unit, specifically for asking the domain name of the Resource Server accessed as described user
Mate with the domain name of the Resource Server allowing directly to set up data cube computation with described client being pre-configured with
Time unsuccessful, according to the IP address of gateway, set up data cube computation with described gateway, and please by described user
The domain name seeking the Resource Server of access is sent to described gateway, so that described gateway is determining and described use
Behind the IP address that the domain name of Resource Server that family request accesses is corresponding, ask to access according to described user
IP address corresponding to domain name, ask the Resource Server accessed to set up data cube computation with described user;With
And when described user ask domain name and the permission being pre-configured with of Resource Server that access directly with described visitor
When family end is set up the domain name of the Resource Server of data cube computation the match is successful, if described client is not protected
Deposit the IP address that the domain name of the Resource Server asking access with described user is corresponding, then according to the IP of gateway
Address, sets up data cube computation with described gateway, and described user asks the territory of the Resource Server accessed
Name be sent to described gateway so that described gateway determine with described user ask access Resource Server
IP address corresponding to domain name after, according to asking with described user, the domain name of Resource Server accessed is corresponding
IP address, with described user ask access Resource Server set up data cube computation.
12. devices according to claim 11, it is characterised in that described device also includes:
Acquiring unit, asks access for whether preserving in judging described client with described user
After the IP address that the domain name of Resource Server is corresponding, if described client does not preserve and described user
Ask the IP address that the domain name of the Resource Server of access is corresponding, then obtain and institute from dns server
State the IP address that the domain name of the Resource Server that user asks to access is corresponding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510111693.6A CN105991627A (en) | 2015-03-13 | 2015-03-13 | Data connection establishing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510111693.6A CN105991627A (en) | 2015-03-13 | 2015-03-13 | Data connection establishing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105991627A true CN105991627A (en) | 2016-10-05 |
Family
ID=57040109
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510111693.6A Pending CN105991627A (en) | 2015-03-13 | 2015-03-13 | Data connection establishing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105991627A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107222459A (en) * | 2017-04-27 | 2017-09-29 | 广州慧扬健康科技有限公司 | Network connection negotiation method |
CN107819872A (en) * | 2017-11-22 | 2018-03-20 | 聚好看科技股份有限公司 | Ask the method and device of network data |
CN110263275A (en) * | 2019-06-14 | 2019-09-20 | 深圳前海桔子信息技术有限公司 | A kind of method, apparatus, mobile terminal and storage medium accessing webpage |
WO2019242007A1 (en) * | 2018-06-22 | 2019-12-26 | 深圳前海达闼云端智能科技有限公司 | Device configuration method and apparatus, client terminal device, and cloud server |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101765218A (en) * | 2009-12-23 | 2010-06-30 | 华为技术有限公司 | Data transmitting method and relevant device and system |
CN102884764A (en) * | 2012-06-30 | 2013-01-16 | 华为技术有限公司 | Message receiving method, deep packet inspection device, and system |
CN102932473A (en) * | 2012-11-13 | 2013-02-13 | 北京奇虎科技有限公司 | Method of accessing to internet content across operator networks |
CN103236969A (en) * | 2013-04-03 | 2013-08-07 | 中国科学院合肥物质科学研究院 | Gateway system and gateway method for Cloud service accounting management |
CN103716326A (en) * | 2013-12-31 | 2014-04-09 | 华为技术有限公司 | Resource access method and URG |
CN104092785A (en) * | 2014-06-05 | 2014-10-08 | 汉柏科技有限公司 | Method for domain name registration and resolution, and resource access method and resource access device based on domain name |
-
2015
- 2015-03-13 CN CN201510111693.6A patent/CN105991627A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101765218A (en) * | 2009-12-23 | 2010-06-30 | 华为技术有限公司 | Data transmitting method and relevant device and system |
CN102884764A (en) * | 2012-06-30 | 2013-01-16 | 华为技术有限公司 | Message receiving method, deep packet inspection device, and system |
CN102932473A (en) * | 2012-11-13 | 2013-02-13 | 北京奇虎科技有限公司 | Method of accessing to internet content across operator networks |
CN103236969A (en) * | 2013-04-03 | 2013-08-07 | 中国科学院合肥物质科学研究院 | Gateway system and gateway method for Cloud service accounting management |
CN103716326A (en) * | 2013-12-31 | 2014-04-09 | 华为技术有限公司 | Resource access method and URG |
CN104092785A (en) * | 2014-06-05 | 2014-10-08 | 汉柏科技有限公司 | Method for domain name registration and resolution, and resource access method and resource access device based on domain name |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107222459A (en) * | 2017-04-27 | 2017-09-29 | 广州慧扬健康科技有限公司 | Network connection negotiation method |
CN107819872A (en) * | 2017-11-22 | 2018-03-20 | 聚好看科技股份有限公司 | Ask the method and device of network data |
WO2019242007A1 (en) * | 2018-06-22 | 2019-12-26 | 深圳前海达闼云端智能科技有限公司 | Device configuration method and apparatus, client terminal device, and cloud server |
CN110263275A (en) * | 2019-06-14 | 2019-09-20 | 深圳前海桔子信息技术有限公司 | A kind of method, apparatus, mobile terminal and storage medium accessing webpage |
CN110263275B (en) * | 2019-06-14 | 2021-10-29 | 深圳桔子数字技术有限公司 | Method and device for accessing webpage, mobile terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106412483B (en) | Camera sharing method and device | |
US10320753B1 (en) | Method and system for providing persona masking in a computer network | |
CN103109517B (en) | Method, terminal and the system of a kind of pair of stack terminal access server | |
CN110839017B (en) | Proxy IP address identification method, device, electronic equipment and storage medium | |
CN108199921A (en) | The method, apparatus and storage medium of a kind of simulation test | |
CN105991627A (en) | Data connection establishing method and device | |
CN106933871A (en) | Short linking processing method, device and short linked server | |
CN109981633A (en) | Access method, equipment and the computer readable storage medium of server | |
US20140304419A1 (en) | System and terminal for p2p connection in mobile environment and method for p2p connection using the same | |
CN106534040A (en) | Method and device for identifying subscriber identity of terminal equipment | |
CN108141409A (en) | Communication system, address notice device, communication control unit, terminal, communication means and program | |
CN109547513A (en) | The treating method and apparatus of application context | |
CN106131066A (en) | A kind of authentication method and device | |
CN108632307A (en) | A kind of session connection method for building up and SMF | |
CN107872548A (en) | Web page interlinkage method, apparatus and readable storage medium storing program for executing | |
CN105991442A (en) | Message forwarding method and device | |
CN105988922A (en) | Testing method and device of application program as well as server | |
CN104539752B (en) | Access method and system between multilevel field platform | |
CN108737407A (en) | A kind of method and device for kidnapping network flow | |
CN104582011B (en) | A kind of method and apparatus for mobile terminal to be connected to network | |
CN108093097A (en) | The connection method of camera and home gateway and home gateway | |
CN102957702B (en) | The method of request data and client | |
CN104506405B (en) | The method and device of cross-domain access | |
CN106209750A (en) | A kind of network allocation method, server, network access equipment and system | |
CN109756520A (en) | Dynamic accesses control method, equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant after: Hangzhou Dipu Polytron Technologies Inc Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant before: Hangzhou Dipu Technology Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161005 |