CN104518968B - The method and Transparent proxy server of a kind of Message processing - Google Patents
The method and Transparent proxy server of a kind of Message processing Download PDFInfo
- Publication number
- CN104518968B CN104518968B CN201410733682.7A CN201410733682A CN104518968B CN 104518968 B CN104518968 B CN 104518968B CN 201410733682 A CN201410733682 A CN 201410733682A CN 104518968 B CN104518968 B CN 104518968B
- Authority
- CN
- China
- Prior art keywords
- web server
- server
- address
- domain name
- transparent proxy
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
Abstract
The embodiment of the invention discloses a kind of methods of Message processing, for shortening the duration that the Transparent proxy server determines VAS server, the service message that user terminal is interacted with the WEB server are made to obtain the processing of the VAS server in time, promote user experience.Present invention method includes:Transparent proxy server obtains the handshake message that user terminal is sent to WEB server;When determining IP address of the purpose IP address in the handshake message for preset target WEB server, the Transparent proxy server is according to first correspondence of purpose IP address, determine the type of service of the target service request message, which is VAS server and the correspondence of the IP address of the target WEB server.The embodiment of the present invention also provides a kind of Transparent proxy server, shortens the duration that the Transparent proxy server determines VAS server, the service message that user terminal is interacted with the WEB server is made to obtain the processing of the VAS server in time, for promoting user experience.
Description
Technical field
The present invention relates to the methods and Transparent proxy server of field of communication technology more particularly to a kind of Message processing.
Background technology
With the development of network, operator starts to provide value-added service for user terminal.For example, typical value-added service
Including:Virus filtration, page adaptation, video optimized etc..Different value-added service server (Value Added Server,
VAS) value-added service of different service types is provided.
In policy and charging control (Policy and Charging Control, PCC) framework, Transparent proxy server
Between user terminal and purpose WWW (World Wide Web, WEB) server, user terminal is to name server
(Domain Name System, DNS) initiates domain name analysis request, to obtain the IP address of WEB server, Transparent Proxy clothes
Business device builds connection between the user terminal and the WEB server, and the user terminal is by the IP address of WEB service IP as a purpose
Address sends service message to the WEB server, which detects (Deep Packet by depth data packet
Inspection, DPI) identify the type of service of the service message, and determine according to the type of service to handle the business
The VAS server of message, then the Transparent proxy server disconnects the connection between the user terminal and WEB server, and establishes
The connection between connection and the VAS server and WEB server between user terminal and the VAS server, so that the VAS
The service message of interaction between the server process user terminal and the WEB server, provides accordingly so as to fulfill for user terminal
Value-added service.
However, in the prior art, Transparent proxy server needs to establish connection between user terminal and WEB server
Afterwards, it is identified by the DPI service messages sent to user terminal, just can determine that VAS server, make data message timely
The processing of VAS server is obtained, influences user experience.
Invention content
An embodiment of the present invention provides a kind of method of Message processing, it can play and shorten the Transparent proxy server and determine
The duration of VAS server makes the service message that user terminal is interacted with the WEB server obtain the processing of the VAS server in time,
Promote user experience.
First aspect of the embodiment of the present invention provides a kind of method of Message processing, including:
Transparent proxy server obtains the handshake message that user terminal is sent to WEB server;
It is described when determining IP address of the purpose IP address in the handshake message for preset target WEB server
Transparent proxy server determines target VAS server, the correspondence is according to the destination IP address and correspondence
VAS server and the correspondence of the IP address of the target WEB server;
The Transparent proxy server is built between the user terminal, the target VAS server and the WEB server
Connection, the target VAS server is used to handle the service message that interacts between the user terminal and the WEB server.
With reference to the embodiment of the present invention in a first aspect, in the first realization method of first aspect of the embodiment of the present invention,
Determine that the purpose IP address of the handshake message is the IP address of preset target WEB server in the Transparent proxy server
It further includes before:The Transparent proxy server obtains the IP address of the target WEB server.
With reference to the first realization method of the first aspect of the embodiment of the present invention, the of first aspect of the embodiment of the present invention
In two kinds of realization methods, the IP address that the Transparent proxy server obtains the target WEB server includes:
The Transparent proxy server determines the domain name of the target WEB server;
The Transparent proxy server determines the target WEB server according to the domain name of the target WEB server
IP address;
The Transparent proxy server preserves the IP address of the target WEB server.
With reference to second of realization method of the first aspect of the embodiment of the present invention, the of first aspect of the embodiment of the present invention
In three kinds of realization methods, the Transparent proxy server determines that the domain name of target WEB server includes:
The Transparent proxy server determines first that the user terminal is parsed using the domain name of the first WEB server
Number and second number being parsed of domain name using the second WEB server, first number are more than second number;
If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that
The domain name of first WEB server is the domain name of the target WEB server.
With reference to the first realization method of the first aspect of the embodiment of the present invention, the of first aspect of the embodiment of the present invention
In four kinds of realization methods, the IP address that the Transparent proxy server obtains the target WEB server includes:
The Transparent proxy server determines that the user terminal sends the first of the first service message to the first WEB server
Number and second number that the second service message is sent to the second WEB server, first number is more than second number, described
First service message includes the first purpose IP address, and second service message includes the second purpose IP address;
If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that
First purpose IP address is the IP address of the target WEB server;
The Transparent proxy server preserves the IP address of the target WEB server.
With reference to the second of the first aspect of the embodiment of the present invention or the first realization method of first aspect or first aspect
Kind realization method or the third realization method of first aspect or the 4th kind of realization method of first aspect, in the embodiment of the present invention
In 5th kind of realization method of first aspect, the Transparent proxy server is according to the destination IP address and correspondence, really
The VAS server that sets the goal further includes before:The Transparent proxy server obtains the correspondence.
Second aspect of the embodiment of the present invention provides a kind of method of Message processing, including:
Transparent proxy server obtains the handshake message that is sent to WEB server of user terminal, the mesh in the handshake message
IP address be the WEB server IP address;
The Transparent proxy server determines the WEB server according to the destination IP address and the first correspondence
Domain name, first correspondence for WEB server domain name and WEB server IP address correspondence;
When the domain name for determining the WEB server is the domain name of preset target WEB server, the Transparent Proxy clothes
Device be engaged according to the domain name and the second correspondence of the WEB server, determines target VAS server, second correspondence
For VAS server and the correspondence of the domain name of the preset target WEB server;
The Transparent proxy server is built between the user terminal, the target VAS server and the WEB server
Connection, the target VAS server is used to handle the service message that interacts between the user terminal and the WEB server.
With reference to the second aspect of the embodiment of the present invention, in the first realization method of second aspect of the embodiment of the present invention,
Before the Transparent proxy server determines domain name of the domain name of the WEB server for preset target WEB server also
Including:The Transparent proxy server obtains the domain name of the destination server.
With reference to the first realization method of the second aspect of the embodiment of the present invention, the of second aspect of the embodiment of the present invention
In two kinds of realization methods, the domain name that the Transparent proxy server obtains the target WEB server includes:
The Transparent proxy server determines the IP address of the target WEB server;
The Transparent proxy server determines the target WEB server according to the IP address of the target WEB server
Domain name;
The Transparent proxy server preserves the domain name of the target WEB server.
With reference to second of realization method of the second aspect of the embodiment of the present invention, the of second aspect of the embodiment of the present invention
In three kinds of realization methods, the Transparent proxy server determines that the IP address of the target WEB server includes:
The Transparent proxy server determines that the user terminal sends the first of the first service message to the first WEB server
Number and second number that the second service message is sent to the second WEB server, first number is more than second number, described
First service message includes the first purpose IP address, and second service message includes the second purpose IP address;
If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that
First purpose IP address is the IP address of the target WEB server.
With reference to the first realization method of the second aspect of the embodiment of the present invention, the of second aspect of the embodiment of the present invention
In four kinds of realization methods, the domain name that the Transparent proxy server obtains the target WEB server includes:
The Transparent proxy server determines first that the user terminal is parsed using the domain name of the first WEB server
Number and second number being parsed of domain name using the second WEB server, first number are more than second number;
If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that
The domain name of first WEB server is the domain name of the target WEB server;
The Transparent proxy server preserves the domain name of the target WEB server.
With reference to the second of the second aspect of the embodiment of the present invention or the first realization method of second aspect or second aspect
Kind realization method or the third realization method of second aspect or the 4th kind of realization method of second aspect, in the embodiment of the present invention
In 5th kind of realization method of second aspect, corresponded to and closed according to the destination IP address and first in the Transparent proxy server
System determines to further include before the domain name of WEB server:The Transparent proxy server obtains first correspondence.
With reference to the second of the second aspect of the embodiment of the present invention or the first realization method of second aspect or second aspect
Kind realization method or the third realization method of second aspect or the 4th kind of realization method of second aspect, in the embodiment of the present invention
In 6th kind of realization method of second aspect, in the Transparent proxy server according to the domain name of the WEB server and second
Correspondence determines to further include before target VAS server:The Transparent proxy server obtains second correspondence.
The third aspect of the embodiment of the present invention provides a kind of Transparent proxy server, including:
Acquiring unit, for obtaining the handshake message that user terminal is sent to WEB server;
Determination unit, for being preset target WEB server when the purpose IP address in the determining handshake message
During IP address, according to the destination IP address and correspondence, target VAS server is determined, the correspondence is serviced for VAS
Device and the correspondence of the IP address of the target WEB server;
Construction unit, for building the company between the user terminal, the target VAS server and the WEB server
It connects, the target VAS server is used to handle the service message interacted between the user terminal and the WEB server.
With reference to the third aspect of the embodiment of the present invention, in the first realization method of the third aspect of the embodiment of the present invention,
The acquiring unit is additionally operable to obtain the IP address of the target WEB server.
With reference to the first realization method of the third aspect of the embodiment of the present invention, the of the third aspect of the embodiment of the present invention
In two kinds of realization methods, the acquiring unit is specifically used for determining the domain name of the target WEB server;
According to the domain name of the target WEB server, the IP address of the target WEB server is determined;
Preserve the IP address of the target WEB server.
With reference to second of realization method of the third aspect of the embodiment of the present invention, the of the third aspect of the embodiment of the present invention
In three kinds of realization methods, the acquiring unit is specifically used for determining that the user terminal is carried out using the domain name of the first WEB server
First number of parsing and second number being parsed of domain name using the second WEB server, first number is more than the
Two numbers;
If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that
The domain name of first WEB server is the domain name of the target WEB server.
With reference to the first realization method of the third aspect of the embodiment of the present invention, the of the third aspect of the embodiment of the present invention
In four kinds of realization methods, the acquiring unit is specifically used for determining that the user terminal sends the first business to the first WEB server
First number of message and second number that the second service message is sent to the second WEB server, first number is more than the
Two numbers, first service message include the first purpose IP address, and second service message includes the second purpose IP address;
If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that
First purpose IP address is the IP address of the target WEB server, preserves the IP address of the target WEB server.
With reference to the second of the third aspect of the embodiment of the present invention or the first realization method of the third aspect or the third aspect
Kind realization method or the third realization method of the third aspect or the 4th kind of realization method of the third aspect, in the embodiment of the present invention
In 5th kind of realization method of the third aspect, the acquiring unit is additionally operable to obtain the correspondence.
Fourth aspect of the embodiment of the present invention provides a kind of Transparent proxy server, including:
Acquiring unit, for obtaining the handshake message that user terminal is sent to WEB server, the purpose in the handshake message
IP address is the IP address of the WEB server;
Determination unit, for according to the destination IP address and the first correspondence, determining the domain of the WEB server
Name, correspondence of first correspondence for the domain name of WEB server and the IP address of WEB server;
The determination unit, it is the domain of preset target WEB server to be additionally operable to when the domain name for determining the WEB server
During name, according to the domain name of the WEB server and the second correspondence, target VAS server, second correspondence are determined
For VAS server and the correspondence of the domain name of the preset target WEB server;
Construction unit, for building the company between the user terminal, the target VAS server and the WEB server
It connects, the target VAS server is used to handle the service message interacted between the user terminal and the WEB server.
With reference to the fourth aspect of the embodiment of the present invention, in the first realization method of fourth aspect of the embodiment of the present invention,
The acquiring unit is additionally operable to obtain the domain name of the destination server.
With reference to the first realization method of the fourth aspect of the embodiment of the present invention, the of fourth aspect of the embodiment of the present invention
In two kinds of realization methods, the acquiring unit is specifically used for determining the IP address of the target WEB server;
According to the IP address of the target WEB server, the domain name of the target WEB server is determined;
Preserve the domain name of the target WEB server.
With reference to second of realization method of the fourth aspect of the embodiment of the present invention, the of fourth aspect of the embodiment of the present invention
In three kinds of realization methods, the acquiring unit is specifically used for determining that the user terminal sends the first business to the first WEB server
First number of message and second number that the second service message is sent to the second WEB server, first number is more than the
Two numbers, first service message include the first purpose IP address, and second service message includes the second purpose IP address;
If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that
First purpose IP address is the IP address of the target WEB server.
With reference to the first realization method of the fourth aspect of the embodiment of the present invention, the of fourth aspect of the embodiment of the present invention
In four kinds of realization methods, the acquiring unit is specifically used for determining that the user terminal is carried out using the domain name of the first WEB server
First number of parsing and second number being parsed of domain name using the second WEB server, first number is more than the
Two numbers;
If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that
The domain name of first WEB server is the domain name of the target WEB server;
Preserve the domain name of the target WEB server.
With reference to the second of the fourth aspect of the embodiment of the present invention or the first realization method of fourth aspect or fourth aspect
Kind realization method or the third realization method of fourth aspect or the 4th kind of realization method of fourth aspect, in the embodiment of the present invention
In 5th kind of realization method of fourth aspect, the acquiring unit is additionally operable to first correspondence.
With reference to the second of the fourth aspect of the embodiment of the present invention or the first realization method of fourth aspect or fourth aspect
Kind realization method or the third realization method of fourth aspect or the 4th kind of realization method of fourth aspect, in the embodiment of the present invention
In 6th kind of realization method of fourth aspect, the acquiring unit is additionally operable to obtain second correspondence.
The 5th aspect of the embodiment of the present invention provides a kind of Transparent proxy server, including processor, memory, bus and leads to
Believe interface;
For storing computer executed instructions, the processor is connected the memory with the memory by the bus
It connects, when the mobility management entity is run, the computer execution that the processor performs the memory storage refers to
It enables, so that the method that the mobility management entity performs the Message processing as described in any one of claim 1 to 13.
Advantage specific as follows of the embodiment of the present invention:
Transparent proxy server obtains user terminal and is sent out to the WEB server when user terminal and WEB server are established and connected
The handshake message sent, and when the purpose IP address for determining handshake message is the IP address of preset target WEB server, according to
VAS server and the correspondence of the IP address of the target WEB server determine VAS server, come relative to the prior art
Say, establish and connect without user terminal and the WEB server, you can determine VAS server, make user terminal and the WEB server it
Between the service message of interaction obtain the processing of VAS server in time, promote user experience.
Description of the drawings
Fig. 1 is the embodiment schematic diagram of a kind of message processing method that the embodiment of the present invention one provides;
Fig. 2 is a kind of embodiment schematic diagram of message processing method provided by Embodiment 2 of the present invention;
Fig. 3 is the embodiment schematic diagram of a kind of message processing method that the embodiment of the present invention three provides;
Fig. 4 is the embodiment schematic diagram of a kind of message processing method that the embodiment of the present invention four provides;
Fig. 5 is the embodiment schematic diagram of a kind of message processing method that the embodiment of the present invention five provides;
Fig. 6 is the embodiment schematic diagram of a kind of Transparent proxy server that the embodiment of the present invention six and embodiment seven provide;
Fig. 7 is the embodiment schematic diagram of a kind of Transparent proxy server that the embodiment of the present invention eight provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Referring to Fig. 1, a kind of message processing method in the embodiment of the present invention one includes:
101st, Transparent proxy server obtains the handshake message that user terminal is sent to WEB server.
It is understood that Transparent proxy server is operated under Transparent Proxy pattern, positioned at user terminal and WEB server
Between, the data message that is generated when user terminal and WEB server interact can all pass through the Transparent proxy server,
When the user terminal needs to need to establish connection with WEB server, due in ICP/IP protocol, being established using three-way handshake
The mode of connection, when shaking hands for the first time, the user terminal can send handshake message to WEB server, and Transparent Proxy takes at this time
Business device can obtain the handshake message, and the Transparent proxy server can identify the purpose IP address in handshake message.
102nd, when determining IP address of the purpose IP address in the handshake message for preset target WEB server,
The Transparent proxy server determines target VAS server, the correspondence according to the destination IP address and correspondence
For VAS server and the correspondence of the IP address of the target WEB server.
It is understood that the IP address of target WEB server is previously provided in the Transparent proxy server, institute
Stating Transparent proxy server can by the IP of the purpose IP address identified from handshake message and preset target WEB service
Location is compared, as the IP for judging that the destination IP address is target WEB service preset in the Transparent proxy server
During address, the Transparent proxy server can be according to the destination IP address, VAS server and the target WEB server
IP address correspondence, determine target VAS server.
103rd, the Transparent proxy server builds the user terminal, the target VAS server and the WEB server
Between connection, the target VAS server is used to handle the datagram that interacts between the user terminal and the WEB server
Text.
It is understood that specific VAS server is used to handle the data message of one or more types of service, when obtaining
When getting the data message that user terminal is sent to the WEB server, the Transparent proxy server can be by the datagram
Text is forwarded to the target VAS server, and the target VAS server is made to rise in value the data message received accordingly
Business processing, and be sent to the WEB server, the WEB server is to the data message of the client feeds back
It can be handled by the VAS server.
In the embodiment of the present invention,
Transparent proxy server obtains user terminal and is sent out to the WEB server when user terminal and WEB server are established and connected
The handshake message sent, and when the purpose IP address for determining handshake message is the IP address of preset target WEB server, according to
VAS server and the correspondence of the IP address of the target WEB server determine VAS server, come relative to the prior art
Say, establish and connect without user terminal and the WEB server, you can determine VAS server, make user terminal and the WEB server it
Between the service message of interaction obtain the processing of VAS server in time, promote user experience.
In a kind of message processing method described in embodiment one, when determining that the purpose IP address in the handshake message is
During the IP address of preset target WEB server, in practical applications, the IP address of the target WEB server can be matched
Put what in Transparent proxy server or described Transparent proxy server was got.Wherein, the Transparent Proxy clothes
The IP address for the device acquisition target WEB server of being engaged in can be various ways, specific as follows:
First, the Transparent proxy server obtains the IP address of the target WEB server, specially:The transparent generation
Reason server determines the domain name of the target WEB server;The Transparent proxy server is according to the target WEB server
Domain name determines the IP address of the target WEB server;The Transparent proxy server preserves the target WEB server
IP address.
Referring to Fig. 2, a kind of method of Message processing in the embodiment of the present invention two includes:
201st, Transparent proxy server obtains the handshake message that user terminal is sent to WEB server.
It is understood that the Transparent proxy server is operated under Transparent Proxy pattern, the transparent agent service
Device is deployed between user terminal and WEB server, for the proxy server that user terminal and WEB server do not perceive, user terminal
The data message generated when being interacted with WEB server can all pass through the Transparent proxy server, such as in PCC frameworks
In, the Transparent proxy server is PCEF/TDF.
When the user terminal needs to carry out just company of establishing with WEB server, the user terminal and the WEB server it
Between the handshake message that generates will pass through Transparent proxy server, Transparent proxy server can obtain handshake message at this time, and know
Do not go out the purpose IP address in the handshake message, such as in ICP/IP protocol, in a manner that three-way handshake establishes connection,
When shaking hands for the first time, the user terminal can send synchronous (synchronous, syn) handshake message to WEB server, at this time thoroughly
Bright proxy server can obtain the syn handshake message, and the Transparent proxy server can recognize that the syn shakes hands report
Purpose IP address in text.
User terminal can be that the mobile terminals such as mobile phone, tablet computer or laptop etc. can access network
Equipment, this is not limited here.
Optionally, 202 and 203 are further included after 201 in the present embodiment.
202nd, the Transparent proxy server determines the domain name of the target WEB server, and is taken according to the target WEB
The domain name of business device determines the IP address of the target WEB server, preserves the IP address of the target WEB server.
It is understood that before user terminal sends service message to WEB server, which would generally be by WEB
The domain name of server is sent to dns server and carries out domain name mapping, which takes after parsing through the Transparent Proxy
Business device includes the query result of WEB server IP address to client feeds back.Wherein, the Transparent proxy server determines described
The mode of the IP address of target WEB server is specifically as follows:Using the domain name that the user terminal is sent to as target WEB service
The domain name of device, by the dns server after parsing, described in the IP address that is included into the query result of client feeds back is used as
The IP address of target WEB server;Alternatively, the Transparent proxy server can also use WEB server by recording user terminal
The number that domain name is parsed determines that the IP address of target WEB server, such as Transparent proxy server record user terminal use
It first number that the domain name of first WEB server is parsed and is parsed using the second domain name of the second WEB server
Second number, it is described when first number is greater than or equal to the preset proportion of the sum of first number and second number
Transparent proxy server can using the domain name of first WEB server as the domain name of the target WEB server, and according to
The query result of the dns server feedback determines the corresponding IP address of domain name of the target WEB server, i.e. target WEB
The IP address of server.
It should be noted that the preset proportion in the present embodiment is 90%, in practical applications, the preset proportion
It can be set according to actual needs, this is not limited here.
In the present embodiment, the Transparent proxy server is taken after the domain name for determining target WEB server by DNS
The query result of business device feedback determines the target WEB server IP address, in practical applications, the Transparent proxy server
Can also the target WEB clothes be determined by the correspondence of the IP address of the domain name and WEB server of WEB server
The IP address of business device, this is not limited here.
The correspondence of the domain name of the WEB server and the IP address of the WEB server can be pre-configured in
The domain name pair that in the Transparent proxy server or described Transparent proxy server is fed back by domain name and DNS
The IP address structure answered, this is not limited here.
203rd, it is corresponding with the IP address of the target WEB server to obtain VAS server for the Transparent proxy server
Relationship.
It is understood that the Transparent proxy server can pass through the data to user terminal to target WEB server
Message is sampled detection, generates the correspondence, specially:The Transparent proxy server is detected by depth data packet
(Deep Packet Inspection, DPI) analyzes the purpose IP address in data from the sample survey message, i.e. target WEB server
IP address, and track and record the VAS server that the data message passes through, the Transparent proxy server is according to the target
The VAS server that the IP address of WEB server and the data message pass through, generates the correspondence, and by the correspondence
Relationship is preserved.
It should be noted that the correspondence can be the Transparent proxy server obtain or other
After equipment gets the correspondence, it is pre-configured in the Transparent proxy server, this is not limited here.
The VAS server is for handling certain types of data message, for example virus filtration, page adaptation, video are excellent
Change etc., this is not limited here.
User terminal passes through transmission control protocol (Transmission Control Protocol, TCP) or other agreements
It sends datagram to WEB server, this is not limited here.
204th, the Transparent proxy server judges whether the purpose IP address in the handshake message is preset target
The IP address of WEB server, if it is not, step 205 is then performed, if so, performing step 206.
The Transparent proxy server can parse the purpose IP address in the handshake message, and will parse what is obtained
Purpose IP address is compared with the IP address of target WEB server, so as to judge the destination IP in the target data message
Address whether be target WEB server IP address.
205th, the Transparent proxy server establishes the connection between the user terminal and WEB server.
When the purpose IP address that Transparent proxy server is judged in the target data message is not target WEB server
IP address when, the Transparent proxy server establishes the connection between the user terminal and WEB server.
206th, the Transparent proxy server determines target VAS server according to the destination IP address and correspondence,
The correspondence is VAS server and the correspondence of the IP address of the target WEB server.
When the Transparent proxy server determines the IP address that the destination IP address is target WEB server, according to
The VAS server and the correspondence of the IP address of the target WEB server, determine target VAS server.
207th, the Transparent proxy server builds the user terminal, the VAS server and the target WEB server
Between connection, the target VAS server is used to handle the datagram that interacts between the user terminal and the WEB server
Text.
It is understood that VAS server can provide value-added service processing for the data message of specific type of service,
For example video optimized server is used for the data message that processing business type is video traffic, in hypertext transfer protocol
In (Hypertext transfer protocol, HTTP), the content type of the video traffic request report includes:video/
Mp4, video/x-flv, video/x-f4v etc.;Page adaptation server is page adaptation business for processing business type
Data message, in http protocol, the content type of the page adaptation data message includes:text/html、
application/vnd.wap.xhtml、application/xhtml+xml、ext/vnd.wap.wml、application/
Vnd.wap.wmlc, image/jpeg, image/gif, image/png etc.;Content insertion server is used for processing business type
For the data message of content Insert service, in http protocol, the content type that the content is inserted into data message includes:
Text/html, application/vnd.wap.xhtml, application/xhtml+xml etc..
It should be noted that the VAS server can handle one or more data messages, such as VAS services simultaneously
Device can handle video data message and page adaptation data message simultaneously, and this is not limited here.
The Transparent proxy server include for connect with user terminal port, for what is connect with VAS server
Port and for the port with WEB server, is determining VAS server, the Transparent proxy server can according to handshake message
Communication port is established with the port that the VAS server is connect with the port connected according to the user terminal, so as to fulfill structure
Connection between user terminal, target VAS server and target WEB server.The use is established in the Transparent proxy server
After being connected between family end and the VAS server, the target VAS server can handle the target VAS server and use
The data message interacted between the processing user terminal and the WEB server.
In the embodiment of the present invention, the accounting for the number that the Transparent proxy server translates domain names into is greater than or equal to 90%
Domain name of the domain name as target WEB server, can determine the target further according to the domain name of the target WEB server
The IP address of WEB server, that is to say, that user terminal is high using the IP Address Velocity of the target WEB server, therefore according to this
The IP address of destination server and the correspondence of VAS server, the success rate that can improve determining target VAS server are high.
2nd, the Transparent proxy server obtains the IP address of the target WEB server, specially:The transparent generation
Reason server determines that the user terminal sends first number of first data message and transmission second to the WEB server
Second number of data message, first number are more than second number, and first data message is including the first destination IP
Location, second data message include the second purpose IP address;If first number be greater than or equal to first number and
During the preset proportion of the sum of second number, it is determined that first purpose IP address is the IP address of the target WEB server;
The Transparent proxy server preserves the IP address of the target WEB server.
Referring to Fig. 3, a kind of method for Message processing that the embodiment of the present invention three provides includes:
301st, Transparent proxy server obtains the handshake message that user terminal is sent to WEB server.
It is understood that the Transparent proxy server is operated under Transparent Proxy pattern, the transparent agent service
Device is deployed between user terminal and WEB server, for the proxy server that user terminal and WEB server do not perceive, user terminal
The data message generated when being interacted with WEB server can all pass through the Transparent proxy server, such as in PCC frameworks
In, the Transparent proxy server is PCEF/TDF.
When the user terminal needs to carry out just company of establishing with WEB server, the user terminal and the WEB server it
Between the handshake message that generates will pass through Transparent proxy server, Transparent proxy server can obtain handshake message at this time, and know
Do not go out the purpose IP address in the handshake message, such as in ICP/IP protocol, in a manner that three-way handshake establishes connection,
When shaking hands for the first time, the user terminal can send synchronous (synchronous, syn) handshake message to WEB server, at this time thoroughly
Bright proxy server can obtain the syn handshake message, and the Transparent proxy server can recognize that the syn shakes hands report
Purpose IP address in text.
User terminal can be that the mobile terminals such as mobile phone, tablet computer or laptop etc. can access network
Equipment, this is not limited here.
Optionally, after step 301,302,303 and 304 are further included.
302nd, the Transparent proxy server determines that the user terminal sends first datagram to the WEB server
First number of text and second number for sending the second data message, first number are more than second number, first number
Include the first purpose IP address according to message, second data message includes the second purpose IP address.
It is understood that when user terminal sends datagram to the WEB server, the Transparent proxy server
The user terminal can be obtained to send datagram to WEB server, and record the user terminal and sent to the WEB server
The number of data message, the Transparent proxy server can also analyze the data message got, with described in acquisition
Purpose IP address in data message, such as the Transparent proxy server record the user terminal and are sent out to the first WEB server
It send first number of the first data message and second number of the second data message is sent to the second WEB server, and analyze
Go out the second purpose IP address in the first purpose IP address and the second data message in first data message.
If the 303rd, first number is greater than or equal to the preset proportion of the sum of first number and second number, institute
The IP address that Transparent proxy server determines that first purpose IP address is the target WEB server is stated, and described in preservation
The IP address of target WEB server.
It is understood that the Transparent proxy server can first number whether be more than second number,
And judge whether first number is greater than or equal to the preset proportion of the sum of first number and second number, when described
Transparent proxy server judges that first number is more than second number, and first number is more than or equal to described the
During the preset proportion of the sum of number and second number, using first purpose IP address as the IP of target WEB server
Location, and the IP address of the target WEB server is stored in the Transparent proxy server.
It should be noted that the preset proportion in the present embodiment is 90%, in practical applications, the preset proportion
It can be set according to actual needs, this is not limited here.
304th, it is corresponding with the IP address of the target WEB server to obtain VAS server for the Transparent proxy server
Relationship.
305th, the Transparent proxy server judges whether the purpose IP address in the handshake message is preset target
The IP address of WEB server, if it is not, step 306 is then performed, if so, performing step 307.
306th, the Transparent proxy server establishes the connection between the user terminal and WEB server.
307th, the Transparent proxy server determines target VAS server according to the destination IP address and correspondence,
The correspondence is VAS server and the correspondence of the IP address of the target WEB server.
308th, the Transparent proxy server builds the user terminal, the VAS server and the target WEB server
Between connection, the target VAS server is used to handle the datagram that interacts between the user terminal and the WEB server
Text.
In the embodiment of the present invention, in the embodiment of the present invention, the Transparent proxy server determines user terminal transmission times
Accounting is greater than or equal to 90% service message, and using the purpose IP address in the service message as target WEB server
IP address, that is to say, that the user terminal is high using the IP Address Velocity of the target WEB server, therefore according to the destination service
The IP address of device and the correspondence of VAS server, can improve the success rate for determining target VAS server.
In a kind of method of Message processing described in above example, preset target in the Transparent proxy server
The IP address of WEB server, in practical applications, can also preset target WEB server in the Transparent proxy server
Domain name is below described another message processing method in the embodiment of the present invention:
Referring to Fig. 4, a kind of method for Message processing that the embodiment of the present invention four provides includes:
401st, Transparent proxy server obtains the handshake message that is sent to WEB server of user terminal, in the handshake message
IP address is the IP address of the WEB server.
It is understood that the Transparent proxy server is operated under Transparent Proxy pattern, the transparent agent service
Device is deployed between user terminal and WEB server, for the proxy server that user terminal and WEB server do not perceive, user terminal
The data message generated when being interacted with WEB server can all pass through the Transparent proxy server, such as in PCC frameworks
In, the Transparent proxy server is PCEF/TDF.
When the user terminal needs to carry out just company of establishing with WEB server, the user terminal and the WEB server it
Between the handshake message that generates will pass through Transparent proxy server, Transparent proxy server can obtain handshake message at this time, and know
Do not go out the purpose IP address in the handshake message, such as in ICP/IP protocol, in a manner that three-way handshake establishes connection,
When shaking hands for the first time, the user terminal can send synchronous (synchronous, syn) handshake message to WEB server, at this time thoroughly
Bright proxy server can obtain the syn handshake message, and the Transparent proxy server can recognize that the syn shakes hands report
Purpose IP address in text.
User terminal can be that the mobile terminals such as mobile phone, tablet computer or laptop etc. can access network
Equipment, this is not limited here.
402nd, the Transparent proxy server determines WEB server according to the destination IP address and the first correspondence
Domain name, first correspondence for WEB server domain name and WEB server IP address correspondence.
The Transparent proxy server obtains purpose IP address from the handshake message got, and the destination IP address is
The IP address of WEB server, according to the correspondence of the domain name of WEB server and the IP address of WEB server, it may be determined that described
The IP address of WEB server.
403rd, when the domain name for determining the WEB server is the domain name of preset target WEB server, the transparent generation
Domain name and first correspondence of the server according to the WEB server are managed, determines the type of service of the target data message,
First correspondence is VAS server and the correspondence of the domain name of the target WEB server.
The Transparent proxy server can judge whether the domain name of WEB server is pre- in the Transparent proxy server
The domain name of target WEB server put, when the domain name for judging the WEB server is preset in the Transparent proxy server
Target WEB service domain name when, according to the correspondence of VAS server and the domain name of the destination server, determine target
VAS server.
404th, the Transparent proxy server builds the user terminal, the target VAS server and the WEB server
Between connection, the target VAS server is used to handle the datagram that interacts between the user terminal and the WEB server
Text.
It is understood that specific VAS server is used to handle the data message of one or more types of service, when obtaining
When getting the data message that user terminal is sent to the WEB server, the Transparent proxy server can be by the datagram
Text is forwarded to the target VAS server, and the target VAS server is made to rise in value the data message received accordingly
Business processing, and be sent to the WEB server, the WEB server is to the data message of the client feeds back
It can be handled by the VAS server.
In the embodiment of the present invention, Transparent proxy server is determined according to the IP address and the first correspondence of WEB server
The domain name of the corresponding WEB server of purpose IP address of data message, when the domain name for judging the WEB server is preset
During the domain name of target WEB server, according to the domain name of the WEB server and the second correspondence, VAS server is determined, from
And shorten the duration that the Transparent proxy server determines target VAS server, service message is made to obtain the place of VAS server in time
Reason promotes user experience.
In above-described embodiment four, the Transparent proxy server is corresponded to according to the domain name of the WEB server and second and is closed
System, determine the target VAS server, in practical applications, second correspondence can be pre-configured in it is described
In bright proxy server, or what the Transparent proxy server was got, below to the Transparent proxy server
Second correspondence is obtained to be described in detail:
Referring to Fig. 5, a kind of method for Message processing that the embodiment of the present invention five provides includes:
501st, Transparent proxy server obtains the handshake message that is sent to WEB server of user terminal, in the handshake message
IP address is the IP address of the WEB server.
It is understood that the Transparent proxy server is operated under Transparent Proxy pattern, the transparent agent service
Device is deployed between user terminal and WEB server, for the proxy server that user terminal and WEB server do not perceive, user terminal
The data message generated when being interacted with WEB server can all pass through the Transparent proxy server, such as in PCC frameworks
In, the Transparent proxy server is PCEF/TDF.
When the user terminal needs to carry out just company of establishing with WEB server, the user terminal and the WEB server it
Between the handshake message that generates will pass through Transparent proxy server, Transparent proxy server can obtain handshake message at this time, and know
Do not go out the purpose IP address in the handshake message, such as in ICP/IP protocol, in a manner that three-way handshake establishes connection,
When shaking hands for the first time, the user terminal can send synchronous (synchronous, syn) handshake message to WEB server, at this time thoroughly
Bright proxy server can obtain the syn handshake message, and the Transparent proxy server can recognize that the syn shakes hands report
Purpose IP address in text.
User terminal can be that the mobile terminals such as mobile phone, tablet computer or laptop etc. can access network
Equipment, this is not limited here.
Optionally, after step 501, step 502,503 and 504 are further included.
502nd, the Transparent proxy server obtains the domain name pass corresponding with the IP address of WEB server of WEB server
System.
It is understood that before user terminal sends service message to WEB server, which would generally be by WEB
The domain name of server is sent to dns server and carries out domain name mapping, which takes after parsing through the Transparent Proxy
Business device includes the query result of WEB server IP address to client feeds back, at this point, the Transparent proxy server can basis
The domain name that the query result and the user terminal of the dns server feedback are sent determines domain name and the institute of the WEB server
State the correspondence of the IP address of WEB server.
503rd, the Transparent proxy server obtains the domain name of the target WEB server.
The mode that the Transparent proxy server obtains the domain name of the target WEB server includes at least the following two kinds:
First, the Transparent proxy server determines the IP address of the target WEB server, and according to the target WEB
The IP address of server determines the domain name of the target WEB server, preserves the domain name of the target WEB server.
It should be noted that in the present embodiment, the Transparent proxy server is with determining the IP of the target WEB server
The mode of location is specially:The Transparent proxy server records the number that the user terminal sends service message to WEB server,
And by the purpose IP address in the more service message of transmission times, as the IP address of target WEB server, such as it is described
Bright proxy server records user terminal and sends first number of the first service message to the first WEB server and taken to the 2nd WEB
Business device sends second number of the second service message, if first number is more than second number, and first number is big
In or equal to the sum of first number and second number 90% when, then by the first destination IP in first service message
IP address of the address as target WEB server, in practical applications, the Transparent proxy server will can also be obtained directly
To the user terminal send service message in IP address, as the IP address of target WEB server, alternatively, described
Bright proxy server can also determine the IP address of the target WEB server by other means, and this is not limited here.
Transparent proxy server described in the embodiment of the present invention determines that user terminal transmission times accounting is greater than or equal to
90% service message, and using the purpose IP address in the service message as the IP address of target WEB server, that is,
It says, the user terminal is high using the IP Address Velocity of the target WEB server, according to the IP address of the server and the server
The domain name of target WEB server that the correspondence of domain name determines also just says that user terminal uses the domain of the target WEB server
Name frequency is high, the correspondence of VAS server, and the success rate that can improve determining target VAS server is high.
It should be noted that the accounting of the sum of first number and first number and second number can be according to reality
Border is set, and the preset proportion in the present embodiment is 90%, and this is not limited here.
The Transparent proxy server determines the target WEB server according to the IP address of the target WEB server
The mode of domain name be specially:The Transparent proxy server takes according to the IP address of the target WEB server and the WEB
The correspondence of the domain name of device of being engaged in and the IP address of the WEB server determines the domain name of the target WEB server, in reality
In the application of border, the Transparent proxy server can also be determined according to other modes, and this is not limited here.
2nd, the number that the Transparent proxy server is parsed according to user terminal using the domain name of WEB server, and will
Domain name of the high domain name of domain name mapping number accounting as destination server.
For example, the Transparent proxy server determines that the user terminal is carried out using the domain name of the first WEB server
First number of parsing and second number being parsed of domain name using the second WEB server, if first number is more than
Second number, and when first number is greater than or equal to the preset proportion of the sum of first number and second number, then
Using the domain name of first WEB server as in the embodiment of the present invention, the Transparent proxy server translates domain names into
Number domain name domain name as target WEB server of the accounting more than or equal to 90%, that is to say, that user terminal uses this
The domain name frequency of target WEB server is high, therefore according to the domain name of the destination server and the correspondence of VAS server, can
To improve the success rate for determining target VAS server.
It should be noted that the accounting of the number of domain name mapping can be set according to actual needs, in the present embodiment
Domain name mapping number accounting for 90%, this is not limited here.
504th, the Transparent proxy server obtains VAS server and the domain name of the preset target WEB server
Correspondence.
It is understood that the service message that the Transparent proxy server is sent in acquisition user terminal to WEB server
When, the Transparent proxy server can analyze the purpose IP address of the service message, the proxy server by DPI
Can be according to the destination IP address and first correspondence, so that it is determined that the domain name of the WEB server, and track note
Record the VAS server that the data message passes through, the Transparent proxy server is according to the IP address of the target WEB server
The VAS server passed through with the data message, generates the correspondence, and the correspondence is preserved.
It should be noted that the correspondence can be the Transparent proxy server obtain or other
After equipment gets the correspondence, it is pre-configured in the Transparent proxy server, this is not limited here.
505th, the Transparent proxy server is determined according to the purpose IP address and the first correspondence of the handshake message
The domain name of the WEB server.
The Transparent proxy server ability parses the purpose IP address in handshake message, and according to the WEB got
The correspondence of the domain name of server and the IP address of WEB server determines the domain name of the WEB server.
506th, judge the WEB server domain name whether be preset target WEB server domain name, if so, holding
Row step 507, if so, performing step 508.
The domain name of WEB server can be compared with the domain name of target WEB service for the Transparent proxy server, from
And judge the WEB server domain name whether be preset target WEB server domain name.
507th, the Transparent proxy server establishes the connection between the user terminal and WEB server.
508th, the Transparent proxy server determines target VAS server according to the destination IP address and correspondence,
The correspondence is VAS server and the correspondence of the IP address of the target WEB server.
When the Transparent proxy server determines the IP address that the destination IP address is target WEB server, according to
The VAS server and the correspondence of the IP address of the target WEB server, determine target VAS server.
509th, the Transparent proxy server builds the user terminal, the VAS server and the target WEB server
Between connection, the target VAS server is used to handle the datagram that interacts between the user terminal and the WEB server
Text.
509 in the present embodiment can be used the method identical with embodiment two, and details are not described herein again.
In the embodiment of the present invention, Transparent proxy server is determined according to the IP address and the first correspondence of WEB server
The domain name of the corresponding WEB server of purpose IP address of data message, when the domain name for judging the WEB server is preset
During the domain name of target WEB server, according to the domain name of the WEB server and the second correspondence, VAS server is determined, from
And shorten the duration that the Transparent proxy server determines target VAS server, service message is made to obtain the place of VAS server in time
Reason promotes user experience.
The method part of the embodiment of the present invention is described above, below to the device part of the embodiment of the present invention into
Row description, referring to Fig. 6, the Transparent proxy server that the embodiment of the present invention six provides includes:
Acquiring unit 601, for obtaining the handshake message that user terminal is sent to WEB server.
Optionally, the acquiring unit 601 is additionally operable to obtain the IP address of the target WEB server.
Wherein, the acquiring unit 601 obtain the IP address of the target WEB server mode include at least following two
Kind:
First, the acquiring unit 601 is by determining the domain name of the target WEB server, and is taken according to the target WEB
The domain name of business device determines the IP address of the target WEB server, then preserves the IP address of the target WEB server again.
It should be noted that the acquiring unit 601 determines the domain name of the target WEB server, can specifically pass through
Determine first number that the user terminal parsed using the domain name of the first WEB server and using the second WEB server
Second number that domain name is parsed, first number are more than second number, if first number is more than or equal to described
During the preset proportion of the sum of first number and second number, it is determined that the domain name of first WEB server is the target WEB
The domain name of server.
2nd, the acquiring unit 601 is by determining that the user terminal sends the first service message to the first WEB server
First number and second number that the second service message is sent to the second WEB server, first number are more than second number,
First service message includes the first purpose IP address, and second service message includes the second purpose IP address;It is if described
When first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that first destination IP
Address is the IP address of the target WEB server, then preserves the IP address of the target WEB server.
Optionally, the acquiring unit 601 is additionally operable to obtain the correspondence.
Determination unit 602, for being preset target WEB server when the purpose IP address in the determining handshake message
IP address when, according to the destination IP address and correspondence, determine target VAS server, the correspondence is VAS clothes
The correspondence of the IP address for device and the target WEB server of being engaged in.
Construction unit 603, for building between the user terminal, the target VAS server and the WEB server
Connection, the target VAS server are used to handle the service message interacted between the user terminal and the WEB server.
In embodiment six, Transparent proxy server by the IP address of preset target WEB server with from handshake message
In the purpose IP address that gets matched, and utilize the preset IP address of target WEB server and pair of VAS server
It should be related to determining target VAS server, in practical applications, the Transparent proxy server can also pass through preset target
The domain name of WEB server and the correspondence of VAS server, so that it is determined that target VAS server.
Below please continue to refer to Fig. 6, a kind of Transparent proxy server provided the embodiment of the present invention seven is described, and has
Body includes:
Acquiring unit 601, for obtaining the handshake message that user terminal is sent to WEB server, in the handshake message
Purpose IP address is the IP address of the WEB server
Optionally, the acquiring unit 601 is additionally operable to obtain the domain name of the destination server.
Wherein, the acquiring unit 601 is additionally operable to obtain the mode of the domain name of the destination server including at least as follows
Two kinds:
First, the acquiring unit 601 is by determining the IP address of the target WEB server, and according to the target WEB
The IP address of server determines the domain name of the target WEB server, then the domain name of the target WEB server is protected
It deposits.
It should be noted that the acquiring unit 601 determines that the IP address of the target WEB server can specifically pass through
Determine that the user terminal sends first number of the first service message to the first WEB server and sent to the second WEB server
Second number of the second service message, first number are more than second number, and first service message includes the first purpose
IP address, second service message include the second purpose IP address;If first number is greater than or equal to the first time
During the preset proportion of number and the sum of second number, it is determined that IP of first purpose IP address for the target WEB server
Address.
2nd, the acquiring unit 601 can be by determining that the user terminal is solved using the domain name of the first WEB server
First number of analysis and second number being parsed of domain name using the second WEB server, first number is more than second
Number;If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that institute
The domain name for stating the first WEB server is the domain name of the target WEB server, then by the domain name of the target WEB server
It is preserved.
Optionally, the acquiring unit 601 is additionally operable to obtain first correspondence.
Optionally, the acquiring unit 601 is additionally operable to obtain second correspondence.
Determination unit 602, for according to the destination IP address and the first correspondence, determining the WEB server
Domain name, correspondence of first correspondence for the domain name of WEB server and the IP address of WEB server;
The determination unit 602, it is preset target WEB server to be additionally operable to when the domain name for determining the WEB server
Domain name when, according to the domain name of the WEB server and the second correspondence, determine target VAS server, described second corresponds to
Relationship is VAS server and the correspondence of the domain name of the preset target WEB server;
Construction unit 603, for building between the user terminal, the target VAS server and the WEB server
Connection, the target VAS server are used to handle the service message interacted between the user terminal and the WEB server.
In the embodiment of the present invention, Transparent proxy server is by acquiring unit 601, with obtaining destination IP in handshake message
Location, and when determination unit 602 determines the IP address that the destination IP address is WEB server, according to the IP of WEB server
Location and the first correspondence determine the domain name of the corresponding WEB server of purpose IP address of data message, described when judging
When the domain name of WEB server is the domain name of preset target WEB server, according to the domain name of the WEB server and second pair
It should be related to, determine VAS server, construction unit 603 is recycled to build the user terminal, the target VAS server and described
Connection between WEB server makes the VAS server handle the industry interacted between the user terminal and the WEB server
Business message, the duration of target VAS server is determined so as to shorten the Transparent proxy server, service message is made to obtain VAS in time
The processing of server promotes user experience.
Such as Fig. 7, for a kind of Transparent proxy server that the embodiment of the present invention eight provides, the Transparent proxy server 700
It can include:
Processor 701, memory 702, bus 704 and communication interface 705.Processor 701, memory 702 and communication connect
It is connected between mouth 705 by bus 704 and completes mutual communication.
Processor 701 may be that single or multiple core central processing unit is either specific integrated circuit or is to be configured
Into the one or more integrated circuits for implementing the embodiment of the present invention.
Memory 702 can be high-speed RAM memory, or nonvolatile memory (non-volatile
Memory), a for example, at least magnetic disk storage.
Memory 702 is used for computer executed instructions 703.Specifically, program can be included in computer executed instructions 703
Code.
When described device is run, processor 701 runs computer executed instructions 703, and it is arbitrary can to perform Fig. 1 to Fig. 5
One of message processing method described in corresponding embodiment of the method.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of division of logic function can have other dividing mode, such as multiple units or component in actual implementation
It may be combined or can be integrated into another system or some features can be ignored or does not perform.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit
It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
It embodies, which is stored in a storage medium, is used including some instructions so that a computer
Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the present invention
Portion or part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Embodiment is stated the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding
The technical solution recorded in each embodiment is stated to modify or carry out equivalent replacement to which part technical characteristic;And these
Modification is replaced, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.
Claims (27)
- A kind of 1. method of Message processing, which is characterized in that including:Transparent proxy server obtains the handshake message that user terminal is sent to WEB server;It is described transparent when determining IP address of the purpose IP address in the handshake message for preset target WEB server Proxy server determines target VAS server, the correspondence takes for VAS according to the destination IP address and correspondence The correspondence of the IP address for device and the target WEB server of being engaged in;The Transparent proxy server builds the company between the user terminal, the target VAS server and the WEB server It connects, the target VAS server is used to handle the service message interacted between the user terminal and the WEB server.
- 2. according to the method described in claim 1, it is characterized in that, determine the handshake message in the Transparent proxy server Purpose IP address for preset target WEB server IP address before further include:The Transparent proxy server obtains institute State the IP address of target WEB server.
- 3. according to the method described in claim 2, it is characterized in that, the Transparent proxy server obtains the target WEB clothes The IP address of business device includes:The Transparent proxy server determines the domain name of the target WEB server;The Transparent proxy server is according to the domain name of the target WEB server, with determining the IP of the target WEB server Location;The Transparent proxy server preserves the IP address of the target WEB server.
- 4. according to the method described in claim 3, it is characterized in that, the Transparent proxy server determines target WEB server Domain name include:The Transparent proxy server determines first number that the user terminal is parsed using the domain name of the first WEB server With second number that the domain name of the second WEB server is used to be parsed, first number is more than second number;If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that described The domain name of first WEB server is the domain name of the target WEB server.
- 5. according to the method described in claim 2, it is characterized in that, the Transparent proxy server obtains the target WEB clothes The IP address of business device includes:The Transparent proxy server determines that the user terminal sends first number of the first service message to the first WEB server With second number that the second service message is sent to the second WEB server, first number is more than second number, and described first Service message includes the first purpose IP address, and second service message includes the second purpose IP address;If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that described First purpose IP address is the IP address of the target WEB server;The Transparent proxy server preserves the IP address of the target WEB server.
- 6. the method according to any one of claims 1 to 5, it is characterized in that, the Transparent proxy server according to The destination IP address and correspondence determine to further include before target VAS server:The Transparent proxy server obtains institute State correspondence.
- A kind of 7. method of Message processing, which is characterized in that including:Transparent proxy server obtains the handshake message that is sent to WEB server of user terminal, the destination IP in the handshake message Address is the IP address of the WEB server;The Transparent proxy server determines the domain of the WEB server according to the destination IP address and the first correspondence Name, correspondence of first correspondence for the domain name of WEB server and the IP address of WEB server;When the domain name for determining the WEB server is the domain name of preset target WEB server, the Transparent proxy server According to the domain name of the WEB server and the second correspondence, target VAS server is determined, second correspondence is VAS Server and the correspondence of the domain name of the preset target WEB server;The Transparent proxy server builds the company between the user terminal, the target VAS server and the WEB server It connects, the target VAS server is used to handle the service message interacted between the user terminal and the WEB server.
- 8. the method according to the description of claim 7 is characterized in that determine the WEB service in the Transparent proxy server The domain name of device is further includes before the domain name of preset target WEB server:The Transparent proxy server obtains the target The domain name of server.
- 9. according to the method described in claim 8, it is characterized in that, the Transparent proxy server obtains the target WEB clothes The domain name of business device includes:The Transparent proxy server determines the IP address of the target WEB server;The Transparent proxy server determines the domain of the target WEB server according to the IP address of the target WEB server Name;The Transparent proxy server preserves the domain name of the target WEB server.
- 10. according to the method described in claim 9, it is characterized in that, the Transparent proxy server determines the target WEB clothes The IP address of business device includes:The Transparent proxy server determines that the user terminal sends first number of the first service message to the first WEB server With second number that the second service message is sent to the second WEB server, first number is more than second number, and described first Service message includes the first purpose IP address, and second service message includes the second purpose IP address;If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that described First purpose IP address is the IP address of the target WEB server.
- 11. according to the method described in claim 8, it is characterized in that, the Transparent proxy server obtains the target WEB clothes The domain name of business device includes:The Transparent proxy server determines first number that the user terminal is parsed using the domain name of the first WEB server With second number that the domain name of the second WEB server is used to be parsed, first number is more than second number;If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that described The domain name of first WEB server is the domain name of the target WEB server;The Transparent proxy server preserves the domain name of the target WEB server.
- 12. the method according to any one of claim 7 to 11, which is characterized in that in the Transparent proxy server root According to the destination IP address and the first correspondence, determine to further include before the domain name of WEB server:The transparent agent service Device obtains first correspondence.
- 13. the method according to any one of claim 7 to 11, which is characterized in that in the Transparent proxy server root According to the domain name and the second correspondence of the WEB server, determine to further include before target VAS server:The Transparent Proxy Server obtains second correspondence.
- 14. a kind of Transparent proxy server, which is characterized in that including:Acquiring unit, for obtaining the handshake message that user terminal is sent to WEB server;Determination unit, for as the IP that the purpose IP address in the determining handshake message is preset target WEB server During location, according to the destination IP address and correspondence, determine target VAS server, the correspondence for VAS server with The correspondence of the IP address of the target WEB server;Construction unit, for building the connection between the user terminal, the target VAS server and the WEB server, institute Target VAS server is stated for handling the service message interacted between the user terminal and the WEB server.
- 15. Transparent proxy server according to claim 14, which is characterized in that the acquiring unit is additionally operable to obtain institute State the IP address of target WEB server.
- 16. Transparent proxy server according to claim 15, which is characterized in that the acquiring unit is specifically used for determining The domain name of the target WEB server;According to the domain name of the target WEB server, the IP address of the target WEB server is determined;Preserve the IP address of the target WEB server.
- 17. Transparent proxy server according to claim 16, which is characterized in that the acquiring unit is specifically used for determining The domain name of the second WEB server of first number and use that the user terminal is parsed using the domain name of the first WEB server Second number parsed, first number are more than second number;If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that described The domain name of first WEB server is the domain name of the target WEB server.
- 18. Transparent proxy server according to claim 15, which is characterized in that the acquiring unit is specifically used for determining The user terminal sends first number of the first service message to the first WEB server and sends second to the second WEB server Second number of service message, first number are more than second number, and first service message is including the first destination IP Location, second service message include the second purpose IP address;If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that described First purpose IP address is the IP address of the target WEB server, preserves the IP address of the target WEB server.
- 19. the Transparent proxy server according to any one of claim 14 to 18, which is characterized in that the acquiring unit It is additionally operable to obtain the correspondence.
- 20. a kind of Transparent proxy server, which is characterized in that including:Acquiring unit, for obtaining the handshake message that user terminal is sent to WEB server, destination IP in the handshake message Location is the IP address of the WEB server;Determination unit, for according to the destination IP address and the first correspondence, determining the domain name of the WEB server, institute State correspondence of first correspondence for the domain name of WEB server and the IP address of WEB server;The determination unit, it is the domain name of preset target WEB server to be additionally operable to when the domain name for determining the WEB server When, according to the domain name of the WEB server and the second correspondence, determine target VAS server, second correspondence is VAS server and the correspondence of the domain name of the preset target WEB server;Construction unit, for building the connection between the user terminal, the target VAS server and the WEB server, institute Target VAS server is stated for handling the service message interacted between the user terminal and the WEB server.
- 21. Transparent proxy server according to claim 20, which is characterized in that the acquiring unit is additionally operable to obtain The domain name of the destination server.
- 22. Transparent proxy server according to claim 21, which is characterized in that the acquiring unit is specifically used for determining The IP address of the target WEB server;According to the IP address of the target WEB server, the domain name of the target WEB server is determined;Preserve the domain name of the target WEB server.
- 23. Transparent proxy server according to claim 22, which is characterized in that the acquiring unit is specifically used for determining The user terminal sends first number of the first service message to the first WEB server and sends second to the second WEB server Second number of service message, first number are more than second number, and first service message is including the first destination IP Location, second service message include the second purpose IP address;If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that described First purpose IP address is the IP address of the target WEB server.
- 24. Transparent proxy server according to claim 21, which is characterized in that the acquiring unit is specifically used for determining The domain name of the second WEB server of first number and use that the user terminal is parsed using the domain name of the first WEB server Second number parsed, first number are more than second number;If first number is greater than or equal to the preset proportion of the sum of first number and second number, it is determined that described The domain name of first WEB server is the domain name of the target WEB server;Preserve the domain name of the target WEB server.
- 25. the Transparent proxy server according to any one of claim 20 to 24, which is characterized in that the acquiring unit It is additionally operable to first correspondence.
- 26. the Transparent proxy server according to any one of claim 20 to 24, which is characterized in that the acquiring unit It is additionally operable to obtain second correspondence.
- 27. a kind of Transparent proxy server, which is characterized in that including processor, memory, bus and communication interface;For storing computer executed instructions, the processor is connect the memory with the memory by the bus, When mobility management entity is run, the processor performs the computer executed instructions of the memory storage, so that The method that the mobility management entity performs the Message processing as described in any one of claim 1 to 13.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410733682.7A CN104518968B (en) | 2014-12-04 | 2014-12-04 | The method and Transparent proxy server of a kind of Message processing |
PCT/CN2015/094131 WO2016086755A1 (en) | 2014-12-04 | 2015-11-09 | Packet processing method and transparent proxy server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410733682.7A CN104518968B (en) | 2014-12-04 | 2014-12-04 | The method and Transparent proxy server of a kind of Message processing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104518968A CN104518968A (en) | 2015-04-15 |
CN104518968B true CN104518968B (en) | 2018-07-03 |
Family
ID=52793716
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410733682.7A Active CN104518968B (en) | 2014-12-04 | 2014-12-04 | The method and Transparent proxy server of a kind of Message processing |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104518968B (en) |
WO (1) | WO2016086755A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104518968B (en) * | 2014-12-04 | 2018-07-03 | 华为技术有限公司 | The method and Transparent proxy server of a kind of Message processing |
CN104994137B (en) * | 2015-05-27 | 2019-01-22 | 四川卫士通信息安全平台技术有限公司 | A kind of method of network readezvous point agency |
CN105119982B (en) * | 2015-07-23 | 2019-02-22 | 中国联合网络通信集团有限公司 | The method and device of increment processing |
JP6579884B2 (en) * | 2015-09-24 | 2019-09-25 | キヤノン株式会社 | Communication device, control method, and program |
CN113726915A (en) * | 2020-05-25 | 2021-11-30 | 华为技术有限公司 | Network system, message transmission method therein and related device |
CN112954683B (en) * | 2021-05-13 | 2021-08-17 | 中兴通讯股份有限公司 | Domain name resolution method, domain name resolution device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010049940A1 (en) * | 2008-10-31 | 2010-05-06 | Onmobile Global Limited | Method and system of providing vas in a communication network |
CN102256348A (en) * | 2010-05-21 | 2011-11-23 | 华为技术有限公司 | Routing method, device and system for uplink message |
CN103931162A (en) * | 2014-01-20 | 2014-07-16 | 华为技术有限公司 | Method for processing service and network equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104518968B (en) * | 2014-12-04 | 2018-07-03 | 华为技术有限公司 | The method and Transparent proxy server of a kind of Message processing |
-
2014
- 2014-12-04 CN CN201410733682.7A patent/CN104518968B/en active Active
-
2015
- 2015-11-09 WO PCT/CN2015/094131 patent/WO2016086755A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010049940A1 (en) * | 2008-10-31 | 2010-05-06 | Onmobile Global Limited | Method and system of providing vas in a communication network |
CN102256348A (en) * | 2010-05-21 | 2011-11-23 | 华为技术有限公司 | Routing method, device and system for uplink message |
CN103931162A (en) * | 2014-01-20 | 2014-07-16 | 华为技术有限公司 | Method for processing service and network equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104518968A (en) | 2015-04-15 |
WO2016086755A1 (en) | 2016-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104518968B (en) | The method and Transparent proxy server of a kind of Message processing | |
CN105430059A (en) | Smart client routing | |
CN104580376B (en) | The methods, devices and systems connected between terminal are established in a local network | |
CN107666473A (en) | The method and controller of a kind of attack detecting | |
CN104811462A (en) | Access gateway redirection method and access gateway | |
CN106790221A (en) | A kind of safe ipsec protocol encryption method of internet protocol and the network equipment | |
CN101287010A (en) | Method and apparatus for identifying and verifying type of message protocol | |
CN103501331A (en) | Data transmission method, data transmission equipment and data transmission system | |
CN108200158A (en) | Ask Transmission system, method, apparatus and storage medium | |
CN110417632B (en) | Network communication method, system and server | |
CN113746788A (en) | Data processing method and device | |
CN108989438A (en) | Implementation method, the device and system of data distribution network | |
CN103250382A (en) | Distribution method, apparatus and system | |
CN107040427A (en) | A kind of method and device of network card configuration | |
CN105187391B (en) | APP and its logging in network access point methods, server and system | |
US20180110091A1 (en) | Data Transmission Method and Apparatus for Data Service | |
CN105245446B (en) | A kind of file transmitting method and gateway | |
CN107707569A (en) | DNS request processing method and DNS systems | |
CN101355483A (en) | Method and equipment for transmitting data packet by multiple network ports | |
CN103618661A (en) | Data separation method and system | |
CN104917742B (en) | A kind of information transferring method and device | |
CN102075386B (en) | Identification method and device | |
CN105812272B (en) | Processing method, device and the system of business chain | |
CN111225038A (en) | Server access method and device | |
CN104243522B (en) | Method and wideband network gateway for HTTP network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |