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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明实施例公开了一种报文处理的方法,用于缩短该透明代理服务器确定VAS服务器的时长,使用户端与该WEB服务器交互的业务报文及时得到该VAS服务器的处理,提升用户体验。本发明实施例方法包括:透明代理服务器获取用户端向WEB服务器发送的握手报文;当确定该握手报文中的目的IP地址为预置的目标WEB服务器的IP地址时,该透明代理服务器根据该目的IP地址第一对应关系,确定该目标业务请求报文的业务类型,该第一对应关系为VAS服务器和该目标WEB服务器的IP地址的对应关系。本发明实施例还提供一种透明代理服务器,缩短该透明代理服务器确定VAS服务器的时长,使用户端与该WEB服务器交互的业务报文及时得到该VAS服务器的处理,用于提升用户体验。
The embodiment of the present invention discloses a message processing method, which is used to shorten the time for the transparent proxy server to determine the VAS server, so that the service messages interacted between the user end and the WEB server can be processed by the VAS server in time, and the user experience is improved. . The method in the embodiment of the present invention includes: the transparent proxy server obtains the handshake message sent by the client to the WEB server; The first corresponding relationship of the destination IP address determines the service type of the target service request message, and the first corresponding relationship is the corresponding relationship between the IP addresses of the VAS server and the target WEB server. The embodiment of the present invention also provides a transparent proxy server, which shortens the time for the transparent proxy server to determine the VAS server, so that the service messages exchanged between the client and the WEB server can be processed by the VAS server in time, so as to improve user experience.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种报文处理的方法以及透明代理服务器。The invention relates to the technical field of communication, in particular to a message processing method and a transparent proxy server.
背景技术Background technique
随着网络的发展,运营商开始为用户端提供增值服务。举例来说,典型的增值服务包括:病毒过滤、页面适配、视频优化等。不同的增值业务服务器(Value Added Server,VAS)提供不同业务类型的增值服务。With the development of the network, operators began to provide value-added services for the user end. For example, typical value-added services include: virus filtering, page adaptation, video optimization, etc. Different value-added service servers (Value Added Server, VAS) provide value-added services of different business types.
在策略计费控制(Policy and Charging Control,PCC)架构中,透明代理服务器位于用户端与目的万维网(World Wide Web,WEB)服务器之间,用户端向域名服务器(Domain Name System,DNS)发起域名解析请求,以获取WEB服务器的IP地址,该透明代理服务器构建该用户端和该WEB服务器之间的连接,该用户端将该WEB服务的IP地址作为目的IP地址向该WEB服务器发送业务报文,该透明代理服务器通过深度数据包检测(Deep PacketInspection,DPI)识别出该业务报文的业务类型,并根据该业务类型确定用于处理该业务报文的VAS服务器,然后该透明代理服务器断开该用户端与WEB服务器之间的连接,并建立用户端和该VAS服务器之间的连接,以及该VAS服务器和WEB服务器之间的连接,以使该VAS服务器处理该用户端与该WEB服务器之间的交互的业务报文,从而实现为用户端提供相应的增值服务。In the policy and charging control (Policy and Charging Control, PCC) architecture, the transparent proxy server is located between the client and the destination World Wide Web (WEB) server, and the client initiates the domain name server (Domain Name System, DNS) Analyze the request to obtain the IP address of the WEB server, the transparent proxy server builds the connection between the client and the WEB server, and the client sends the service message to the WEB server using the IP address of the WEB service as the destination IP address , the transparent proxy server recognizes the business type of the business message through Deep Packet Inspection (Deep PacketInspection, DPI), and determines the VAS server for processing the business message according to the business type, and then the transparent proxy server disconnects The connection between the client and the WEB server, and the connection between the client and the VAS server, and the connection between the VAS server and the WEB server, so that the VAS server handles the connection between the client and the WEB server Interacting business messages between them, so as to provide corresponding value-added services for the client.
然而,现有技术中,透明代理服务器需要在用户端与WEB服务器之间建立连接之后,通过DPI对用户端发送的业务报文进行识别,才能确定VAS服务器,使数据报文无法及时得到VAS服务器的处理,影响用户体验。However, in the prior art, the transparent proxy server needs to identify the service message sent by the user terminal through DPI after establishing a connection between the user terminal and the WEB server, so as to determine the VAS server, so that the data message cannot be obtained from the VAS server in time. The processing affects the user experience.
发明内容Contents of the invention
本发明实施例提供了一种报文处理的方法,可起到缩短该透明代理服务器确定VAS服务器的时长,使用户端与该WEB服务器交互的业务报文及时得到该VAS服务器的处理,提升用户体验。The embodiment of the present invention provides a method for message processing, which can shorten the time for the transparent proxy server to determine the VAS server, so that the business messages interacted between the client and the WEB server can be processed by the VAS server in time, and improve user experience.
本发明实施例第一方面提供一种报文处理的方法,包括:The first aspect of the embodiment of the present invention provides a method for message processing, including:
透明代理服务器获取用户端向WEB服务器发送的握手报文;The transparent proxy server obtains the handshake message sent by the client to the WEB server;
当确定所述握手报文中的目的IP地址为预置的目标WEB服务器的IP地址时,所述透明代理服务器根据所述目的IP地址和对应关系,确定目标VAS服务器,所述对应关系为VAS服务器与所述目标WEB服务器的IP地址的对应关系;When determining that the destination IP address in the handshake message is the IP address of the preset target WEB server, the transparent proxy server determines the target VAS server according to the destination IP address and the corresponding relationship, and the corresponding relationship is VAS The corresponding relationship between the server and the IP address of the target WEB server;
所述透明代理服务器构建所述用户端、所述目标VAS服务器和所述WEB服务器之间的连接,所述目标VAS服务器用于处理所述用户端与所述WEB服务器之间交互的业务报文。The transparent proxy server constructs a connection between the client, the target VAS server, and the WEB server, and the target VAS server is used to process service packets interacted between the client and the WEB server .
结合本发明实施例的第一方面,在本发明实施例第一方面的第一种实现方式中,在所述透明代理服务器确定所述握手报文的目的IP地址为预置的目标WEB服务器的IP地址之前还包括:所述透明代理服务器获取所述目标WEB服务器的IP地址。With reference to the first aspect of the embodiments of the present invention, in the first implementation of the first aspect of the embodiments of the present invention, the transparent proxy server determines that the destination IP address of the handshake message is the preset target WEB server Before the IP address, it also includes: the transparent proxy server obtains the IP address of the target WEB server.
结合本发明实施例的第一方面的第一种实现方式,在本发明实施例第一方面的第二种实现方式中,所述透明代理服务器获取所述目标WEB服务器的IP地址包括:With reference to the first implementation of the first aspect of the embodiments of the present invention, in the second implementation of the first aspect of the embodiments of the present invention, obtaining the IP address of the target WEB server by the transparent proxy server includes:
所述透明代理服务器确定所述目标WEB服务器的域名;The transparent proxy server determines the domain name of the target WEB server;
所述透明代理服务器根据所述目标WEB服务器的域名,确定所述目标WEB服务器的IP地址;The transparent proxy server determines the IP address of the target WEB server according to the domain name of the target WEB server;
所述透明代理服务器保存所述目标WEB服务器的IP地址。The transparent proxy server saves the IP address of the target WEB server.
结合本发明实施例的第一方面的第二种实现方式,在本发明实施例第一方面的第三种实现方式中,所述透明代理服务器确定目标WEB服务器的域名包括:With reference to the second implementation of the first aspect of the embodiments of the present invention, in the third implementation of the first aspect of the embodiments of the present invention, the transparent proxy server determining the domain name of the target WEB server includes:
所述透明代理服务器确定所述用户端使用第一WEB服务器的域名进行解析的第一次数和使用第二WEB服务器的域名进行解析的第二次数,所述第一次数大于第二次数;The transparent proxy server determines the first number of times that the client uses the domain name of the first WEB server to resolve and the second number of times that the domain name of the second WEB server is used for resolution, and the first number is greater than the second number;
若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一WEB服务器的域名为所述目标WEB服务器的域名。If the first count is greater than or equal to a preset ratio of the sum of the first count and the second count, then determine that the domain name of the first WEB server is the domain name of the target WEB server.
结合本发明实施例的第一方面的第一种实现方式,在本发明实施例第一方面的第四种实现方式中,所述透明代理服务器获取所述目标WEB服务器的IP地址包括:In combination with the first implementation of the first aspect of the embodiments of the present invention, in the fourth implementation of the first aspect of the embodiments of the present invention, obtaining the IP address of the target WEB server by the transparent proxy server includes:
所述透明代理服务器确定所述用户端向第一WEB服务器发送第一业务报文的第一次数和向第二WEB服务器发送第二业务报文的第二次数,所述第一次数大于第二次数,所述第一业务报文包括第一目的IP地址,所述第二业务报文包括第二目的IP地址;The transparent proxy server determines the first number of times the client sends the first service message to the first WEB server and the second number of times the second service message is sent to the second WEB server, and the first number is greater than For the second time, the first service message includes a first destination IP address, and the second service message includes a second destination IP address;
若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一目的IP地址为所述目标WEB服务器的IP地址;If the first number is greater than or equal to the preset ratio of the sum of the first number and the second number, then determine that the first destination IP address is the IP address of the target WEB server;
所述透明代理服务器保存所述目标WEB服务器的IP地址。The transparent proxy server saves the IP address of the target WEB server.
结合本发明实施例的第一方面或第一方面的第一种实现方式或第一方面的第二种实现方式或第一方面的第三种实现方式或第一方面的第四种实现方式,在本发明实施例第一方面的第五种实现方式中,所述透明代理服务器根据所述目的IP地址和对应关系,确定目标VAS服务器之前还包括:所述透明代理服务器获取所述对应关系。In combination with the first aspect or the first implementation of the first aspect or the second implementation of the first aspect or the third implementation of the first aspect or the fourth implementation of the first aspect of the embodiments of the present invention, In the fifth implementation manner of the first aspect of the embodiments of the present invention, before the transparent proxy server determines the target VAS server according to the destination IP address and the corresponding relationship, the method further includes: the transparent proxy server obtains the corresponding relationship.
本发明实施例第二方面提供一种报文处理的方法,包括:The second aspect of the embodiment of the present invention provides a method for message processing, including:
透明代理服务器获取用户端向WEB服务器发送的握手报文,所述握手报文中的目的IP地址为所述WEB服务器的IP地址;The transparent proxy server obtains the handshake message sent by the client to the WEB server, and the destination IP address in the handshake message is the IP address of the WEB server;
所述透明代理服务器根据所述目的IP地址和第一对应关系,确定所述WEB服务器的域名,所述第一对应关系为WEB服务器的域名与WEB服务器的IP地址的对应关系;The transparent proxy server determines the domain name of the WEB server according to the destination IP address and the first correspondence, and the first correspondence is the correspondence between the domain name of the WEB server and the IP address of the WEB server;
当确定所述WEB服务器的域名为预置的目标WEB服务器的域名时,所述透明代理服务器根据所述WEB服务器的域名和第二对应关系,确定目标VAS服务器,所述第二对应关系为VAS服务器与所述预置的目标WEB服务器的域名的对应关系;When it is determined that the domain name of the WEB server is the preset domain name of the target WEB server, the transparent proxy server determines the target VAS server according to the domain name of the WEB server and the second corresponding relationship, and the second corresponding relationship is VAS The corresponding relationship between the server and the domain name of the preset target WEB server;
所述透明代理服务器构建所述用户端、所述目标VAS服务器和所述WEB服务器之间的连接,所述目标VAS服务器用于处理所述用户端与所述WEB服务器之间交互的业务报文。The transparent proxy server constructs a connection between the client, the target VAS server, and the WEB server, and the target VAS server is used to process service packets interacted between the client and the WEB server .
结合本发明实施例的第二方面,在本发明实施例第二方面的第一种实现方式中,在所述透明代理服务器确定所述WEB服务器的域名为预置的目标WEB服务器的域名之前还包括:所述透明代理服务器获取所述目标服务器的域名。With reference to the second aspect of the embodiments of the present invention, in the first implementation manner of the second aspect of the embodiments of the present invention, before the transparent proxy server determines that the domain name of the WEB server is the preset domain name of the target WEB server It includes: the transparent proxy server obtains the domain name of the target server.
结合本发明实施例的第二方面的第一种实现方式,在本发明实施例第二方面的第二种实现方式中,所述透明代理服务器获取所述目标WEB服务器的域名包括:With reference to the first implementation of the second aspect of the embodiments of the present invention, in the second implementation of the second aspect of the embodiments of the present invention, obtaining the domain name of the target WEB server by the transparent proxy server includes:
所述透明代理服务器确定所述目标WEB服务器的IP地址;The transparent proxy server determines the IP address of the target WEB server;
所述透明代理服务器根据所述目标WEB服务器的IP地址,确定所述目标WEB服务器的域名;The transparent proxy server determines the domain name of the target WEB server according to the IP address of the target WEB server;
所述透明代理服务器保存所述目标WEB服务器的域名。The transparent proxy server saves the domain name of the target WEB server.
结合本发明实施例的第二方面的第二种实现方式,在本发明实施例第二方面的第三种实现方式中,所述透明代理服务器确定所述目标WEB服务器的IP地址包括:With reference to the second implementation of the second aspect of the embodiments of the present invention, in the third implementation of the second aspect of the embodiments of the present invention, the transparent proxy server determining the IP address of the target WEB server includes:
所述透明代理服务器确定所述用户端向第一WEB服务器发送第一业务报文的第一次数和向第二WEB服务器发送第二业务报文的第二次数,所述第一次数大于第二次数,所述第一业务报文包括第一目的IP地址,所述第二业务报文包括第二目的IP地址;The transparent proxy server determines the first number of times the client sends the first service message to the first WEB server and the second number of times the second service message is sent to the second WEB server, and the first number is greater than For the second time, the first service message includes a first destination IP address, and the second service message includes a second destination IP address;
若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一目的IP地址为所述目标WEB服务器的IP地址。If the first number is greater than or equal to a preset ratio of the sum of the first number and the second number, then determine that the first destination IP address is the IP address of the target WEB server.
结合本发明实施例的第二方面的第一种实现方式,在本发明实施例第二方面的第四种实现方式中,所述透明代理服务器获取所述目标WEB服务器的域名包括:With reference to the first implementation manner of the second aspect of the embodiments of the present invention, in the fourth implementation manner of the second aspect of the embodiments of the present invention, obtaining the domain name of the target WEB server by the transparent proxy server includes:
所述透明代理服务器确定所述用户端使用第一WEB服务器的域名进行解析的第一次数和使用第二WEB服务器的域名进行解析的第二次数,所述第一次数大于第二次数;The transparent proxy server determines the first number of times that the client uses the domain name of the first WEB server to resolve and the second number of times that the domain name of the second WEB server is used for resolution, and the first number is greater than the second number;
若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一WEB服务器的域名为所述目标WEB服务器的域名;If the first number is greater than or equal to the preset ratio of the sum of the first number and the second number, then determine that the domain name of the first WEB server is the domain name of the target WEB server;
所述透明代理服务器保存所述目标WEB服务器的域名。The transparent proxy server saves the domain name of the target WEB server.
结合本发明实施例的第二方面或第二方面的第一种实现方式或第二方面的第二种实现方式或第二方面的第三种实现方式或第二方面的第四种实现方式,在本发明实施例第二方面的第五种实现方式中,在所述透明代理服务器根据所述目的IP地址和第一对应关系,确定WEB服务器的域名之前还包括:所述透明代理服务器获取所述第一对应关系。In combination with the second aspect of the embodiments of the present invention or the first implementation manner of the second aspect or the second implementation manner of the second aspect or the third implementation manner of the second aspect or the fourth implementation manner of the second aspect, In the fifth implementation manner of the second aspect of the embodiment of the present invention, before the transparent proxy server determines the domain name of the WEB server according to the destination IP address and the first correspondence, it further includes: the transparent proxy server obtains the Describe the first corresponding relationship.
结合本发明实施例的第二方面或第二方面的第一种实现方式或第二方面的第二种实现方式或第二方面的第三种实现方式或第二方面的第四种实现方式,在本发明实施例第二方面的第六种实现方式中,在所述透明代理服务器根据所述WEB服务器的域名和第二对应关系,确定目标VAS服务器之前还包括:所述透明代理服务器获取所述第二对应关系。In combination with the second aspect of the embodiments of the present invention or the first implementation manner of the second aspect or the second implementation manner of the second aspect or the third implementation manner of the second aspect or the fourth implementation manner of the second aspect, In the sixth implementation manner of the second aspect of the embodiment of the present invention, before the transparent proxy server determines the target VAS server according to the domain name of the WEB server and the second corresponding relationship, it further includes: the transparent proxy server obtains the Describe the second corresponding relationship.
本发明实施例第三方面提供一种透明代理服务器,包括:The third aspect of the embodiment of the present invention provides a transparent proxy server, including:
获取单元,用于获取用户端向WEB服务器发送的握手报文;The obtaining unit is used to obtain the handshake message sent by the client to the WEB server;
确定单元,用于当确定所述握手报文中的目的IP地址为预置的目标WEB服务器的IP地址时,根据所述目的IP地址和对应关系,确定目标VAS服务器,所述对应关系为VAS服务器与所述目标WEB服务器的IP地址的对应关系;A determining unit, configured to determine the target VAS server according to the target IP address and the corresponding relationship when determining that the destination IP address in the handshake message is the IP address of the preset target WEB server, the corresponding relationship is VAS The corresponding relationship between the server and the IP address of the target WEB server;
构建单元,用于构建所述用户端、所述目标VAS服务器和所述WEB服务器之间的连接,所述目标VAS服务器用于处理所述用户端与所述WEB服务器之间交互的业务报文。A construction unit, configured to construct a connection between the client, the target VAS server, and the WEB server, and the target VAS server is used to process service packets interacted between the client and the WEB server .
结合本发明实施例的第三方面,在本发明实施例第三方面的第一种实现方式中,所述获取单元还用于获取所述目标WEB服务器的IP地址。With reference to the third aspect of the embodiments of the present invention, in the first implementation manner of the third aspect of the embodiments of the present invention, the obtaining unit is further configured to obtain the IP address of the target WEB server.
结合本发明实施例的第三方面的第一种实现方式,在本发明实施例第三方面的第二种实现方式中,所述获取单元具体用于确定所述目标WEB服务器的域名;With reference to the first implementation manner of the third aspect of the embodiments of the present invention, in the second implementation manner of the third aspect of the embodiments of the present invention, the acquiring unit is specifically configured to determine the domain name of the target WEB server;
根据所述目标WEB服务器的域名,确定所述目标WEB服务器的IP地址;Determine the IP address of the target WEB server according to the domain name of the target WEB server;
保存所述目标WEB服务器的IP地址。Save the IP address of the target WEB server.
结合本发明实施例的第三方面的第二种实现方式,在本发明实施例第三方面的第三种实现方式中,所述获取单元具体用于确定所述用户端使用第一WEB服务器的域名进行解析的第一次数和使用第二WEB服务器的域名进行解析的第二次数,所述第一次数大于第二次数;With reference to the second implementation manner of the third aspect of the embodiments of the present invention, in the third implementation manner of the third aspect of the embodiments of the present invention, the acquiring unit is specifically configured to determine that the client uses the first WEB server The first number of times the domain name is resolved and the second number of times the domain name of the second WEB server is used for resolution, the first number is greater than the second number;
若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一WEB服务器的域名为所述目标WEB服务器的域名。If the first count is greater than or equal to a preset ratio of the sum of the first count and the second count, then determine that the domain name of the first WEB server is the domain name of the target WEB server.
结合本发明实施例的第三方面的第一种实现方式,在本发明实施例第三方面的第四种实现方式中,所述获取单元具体用于确定所述用户端向第一WEB服务器发送第一业务报文的第一次数和向第二WEB服务器发送第二业务报文的第二次数,所述第一次数大于第二次数,所述第一业务报文包括第一目的IP地址,所述第二业务报文包括第二目的IP地址;With reference to the first implementation manner of the third aspect of the embodiments of the present invention, in the fourth implementation manner of the third aspect of the embodiments of the present invention, the acquiring unit is specifically configured to determine that the client sends to the first WEB server The first number of the first service message and the second number of times the second service message is sent to the second WEB server, the first number is greater than the second number, and the first service message includes the first destination IP address, the second service packet includes a second destination IP address;
若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一目的IP地址为所述目标WEB服务器的IP地址,保存所述目标WEB服务器的IP地址。If the first number is greater than or equal to the preset ratio of the sum of the first number and the second number, then determine that the first destination IP address is the IP address of the target WEB server, and save the The IP address of the target web server.
结合本发明实施例的第三方面或第三方面的第一种实现方式或第三方面的第二种实现方式或第三方面的第三种实现方式或第三方面的第四种实现方式,在本发明实施例第三方面的第五种实现方式中,所述获取单元还用于获取所述对应关系。In combination with the third aspect or the first implementation manner of the third aspect or the second implementation manner of the third aspect or the third implementation manner of the third aspect or the fourth implementation manner of the third aspect of the embodiments of the present invention, In a fifth implementation manner of the third aspect of the embodiments of the present invention, the acquiring unit is further configured to acquire the corresponding relationship.
本发明实施例第四方面提供一种透明代理服务器,包括:A fourth aspect of the embodiment of the present invention provides a transparent proxy server, including:
获取单元,用于获取用户端向WEB服务器发送的握手报文,所述握手报文中的目的IP地址为所述WEB服务器的IP地址;An acquisition unit, configured to acquire a handshake message sent by the client to the WEB server, where the destination IP address in the handshake message is the IP address of the WEB server;
确定单元,用于根据所述目的IP地址和第一对应关系,确定所述WEB服务器的域名,所述第一对应关系为WEB服务器的域名与WEB服务器的IP地址的对应关系;A determining unit, configured to determine the domain name of the WEB server according to the destination IP address and a first correspondence, the first correspondence being the correspondence between the domain name of the WEB server and the IP address of the WEB server;
所述确定单元,还用于当确定所述WEB服务器的域名为预置的目标WEB服务器的域名时,根据所述WEB服务器的域名和第二对应关系,确定目标VAS服务器,所述第二对应关系为VAS服务器与所述预置的目标WEB服务器的域名的对应关系;The determining unit is further configured to determine the target VAS server according to the domain name of the WEB server and the second corresponding relationship when determining that the domain name of the WEB server is the preset domain name of the target WEB server, the second corresponding The relationship is the corresponding relationship between the VAS server and the domain name of the preset target WEB server;
构建单元,用于构建所述用户端、所述目标VAS服务器和所述WEB服务器之间的连接,所述目标VAS服务器用于处理所述用户端与所述WEB服务器之间交互的业务报文。A construction unit, configured to construct a connection between the client, the target VAS server, and the WEB server, and the target VAS server is used to process service packets interacted between the client and the WEB server .
结合本发明实施例的第四方面,在本发明实施例第四方面的第一种实现方式中,所述获取单元,还用于获取所述目标服务器的域名。With reference to the fourth aspect of the embodiments of the present invention, in the first implementation manner of the fourth aspect of the embodiments of the present invention, the acquiring unit is further configured to acquire the domain name of the target server.
结合本发明实施例的第四方面的第一种实现方式,在本发明实施例第四方面的第二种实现方式中,所述获取单元具体用于确定所述目标WEB服务器的IP地址;With reference to the first implementation manner of the fourth aspect of the embodiments of the present invention, in the second implementation manner of the fourth aspect of the embodiments of the present invention, the obtaining unit is specifically configured to determine the IP address of the target WEB server;
根据所述目标WEB服务器的IP地址,确定所述目标WEB服务器的域名;Determine the domain name of the target WEB server according to the IP address of the target WEB server;
保存所述目标WEB服务器的域名。Save the domain name of the target WEB server.
结合本发明实施例的第四方面的第二种实现方式,在本发明实施例第四方面的第三种实现方式中,所述获取单元具体用于确定所述用户端向第一WEB服务器发送第一业务报文的第一次数和向第二WEB服务器发送第二业务报文的第二次数,所述第一次数大于第二次数,所述第一业务报文包括第一目的IP地址,所述第二业务报文包括第二目的IP地址;With reference to the second implementation manner of the fourth aspect of the embodiments of the present invention, in the third implementation manner of the fourth aspect of the embodiments of the present invention, the acquiring unit is specifically configured to determine that the client sends to the first WEB server The first number of the first service message and the second number of times the second service message is sent to the second WEB server, the first number is greater than the second number, and the first service message includes the first destination IP address, the second service packet includes a second destination IP address;
若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一目的IP地址为所述目标WEB服务器的IP地址。If the first number is greater than or equal to a preset ratio of the sum of the first number and the second number, then determine that the first destination IP address is the IP address of the target WEB server.
结合本发明实施例的第四方面的第一种实现方式,在本发明实施例第四方面的第四种实现方式中,所述获取单元具体用于确定所述用户端使用第一WEB服务器的域名进行解析的第一次数和使用第二WEB服务器的域名进行解析的第二次数,所述第一次数大于第二次数;With reference to the first implementation manner of the fourth aspect of the embodiments of the present invention, in the fourth implementation manner of the fourth aspect of the embodiments of the present invention, the acquiring unit is specifically configured to determine that the client uses the first WEB server The first number of times the domain name is resolved and the second number of times the domain name of the second WEB server is used for resolution, the first number is greater than the second number;
若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一WEB服务器的域名为所述目标WEB服务器的域名;If the first number is greater than or equal to the preset ratio of the sum of the first number and the second number, then determine that the domain name of the first WEB server is the domain name of the target WEB server;
保存所述目标WEB服务器的域名。Save the domain name of the target WEB server.
结合本发明实施例的第四方面或第四方面的第一种实现方式或第四方面的第二种实现方式或第四方面的第三种实现方式或第四方面的第四种实现方式,在本发明实施例第四方面的第五种实现方式中,所述获取单元还用于所述第一对应关系。In combination with the fourth aspect of the embodiments of the present invention or the first implementation manner of the fourth aspect or the second implementation manner of the fourth aspect or the third implementation manner of the fourth aspect or the fourth implementation manner of the fourth aspect, In a fifth implementation manner of the fourth aspect of the embodiments of the present invention, the acquiring unit is also used for the first correspondence.
结合本发明实施例的第四方面或第四方面的第一种实现方式或第四方面的第二种实现方式或第四方面的第三种实现方式或第四方面的第四种实现方式,在本发明实施例第四方面的第六种实现方式中,所述获取单元还用于获取所述第二对应关系。In combination with the fourth aspect of the embodiments of the present invention or the first implementation manner of the fourth aspect or the second implementation manner of the fourth aspect or the third implementation manner of the fourth aspect or the fourth implementation manner of the fourth aspect, In a sixth implementation manner of the fourth aspect of the embodiments of the present invention, the acquiring unit is further configured to acquire the second correspondence.
本发明实施例第五方面提供一种透明代理服务器,包括处理器、存储器、总线和通信接口;The fifth aspect of the embodiment of the present invention provides a transparent proxy server, including a processor, a memory, a bus, and a communication interface;
所述存储器用于存储计算机执行指令,所述处理器与所述存储器通过所述总线连接,当所述移动性管理实体运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述移动性管理实体执行如权利要求1至13中任一项所述的报文处理的方法。The memory is used to store computer-executable instructions, the processor is connected to the memory through the bus, and when the mobility management entity is running, the processor executes the computer-executable instructions stored in the memory, The method for causing the mobility management entity to execute the packet processing according to any one of claims 1 to 13.
本发明实施例具体如下优点:The specific advantages of the embodiments of the present invention are as follows:
透明代理服务器在用户端与WEB服务器建立连接时,获取用户端向该WEB服务器发送的握手报文,并在确定握手报文的目的IP地址为预置目标WEB服务器的IP地址时,根据VAS服务器与所述目标WEB服务器的IP地址的对应关系确定VAS服务器,相对于现有技术来讲,无需用户端与该WEB服务器建立连接,即可确定VAS服务器,使用户端与该WEB服务器之间交互的业务报文及时得到VAS服务器的处理,提升用户体验。When the transparent proxy server establishes a connection with the WEB server, it obtains the handshake message sent by the user end to the WEB server, and when the destination IP address of the handshake message is determined to be the IP address of the preset target WEB server, according to the VAS server The corresponding relationship with the IP address of the target WEB server determines the VAS server. Compared with the prior art, the VAS server can be determined without the need for the client to establish a connection with the WEB server, so that the interaction between the client and the WEB server The service packets are processed by the VAS server in a timely manner, improving user experience.
附图说明Description of drawings
图1为本发明实施例一提供的一种报文处理方法的实施例示意图;FIG. 1 is a schematic diagram of an embodiment of a message processing method provided in Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种报文处理方法的实施例示意图;FIG. 2 is a schematic diagram of an embodiment of a message processing method provided in Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种报文处理方法的实施例示意图;FIG. 3 is a schematic diagram of an embodiment of a message processing method provided by Embodiment 3 of the present invention;
图4为本发明实施例四提供的一种报文处理方法的实施例示意图;FIG. 4 is a schematic diagram of an embodiment of a message processing method provided in Embodiment 4 of the present invention;
图5为本发明实施例五提供的一种报文处理方法的实施例示意图;FIG. 5 is a schematic diagram of an embodiment of a message processing method provided in Embodiment 5 of the present invention;
图6为本发明实施例六和实施例七提供的一种透明代理服务器的实施例示意图;FIG. 6 is a schematic diagram of an embodiment of a transparent proxy server provided by Embodiment 6 and Embodiment 7 of the present invention;
图7为本发明实施例八提供的一种透明代理服务器的实施例示意图。FIG. 7 is a schematic diagram of an embodiment of a transparent proxy server provided by Embodiment 8 of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
请参阅图1,本发明实施例一中的一种报文处理方法包括:Referring to Fig. 1, a message processing method in Embodiment 1 of the present invention includes:
101、透明代理服务器获取用户端向WEB服务器发送的握手报文。101. The transparent proxy server obtains the handshake message sent by the client to the WEB server.
可以理解的是,透明代理服务器工作在透明代理模式下,位于用户端和WEB服务器之间,当用户端与WEB服务器进行交互时产生的数据报文,都会经过所述透明代理服务器,当所述用户端需要与WEB服务器需要建立连接时,由于在TCP/IP协议中,采用三次握手建立连接的方式,在第一次握手时,所述用户端会向WEB服务器发送握手报文,此时透明代理服务器可以获取该握手报文,并且所述透明代理服务器能够识别握手报文中的目的IP地址。It can be understood that the transparent proxy server works in the transparent proxy mode and is located between the client and the WEB server. When the client interacts with the WEB server, the data packets generated will pass through the transparent proxy server. When the client needs to establish a connection with the WEB server, because in the TCP/IP protocol, a three-way handshake is used to establish a connection, during the first handshake, the client will send a handshake message to the WEB server, which is transparent at this time. The proxy server can obtain the handshake message, and the transparent proxy server can identify the destination IP address in the handshake message.
102、当确定所述握手报文中的目的IP地址为预置的目标WEB服务器的IP地址时,所述透明代理服务器根据所述目的IP地址和对应关系,确定目标VAS服务器,所述对应关系为VAS服务器与所述目标WEB服务器的IP地址的对应关系。102. When determining that the destination IP address in the handshake message is the preset IP address of the target WEB server, the transparent proxy server determines the target VAS server according to the destination IP address and the corresponding relationship, and the corresponding relationship is the corresponding relationship between the VAS server and the IP address of the target WEB server.
可以理解的是,在所述透明代理服务器中预先设置有目标WEB服务器的IP地址,所述透明代理服务器能够将从握手报文中识别出的目的IP地址和预置的目标WEB服务的IP地址进行比对,当判断出所述目的IP地址为所述透明代理服务器中预置的目标WEB服务的IP地址时,所述透明代理服务器可以根据所述目的IP地址、VAS服务器和所述目标WEB服务器的IP地址的对应关系,确定目标VAS服务器。It can be understood that the IP address of the target WEB server is preset in the transparent proxy server, and the transparent proxy server can combine the destination IP address identified from the handshake message with the preset IP address of the target WEB service Compare, when it is judged that the destination IP address is the IP address of the preset target WEB service in the transparent proxy server, the transparent proxy server can The corresponding relationship between the IP addresses of the servers determines the target VAS server.
103、所述透明代理服务器构建所述用户端、所述目标VAS服务器和所述WEB服务器之间的连接,所述目标VAS服务器用于处理所述用户端与所述WEB服务器之间交互的数据报文。103. The transparent proxy server constructs a connection between the client, the target VAS server, and the WEB server, and the target VAS server is used to process data interacted between the client and the WEB server message.
可以理解的是,特定的VAS服务器用于处理一种或多种业务类型的数据报文,当获取到用户端向所述WEB服务器发送的数据报文时,所述透明代理服务器可以将所述数据报文转发至所述目标VAS服务器,使所述目标VAS服务器对接收到的数据报文进行相应的增值业务处理,并发送给所述WEB服务器,所述WEB服务器向所述用户端反馈的所述数据报文也可以经过所述VAS服务器进行处理。It can be understood that the specific VAS server is used to process data packets of one or more types of services, and when the data packets sent by the client to the WEB server are obtained, the transparent proxy server can transfer the The data message is forwarded to the target VAS server, so that the target VAS server performs corresponding value-added service processing on the received data message, and sends it to the WEB server, and the WEB server feeds back to the client The data message may also be processed by the VAS server.
本发明实施例中,In the embodiment of the present invention,
透明代理服务器在用户端与WEB服务器建立连接时,获取用户端向该WEB服务器发送的握手报文,并在确定握手报文的目的IP地址为预置目标WEB服务器的IP地址时,根据VAS服务器与所述目标WEB服务器的IP地址的对应关系确定VAS服务器,相对于现有技术来讲,无需用户端与该WEB服务器建立连接,即可确定VAS服务器,使用户端与该WEB服务器之间交互的业务报文及时得到VAS服务器的处理,提升用户体验。When the transparent proxy server establishes a connection with the WEB server, it obtains the handshake message sent by the user end to the WEB server, and when the destination IP address of the handshake message is determined to be the IP address of the preset target WEB server, according to the VAS server The corresponding relationship with the IP address of the target WEB server determines the VAS server. Compared with the prior art, the VAS server can be determined without the need for the client to establish a connection with the WEB server, so that the interaction between the client and the WEB server The service packets are processed by the VAS server in a timely manner, improving user experience.
在实施例一描述的一种报文处理方法中,当确定所述握手报文中的目的IP地址为预置的目标WEB服务器的IP地址时,在实际应用中,所述目标WEB服务器的IP地址可以是配置在透明代理服务器中的,也可以是所述透明代理服务器获取到的。其中,所述透明代理服务器获取所述目标WEB服务器的IP地址,可以为多种方式,具体如下:In the message processing method described in Embodiment 1, when it is determined that the destination IP address in the handshake message is the preset IP address of the target WEB server, in practical applications, the IP address of the target WEB server The address may be configured in the transparent proxy server, or obtained by the transparent proxy server. Wherein, the IP address of the target WEB server obtained by the transparent proxy server can be in various ways, specifically as follows:
一、所述透明代理服务器获取所述目标WEB服务器的IP地址,具体为:所述透明代理服务器确定所述目标WEB服务器的域名;所述透明代理服务器根据所述目标WEB服务器的域名,确定所述目标WEB服务器的IP地址;所述透明代理服务器保存所述目标WEB服务器的IP地址。1. The transparent proxy server acquires the IP address of the target WEB server, specifically: the transparent proxy server determines the domain name of the target WEB server; the transparent proxy server determines the IP address of the target WEB server according to the domain name of the target WEB server The IP address of the target WEB server; the transparent proxy server saves the IP address of the target WEB server.
请参阅图2,本发明实施例二中的一种报文处理的方法包括:Referring to Fig. 2, a method for message processing in Embodiment 2 of the present invention includes:
201、透明代理服务器获取用户端向WEB服务器发送的握手报文。201. The transparent proxy server obtains the handshake message sent by the client to the WEB server.
可以理解的是,所述透明代理服务器工作在透明代理模式下,所述透明代理服务器部署在用户端和WEB服务器之间,为用户端和WEB服务器都不感知的代理服务器,用户端与WEB服务器进行交互时产生的数据报文,都会经过所述透明代理服务器,比如在PCC架构中,所述透明代理服务器为PCEF/TDF。It can be understood that the transparent proxy server works in a transparent proxy mode, the transparent proxy server is deployed between the client and the WEB server, and is a proxy server that neither the client nor the WEB server perceives, and the client and the WEB server Data packets generated during interaction will pass through the transparent proxy server. For example, in the PCC architecture, the transparent proxy server is PCEF/TDF.
当所述用户端需要与WEB服务器进行初始建连时,所述用户端与所述WEB服务器之间产生的握手报文将经过透明代理服务器,此时透明代理服务器可以获取握手报文,并识别出该握手报文中的目的IP地址,比如在TCP/IP协议中,采用三次握手建立连接的方式,在第一次握手时,所述用户端会向WEB服务器发送同步(synchronous,syn)握手报文,此时透明代理服务器可以获取该syn握手报文,并且所述透明代理服务器能够识别出该syn握手报文中的目的IP地址。When the client needs to initially establish a connection with the WEB server, the handshake message generated between the client and the WEB server will pass through the transparent proxy server. At this time, the transparent proxy server can obtain the handshake message and identify Get the destination IP address in the handshake message. For example, in the TCP/IP protocol, a three-way handshake is used to establish a connection. During the first handshake, the client will send a synchronous (synchronous, syn) handshake to the WEB server At this time, the transparent proxy server can obtain the syn handshake message, and the transparent proxy server can identify the destination IP address in the syn handshake message.
用户端可以是手机、平板电脑等移动终端,也可以是笔记本电脑等可以接入网络的设备,具体此处不作限定。The client end may be a mobile terminal such as a mobile phone or a tablet computer, or a device capable of accessing the network such as a laptop computer, which is not specifically limited herein.
可选地,在本实施例中的201之后还包括202和203。Optionally, 202 and 203 are also included after 201 in this embodiment.
202、所述透明代理服务器确定所述目标WEB服务器的域名,并根据所述目标WEB服务器的域名确定所述目标WEB服务器的IP地址,保存所述目标WEB服务器的IP地址。202. The transparent proxy server determines the domain name of the target WEB server, determines the IP address of the target WEB server according to the domain name of the target WEB server, and saves the IP address of the target WEB server.
可以理解的是,在用户端向WEB服务器发送业务报文之前,该用户端通常会将WEB服务器的域名发送给DNS服务器进行域名解析,该DNS服务器经解析后,经所述透明代理服务器向用户端反馈包含WEB服务器IP地址的查询结果。其中,所述透明代理服务器确定所述目标WEB服务器的IP地址的方式具体可以为:将所述用户端发送给的域名作为目标WEB服务器的域名,将所述DNS服务器经解析后,向用户端反馈的查询结果中包含的IP地址作为所述目标WEB服务器的IP地址;或者,该透明代理服务器还可以通过记录用户端使用WEB服务器域名进行解析的次数,确定目标WEB服务器的IP地址,比如透明代理服务器记录用户端使用第一WEB服务器的域名进行解析的第一次数和使用第二WEB服务器的第二域名进行解析的第二次数,当所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,所述透明代理服务器可以将所述第一WEB服务器的域名作为所述目标WEB服务器的域名,并根据所述DNS服务器反馈的查询结果,确定所述目标WEB服务器的域名对应的IP地址,即目标WEB服务器的IP地址。It can be understood that, before the client sends a business message to the WEB server, the client usually sends the domain name of the WEB server to the DNS server for domain name resolution. The terminal feedbacks the query result including the IP address of the WEB server. Wherein, the manner in which the transparent proxy server determines the IP address of the target WEB server may specifically be: use the domain name sent by the client as the domain name of the target WEB server, and send the IP address to the client after analyzing the DNS server. The IP address contained in the feedback query result is used as the IP address of the target WEB server; or, the transparent proxy server can also determine the IP address of the target WEB server by recording the number of times the client uses the WEB server domain name to resolve, such as a transparent The proxy server records the first number of resolutions performed by the client using the domain name of the first WEB server and the second number of resolutions performed by the second domain name of the second WEB server. When the first number is greater than or equal to the first When the number of times and the preset ratio of the sum of the second times, the transparent proxy server can use the domain name of the first WEB server as the domain name of the target WEB server, and according to the query result fed back by the DNS server, determine The IP address corresponding to the domain name of the target WEB server is the IP address of the target WEB server.
需要说明的是,本实施例中的所述预置比例为90%,在实际应用中,所述预置比例可以根据实际需要进行设定,具体此处不作限定。It should be noted that the preset ratio in this embodiment is 90%, and in practical applications, the preset ratio can be set according to actual needs, which is not specifically limited here.
本实施例中,所述透明代理服务器在确定目标WEB服务器的域名之后,通过DNS服务器反馈的查询结果确定所述目标WEB服务器IP地址,在实际应用中,所述透明代理服务器还可以通过WEB服务器的域名与所述WEB服务器的IP地址的对应关系,确定所述目标WEB服务器的IP地址,具体此处不作限定。In this embodiment, after the transparent proxy server determines the domain name of the target WEB server, it determines the IP address of the target WEB server through the query result fed back by the DNS server. The corresponding relationship between the domain name of the domain name and the IP address of the WEB server determines the IP address of the target WEB server, which is not limited here.
所述WEB服务器的域名与所述WEB服务器的IP地址的对应关系可以是预先配置在所述透明代理服务器中的,也可是所述透明代理服务器通过域名和DNS反馈的所述域名对应的IP地址构建的,具体此处不作限定。The corresponding relationship between the domain name of the WEB server and the IP address of the WEB server may be pre-configured in the transparent proxy server, or the IP address corresponding to the domain name fed back by the transparent proxy server through the domain name and DNS Constructed, the details are not limited here.
203、所述透明代理服务器获取VAS服务器与所述目标WEB服务器的IP地址的对应关系。203. The transparent proxy server acquires the correspondence between the VAS server and the IP address of the target WEB server.
可以理解的是,所述透明代理服务器可以通过对用户端向目标WEB服务器的数据报文进行抽样检测,生成所述对应关系,具体为:所述透明代理服务器通过深度数据包检测(Deep Packet Inspection,DPI)分析出抽样数据报文中的目的IP地址,即目标WEB服务器的IP地址,并跟踪记录所述数据报文经过的VAS服务器,所述透明代理服务器根据所述目标WEB服务器的IP地址和所述数据报文经过的VAS服务器,生成所述对应关系,并将所述对应关系进行保存。It can be understood that the transparent proxy server can generate the corresponding relationship by sampling and detecting the data packets sent from the client to the target WEB server, specifically: the transparent proxy server passes Deep Packet Inspection (Deep Packet Inspection , DPI) analyze the destination IP address in the sampling data message, i.e. the IP address of the target WEB server, and track and record the VAS server through which the data message passes, the transparent proxy server according to the IP address of the target WEB server Generate the corresponding relationship with the VAS server through which the data message passes, and save the corresponding relationship.
需要说明的是,所述对应关系可以是所述透明代理服务器获取的,也可以是其他设备获取到所述对应关系后,预先配置在所述透明代理服务器中的,具体此处不作限定。It should be noted that the corresponding relationship may be obtained by the transparent proxy server, or may be pre-configured in the transparent proxy server after other devices obtain the corresponding relationship, which is not specifically limited here.
所述VAS服务器用于处理特定类型的数据报文,比如病毒过滤、页面适配、视频优化等,具体此处不作限定。The VAS server is used to process specific types of data packets, such as virus filtering, page adaptation, video optimization, etc., which are not limited here.
用户端通过传输控制协议(Transmission Control Protocol,TCP)或者其他协议向WEB服务器发送数据报文,具体此处不作限定。The client sends data packets to the WEB server through Transmission Control Protocol (Transmission Control Protocol, TCP) or other protocols, which are not limited here.
204、所述透明代理服务器判断所述握手报文中的目的IP地址是否为预置的目标WEB服务器的IP地址,若否,则执行步骤205,若是,则执行步骤206。204. The transparent proxy server judges whether the destination IP address in the handshake message is the preset IP address of the target WEB server, if not, execute step 205, and if yes, execute step 206.
所述透明代理服务器能够解析出所述握手报文中的目的IP地址,并将解析得到的目的IP地址与目标WEB服务器的IP地址进行比对,从而判断所述目标数据报文中的目的IP地址是否为目标WEB服务器的IP地址。The transparent proxy server can resolve the destination IP address in the handshake message, and compare the resolved destination IP address with the IP address of the target WEB server, thereby judging the destination IP address in the target data message. Whether the address is the IP address of the target WEB server.
205、所述透明代理服务器建立所述用户端和WEB服务器之间的连接。205. The transparent proxy server establishes a connection between the client and the WEB server.
当透明代理服务器判断出所述目标数据报文中的目的IP地址不是目标WEB服务器的IP地址时,所述透明代理服务器建立所述用户端和WEB服务器之间的连接。When the transparent proxy server determines that the destination IP address in the target data packet is not the IP address of the target WEB server, the transparent proxy server establishes a connection between the client and the WEB server.
206、所述透明代理服务器根据所述目的IP地址和对应关系,确定目标VAS服务器,所述对应关系为VAS服务器与所述目标WEB服务器的IP地址的对应关系。206. The transparent proxy server determines a target VAS server according to the destination IP address and a corresponding relationship, where the corresponding relationship is a corresponding relationship between the VAS server and the IP address of the target WEB server.
在所述透明代理服务器确定所述目的IP地址为目标WEB服务器的IP地址时,根据所述VAS服务器与所述目标WEB服务器的IP地址的对应关系,确定目标VAS服务器。When the transparent proxy server determines that the destination IP address is the IP address of the target WEB server, the target VAS server is determined according to the correspondence between the VAS server and the IP address of the target WEB server.
207、所述透明代理服务器构建所述用户端、所述VAS服务器和所述目标WEB服务器之间的连接,所述目标VAS服务器用于处理所述用户端与所述WEB服务器之间交互的数据报文。207. The transparent proxy server constructs a connection between the client, the VAS server, and the target WEB server, and the target VAS server is used to process data interacted between the client and the WEB server message.
可以理解的是,VAS服务器可以为特定的业务类型的数据报文提供增值服务处理,比如视频优化服务器用于处理业务类型为视频业务的数据报文,在超文本传送协议(Hypertext transfer protocol,HTTP)中,所述视频业务请求报的内容类型包括:video/mp4、video/x-flv、video/x-f4v等;页面适配服务器用于处理业务类型为页面适配业务的数据报文,在HTTP协议中,所述页面适配数据报文的内容类型包括:text/html、application/vnd.wap.xhtml、application/xhtml+xml、ext/vnd.wap.wml、application/vnd.wap.wmlc、image/jpeg、image/gif、image/png等;内容插入服务器用于处理业务类型为内容插入业务的数据报文,在HTTP协议中,所述内容插入数据报文的内容类型包括:text/html、application/vnd.wap.xhtml、application/xhtml+xml等。It can be understood that the VAS server can provide value-added service processing for data packets of a specific business type. For example, the video optimization server is used to process data packets whose business type is a video service. In Hypertext transfer protocol (Hypertext transfer protocol, HTTP ), the content type of the video service request report includes: video/mp4, video/x-flv, video/x-f4v, etc.; the page adaptation server is used to process data packets whose service type is a page adaptation service, In the HTTP protocol, the content types of the page adaptation data message include: text/html, application/vnd.wap.xhtml, application/xhtml+xml, ext/vnd.wap.wml, application/vnd.wap. wmlc, image/jpeg, image/gif, image/png, etc.; the content insertion server is used to process the data message whose service type is the content insertion service. In the HTTP protocol, the content type of the content insertion data message includes: text /html, application/vnd.wap.xhtml, application/xhtml+xml, etc.
需要说明的是,所述VAS服务器可以同时处理一种或多种数据报文,比如VAS服务器可以同时处理视频数据报文和页面适配数据报文,具体此处不作限定。It should be noted that the VAS server can process one or more types of data packets at the same time, for example, the VAS server can process video data packets and page adaptation data packets at the same time, which is not limited here.
所述透明代理服务器中包括用于与用户端连接的端口、用于与VAS服务器连接的端口和用于与WEB服务器的端口,在根据握手报文确定VAS服务器,所述透明代理服务器可以根据所述用户端连接的端口与所述VAS服务器连接的端口建立通信通道,从而实现构建用户端、目标VAS服务器和目标WEB服务器之间的连接。在所述透明代理服务器建立所述用户端与所述VAS服务器之间连接之后,所述目标VAS服务器可以处理所述目标VAS服务器用于处理所述用户端与所述WEB服务器之间交互的数据报文。Include in the described transparent proxy server the port that is used for connecting with client end, the port that is used for connecting with VAS server and the port that is used for connecting with WEB server, after determining VAS server according to handshake message, described transparent proxy server can be according to set A communication channel is established between the port connected to the client end and the port connected to the VAS server, thereby realizing the connection between the client end, the target VAS server and the target WEB server. After the transparent proxy server establishes the connection between the client and the VAS server, the target VAS server can process the data that the target VAS server uses to process the interaction between the client and the WEB server message.
本发明实施例中,所述透明代理服务器将域名解析的次数的占比大于或等于90%的域名作为目标WEB服务器的域名,再根据所述目标WEB服务器的域名可以确定出所述目标WEB服务器的IP地址,也就是说,用户端使用该目标WEB服务器的IP地址频率高,因此根据该目标服务器的IP地址和VAS服务器的对应关系,可以提高确定目标VAS服务器的成功率高。In the embodiment of the present invention, the transparent proxy server uses the domain name whose frequency of domain name resolution is greater than or equal to 90% as the domain name of the target WEB server, and then can determine the target WEB server according to the domain name of the target WEB server That is to say, the client uses the IP address of the target WEB server frequently, so according to the correspondence between the IP address of the target server and the VAS server, the success rate of determining the target VAS server can be increased.
二、所述透明代理服务器获取所述目标WEB服务器的IP地址,具体为:所述透明代理服务器确定所述用户端向所述WEB服务器发送所述第一数据报文的第一次数和发送第二数据报文的第二次数,所述第一次数大于第二次数,所述第一数据报文包括第一目的IP地址,所述第二数据报文包括第二目的IP地址;若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一目的IP地址为所述目标WEB服务器的IP地址;所述透明代理服务器保存所述目标WEB服务器的IP地址。2. The transparent proxy server obtains the IP address of the target WEB server, specifically: the transparent proxy server determines the first number and sending number of the first data message sent by the client to the WEB server The second number of times of the second data message, the first number is greater than the second number of times, the first data message includes the first destination IP address, and the second data message includes the second destination IP address; if When the first number is greater than or equal to the preset ratio of the sum of the first number and the second number, it is determined that the first destination IP address is the IP address of the target WEB server; the transparent proxy The server saves the IP address of the target WEB server.
请参阅图3,本发明实施例三提供的一种报文处理的方法包括:Referring to FIG. 3, a message processing method provided by Embodiment 3 of the present invention includes:
301、透明代理服务器获取用户端向WEB服务器发送的握手报文。301. The transparent proxy server obtains the handshake message sent from the client to the WEB server.
可以理解的是,所述透明代理服务器工作在透明代理模式下,所述透明代理服务器部署在用户端和WEB服务器之间,为用户端和WEB服务器都不感知的代理服务器,用户端与WEB服务器进行交互时产生的数据报文,都会经过所述透明代理服务器,比如在PCC架构中,所述透明代理服务器为PCEF/TDF。It can be understood that the transparent proxy server works in a transparent proxy mode, the transparent proxy server is deployed between the client and the WEB server, and is a proxy server that neither the client nor the WEB server perceives, and the client and the WEB server Data packets generated during interaction will pass through the transparent proxy server. For example, in the PCC architecture, the transparent proxy server is PCEF/TDF.
当所述用户端需要与WEB服务器进行初始建连时,所述用户端与所述WEB服务器之间产生的握手报文将经过透明代理服务器,此时透明代理服务器可以获取握手报文,并识别出该握手报文中的目的IP地址,比如在TCP/IP协议中,采用三次握手建立连接的方式,在第一次握手时,所述用户端会向WEB服务器发送同步(synchronous,syn)握手报文,此时透明代理服务器可以获取该syn握手报文,并且所述透明代理服务器能够识别出该syn握手报文中的目的IP地址。When the client needs to initially establish a connection with the WEB server, the handshake message generated between the client and the WEB server will pass through the transparent proxy server. At this time, the transparent proxy server can obtain the handshake message and identify Get the destination IP address in the handshake message. For example, in the TCP/IP protocol, a three-way handshake is used to establish a connection. During the first handshake, the client will send a synchronous (synchronous, syn) handshake to the WEB server At this time, the transparent proxy server can obtain the syn handshake message, and the transparent proxy server can identify the destination IP address in the syn handshake message.
用户端可以是手机、平板电脑等移动终端,也可以是笔记本电脑等可以接入网络的设备,具体此处不作限定。The client end may be a mobile terminal such as a mobile phone or a tablet computer, or a device capable of accessing the network such as a laptop computer, which is not specifically limited herein.
可选地,在步骤301之后,还包括302、303和304。Optionally, after step 301, steps 302, 303 and 304 are also included.
302、所述透明代理服务器确定所述用户端向所述WEB服务器发送所述第一数据报文的第一次数和发送第二数据报文的第二次数,所述第一次数大于第二次数,所述第一数据报文包括第一目的IP地址,所述第二数据报文包括第二目的IP地址。302. The transparent proxy server determines the first number of times the client sends the first data message to the WEB server and the second number of times the second data message is sent, and the first number is greater than the first number Second times, the first data packet includes the first destination IP address, and the second data packet includes the second destination IP address.
可以理解的是,在用户端向所述WEB服务器发送数据报文时,所述透明代理服务器可以获取所述用户端向WEB服务器发送数据报文,并记录所述用户端向所述WEB服务器发送数据报文的次数,所述透明代理服务器还可以对获取到的数据报文进行分析,以获取所述数据报文中的目的IP地址,比如所述透明代理服务器记录所述用户端向第一WEB服务器发送第一数据报文的第一次数,以及向第二WEB服务器发送第二数据报文的第二次数,并分析出所述第一数据报文中的第一目的IP地址和第二数据报文中的第二目的IP地址。It can be understood that, when the client sends a data packet to the WEB server, the transparent proxy server can obtain the data packet sent by the client to the WEB server, and record that the client sends the data packet to the WEB server. The number of times of the data message, the transparent proxy server can also analyze the obtained data message to obtain the destination IP address in the data message, such as the transparent proxy server records the client to the first The first number of times the WEB server sends the first data message, and the second number of times the second data message is sent to the second WEB server, and analyze the first destination IP address and the second data message in the first data message The second destination IP address in the second data packet.
303、若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,所述透明代理服务器确定所述第一目的IP地址为所述目标WEB服务器的IP地址,并保存所述目标WEB服务器的IP地址。303. If the first number is greater than or equal to a preset ratio of the sum of the first number and the second number, the transparent proxy server determines that the first destination IP address is the address of the target WEB server IP address, and save the IP address of the target WEB server.
可以理解的是,所述透明代理服务器可以比较所述第一次数是否大于第二次数,并且判断所述第一次数是否大于或等于所述第一次数与第二次数之和的预置比例,当所述透明代理服务器判断出所述第一次数大于第二次数,并且所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,将所述第一目的IP地址作为目标WEB服务器的IP地址,并将所述目标WEB服务器的IP地址保存在所述透明代理服务器中。It can be understood that the transparent proxy server can compare whether the first number is greater than the second number, and judge whether the first number is greater than or equal to a predetermined sum of the first number and the second number. When the transparent proxy server judges that the first number is greater than the second number, and the first number is greater than or equal to the preset ratio of the sum of the first number and the second number, The first destination IP address is used as the IP address of the target WEB server, and the IP address of the target WEB server is saved in the transparent proxy server.
需要说明的是,本实施例中的所述预置比例为90%,在实际应用中,所述预置比例可以根据实际需要进行设定,具体此处不作限定。It should be noted that the preset ratio in this embodiment is 90%, and in practical applications, the preset ratio can be set according to actual needs, which is not specifically limited here.
304、所述透明代理服务器获取VAS服务器与所述目标WEB服务器的IP地址的对应关系。304. The transparent proxy server acquires the correspondence between the VAS server and the IP address of the target WEB server.
305、所述透明代理服务器判断所述握手报文中的目的IP地址是否为预置的目标WEB服务器的IP地址,若否,则执行步骤306,若是,则执行步骤307。305. The transparent proxy server judges whether the destination IP address in the handshake message is the preset IP address of the target WEB server, if not, execute step 306, and if yes, execute step 307.
306、所述透明代理服务器建立所述用户端和WEB服务器之间的连接。306. The transparent proxy server establishes a connection between the client and the WEB server.
307、所述透明代理服务器根据所述目的IP地址和对应关系,确定目标VAS服务器,所述对应关系为VAS服务器与所述目标WEB服务器的IP地址的对应关系。307. The transparent proxy server determines a target VAS server according to the destination IP address and a corresponding relationship, where the corresponding relationship is a corresponding relationship between the VAS server and the IP address of the target WEB server.
308、所述透明代理服务器构建所述用户端、所述VAS服务器和所述目标WEB服务器之间的连接,所述目标VAS服务器用于处理所述用户端与所述WEB服务器之间交互的数据报文。308. The transparent proxy server constructs a connection between the client, the VAS server, and the target WEB server, and the target VAS server is used to process data interacted between the client and the WEB server message.
本发明实施例中,本发明实施例中,所述透明代理服务器确定出用户端发送次数占比大于或等于90%的业务报文,并将该业务报文中的目的IP地址作为目标WEB服务器的IP地址,也就是说,该用户端使用该目标WEB服务器的IP地址频率高,因此根据该目标服务器的IP地址和VAS服务器的对应关系,可以提高确定出目标VAS服务器的成功率。In the embodiment of the present invention, in the embodiment of the present invention, the transparent proxy server determines that the service message sent by the client terminal accounts for more than or equal to 90%, and uses the destination IP address in the service message as the target WEB server That is to say, the client uses the IP address of the target WEB server frequently, so according to the correspondence between the IP address of the target server and the VAS server, the success rate of determining the target VAS server can be improved.
上面实施例中所描述的一种报文处理的方法中,所述透明代理服务器中预置目标WEB服务器的IP地址,在实际应用中,所述透明代理服务器中也可以预置目标WEB服务器的域名,下面对本发明实施例中的另外一种报文处理方法进行描述:In the method for processing a message described in the above embodiment, the IP address of the target WEB server is preset in the transparent proxy server, and in practical applications, the IP address of the target WEB server can also be preset in the transparent proxy server. domain name, another message processing method in the embodiment of the present invention is described below:
请参阅图4,本发明实施例四提供的一种报文处理的方法包括:Referring to FIG. 4, a message processing method provided by Embodiment 4 of the present invention includes:
401、透明代理服务器获取用户端向WEB服务器发送的握手报文,所述握手报文中IP地址为所述WEB服务器的IP地址。401. The transparent proxy server acquires a handshake packet sent from the client to the WEB server, where the IP address in the handshake packet is the IP address of the WEB server.
可以理解的是,所述透明代理服务器工作在透明代理模式下,所述透明代理服务器部署在用户端和WEB服务器之间,为用户端和WEB服务器都不感知的代理服务器,用户端与WEB服务器进行交互时产生的数据报文,都会经过所述透明代理服务器,比如在PCC架构中,所述透明代理服务器为PCEF/TDF。It can be understood that the transparent proxy server works in a transparent proxy mode, the transparent proxy server is deployed between the client and the WEB server, and is a proxy server that neither the client nor the WEB server perceives, and the client and the WEB server Data packets generated during interaction will pass through the transparent proxy server. For example, in the PCC architecture, the transparent proxy server is PCEF/TDF.
当所述用户端需要与WEB服务器进行初始建连时,所述用户端与所述WEB服务器之间产生的握手报文将经过透明代理服务器,此时透明代理服务器可以获取握手报文,并识别出该握手报文中的目的IP地址,比如在TCP/IP协议中,采用三次握手建立连接的方式,在第一次握手时,所述用户端会向WEB服务器发送同步(synchronous,syn)握手报文,此时透明代理服务器可以获取该syn握手报文,并且所述透明代理服务器能够识别出该syn握手报文中的目的IP地址。When the client needs to initially establish a connection with the WEB server, the handshake message generated between the client and the WEB server will pass through the transparent proxy server. At this time, the transparent proxy server can obtain the handshake message and identify Get the destination IP address in the handshake message. For example, in the TCP/IP protocol, a three-way handshake is used to establish a connection. During the first handshake, the client will send a synchronous (synchronous, syn) handshake to the WEB server At this time, the transparent proxy server can obtain the syn handshake message, and the transparent proxy server can identify the destination IP address in the syn handshake message.
用户端可以是手机、平板电脑等移动终端,也可以是笔记本电脑等可以接入网络的设备,具体此处不作限定。The client end may be a mobile terminal such as a mobile phone or a tablet computer, or a device capable of accessing the network such as a laptop computer, which is not specifically limited herein.
402、所述透明代理服务器根据所述目的IP地址和第一对应关系,确定WEB服务器的域名,所述第一对应关系为WEB服务器的域名与WEB服务器的IP地址的对应关系。402. The transparent proxy server determines the domain name of the WEB server according to the destination IP address and a first correspondence, and the first correspondence is a correspondence between the domain name of the WEB server and the IP address of the WEB server.
所述透明代理服务器从获取到的握手报文中获取目的IP地址,所述目的IP地址为WEB服务器的IP地址,根据WEB服务器的域名与WEB服务器的IP地址的对应关系,可确定所述WEB服务器的IP地址。The transparent proxy server obtains the destination IP address from the obtained handshake message, the destination IP address is the IP address of the WEB server, and according to the corresponding relationship between the domain name of the WEB server and the IP address of the WEB server, the WEB server can be determined The IP address of the server.
403、当确定所述WEB服务器的域名为预置的目标WEB服务器的域名时,所述透明代理服务器根据所述WEB服务器的域名和第一对应关系,确定所述目标数据报文的业务类型,所述第一对应关系为VAS服务器与所述目标WEB服务器的域名的对应关系。403. When determining that the domain name of the WEB server is the preset domain name of the target WEB server, the transparent proxy server determines the service type of the target data packet according to the domain name of the WEB server and the first correspondence, The first corresponding relationship is the corresponding relationship between the VAS server and the domain name of the target WEB server.
所述透明代理服务器能够判断WEB服务器的域名是否为所述透明代理服务器中预置的目标WEB服务器的域名,当判断出所述WEB服务器的域名为所述透明代理服务器中预置的目标WEB服务的域名时,根据VAS服务器与所述目标服务器的域名的对应关系,确定目标VAS服务器。The transparent proxy server can judge whether the domain name of the WEB server is the domain name of the target WEB server preset in the transparent proxy server, when it is judged that the domain name of the WEB server is the target WEB service preset in the transparent proxy server When the domain name is specified, the target VAS server is determined according to the corresponding relationship between the VAS server and the domain name of the target server.
404、所述透明代理服务器构建所述用户端、所述目标VAS服务器和所述WEB服务器之间的连接,所述目标VAS服务器用于处理所述用户端与所述WEB服务器之间交互的数据报文。404. The transparent proxy server constructs a connection between the client, the target VAS server, and the WEB server, and the target VAS server is used to process data interacted between the client and the WEB server message.
可以理解的是,特定的VAS服务器用于处理一种或多种业务类型的数据报文,当获取到用户端向所述WEB服务器发送的数据报文时,所述透明代理服务器可以将所述数据报文转发至所述目标VAS服务器,使所述目标VAS服务器对接收到的数据报文进行相应的增值业务处理,并发送给所述WEB服务器,所述WEB服务器向所述用户端反馈的所述数据报文也可以经过所述VAS服务器进行处理。It can be understood that the specific VAS server is used to process data packets of one or more types of services, and when the data packets sent by the client to the WEB server are obtained, the transparent proxy server can transfer the The data message is forwarded to the target VAS server, so that the target VAS server performs corresponding value-added service processing on the received data message, and sends it to the WEB server, and the WEB server feeds back to the client The data message may also be processed by the VAS server.
本发明实施例中,透明代理服务器根据WEB服务器的IP地址和第一对应关系,确定数据报文的目的IP地址对应的WEB服务器的域名,当判断出所述WEB服务器的域名为预置的目标WEB服务器的域名时,根据所述WEB服务器的域名和第二对应关系,确定VAS服务器,从而缩短该透明代理服务器确定目标VAS服务器的时长,使业务报文及时得到VAS服务器的处理,提升用户体验。In the embodiment of the present invention, the transparent proxy server determines the domain name of the WEB server corresponding to the destination IP address of the data message according to the IP address of the WEB server and the first corresponding relationship. When it is determined that the domain name of the WEB server is the preset target When the domain name of the WEB server is used, the VAS server is determined according to the domain name of the WEB server and the second corresponding relationship, thereby shortening the time for the transparent proxy server to determine the target VAS server, so that business messages can be processed by the VAS server in time, and user experience is improved. .
上述实施例四中,所述透明代理服务器根据所述WEB服务器的域名和第二对应关系,确定所述目标VAS服务器,在实际应用中,所述第二对应关系可以为预先配置在所述透明代理服务器中的,也可以为所述透明代理服务器获取到的,下面对所述透明代理服务器获取所述第二对应关系进行详细描述:In the fourth embodiment above, the transparent proxy server determines the target VAS server according to the domain name of the WEB server and the second corresponding relationship. In practical applications, the second corresponding relationship may be pre-configured in the transparent The ones in the proxy server may also be obtained by the transparent proxy server. The second corresponding relationship obtained by the transparent proxy server is described in detail below:
请参阅图5,本发明实施例五提供的一种报文处理的方法包括:Referring to FIG. 5, a message processing method provided by Embodiment 5 of the present invention includes:
501、透明代理服务器获取用户端向WEB服务器发送的握手报文,所述握手报文中IP地址为所述WEB服务器的IP地址。501. The transparent proxy server acquires a handshake packet sent from the client to the WEB server, where the IP address in the handshake packet is the IP address of the WEB server.
可以理解的是,所述透明代理服务器工作在透明代理模式下,所述透明代理服务器部署在用户端和WEB服务器之间,为用户端和WEB服务器都不感知的代理服务器,用户端与WEB服务器进行交互时产生的数据报文,都会经过所述透明代理服务器,比如在PCC架构中,所述透明代理服务器为PCEF/TDF。It can be understood that the transparent proxy server works in a transparent proxy mode, the transparent proxy server is deployed between the client and the WEB server, and is a proxy server that neither the client nor the WEB server perceives, and the client and the WEB server Data packets generated during interaction will pass through the transparent proxy server. For example, in the PCC architecture, the transparent proxy server is PCEF/TDF.
当所述用户端需要与WEB服务器进行初始建连时,所述用户端与所述WEB服务器之间产生的握手报文将经过透明代理服务器,此时透明代理服务器可以获取握手报文,并识别出该握手报文中的目的IP地址,比如在TCP/IP协议中,采用三次握手建立连接的方式,在第一次握手时,所述用户端会向WEB服务器发送同步(synchronous,syn)握手报文,此时透明代理服务器可以获取该syn握手报文,并且所述透明代理服务器能够识别出该syn握手报文中的目的IP地址。When the client needs to initially establish a connection with the WEB server, the handshake message generated between the client and the WEB server will pass through the transparent proxy server. At this time, the transparent proxy server can obtain the handshake message and identify Get the destination IP address in the handshake message. For example, in the TCP/IP protocol, a three-way handshake is used to establish a connection. During the first handshake, the client will send a synchronous (synchronous, syn) handshake to the WEB server At this time, the transparent proxy server can obtain the syn handshake message, and the transparent proxy server can identify the destination IP address in the syn handshake message.
用户端可以是手机、平板电脑等移动终端,也可以是笔记本电脑等可以接入网络的设备,具体此处不作限定。The client end may be a mobile terminal such as a mobile phone or a tablet computer, or a device capable of accessing the network such as a laptop computer, which is not specifically limited herein.
可选地,在步骤501之后,还包括步骤502、503和504。Optionally, after step 501, steps 502, 503 and 504 are also included.
502、所述透明代理服务器获取WEB服务器的域名与WEB服务器的IP地址的对应关系。502. The transparent proxy server obtains the correspondence between the domain name of the WEB server and the IP address of the WEB server.
可以理解的是,在用户端向WEB服务器发送业务报文之前,该用户端通常会将WEB服务器的域名发送给DNS服务器进行域名解析,该DNS服务器经解析后,经所述透明代理服务器向用户端反馈包含WEB服务器IP地址的查询结果,此时,所述透明代理服务器可以根据所述DNS服务器反馈的查询结果和所述用户端发送的域名,确定所述WEB服务器的域名与所述WEB服务器的IP地址的对应关系。It can be understood that, before the client sends a business message to the WEB server, the client usually sends the domain name of the WEB server to the DNS server for domain name resolution. End feedback includes the query result of the IP address of the WEB server. At this time, the transparent proxy server can determine the domain name of the WEB server and the domain name of the WEB server according to the query result fed back by the DNS server and the domain name sent by the client. The corresponding relationship between IP addresses.
503、所述透明代理服务器获取所述目标WEB服务器的域名。503. The transparent proxy server acquires the domain name of the target WEB server.
所述透明代理服务器获取所述目标WEB服务器的域名的方式至少包括如下两种:The manner in which the transparent proxy server acquires the domain name of the target WEB server includes at least the following two methods:
一、所述透明代理服务器确定所述目标WEB服务器的IP地址,并根据所述目标WEB服务器的IP地址,确定所述目标WEB服务器的域名,保存所述目标WEB服务器的域名。1. The transparent proxy server determines the IP address of the target WEB server, determines the domain name of the target WEB server according to the IP address of the target WEB server, and saves the domain name of the target WEB server.
需要说明的是,本实施例中,所述透明代理服务器确定所述目标WEB服务器的IP地址的方式具体为:所述透明代理服务器记录所述用户端向WEB服务器发送业务报文的次数,并将发送次数较多的业务报文中的目的IP地址,作为目标WEB服务器的IP地址,比如所述透明代理服务器记录用户端向第一WEB服务器发送第一业务报文的第一次数和向第二WEB服务器发送第二业务报文的第二次数,若所述第一次数大于第二次数,并且所述第一次数大于或等于所述第一次数与第二次数之和的90%时,则将所述第一业务报文中的第一目的IP地址作为目标WEB服务器的IP地址,在实际应用中,所述透明代理服务器还可以直接将获取到的所述用户端发送的业务报文中的IP地址,作为目标WEB服务器的IP地址,或者,所述透明代理服务器还可以通过其他方式确定所述目标WEB服务器的IP地址,具体此处不作限定。It should be noted that, in this embodiment, the manner in which the transparent proxy server determines the IP address of the target WEB server is specifically: the transparent proxy server records the number of times the client sends service packets to the WEB server, and The destination IP address in the business message sent more times is used as the IP address of the target WEB server. For example, the transparent proxy server records the first number of times the client sends the first service message to the first WEB server and sends to the first WEB server. The second number of times that the second WEB server sends the second service message, if the first number is greater than the second number, and the first number is greater than or equal to the sum of the first number and the second number 90%, then use the first destination IP address in the first service message as the IP address of the target WEB server. In practical applications, the transparent proxy server can also directly send the acquired client The IP address in the service message is used as the IP address of the target WEB server, or the transparent proxy server may also determine the IP address of the target WEB server in other ways, which are not specifically limited here.
本发明实施例中所述透明代理服务器确定出用户端发送次数占比大于或等于90%的业务报文,并将该业务报文中的目的IP地址作为目标WEB服务器的IP地址,也就是说,该用户端使用该目标WEB服务器的IP地址频率高,根据该服务器的IP地址和所述服务器域名的对应关系确定的目标WEB服务器的域名,也就说,用户端使用该目标WEB服务器的域名频率高,VAS服务器的对应关系,可以提高确定目标VAS服务器的成功率高。In the embodiment of the present invention, the transparent proxy server determines that the service message sent by the user end accounts for more than or equal to 90%, and uses the destination IP address in the service message as the IP address of the target WEB server, that is to say , the client uses the IP address of the target WEB server frequently, and the domain name of the target WEB server is determined according to the correspondence between the IP address of the server and the domain name of the server, that is to say, the client uses the domain name of the target WEB server The high frequency and the corresponding relationship between VAS servers can improve the success rate of determining the target VAS server.
需要说明的是,所述第一次数与所述第一次数和第二次数之和的占比可以根据实际需要进行设定,本实施例中的预置比例为90%,具体此处不作限定。It should be noted that the ratio of the first number to the sum of the first number and the second number can be set according to actual needs, and the preset ratio in this embodiment is 90%, specifically here Not limited.
所述透明代理服务器根据所述目标WEB服务器的IP地址,确定所述目标WEB服务器的域名的方式具体为:所述透明代理服务器根据所述目标WEB服务器的IP地址和所述WEB服务器的域名与所述WEB服务器的IP地址的对应关系,确定所述目标WEB服务器的域名,在实际应用中,所述透明代理服务器还可以根据其他方式进行确定,具体此处不作限定。The manner in which the transparent proxy server determines the domain name of the target WEB server according to the IP address of the target WEB server is specifically: the transparent proxy server determines the domain name of the target WEB server according to the IP address of the target WEB server and the domain name of the WEB server and The correspondence between the IP addresses of the WEB servers determines the domain name of the target WEB server. In practical applications, the transparent proxy server can also be determined in other ways, which are not specifically limited here.
二、所述透明代理服务器根据用户端使用WEB服务器的域名进行解析的次数,并将域名解析次数占比高的域名作为目标服务器的域名。2. The transparent proxy server uses the number of times the client uses the domain name of the WEB server to perform resolutions, and uses the domain name with a high proportion of domain name resolution times as the domain name of the target server.
举例来说,所述透明代理服务器确定所述用户端使用第一WEB服务器的域名进行解析的第一次数和使用第二WEB服务器的域名进行解析的第二次数,若所述第一次数大于第二次数,并且所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则将所述第一WEB服务器的域名作为所述本发明实施例中,所述透明代理服务器将域名解析的次数的占比大于或等于90%的域名作为目标WEB服务器的域名,也就是说,用户端使用该目标WEB服务器的域名频率高,因此根据该目标服务器的域名和VAS服务器的对应关系,可以提高确定出目标VAS服务器的成功率。For example, the transparent proxy server determines the first number of resolutions by the client using the domain name of the first WEB server and the second number of resolutions by the domain name of the second WEB server, if the first number is greater than the second number, and the first number is greater than or equal to the preset ratio of the sum of the first number and the second number, then the domain name of the first WEB server is used as the domain name of the embodiment of the present invention In the above, the transparent proxy server uses the domain name whose frequency of domain name resolution is greater than or equal to 90% as the domain name of the target WEB server, that is to say, the client uses the domain name of the target WEB server frequently, so according to The corresponding relationship between the domain name and the VAS server can improve the success rate of determining the target VAS server.
需要说明的是,域名解析的次数的占比可以根据实际需要进行设定,本实施例中的域名解析的次数的占比为90%,具体此处不作限定。It should be noted that the proportion of times of domain name resolution can be set according to actual needs. In this embodiment, the proportion of times of domain name resolution is 90%, which is not specifically limited here.
504、所述透明代理服务器获取VAS服务器与所述预置的目标WEB服务器的域名的对应关系。504. The transparent proxy server obtains the correspondence between the domain name of the VAS server and the preset target WEB server.
可以理解的是,所述透明代理服务器在获取用户端向WEB服务器发送的业务报文时,所述透明代理服务器能够通过DPI分析出所述业务报文的目的IP地址,所述代理服务器能够根据所述目的IP地址和所述第一对应关系,从而确定所述WEB服务器的域名,并跟踪记录所述数据报文经过的VAS服务器,所述透明代理服务器根据所述目标WEB服务器的IP地址和所述数据报文经过的VAS服务器,生成所述对应关系,并将所述对应关系进行保存。It can be understood that, when the transparent proxy server obtains the service message sent by the client to the WEB server, the transparent proxy server can analyze the destination IP address of the service message through the DPI, and the proxy server can analyze the service message according to the The purpose IP address and the first corresponding relationship, thereby determining the domain name of the WEB server, and tracking and recording the VAS server through which the data message passes, and the transparent proxy server according to the IP address of the target WEB server and The VAS server through which the data message passes generates the corresponding relationship and stores the corresponding relationship.
需要说明的是,所述对应关系可以是所述透明代理服务器获取的,也可以是其他设备获取到所述对应关系后,预先配置在所述透明代理服务器中的,具体此处不作限定。It should be noted that the corresponding relationship may be obtained by the transparent proxy server, or may be pre-configured in the transparent proxy server after other devices obtain the corresponding relationship, which is not specifically limited here.
505、所述透明代理服务器根据所述握手报文的目的IP地址和第一对应关系,确定所述WEB服务器的域名。505. The transparent proxy server determines the domain name of the WEB server according to the destination IP address of the handshake message and the first correspondence.
所述透明代理服务器能耐解析出握手报文中的目的IP地址,并根据获取到的WEB服务器的域名与WEB服务器的IP地址的对应关系,确定所述WEB服务器的域名。The transparent proxy server can resolve the destination IP address in the handshake message, and determine the domain name of the WEB server according to the obtained corresponding relationship between the domain name of the WEB server and the IP address of the WEB server.
506、判断所述WEB服务器的域名是否为预置的目标WEB服务器的域名,若是,则执行步骤507,若是,则执行步骤508。506. Determine whether the domain name of the WEB server is the preset domain name of the target WEB server, if yes, perform step 507, and if yes, perform step 508.
所述透明代理服务器能够将WEB服务器的域名与目标WEB服务的域名进行比对,从而判断所述WEB服务器的域名是否为预置的目标WEB服务器的域名。The transparent proxy server can compare the domain name of the WEB server with the domain name of the target WEB service, thereby judging whether the domain name of the WEB server is the preset domain name of the target WEB server.
507、所述透明代理服务器建立所述用户端和WEB服务器之间的连接。507. The transparent proxy server establishes a connection between the client and the WEB server.
508、所述透明代理服务器根据所述目的IP地址和对应关系,确定目标VAS服务器,所述对应关系为VAS服务器与所述目标WEB服务器的IP地址的对应关系。508. The transparent proxy server determines a target VAS server according to the destination IP address and a corresponding relationship, where the corresponding relationship is a corresponding relationship between the VAS server and the IP address of the target WEB server.
在所述透明代理服务器确定所述目的IP地址为目标WEB服务器的IP地址时,根据所述VAS服务器与所述目标WEB服务器的IP地址的对应关系,确定目标VAS服务器。When the transparent proxy server determines that the destination IP address is the IP address of the target WEB server, the target VAS server is determined according to the correspondence between the VAS server and the IP address of the target WEB server.
509、所述透明代理服务器构建所述用户端、所述VAS服务器和所述目标WEB服务器之间的连接,所述目标VAS服务器用于处理所述用户端与所述WEB服务器之间交互的数据报文。509. The transparent proxy server constructs a connection between the client, the VAS server, and the target WEB server, and the target VAS server is used to process data interacted between the client and the WEB server message.
本实施例中的509可采用与实施例二相同的方法,此处不再赘述。509 in this embodiment may adopt the same method as that in Embodiment 2, and details are not repeated here.
本发明实施例中,透明代理服务器根据WEB服务器的IP地址和第一对应关系,确定数据报文的目的IP地址对应的WEB服务器的域名,当判断出所述WEB服务器的域名为预置的目标WEB服务器的域名时,根据所述WEB服务器的域名和第二对应关系,确定VAS服务器,从而缩短该透明代理服务器确定目标VAS服务器的时长,使业务报文及时得到VAS服务器的处理,提升用户体验。In the embodiment of the present invention, the transparent proxy server determines the domain name of the WEB server corresponding to the destination IP address of the data message according to the IP address of the WEB server and the first corresponding relationship. When it is determined that the domain name of the WEB server is the preset target When the domain name of the WEB server is used, the VAS server is determined according to the domain name of the WEB server and the second corresponding relationship, thereby shortening the time for the transparent proxy server to determine the target VAS server, so that business messages can be processed by the VAS server in time, and user experience is improved. .
上面对本发明实施例的方法部分进行了描述,下面对本发明实施例的装置部分进行描述,请参阅图6,本发明实施例六提供的透明代理服务器包括:The method part of the embodiment of the present invention is described above, and the device part of the embodiment of the present invention is described below. Please refer to FIG. 6. The transparent proxy server provided by Embodiment 6 of the present invention includes:
获取单元601,用于获取用户端向WEB服务器发送的握手报文。The obtaining unit 601 is configured to obtain the handshake message sent by the client to the WEB server.
可选地,所述获取单元601还用于获取所述目标WEB服务器的IP地址。Optionally, the acquiring unit 601 is further configured to acquire the IP address of the target WEB server.
其中,所述获取单元601获取所述目标WEB服务器的IP地址的方式包括至少如下两种:Wherein, the acquisition unit 601 acquires the IP address of the target WEB server in at least the following two ways:
一、所述获取单元601通过确定所述目标WEB服务器的域名,并根据所述目标WEB服务器的域名,确定所述目标WEB服务器的IP地址,然后再保存所述目标WEB服务器的IP地址。1. The obtaining unit 601 determines the domain name of the target WEB server, and according to the domain name of the target WEB server, determines the IP address of the target WEB server, and then saves the IP address of the target WEB server.
需要说明的是,所述获取单元601确定所述目标WEB服务器的域名,具体可以通过确定所述用户端使用第一WEB服务器的域名进行解析的第一次数和使用第二WEB服务器的域名进行解析的第二次数,所述第一次数大于第二次数,若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一WEB服务器的域名为所述目标WEB服务器的域名。It should be noted that the obtaining unit 601 determines the domain name of the target WEB server, specifically by determining the first number of times the client uses the domain name of the first WEB server for resolution and the domain name of the second WEB server. The second number of parsing, the first number is greater than the second number, if the first number is greater than or equal to the preset ratio of the sum of the first number and the second number, then determine the first A domain name of the WEB server is the domain name of the target WEB server.
二、所述获取单元601通过确定所述用户端向第一WEB服务器发送第一业务报文的第一次数和向第二WEB服务器发送第二业务报文的第二次数,所述第一次数大于第二次数,所述第一业务报文包括第一目的IP地址,所述第二业务报文包括第二目的IP地址;若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一目的IP地址为所述目标WEB服务器的IP地址,然后保存所述目标WEB服务器的IP地址。2. The acquisition unit 601 determines the first number of times the client sends the first service message to the first WEB server and the second number of times the client sends the second service message to the second WEB server, the first The number of times is greater than the second number of times, the first service message includes the first destination IP address, and the second service message includes the second destination IP address; if the first number is greater than or equal to the first time When the preset ratio of the sum of the number of times and the second number of times is determined, the first destination IP address is determined to be the IP address of the target WEB server, and then the IP address of the target WEB server is saved.
可选地,所述获取单元601还用于获取所述对应关系。Optionally, the acquiring unit 601 is further configured to acquire the corresponding relationship.
确定单元602,用于当确定所述握手报文中的目的IP地址为预置的目标WEB服务器的IP地址时,根据所述目的IP地址和对应关系,确定目标VAS服务器,所述对应关系为VAS服务器与所述目标WEB服务器的IP地址的对应关系。The determining unit 602 is configured to determine the target VAS server according to the target IP address and the corresponding relationship when determining that the target IP address in the handshake message is the preset target WEB server IP address, the corresponding relationship is The corresponding relationship between the VAS server and the IP address of the target WEB server.
构建单元603,用于构建所述用户端、所述目标VAS服务器和所述WEB服务器之间的连接,所述目标VAS服务器用于处理所述用户端与所述WEB服务器之间交互的业务报文。A construction unit 603, configured to construct a connection between the client, the target VAS server, and the WEB server, and the target VAS server is used to process service reports interacted between the client and the WEB server arts.
实施例六中,透明代理服务器通过预置的目标WEB服务器的IP地址与从握手报文中获取到的目的IP地址进行匹配,并利用预置的目标WEB服务器的IP地址与VAS服务器的对应关系确定目标VAS服务器,在实际应用中,所述透明代理服务器还可以通过预置的目标WEB服务器的域名与VAS服务器的对应关系,从而确定目标VAS服务器。In Embodiment 6, the transparent proxy server matches the IP address of the preset target WEB server with the destination IP address obtained from the handshake message, and uses the corresponding relationship between the preset IP address of the target WEB server and the VAS server Determine the target VAS server. In practical applications, the transparent proxy server can also determine the target VAS server through the preset corresponding relationship between the domain name of the target WEB server and the VAS server.
下面请继续参阅图6,对本发明实施例七提供的一种透明代理服务器进行描述,具体包括:Please continue to refer to FIG. 6 below to describe a transparent proxy server provided by Embodiment 7 of the present invention, which specifically includes:
获取单元601,用于获取用户端向WEB服务器发送的握手报文,所述握手报文中的目的IP地址为所述WEB服务器的IP地址.The obtaining unit 601 is configured to obtain a handshake message sent by the client to the WEB server, where the destination IP address in the handshake message is the IP address of the WEB server.
可选地,所述获取单元601还用于获取所述目标服务器的域名。Optionally, the acquiring unit 601 is further configured to acquire the domain name of the target server.
其中,所述获取单元601还用于获取所述目标服务器的域名的方式包括至少如下两种:Wherein, the method for obtaining the domain name of the target server by the obtaining unit 601 includes at least the following two methods:
一、所述获取单元601通过确定所述目标WEB服务器的IP地址,并根据所述目标WEB服务器的IP地址,确定所述目标WEB服务器的域名,再将所述目标WEB服务器的域名进行保存。1. The obtaining unit 601 determines the IP address of the target WEB server, and according to the IP address of the target WEB server, determines the domain name of the target WEB server, and then saves the domain name of the target WEB server.
需要说明的是,所述获取单元601确定所述目标WEB服务器的IP地址具体可以通过确定所述用户端向第一WEB服务器发送第一业务报文的第一次数和向第二WEB服务器发送第二业务报文的第二次数,所述第一次数大于第二次数,所述第一业务报文包括第一目的IP地址,所述第二业务报文包括第二目的IP地址;若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一目的IP地址为所述目标WEB服务器的IP地址。It should be noted that, the obtaining unit 601 may specifically determine the IP address of the target WEB server by determining the first number of times the client sends the first service packet to the first WEB server and the number of sending the first service packet to the second WEB server. The second number of times of the second service message, the first number is greater than the second number, the first service message includes the first destination IP address, and the second service message includes the second destination IP address; if When the first number is greater than or equal to a preset ratio of the sum of the first number and the second number, it is determined that the first destination IP address is the IP address of the target WEB server.
二、所述获取单元601可以通过确定所述用户端使用第一WEB服务器的域名进行解析的第一次数和使用第二WEB服务器的域名进行解析的第二次数,所述第一次数大于第二次数;若所述第一次数大于或等于所述第一次数与第二次数之和的预置比例时,则确定所述第一WEB服务器的域名为所述目标WEB服务器的域名,然后将所述目标WEB服务器的域名进行保存。2. The acquiring unit 601 can determine the first number of times the client uses the domain name of the first WEB server for resolution and the second number of times the client uses the domain name of the second WEB server for resolution, and the first number is greater than The second number of times; if the first number is greater than or equal to the preset ratio of the sum of the first number and the second number of times, then it is determined that the domain name of the first WEB server is the domain name of the target WEB server , and then save the domain name of the target WEB server.
可选地,所述获取单元601还用于获取所述第一对应关系。Optionally, the acquiring unit 601 is further configured to acquire the first correspondence.
可选地,所述获取单元601,还用于获取所述第二对应关系。Optionally, the acquiring unit 601 is further configured to acquire the second correspondence.
确定单元602,用于根据所述目的IP地址和第一对应关系,确定所述WEB服务器的域名,所述第一对应关系为WEB服务器的域名与WEB服务器的IP地址的对应关系;A determining unit 602, configured to determine the domain name of the WEB server according to the destination IP address and a first correspondence, the first correspondence being the correspondence between the domain name of the WEB server and the IP address of the WEB server;
所述确定单元602,还用于当确定所述WEB服务器的域名为预置的目标WEB服务器的域名时,根据所述WEB服务器的域名和第二对应关系,确定目标VAS服务器,所述第二对应关系为VAS服务器与所述预置的目标WEB服务器的域名的对应关系;The determining unit 602 is further configured to determine the target VAS server according to the domain name of the WEB server and the second corresponding relationship when it is determined that the domain name of the WEB server is the preset domain name of the target WEB server, and the second The corresponding relationship is the corresponding relationship between the VAS server and the domain name of the preset target WEB server;
构建单元603,用于构建所述用户端、所述目标VAS服务器和所述WEB服务器之间的连接,所述目标VAS服务器用于处理所述用户端与所述WEB服务器之间交互的业务报文。A construction unit 603, configured to construct a connection between the client, the target VAS server, and the WEB server, and the target VAS server is used to process service reports interacted between the client and the WEB server arts.
本发明实施例中,透明代理服务器通过获取单元601,获取握手报文中的目的IP地址,并在确定单元602确定所述目的IP地址为WEB服务器的IP地址时,根据WEB服务器的IP地址和第一对应关系,确定数据报文的目的IP地址对应的WEB服务器的域名,当判断出所述WEB服务器的域名为预置的目标WEB服务器的域名时,根据所述WEB服务器的域名和第二对应关系,确定VAS服务器,再利用构建单元603构建所述用户端、所述目标VAS服务器和所述WEB服务器之间的连接,使所述VAS服务器处理所述用户端与所述WEB服务器之间交互的业务报文,从而缩短该透明代理服务器确定目标VAS服务器的时长,使业务报文及时得到VAS服务器的处理,提升用户体验。In the embodiment of the present invention, the transparent proxy server obtains the destination IP address in the handshake message through the obtaining unit 601, and when the determining unit 602 determines that the destination IP address is the IP address of the WEB server, according to the IP address of the WEB server and The first correspondence is to determine the domain name of the WEB server corresponding to the destination IP address of the data message. When it is determined that the domain name of the WEB server is the domain name of the preset target WEB server, according to the domain name of the WEB server and the second The corresponding relationship is to determine the VAS server, and then use the construction unit 603 to construct the connection between the client, the target VAS server and the WEB server, so that the VAS server can process the connection between the client and the WEB server. The interactive service message shortens the time for the transparent proxy server to determine the target VAS server, enables the service message to be processed by the VAS server in a timely manner, and improves user experience.
如图7,为本发明实施例八提供的一种透明代理服务器,所述透明代理服务器700可以包括:As shown in Figure 7, it is a transparent proxy server provided by Embodiment 8 of the present invention, and the transparent proxy server 700 may include:
处理器701、存储器702、总线704和通信接口705。处理器701、存储器702和通信接口705之间通过总线704连接并完成相互间的通信。Processor 701 , memory 702 , bus 704 and communication interface 705 . The processor 701 , the memory 702 and the communication interface 705 are connected through a bus 704 to complete mutual communication.
处理器701可能为单核或多核中央处理单元,或者为特定集成电路,或者为被配置成实施本发明实施例的一个或多个集成电路。Processor 701 may be a single-core or multi-core central processing unit, or a specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention.
存储器702可以为高速RAM存储器,也可以为非易失性存储器(non-volatilememory),例如至少一个磁盘存储器。The memory 702 can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory.
存储器702用于计算机执行指令703。具体的,计算机执行指令703中可以包括程序代码。The memory 702 is used for the computer to execute the instructions 703 . Specifically, the computer execution instructions 703 may include program codes.
当所述装置运行时,处理器701运行计算机执行指令703,可以执行图1至图5任意之一对应的方法实施例所述的报文处理方法。When the device is running, the processor 701 executes the computer to execute the instruction 703, and may execute the packet processing method described in the method embodiment corresponding to any one of FIG. 1 to FIG. 5 .
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (27)
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 method of network transparent proxy |
| CN105119982B (en) * | 2015-07-23 | 2019-02-22 | 中国联合网络通信集团有限公司 | Method and device for value-added processing |
| JP6579884B2 (en) * | 2015-09-24 | 2019-09-25 | キヤノン株式会社 | Communication device, control method, and program |
| CN113726915B (en) * | 2020-05-25 | 2025-03-07 | 华为技术有限公司 | Network system and message transmission method and related device therein |
| 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 | 华为技术有限公司 | Service processing method and network device |
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 not_active Ceased
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 | 华为技术有限公司 | Service processing method and network device |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2016086755A1 (en) | 2016-06-09 |
| CN104518968A (en) | 2015-04-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104518968B (en) | The method and Transparent proxy server of a kind of Message processing | |
| US10587544B2 (en) | Message processing method, processing server, terminal, and storage medium | |
| CN103257989B (en) | Web page download time is analyzed | |
| CN108200165B (en) | request transmission system, method, device and storage medium | |
| CN104580406B (en) | A kind of method and apparatus of synchronous logging state | |
| CN105812435B (en) | Application upgrading data packet processing method and device, electronic equipment and system | |
| KR101272670B1 (en) | Apparatus, method and computer readable recording medium of distinguishing access network of a user terminal | |
| CN104506802B (en) | The method of video monitoring system, passing through NAT monitor video data | |
| WO2015158064A1 (en) | Communication protocol conversion method, device and storage media | |
| CN103931162B (en) | Service processing method and network device | |
| CN111294798A (en) | A method, apparatus, terminal device and medium for data interaction | |
| US9705762B2 (en) | Systems and methods for detecting device identity at a proxy background | |
| CN104038916A (en) | Traffic optimization method and system performed on mobile terminal device and client | |
| CN103200231A (en) | Strategy control method and system | |
| CN114760267A (en) | Domain name plugging method, device, equipment, medium and program product | |
| CN110392069B (en) | CDN service scheduling processing method and CDN server | |
| CN103916489B (en) | The many IP of a kind of single domain name domain name analytic method and system | |
| CN106411978B (en) | A resource caching method and device | |
| US10129320B2 (en) | QoS improvement method, apparatus, and system | |
| CN109525682B (en) | Service processing method, device, network element entity, and computer-readable storage medium | |
| CN105554569A (en) | Method, device and system for monitoring key quality indicator (KQI) | |
| CN107332739A (en) | Network detection method, network detection device and intelligent terminal | |
| CN102088696B (en) | Method and system for downloading large file from target server by mobile terminal | |
| CN105516319A (en) | Method and device for managing HTTP messages | |
| CN104702706B (en) | A kind of method and apparatus of acquisition DNS messages |
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 |