CN108306745B - Server and data processing method and system applied by same - Google Patents

Server and data processing method and system applied by same Download PDF

Info

Publication number
CN108306745B
CN108306745B CN201610725153.1A CN201610725153A CN108306745B CN 108306745 B CN108306745 B CN 108306745B CN 201610725153 A CN201610725153 A CN 201610725153A CN 108306745 B CN108306745 B CN 108306745B
Authority
CN
China
Prior art keywords
server
reporting
tcp connection
electronic terminal
response
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.)
Expired - Fee Related
Application number
CN201610725153.1A
Other languages
Chinese (zh)
Other versions
CN108306745A (en
Inventor
洪珂
邹爽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201610725153.1A priority Critical patent/CN108306745B/en
Priority to PCT/CN2016/107197 priority patent/WO2018036008A1/en
Publication of CN108306745A publication Critical patent/CN108306745A/en
Application granted granted Critical
Publication of CN108306745B publication Critical patent/CN108306745B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements specially adapted for data communications, e.g. authentication, authorisation and accounting [AAA] framework
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements specially adapted for data communications, e.g. authentication, authorisation and accounting [AAA] framework
    • H04L12/1425Charging, metering or billing arrangements specially adapted for data communications, e.g. authentication, authorisation and accounting [AAA] framework involving dedicated fields in the data packet for billing purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements specially adapted for data communications, e.g. authentication, authorisation and accounting [AAA] framework
    • H04L12/1442Charging, metering or billing arrangements specially adapted for data communications, e.g. authentication, authorisation and accounting [AAA] framework at network operator level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供一种服务器及其应用的数据处理方法和系统,报备服务器在接收到电子终端发送的请求时,根据服务器转发列表中未报备服务器的特征信息以及电子终端的特征信息,自动将请求转发至最优的未报备服务器,并由最优的未报备服务器对请求进行处理后,生成反馈信息反馈至所述电子终端,且将反馈信息的源IP和源端口修改为接收到源自电子终端的请求的报备服务器的IP和端口。未报备服务器的增加或删除操作均很简单,灵活的实现了对定向流量服务器负载能力的扩展。

Figure 201610725153

The present invention provides a server and a data processing method and system for its application. When the reporting server receives a request sent by an electronic terminal, it automatically records the information of the unreported server and the characteristic information of the electronic terminal according to the feature information of the unreported server in the forwarding list of the server. The request is forwarded to the optimal unreported server, and after the request is processed by the optimal unreported server, feedback information is generated and fed back to the electronic terminal, and the source IP and source port of the feedback information are modified to receive The IP and port of the reporting server of the request originating from the electronic terminal. The operation of adding or deleting unreported servers is very simple, and flexibly realizes the expansion of the load capacity of the directional traffic server.

Figure 201610725153

Description

服务器及其应用的数据处理方法和系统Data processing method and system for server and application thereof

技术领域technical field

本发明涉及通信技术领域,特别是涉及一种服务器及其应用的数据处理方法和系统。The present invention relates to the technical field of communications, and in particular, to a server and a data processing method and system for its application.

背景技术Background technique

定向流量就是限定了使用业务的2G/3G/4G移动网络流量,有别于不限制使用业务的通用流量,定向流量往往限定只能用于某些具体的应用或网站。例如某视频APP定向流量包内的流量只能在该APP内使用,且使用该应用产生的流量费用,会在运营商的定向流量套餐中单独计费,不计入通用流量套餐中。而在使用其他APP时产生的流量则不会被计入该定向流量套餐中。定向流量是运营商为了培养用户的流量使用习惯而推出的业务,等额流量费用远低于通用流量。Directed traffic is the 2G/3G/4G mobile network traffic that restricts the use of services. Different from general traffic that does not restrict the use of services, directed traffic is often limited to certain specific applications or websites. For example, the traffic in the directional data package of a video APP can only be used within the APP, and the traffic fee generated by using the application will be charged separately in the operator's directional data package, and will not be included in the general data package. The traffic generated when using other apps will not be counted in the directional traffic package. Directed traffic is a service launched by operators to cultivate users' traffic usage habits, and the cost of equal traffic is much lower than that of general traffic.

全球各大运营商均有开展定向流量业务,实现技术主要在于如何区分流量类型,以进行分类计费。当前运营商实现定向流量的方式主要有以下两种:All major operators around the world carry out directional traffic services, and the implementation technology mainly lies in how to distinguish traffic types for classified charging. Currently, there are two main ways for operators to implement directional traffic:

①内容识别方式,运营商在移动网络的网关出口处解析流量内容,识别出定向流量的特征码(特征码可以是域名、关键词、密钥等等),以实现单独计费。①Content identification method, the operator parses the traffic content at the gateway exit of the mobile network, and identifies the characteristic code of the directional traffic (the characteristic code can be a domain name, a keyword, a key, etc.) to realize separate billing.

②IP识别方式,内容提供商将定向服务器的IP地址和端口号在运营商处报备,运营商在移动网络的网关出口处识别IP包头部,如果源IP端口或目标IP端口为已报备的定向服务器IP端口,则该IP包的流量被计入定向流量中。②IP identification method, the content provider reports the IP address and port number of the directional server to the operator, and the operator identifies the IP packet header at the gateway exit of the mobile network. If the IP port of the directional server is specified, the traffic of this IP packet is counted in the directional traffic.

现有的应用IP识别方式实现定向流量业务的系统如图1和图2所示。电子终端(例如为手机终端)直接向报备服务器发出请求,且直接由报备服务器向电子终端进行相应的反馈,其中图1显示的通信系统10包括的报备服务器为内容服务器12的情况,电子终端11发送请求至报备的内容服务器12,报备的服务器12返回内容响应给电子终端11,运营商移动网关检查电子终端11发送出去的IP包,如果目标服务器IP端口是已报备的,则记为定向流量;检查电子终端11接收到的IP包,如果来源服务器IP端口是已报备的,则记为定向流量。图2显示的通信系统20的报备服务器为代理服务器22的情况,电子终端21发送请求至报备的代理服务器22,报备的代理服务器22转发请求至内容服务器23,内容服务器23返回内容响应给代理服务器22,代理服务器22返回内容响应给电子终端21,运营商移动网关检查电子终端发送出去的IP包,如果目标服务器IP端口是已报备的,则记为定向流量;检查电子终端21接收到的IP包,如果来源服务器IP端口是已报备的,则记为定向流量。Figures 1 and 2 show an existing system for implementing a directional traffic service using an IP identification method. The electronic terminal (for example, a mobile phone terminal) directly sends a request to the reporting server, and the reporting server directly provides corresponding feedback to the electronic terminal. The reporting server included in the communication system 10 shown in FIG. 1 is the content server 12. The electronic terminal 11 sends a request to the reported content server 12, the reported server 12 returns a content response to the electronic terminal 11, and the operator's mobile gateway checks the IP packet sent by the electronic terminal 11, if the target server IP port has been reported , it is recorded as directional traffic; check the IP packet received by the electronic terminal 11, if the source server IP port has been reported, it is recorded as directional traffic. 2 shows the case where the reporting server of the communication system 20 is the proxy server 22, the electronic terminal 21 sends a request to the reporting proxy server 22, the reporting proxy server 22 forwards the request to the content server 23, and the content server 23 returns a content response To the proxy server 22, the proxy server 22 returns a content response to the electronic terminal 21, and the mobile gateway of the operator checks the IP packet sent by the electronic terminal. If the IP port of the target server has been reported, it is recorded as directional traffic; check the electronic terminal 21 Received IP packets, if the source server IP port has been reported, will be recorded as directed traffic.

现有的IP识别方案对内容提供商来说存在一个缺陷,就是定向流量服务器IP报备的数量有限,且流程很长(配置到所有网关出口处也需要很长时间),变更手续更是繁琐,因此对定向流量服务器负载能力的水平扩展有极大限制。对于大型的内容提供商来说,内容载体通常基于负载均衡的CDN网络,通过DNS调度的方式进行就近分发,而CDN网络的服务器分布于大量的机房中,IP数量极多且变化很快,不具备大量报备和随时报备的可能性。定向流量和CDN业务存在冲突,难以进行跨机房的负载扩展和均衡,仅能在已报备IP的同机房内部扩展,服务器负载能力显著削弱。The existing IP identification solution has a defect for content providers, that is, the number of IP reports for directional traffic servers is limited, and the process is very long (it takes a long time to configure all gateway exits), and the change procedures are even more cumbersome , so there is a great limit to the horizontal expansion of the load capacity of the directional traffic server. For large content providers, the content carrier is usually based on a load-balanced CDN network, and is distributed nearby by means of DNS scheduling, while the servers of the CDN network are distributed in a large number of computer rooms, and the number of IPs is extremely large and changes rapidly. Possibility of a large number of reports and reports at any time. There is a conflict between directional traffic and CDN services, and it is difficult to expand and balance the load across computer rooms. It can only be expanded within the same computer room where the IP has been reported, and the server load capacity is significantly weakened.

发明内容SUMMARY OF THE INVENTION

鉴于以上所述现有技术的缺点,本发明的目的在于提供一种服务器及其应用的数据处理方法和系统,用于解决现有技术中定向流量业务执行过程中无法灵活的增减提供定向流量服务的服务器,且不能根据服务器的特性灵活的选择执行定向流量服务的最优服务器等的问题。In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a server and a data processing method and system for its application, which are used to solve the problem that the directional traffic cannot be flexibly increased or decreased during the execution of the directional traffic service in the prior art. The problem is that the server for the service cannot be flexibly selected according to the characteristics of the server, and the optimal server for performing the directional traffic service cannot be flexibly selected.

为实现上述目的及其他相关目的,本发明提供一种数据处理方法,应用于一报备服务器中,预先向运营商报备所述报备服务器的IP地址和端口号,所述报备服务器被配置有与所述报备服务器对应的服务器转发列表,所述服务器转发列表中包括与所述报备服务器对应的未报备服务器的IP地址以及特征信息,所述方法包括:接收到一电子终端发送的TCP连接握手请求时,依据所述服务器转发列表的未报备服务器的特征信息以及所述电子终端的特征信息选择最优服务器,并通过IP隧道技术将所述TCP连接握手请求转发至所述最优服务器,以供所述最优服务器根据所述TCP连接握手请求,向所述电子终端返回TCP连接握手响应,从而形成TCP连接环路;其中,所述TCP连接握手响应的源IP为所述报备服务器的IP,且所述TCP连接握手响应的源端口为所述报备服务器的端口;当所述报备服务器接收到所述电子终端发送的数据请求时,根据已经形成的所述TCP连接环路,向所述最优服务器转发所述数据请求,以供所述最优服务器根据已经形成的所述TCP连接环路向所述电子终端反馈数据请求响应;其中,所述数据请求响应的源IP为所述报备服务器的IP,且所述数据请求响应的源端口为所述报备服务器的端口。In order to achieve the above purpose and other related purposes, the present invention provides a data processing method, which is applied to a reporting server, and reports the IP address and port number of the reporting server to the operator in advance, and the reporting server is A server forwarding list corresponding to the reporting server is configured, and the server forwarding list includes the IP address and feature information of the unreported server corresponding to the reporting server, and the method includes: receiving an electronic terminal When sending the TCP connection handshake request, select the optimal server according to the characteristic information of the unreported server in the server forwarding list and the characteristic information of the electronic terminal, and forward the TCP connection handshake request to the server through IP tunneling technology. The optimal server is used for the optimal server to return a TCP connection handshake response to the electronic terminal according to the TCP connection handshake request, thereby forming a TCP connection loop; wherein, the source IP of the TCP connection handshake response is The IP of the reporting server, and the source port of the TCP connection handshake response is the port of the reporting server; when the reporting server receives the data request sent by the electronic terminal, The TCP connection loop is used to forward the data request to the optimal server, so that the optimal server can feed back a data request response to the electronic terminal according to the formed TCP connection loop; wherein, the data request The source IP of the response is the IP of the reporting server, and the source port of the data request response is the port of the reporting server.

于本发明一具体实施例中,所述报备服务器为代理服务器或内容服务器;当所述报备服务器为内容服务器时,所述服务器转发列表中的未报备服务器为内容服务器;当所述报备服务器为代理服务器时,所述服务器转发列表中的未报备服务器为代理服务器,且在所述TCP连接环路形成后,当所述报备服务器接收到所述电子终端发送的数据请求时,根据已经形成的所述TCP连接环路,向所述最优服务器转发所述数据请求,以供所述最优服务器将所述数据请求发送至与其关联的内容服务器,并接收所述关联的内容服务器的响应以形成所述数据请求响应,并向所述电子终端反馈。In a specific embodiment of the present invention, the reporting server is a proxy server or a content server; when the reporting server is a content server, the unreported server in the server forwarding list is a content server; when the reporting server is a content server; When the reporting server is a proxy server, the non-reporting server in the server forwarding list is a proxy server, and after the TCP connection loop is formed, when the reporting server receives the data request sent by the electronic terminal When the TCP connection loop has been formed, forward the data request to the optimal server, so that the optimal server can send the data request to the content server associated with it, and receive the association The response of the content server to form the data request response, and feed back to the electronic terminal.

于本发明一具体实施例中,所述特征信息包括地理位置信息和/或链路质量信息。In a specific embodiment of the present invention, the feature information includes geographic location information and/or link quality information.

为实现上述目的及其他相关目的,本发明还提供一种数据处理系统,包括于一报备服务器中,预先向运营商报备所述报备服务器的IP地址和端口号,所述报备服务器被配置有与所述报备服务器对应的服务器转发列表,所述服务器转发列表中包括与所述报备服务器对应的未报备服务器的IP地址以及特征信息,所述数据处理系统包括:连接模块,用于接收到一电子终端发送的TCP连接握手请求时,依据所述服务器转发列表的未报备服务器的特征信息以及所述电子终端的特征信息选择最优服务器,并通过IP隧道技术将所述TCP连接握手请求转发至所述最优服务器,以供所述最优服务器根据所述TCP连接握手请求,向所述电子终端返回TCP连接握手响应,从而形成TCP连接环路;其中,所述TCP连接握手响应的源IP为所述报备服务器的IP,且所述TCP连接握手响应的源端口为所述报备服务器的端口;转发模块,用于当所述报备服务器接收到所述电子终端发送的数据请求时,根据已经形成的所述TCP连接环路,向所述最优服务器转发所述数据请求,以供所述最优服务器根据已经形成的所述TCP连接环路向所述电子终端反馈数据请求响应;其中,所述数据请求响应的源IP为所述报备服务器的IP,且所述数据请求响应的源端口为所述报备服务器的端口。In order to achieve the above-mentioned purpose and other related purposes, the present invention also provides a data processing system, which is included in a reporting server, and reports the IP address and port number of the reporting server to the operator in advance, and the reporting server be configured with a server forwarding list corresponding to the reporting server, and the server forwarding list includes the IP address and feature information of the unreported server corresponding to the reporting server, and the data processing system includes: a connection module , when receiving a TCP connection handshake request sent by an electronic terminal, select the optimal server according to the characteristic information of the unreported server in the server forwarding list and the characteristic information of the electronic terminal, and transfer all the The TCP connection handshake request is forwarded to the optimal server, so that the optimal server returns a TCP connection handshake response to the electronic terminal according to the TCP connection handshake request, thereby forming a TCP connection loop; wherein, the The source IP of the TCP connection handshake response is the IP of the reporting server, and the source port of the TCP connection handshake response is the port of the reporting server; the forwarding module is used for when the reporting server receives the When a data request is sent by the electronic terminal, the data request is forwarded to the optimal server according to the formed TCP connection loop, so that the optimal server can send the data request to the optimal server according to the formed TCP connection loop. The electronic terminal feeds back a data request response; wherein, the source IP of the data request response is the IP of the reporting server, and the source port of the data request response is the port of the reporting server.

于本发明一具体实施例中,所述报备服务器为代理服务器或内容服务器;当所述报备服务器为内容服务器时,所述服务器转发列表中的未报备服务器为内容服务器;当所述报备服务器为代理服务器时,所述服务器转发列表中的未报备服务器为代理服务器,且所述转发模块还用于当所述报备服务器接收到所述电子终端发送的数据请求时,根据已经形成的所述TCP连接环路,向所述最优服务器转发所述数据请求,以供所述最优服务器将所述数据请求发送至与其关联的内容服务器,并接收所述关联的内容服务器的响应以形成所述数据请求响应,并向所述电子终端反馈。In a specific embodiment of the present invention, the reporting server is a proxy server or a content server; when the reporting server is a content server, the unreported server in the server forwarding list is a content server; when the reporting server is a content server; When the reporting server is a proxy server, the non-reporting server in the server forwarding list is a proxy server, and the forwarding module is further configured to, when the reporting server receives the data request sent by the electronic terminal, according to The TCP connection loop that has been formed forwards the data request to the optimal server, so that the optimal server sends the data request to its associated content server and receives the associated content server The response to form the data request response, and feedback to the electronic terminal.

于本发明一具体实施例中,所述特征信息包括地理位置信息和/或链路质量信息。In a specific embodiment of the present invention, the feature information includes geographic location information and/or link quality information.

为实现上述目的及其他相关目的,本发明还提供一种服务器,包括如上任一项所述的数据处理系统。To achieve the above objects and other related objects, the present invention also provides a server, including the data processing system described in any one of the above.

为实现上述目的及其他相关目的,本发明还提供一种数据处理方法,应用于一未报备服务器中,所述方法包括:通过IP隧道技术接收到一报备服务器发送的来自电子终端的TCP连接握手请求时,根据所述TCP连接握手请求,向所述电子终端返回TCP连接握手响应,从而形成TCP连接环路;其中,所述TCP连接握手响应的源IP为所述报备服务器的IP,且所述TCP连接握手响应的源端口为所述报备服务器的端口;当接收到所述报备服务器转发的源于所述电子终端的数据请求时,根据已经形成的所述TCP连接环路向所述电子终端反馈数据请求响应;其中,所述数据请求响应的源IP为所述报备服务器的IP,且所述数据请求响应的源端口为所述报备服务器的端口。In order to achieve the above-mentioned purpose and other related purposes, the present invention also provides a data processing method, which is applied to an unreported server, the method comprising: receiving a TCP from an electronic terminal sent by a reporting server through IP tunnel technology. When the connection handshake request is made, according to the TCP connection handshake request, a TCP connection handshake response is returned to the electronic terminal, thereby forming a TCP connection loop; wherein, the source IP of the TCP connection handshake response is the IP of the reporting server , and the source port of the TCP connection handshake response is the port of the reporting server; when receiving the data request from the electronic terminal forwarded by the reporting server, according to the formed TCP connection ring The route feeds back a data request response to the electronic terminal; wherein, the source IP of the data request response is the IP of the reporting server, and the source port of the data request response is the port of the reporting server.

于本发明一具体实施例中,所述未报备服务器为代理服务器或内容服务器;当所述未报备服务器为代理服务器时,在所述TCP连接环路形成后,当所述未报备服务器接收所述报备服务器转发的源于所述电子终端的数据请求时,将所述数据请求转发至与所述未报备服务器关联的内容服务器,并将从所述关联的内容服务器接收到的对所述数据请求的响应向所述电子终端反馈。In a specific embodiment of the present invention, the unreported server is a proxy server or a content server; when the unreported server is a proxy server, after the TCP connection loop is formed, when the unreported server is When the server receives the data request from the electronic terminal forwarded by the reporting server, it forwards the data request to the content server associated with the unreported server, and receives the data request from the associated content server. The response to the data request is fed back to the electronic terminal.

为实现上述目的及其他相关目的,本发明还提供一种数据处理系统,应用于一未报备服务器中,所述系统包括:连接模块,用于通过IP隧道技术接收到一报备服务器发送的来自电子终端的TCP连接握手请求时,根据所述TCP连接握手请求,向所述电子终端返回TCP连接握手响应,从而形成TCP连接环路;其中,所述TCP连接握手响应的源IP为所述报备服务器的IP,且所述TCP连接握手响应的源端口为所述报备服务器的端口;响应模块,用以当接收到所述报备服务器转发的源于所述电子终端的数据请求时,根据已经形成的所述TCP连接环路向所述电子终端反馈数据请求响应;其中,所述数据请求响应的源IP为所述报备服务器的IP,且所述数据请求响应的源端口为所述报备服务器的端口。In order to achieve the above-mentioned purpose and other related purposes, the present invention also provides a data processing system, which is applied to an unreported server, and the system includes: a connection module for receiving a data sent by a report server through IP tunnel technology. When a TCP connection handshake request is received from an electronic terminal, according to the TCP connection handshake request, a TCP connection handshake response is returned to the electronic terminal, thereby forming a TCP connection loop; wherein, the source IP of the TCP connection handshake response is the The IP of the reporting server, and the source port of the TCP connection handshake response is the port of the reporting server; the response module is used when receiving the data request from the electronic terminal forwarded by the reporting server , feed back a data request response to the electronic terminal according to the formed TCP connection loop; wherein, the source IP of the data request response is the IP of the reporting server, and the source port of the data request response is the Specifies the port of the reporting server.

于本发明一具体实施例中,所述未报备服务器为代理服务器或内容服务器;当所述未报备服务器为代理服务器时,在所述TCP连接环路形成后,所述响应模块还用以当所述未报备服务器接收所述报备服务器转发的源于所述电子终端的数据请求时,将所述数据请求转发至与所述未报备服务器关联的内容服务器,并将从所述关联的内容服务器接收到的对所述数据请求的响应向所述电子终端反馈。In a specific embodiment of the present invention, the unreported server is a proxy server or a content server; when the unreported server is a proxy server, after the TCP connection loop is formed, the response module also uses So that when the non-reporting server receives the data request from the electronic terminal forwarded by the reporting server, it forwards the data request to the content server associated with the non-reporting server, and sends the data request from the non-reporting server. The response to the data request received by the associated content server is fed back to the electronic terminal.

为实现上述目的及其他相关目的,本发明还提供一种服务器,所述服务器为如上任一项所述的未报备服务器,且包括如上所述的数据处理系统。To achieve the above object and other related purposes, the present invention also provides a server, which is the unreported server described in any of the above, and includes the data processing system described above.

如上所述,本发明的服务器及其应用的数据处理方法和系统,报备服务器在接收到电子终端发送的请求时,根据服务器转发列表中未报备服务器的特征信息以及电子终端的特征信息,自动将请求转发至最优的未报备服务器,并由最优的未报备服务器对请求进行处理后,生成反馈信息反馈至所述电子终端,且将反馈信息的源IP和源端口修改为接收到源自电子终端的请求的报备服务器的IP和端口。未报备服务器的增加或删除操作均很简单,灵活的实现了对定向流量服务器负载能力的扩展。As mentioned above, the data processing method and system of the server of the present invention and its application, when the reporting server receives the request sent by the electronic terminal, according to the feature information of the server and the feature information of the electronic terminal that are not reported in the server forwarding list, The request is automatically forwarded to the optimal unreported server, and after the request is processed by the optimal unreported server, feedback information is generated and fed back to the electronic terminal, and the source IP and source port of the feedback information are modified to The IP and port of the reporting server that received the request from the electronic terminal. The operation of adding or deleting unreported servers is very simple, and flexibly realizes the expansion of the load capacity of the directional traffic server.

附图说明Description of drawings

图1显示为现有一具体实施例中的通信系统组成示意图。FIG. 1 is a schematic diagram showing the composition of a communication system in an existing specific embodiment.

图2显示为现有一具体实施例中的通信系统组成示意图。FIG. 2 is a schematic diagram showing the composition of a communication system in a specific embodiment of the prior art.

图3显示为本发明一具体实施例中的通信系统组成示意图。FIG. 3 is a schematic diagram showing the composition of a communication system in a specific embodiment of the present invention.

图4显示为本发明一具体实施例中的数据处理方法流程示意图。FIG. 4 is a schematic flowchart of a data processing method in an embodiment of the present invention.

图5显示为本发明一具体实施例中的数据处理方法流程示意图。FIG. 5 is a schematic flowchart of a data processing method in an embodiment of the present invention.

图6显示为本发明一具体实施例中的通信系统组成示意图。FIG. 6 is a schematic diagram showing the composition of a communication system in a specific embodiment of the present invention.

图7显示为本发明一具体实施例中的通信系统组成示意图。FIG. 7 is a schematic diagram showing the composition of a communication system in a specific embodiment of the present invention.

图8显示为本发明一具体实施例中的通信系统组成示意图。FIG. 8 is a schematic diagram showing the composition of a communication system in a specific embodiment of the present invention.

图9显示为本发明一具体实施例中的数据处理系统的模块示意图。FIG. 9 is a schematic block diagram of a data processing system according to an embodiment of the present invention.

图10显示为本发明一具体实施例中的数据处理系统的模块示意图。FIG. 10 is a schematic block diagram of a data processing system according to an embodiment of the present invention.

元件标号说明Component label description

10 通信系统10 Communication system

11 电子终端11 Electronic Terminals

12 报备的内容服务器12 Reported Content Servers

20 通信系统20 Communication system

21 电子终端21 Electronic Terminals

22 报备的代理服务器22 Reported proxy server

23 内容服务器23 Content Server

30 通信系统30 Communication Systems

31 电子终端31 Electronic Terminals

32 报备服务器32 Reporting server

33 未报备服务器33 Server not reported

40 数据处理方法40 Data processing methods

41、42 方法步骤41, 42 Method steps

50 数据处理方法50 Data processing methods

51、52 方法步骤51, 52 Method steps

60 通信系统60 Communication Systems

61 电子终端61 Electronic Terminals

62 报备内容服务器62 Reporting content server

63 未报备内容服务器63 Content server not reported

70 通信系统70 Communication Systems

71 电子终端71 Electronic terminals

72 报备代理服务器72 Reporting proxy server

73 未报备代理服务73 Unreported agency services

74 内容服务器74 Content Server

80 通信系统80 Communication Systems

81 电子终端81 Electronic Terminals

82 电子终端82 Electronic Terminals

83 报备服务器83 Reporting server

84 未报备服务器84 Server not reported

85 未报备服务85 Unreported services

90 数据处理系统90 Data Processing Systems

91 连接模块91 Connection module

92 转发模块92 Forwarding module

100 数据处理系统100 Data Processing Systems

101 连接模块101 Connection module

102 响应模块102 Response Module

具体实施方式Detailed ways

以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。The embodiments of the present invention are described below through specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments may be combined with each other under the condition of no conflict.

需要说明的是,以下实施例中所提供的图示仅以示意方式说明本发明的基本构想,遂图示中仅显示与本发明中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。It should be noted that the diagrams provided in the following embodiments are only used to illustrate the basic concept of the present invention in a schematic way, so the diagrams only show the components related to the present invention rather than the number, shape and For dimension drawing, the type, quantity and proportion of each component can be changed at will in actual implementation, and the component layout may also be more complicated.

请参阅图3,显示为本发明的一具体实施例中的通信系统组成示意图。所述通信系统30包括电子终端31、报备服务器32、以及未报备服务器33。其中已报备服务器为该服务器的IP和端口已经向运营商报备,即运营商在电子终端31通过移动运营商的网络向报备服务器发送请求或者通过移动运营商的网络接收报备服务器的请求所产生的流量均为定向流量;未报备服务器为该服务器的IP和端口未向运营商报备。所述电子终端31例如为智能手机。所述电子终端31可通过移动运营商的网络向服务器发送请求或者可通过移动运营商的网络接收服务器的请求。在实际应用中,所述未报备服务器可为一个或多个,此处仅图示一个未报备服务器33,且图示的未报备服务器33为选择作为最优服务器的未报备服务器。所述通信系统30运行过程中,预先向运营商报备所述报备服务器32的IP地址和端口号,所述报备服务器32被配置有与所述报备服务器32对应的服务器转发列表,所述服务器转发列表中包括与所述报备服务器32对应的未报备服务器33的IP地址以及特征信息。对所述报备服务器的配置还包括:Please refer to FIG. 3 , which is a schematic diagram showing the composition of a communication system in a specific embodiment of the present invention. The communication system 30 includes an electronic terminal 31 , a reporting server 32 , and a non-reporting server 33 . The reported server is that the IP and port of the server have been reported to the operator, that is, the operator sends a request to the reporting server at the electronic terminal 31 through the mobile operator's network or receives the report server's information through the mobile operator's network. The traffic generated by the request is all directed traffic; the server that has not been reported is the IP and port of the server that has not been reported to the operator. The electronic terminal 31 is, for example, a smart phone. The electronic terminal 31 may send a request to the server through the mobile operator's network or may receive the server's request through the mobile operator's network. In practical applications, the unreported server may be one or more, and only one unreported server 33 is shown here, and the illustrated unreported server 33 is the unreported server selected as the optimal server . During the operation of the communication system 30, the IP address and port number of the reporting server 32 are reported to the operator in advance, and the reporting server 32 is configured with a server forwarding list corresponding to the reporting server 32, The server forwarding list includes the IP address and feature information of the unreported server 33 corresponding to the reporting server 32 . The configuration of the reporting server also includes:

1)报备服务器32将向运营商报备的IP绑定至其本地eth网卡;1) The reporting server 32 binds the IP reported to the operator to its local eth network card;

2)报备服务器32配置IP隧道至服务器转发列表中对应的未报备服务器,并开启路由转发;2) The reporting server 32 configures the IP tunnel to the corresponding unreported server in the server forwarding list, and enables route forwarding;

3)报备服务器32关闭ARP校验;3) The reporting server 32 turns off the ARP check;

4)服务器转发列表中对应的未报备服务器均将所述报备服务器32上报的IP绑定至虚拟网卡;4) The corresponding unreported servers in the server forwarding list all bind the IP reported by the reporting server 32 to the virtual network card;

5)报备服务器32以及所有的未报备服务器均关闭IP校验,允许MAC地址与IP包不对应。5) The reporting server 32 and all non-reporting servers close IP verification, allowing MAC addresses not to correspond to IP packets.

报备服务器32与与其对应的所有未报备服务器设为一组,同组的报备服务器32支持配置同组其他未报备服务器的IP列表、地理位置和链路质量。The reporting server 32 and all non-reporting servers corresponding to it are set as a group, and the reporting server 32 in the same group supports configuring the IP list, geographic location and link quality of other non-reporting servers in the same group.

进一步参阅图4,显示为本发明一具体实施例中的数据处理方法流程示意图。所述数据处理方法应用于所述报备服务器32中,所述方法40包括:Further referring to FIG. 4 , a schematic flowchart of a data processing method in an embodiment of the present invention is shown. The data processing method is applied to the reporting server 32, and the method 40 includes:

41:接收到一电子终端31发送的TCP连接握手请求时,依据所述服务器转发列表的未报备服务器的特征信息以及所述电子终端31的特征信息选择最优服务器(未报备服务器33),并通过IP隧道技术将所述TCP连接握手请求转发至所述最优服务器(未报备服务器33),以供所述最优服务器(未报备服务器33)根据所述TCP连接握手请求,向所述电子终端31返回TCP连接握手响应,从而形成TCP连接环路(如图3所示的箭头指示的连接环路);其中,所述TCP连接握手响应的源IP为所述报备服务器32的IP,且所述TCP连接握手响应的源端口为所述报备服务器32的端口。41: When receiving a TCP connection handshake request sent by an electronic terminal 31, select the optimal server (unreported server 33) according to the characteristic information of the unreported server in the server forwarding list and the characteristic information of the electronic terminal 31 , and forward the TCP connection handshake request to the optimal server (the unreported server 33) through the IP tunneling technology, so that the optimal server (the unreported server 33) according to the TCP connection handshake request, Return the TCP connection handshake response to the electronic terminal 31, thereby forming a TCP connection loop (the connection loop indicated by the arrow as shown in Figure 3); wherein, the source IP of the TCP connection handshake response is the reporting server 32, and the source port of the TCP connection handshake response is the port of the reporting server 32.

优选的,所述特征信息包括地理位置信息和/或链路质量信息。例如,选择与所述电子终端31的地理位置最为接近的未报备服务器为所述最优服务器,或选择链路质量最好的未报备服务器为所述最优服务器,其中链路质量的评价因素可包括丢包率以及带宽等。于具体应用中,还可综合考虑地理位置信息和链路质量信息来确定最优服务器,例如对地理位置相同的多个未报备服务器,选择链路质量最好的未报备服务器为所述最优服务器;例如对链路质量相同的多个未报备服务器,选择距离最近的未报备服务器为所述最优服务器;例如以预设的权重比例,获得最终用于比较的值,作为最优服务器选择的依据。Preferably, the feature information includes geographic location information and/or link quality information. For example, select the unreported server that is closest to the geographical location of the electronic terminal 31 as the optimal server, or select the unreported server with the best link quality as the optimal server, where the link quality Evaluation factors may include packet loss rate and bandwidth, etc. In specific applications, it is also possible to comprehensively consider geographic location information and link quality information to determine the optimal server. For example, for multiple unreported servers with the same geographic location, the unreported server with the best link quality is selected as the The optimal server; for example, for multiple unreported servers with the same link quality, the unreported server with the closest distance is selected as the optimal server; for example, with a preset weight ratio, the final value for comparison is obtained as The basis for optimal server selection.

42:当所述报备服务器32接收到所述电子终端31发送的数据请求时,根据已经形成的所述TCP连接环路,向所述最优服务器(未报备服务器33)转发所述数据请求,以供所述最优服务器(未报备服务器33)根据已经形成的所述TCP连接环路向所述电子终端31反馈数据请求响应;其中,所述数据请求响应的源IP为所述报备服务器32的IP,且所述数据请求响应的源端口为所述报备服务器32的端口。42: When the reporting server 32 receives the data request sent by the electronic terminal 31, it forwards the data to the optimal server (unreported server 33) according to the formed TCP connection loop request, so that the optimal server (unreported server 33) feeds back a data request response to the electronic terminal 31 according to the formed TCP connection loop; wherein, the source IP of the data request response is the report The IP of the backup server 32, and the source port of the data request response is the port of the reporting server 32.

进一步参阅图5,显示为本发明一具体实施例中的数据处理方法流程示意图。图5所示的数据处理方法应用在一未报备服务器中,例如应用于图3所述的未报备服务器33中。Further referring to FIG. 5 , a schematic flowchart of a data processing method in a specific embodiment of the present invention is shown. The data processing method shown in FIG. 5 is applied to an unreported server, for example, the unreported server 33 described in FIG. 3 .

所述数据处理方法50包括:The data processing method 50 includes:

51:通过IP隧道技术接收到一报备服务器发送的来自电子终端的TCP连接握手请求时,根据所述TCP连接握手请求,向所述电子终端返回TCP连接握手响应,从而形成TCP连接环路;其中,所述TCP连接握手响应的源IP为所述报备服务器的IP,且所述TCP连接握手响应的源端口为所述报备服务器的端口;51: when receiving a TCP connection handshake request from an electronic terminal sent by a reporting server through the IP tunneling technology, return a TCP connection handshake response to the electronic terminal according to the TCP connection handshake request, thereby forming a TCP connection loop; Wherein, the source IP of the TCP connection handshake response is the IP of the reporting server, and the source port of the TCP connection handshake response is the port of the reporting server;

52:当接收到所述报备服务器转发的源于所述电子终端的数据请求时,根据已经形成的所述TCP连接环路向所述电子终端反馈数据请求响应;其中,所述数据请求响应的源IP为所述报备服务器的IP,且所述数据请求响应的源端口为所述报备服务器的端口。52: When receiving the data request from the electronic terminal forwarded by the reporting server, feed back a data request response to the electronic terminal according to the formed TCP connection loop; wherein the data request response is The source IP is the IP of the reporting server, and the source port of the data request response is the port of the reporting server.

本发明在保证一部分已报备IP的服务器正常工作的前提下,可以任意增减其他未报备IP和机房的服务器进行定向流量服务,加入整个定向流量系统中,强化了水平扩展能力。同时,分离上下行流量,上行流量必须发往已报备IP的服务器,下行流量能就近选择最佳链路的机房中的服务器进行调度,在当前移动互联网的下行流量远多于上行流量的现状下,可实现就近调度,对可用性和访问速率有极大的提升,同时不影响运营商的定向流量计费。其中,上行流量指电子终端发送到服务器的流量;下行流量指服务器发送到电子终端的流量。The invention can arbitrarily increase or decrease other unreported IP servers and servers in the computer room to provide directional traffic services under the premise of ensuring that a part of the servers with registered IPs work normally, and join the entire directional traffic system to strengthen the horizontal expansion capability. At the same time, the uplink and downlink traffic is separated, and the uplink traffic must be sent to the server that has reported the IP, and the downlink traffic can be scheduled by the server in the computer room where the best link is selected. It can realize nearby scheduling, which greatly improves the availability and access rate, and does not affect the operator's directional traffic billing. The upstream traffic refers to the traffic sent from the electronic terminal to the server; the downstream traffic refers to the traffic sent from the server to the electronic terminal.

于本发明一具体实施例中,所述报备服务器32为代理服务器或内容服务器。In a specific embodiment of the present invention, the reporting server 32 is a proxy server or a content server.

进一步参阅图6,显示为本发明的一具体实施例中的通信系统组成示意图。图6为图3所示的通信系统30的报备服务器32和未报备服务器为内容服务器的情况。所述通信系统60包括电子终端61、报备内容服务器62、以及未报备内容服务器63。所述服务器转发列表中的未报备服务器为内容服务器。Further referring to FIG. 6 , it is a schematic diagram showing the composition of a communication system in a specific embodiment of the present invention. FIG. 6 shows a case where the reporting server 32 and the unreporting server of the communication system 30 shown in FIG. 3 are content servers. The communication system 60 includes an electronic terminal 61 , a reported content server 62 , and an unreported content server 63 . The unreported servers in the server forwarding list are content servers.

进一步参阅图7,显示为本发明的一具体实施例中的通信系统组成示意图。图7为图3所示的通信系统30的报备服务器32和未报备服务器为代理服务器的情况。所述通信系统70包括电子终端71、报备代理服务器72、以及未报备代理服务器73。所述服务器转发列表中的未报备服务器为代理服务器。且在所述TCP连接环路形成后,当所述报备代理服务器72接收到所述电子终端71发送的数据请求时,根据已经形成的所述TCP连接环路,向所述最优服务器(未报备代理服务器73)转发所述数据请求,以供所述最优服务器(未报备代理服务器73)将所述数据请求发送至与其关联的内容服务器74,并接收所述关联的内容服务器74的响应以形成所述数据请求响应,并向所述电子终端71反馈。且代理服务器与内容服务器之间的转发方式属于应用层的转发,而所述报备代理服务器72与所述未报备代理服务器73之间的转发方式为IP层的转发。Further referring to FIG. 7 , a schematic diagram of the composition of a communication system according to an embodiment of the present invention is shown. FIG. 7 shows the case where the reporting server 32 and the unreporting server of the communication system 30 shown in FIG. 3 are proxy servers. The communication system 70 includes an electronic terminal 71 , a reporting proxy server 72 , and an unreporting proxy server 73 . The unreported server in the server forwarding list is a proxy server. And after the TCP connection loop is formed, when the reporting proxy server 72 receives the data request sent by the electronic terminal 71, according to the TCP connection loop that has been formed, send the data to the optimal server ( The unreported proxy server 73) forwards the data request for the optimal server (unreported proxy server 73) to send the data request to its associated content server 74 and receive the associated content server 74 to form the data request response, and feed back to the electronic terminal 71 . And the forwarding mode between the proxy server and the content server belongs to the forwarding at the application layer, and the forwarding mode between the reporting proxy server 72 and the non-reporting proxy server 73 is IP layer forwarding.

参阅图8,显示为本发明一具体实施例中的通信系统组成示意图。即以一个具体的实例对本发明的技术特征作进一步的描述。所述通信系统80包括电子终端81、电子终端82、报备服务器83、未报备服务器84以及未报备服务器85。其中所述报备服务器83、未报备服务器84以及未报备服务器85均为内容服务器。所述电子终端81和电子终端82分别为位于北京的手机终端和位于福建的手机终端。所述未报备服务器84所属的机房线路为北京联通,所述未报备服务器85所属的机房线路为福建联通,于本实施例中,所述报备服务器83、未报备服务器84以及未报备服务器85为一个定向流量服务器组,三者的端口均相同。所述报备服务器83的IP地址为IP1,报备服务器83的端口为A,未报备服务器84的IP地址为IP2,未报备服务器85的IP地址为IP3,未报备服务器84以及未报备服务器85的端口均为A。处于北京的电子终端81向所述报备服务器83发送请求,移动运营商根据该请求的目标IP地址IP1,确定关于该请求产生的流量为定向流量,所述报备服务器83根据通过IP隧道将电子终端81请求的TCP连接转发至就近选择的未报备服务器84。未报备服务器84返回内容响应给电子终端81,响应的源地址为IP1,源端口为A,移动运营商根据该响应的源地址以及源端口确定关于该响应产生的流量为定向流量。处于福建的电子终端82向所述报备服务器83发送请求,移动运营商根据该请求的目标IP地址IP1,确定关于该请求产生的流量为定向流量,所述报备服务器83根据通过IP隧道将电子终端82请求的TCP连接转发至就近选择的未报备服务器85。未报备服务器85返回内容响应给电子终端82,响应的源地址为IP1,源端口为A,移动运营商根据该响应的源地址以及源端口确定关于该响应产生的流量为定向流量。Referring to FIG. 8 , a schematic diagram of the composition of a communication system in an embodiment of the present invention is shown. That is, the technical features of the present invention will be further described with a specific example. The communication system 80 includes an electronic terminal 81 , an electronic terminal 82 , a reporting server 83 , an unreported server 84 and an unreported server 85 . The reporting server 83 , the non-reporting server 84 and the non-reporting server 85 are all content servers. The electronic terminal 81 and the electronic terminal 82 are respectively a mobile phone terminal located in Beijing and a mobile phone terminal located in Fujian. The computer room line to which the unreported server 84 belongs is Beijing Unicom, and the computer room line to which the unreported server 85 belongs is Fujian Unicom. In this embodiment, the reporting server 83, the unreported server 84 and the unreported server The reporting server 85 is a directed traffic server group, and the ports of the three are the same. The IP address of the reporting server 83 is IP1, the port of the reporting server 83 is A, the IP address of the unreported server 84 is IP2, the IP address of the unreported server 85 is IP3, the unreported server 84 and the unreported server 85 are IP3. The ports of the reporting server 85 are all A. The electronic terminal 81 in Beijing sends a request to the reporting server 83, and the mobile operator determines that the traffic generated by the request is directed traffic according to the target IP address IP1 of the request. The TCP connection requested by the electronic terminal 81 is forwarded to the unreported server 84 selected nearby. The unreported server 84 returns a content response to the electronic terminal 81. The source address of the response is IP1 and the source port is A. The mobile operator determines that the traffic generated by the response is directed traffic according to the source address and source port of the response. The electronic terminal 82 in Fujian sends a request to the reporting server 83, and the mobile operator determines that the traffic generated by the request is directed traffic according to the target IP address IP1 of the request. The TCP connection requested by the electronic terminal 82 is forwarded to the unreported server 85 selected nearby. The unreported server 85 returns a content response to the electronic terminal 82. The source address of the response is IP1 and the source port is A. The mobile operator determines that the traffic generated by the response is directed traffic according to the source address and source port of the response.

参阅图9,显示为本发明一具体实施例中的数据处理系统的模块示意图。所述数据处理系统90包括于一报备服务器中,预先向运营商报备所述报备服务器的IP地址和端口号,所述报备服务器被配置有与所述报备服务器对应的服务器转发列表,所述服务器转发列表中包括与所述报备服务器对应的未报备服务器的IP地址以及特征信息。所述数据处理系统90包括:Referring to FIG. 9 , it is a block diagram of a data processing system according to an embodiment of the present invention. The data processing system 90 is included in a reporting server, and reports the IP address and port number of the reporting server to the operator in advance, and the reporting server is configured with a server forwarding corresponding to the reporting server. The server forwarding list includes the IP addresses and feature information of the unreported servers corresponding to the reporting servers. The data processing system 90 includes:

连接模块91,用于接收到一电子终端发送的TCP连接握手请求时,依据所述服务器转发列表的未报备服务器的特征信息以及所述电子终端的特征信息选择最优服务器,并通过IP隧道技术将所述TCP连接握手请求转发至所述最优服务器,以供所述最优服务器根据所述TCP连接握手请求,向所述电子终端返回TCP连接握手响应,从而形成TCP连接环路;其中,所述TCP连接握手响应的源IP为所述报备服务器的IP,且所述TCP连接握手响应的源端口为所述报备服务器的端口;The connection module 91 is used to select the optimal server according to the characteristic information of the unreported server in the server forwarding list and the characteristic information of the electronic terminal when receiving a TCP connection handshake request sent by an electronic terminal, and pass the IP tunnel The technology forwards the TCP connection handshake request to the optimal server, so that the optimal server returns a TCP connection handshake response to the electronic terminal according to the TCP connection handshake request, thereby forming a TCP connection loop; wherein , the source IP of the TCP connection handshake response is the IP of the reporting server, and the source port of the TCP connection handshake response is the port of the reporting server;

转发模块92,用于当所述报备服务器接收到所述电子终端发送的数据请求时,根据已经形成的所述TCP连接环路,向所述最优服务器转发所述数据请求,以供所述最优服务器根据已经形成的所述TCP连接环路向所述电子终端反馈数据请求响应;其中,所述数据请求响应的源IP为所述报备服务器的IP,且所述数据请求响应的源端口为所述报备服务器的端口。The forwarding module 92 is configured to forward the data request to the optimal server according to the formed TCP connection loop when the reporting server receives the data request sent by the electronic terminal, for the The optimal server feeds back a data request response to the electronic terminal according to the formed TCP connection loop; wherein, the source IP of the data request response is the IP of the reporting server, and the source of the data request response The port is the port of the reporting server.

于本发明一具体实施例中,所述报备服务器为代理服务器或内容服务器;当所述报备服务器为内容服务器时,所述服务器转发列表中的未报备服务器为内容服务器;当所述报备服务器为代理服务器时,所述服务器转发列表中的未报备服务器为代理服务器,且所述转发模块还用于当所述报备服务器接收到所述电子终端发送的数据请求时,根据已经形成的所述TCP连接环路,向所述最优服务器转发所述数据请求,以供所述最优服务器将所述数据请求发送至与其关联的内容服务器,并接收所述关联的内容服务器的响应以形成所述数据请求响应,并向所述电子终端反馈。In a specific embodiment of the present invention, the reporting server is a proxy server or a content server; when the reporting server is a content server, the unreported server in the server forwarding list is a content server; when the reporting server is a content server When the reporting server is a proxy server, the non-reporting server in the server forwarding list is a proxy server, and the forwarding module is further configured to, when the reporting server receives the data request sent by the electronic terminal, according to The TCP connection loop that has been formed forwards the data request to the optimal server, so that the optimal server sends the data request to its associated content server and receives the associated content server The response to form the data request response, and feedback to the electronic terminal.

于本发明一具体实施例中,所述特征信息包括地理位置信息和/或链路质量信息。In a specific embodiment of the present invention, the feature information includes geographic location information and/or link quality information.

所述数据处理系统90为与图4所示的数据处理方法40对应的系统项,两者技术方案一一对应,所有关于图4所示的数据处理方法40的描述均可应用于此实施例中,在此不加赘述。The data processing system 90 is a system item corresponding to the data processing method 40 shown in FIG. 4 , and the two technical solutions are in one-to-one correspondence. All descriptions about the data processing method 40 shown in FIG. 4 can be applied to this embodiment. , and will not be repeated here.

参阅图10,显示为本发明一具体实施例中的数据处理系统的模块示意图。所述数据处理系统100,应用于一未报备服务器中,所述系统100包括:Referring to FIG. 10 , a block diagram of a data processing system in an embodiment of the present invention is shown. The data processing system 100 is applied to an unreported server, and the system 100 includes:

连接模块101,用于通过IP隧道技术接收到一报备服务器发送的来自电子终端的TCP连接握手请求时,根据所述TCP连接握手请求,向所述电子终端返回TCP连接握手响应,从而形成TCP连接环路;其中,所述TCP连接握手响应的源IP为所述报备服务器的IP,且所述TCP连接握手响应的源端口为所述报备服务器的端口;The connection module 101 is configured to return a TCP connection handshake response to the electronic terminal according to the TCP connection handshake request when receiving a TCP connection handshake request from an electronic terminal sent by a reporting server through IP tunnel technology, thereby forming a TCP connection handshake response. connection loop; wherein, the source IP of the TCP connection handshake response is the IP of the reporting server, and the source port of the TCP connection handshake response is the port of the reporting server;

响应模块102,用以当接收到所述报备服务器转发的源于所述电子终端的数据请求时,根据已经形成的所述TCP连接环路向所述电子终端反馈数据请求响应;其中,所述数据请求响应的源IP为所述报备服务器的IP,且所述数据请求响应的源端口为所述报备服务器的端口。The response module 102 is configured to, when receiving the data request from the electronic terminal forwarded by the reporting server, feed back a data request response to the electronic terminal according to the formed TCP connection loop; wherein, the The source IP of the data request response is the IP of the reporting server, and the source port of the data request response is the port of the reporting server.

于本发明一具体实施例中,所述未报备服务器为代理服务器或内容服务器;当所述未报备服务器为代理服务器时,在所述TCP连接环路形成后,所述响应模块还用以当所述未报备服务器接收所述报备服务器转发的源于所述电子终端的数据请求时,将所述数据请求转发至与所述未报备服务器关联的内容服务器,并将从所述关联的内容服务器接收到的对所述数据请求的响应向所述电子终端反馈。In a specific embodiment of the present invention, the unreported server is a proxy server or a content server; when the unreported server is a proxy server, after the TCP connection loop is formed, the response module also uses So that when the non-reporting server receives the data request from the electronic terminal forwarded by the reporting server, it forwards the data request to the content server associated with the non-reporting server, and sends the data request from the non-reporting server. The response to the data request received by the associated content server is fed back to the electronic terminal.

所述数据处理系统100为与图5所示的数据处理方法50对应的系统项,两者技术方案一一对应,所有关于图5所示的数据处理方法50的描述均可应用于此实施例中,在此不加赘述。The data processing system 100 is a system item corresponding to the data processing method 50 shown in FIG. 5 , and the two technical solutions are in one-to-one correspondence, and all the descriptions about the data processing method 50 shown in FIG. 5 can be applied to this embodiment , and will not be repeated here.

综上所述,本发明的服务器及其应用的数据处理方法和系统,报备服务器在接收到电子终端发送的请求时,根据服务器转发列表中未报备服务器的特征信息以及电子终端的特征信息,自动将请求转发至最优的未报备服务器,并由最优的未报备服务器对请求进行处理后,生成反馈信息反馈至所述电子终端,且将反馈信息的源IP和源端口修改为接收到源自电子终端的请求的报备服务器的IP和端口。未报备服务器的增加或删除操作均很简单,灵活的实现了对定向流量服务器负载能力的扩展。所以,本发明有效克服了现有技术中的种种缺点而具高度产业利用价值。To sum up, according to the server and the data processing method and system of the application of the present invention, when the reporting server receives the request sent by the electronic terminal, according to the feature information of the unreported server and the feature information of the electronic terminal in the server forwarding list , automatically forward the request to the optimal unreported server, and the optimal unreported server processes the request, generates feedback information and feeds it back to the electronic terminal, and modifies the source IP and source port of the feedback information The IP and port of the reporting server that receives the request from the electronic terminal. The operation of adding or deleting unreported servers is very simple, and flexibly realizes the expansion of the load capacity of the directional traffic server. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本发明的权利要求所涵盖。The above-mentioned embodiments merely illustrate the principles and effects of the present invention, but are not intended to limit the present invention. Anyone skilled in the art can modify or change the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical idea disclosed in the present invention should still be covered by the claims of the present invention.

Claims (12)

1.一种数据处理方法,其特征在于,应用于一报备服务器中,预先向运营商报备所述报备服务器的IP地址和端口号,所述报备服务器被配置有与所述报备服务器对应的服务器转发列表,所述服务器转发列表中包括与所述报备服务器对应的未报备服务器的IP地址以及特征信息,所述方法包括:1. a data processing method, it is characterized in that, be applied in a report server, report the IP address and the port number of described report server to operator in advance, and described report server is configured with described report server. The server forwarding list corresponding to the backup server, the server forwarding list includes the IP address and feature information of the unreported server corresponding to the reporting server, and the method includes: 接收到一电子终端发送的TCP连接握手请求时,依据所述服务器转发列表的未报备服务器的特征信息以及所述电子终端的特征信息,选择最优服务器,并通过IP隧道技术将所述TCP连接握手请求转发至所述最优服务器,以供所述最优服务器根据所述TCP连接握手请求,向所述电子终端返回TCP连接握手响应,从而形成TCP连接环路;其中,所述TCP连接握手响应的源IP为所述报备服务器的IP,且所述TCP连接握手响应的源端口为所述报备服务器的端口;When receiving a TCP connection handshake request sent by an electronic terminal, according to the characteristic information of the unreported server in the server forwarding list and the characteristic information of the electronic terminal, select the optimal server, and use the IP tunnel technology to transfer the TCP connection. The connection handshake request is forwarded to the optimal server, so that the optimal server returns a TCP connection handshake response to the electronic terminal according to the TCP connection handshake request, thereby forming a TCP connection loop; wherein, the TCP connection The source IP of the handshake response is the IP of the reporting server, and the source port of the TCP connection handshake response is the port of the reporting server; 当所述报备服务器接收到所述电子终端发送的数据请求时,根据已经形成的所述TCP连接环路,向所述最优服务器转发所述数据请求,以供所述最优服务器根据已经形成的所述TCP连接环路向所述电子终端反馈数据请求响应;其中,所述数据请求响应的源IP为所述报备服务器的IP,且所述数据请求响应的源端口为所述报备服务器的端口。When the reporting server receives the data request sent by the electronic terminal, it forwards the data request to the optimal server according to the formed TCP connection loop, so that the optimal server can The formed TCP connection loop feeds back a data request response to the electronic terminal; wherein, the source IP of the data request response is the IP of the reporting server, and the source port of the data request response is the reporting The port of the server. 2.根据权利要求1所述的数据处理方法,其特征在于:所述报备服务器为代理服务器或内容服务器;2. The data processing method according to claim 1, wherein: the reporting server is a proxy server or a content server; 当所述报备服务器为内容服务器时,所述服务器转发列表中的未报备服务器为内容服务器;When the reporting server is a content server, the unreported server in the server forwarding list is a content server; 当所述报备服务器为代理服务器时,所述服务器转发列表中的未报备服务器为代理服务器,且在所述TCP连接环路形成后,当所述报备服务器接收到所述电子终端发送的数据请求时,根据已经形成的所述TCP连接环路,向所述最优服务器转发所述数据请求,以供所述最优服务器将所述数据请求发送至与其关联的内容服务器,并接收所述关联的内容服务器的响应以形成所述数据请求响应,并向所述电子终端反馈。When the reporting server is a proxy server, the non-reporting server in the server forwarding list is a proxy server, and after the TCP connection loop is formed, when the reporting server receives the message sent by the electronic terminal When the data request is received, forward the data request to the optimal server according to the formed TCP connection loop, so that the optimal server can send the data request to the content server associated with it, and receive the data request. The response of the associated content server forms the data request response, which is fed back to the electronic terminal. 3.根据权利要求1所述的数据处理方法,其特征在于:所述特征信息包括地理位置信息和/或链路质量信息。3 . The data processing method according to claim 1 , wherein the feature information includes geographic location information and/or link quality information. 4 . 4.一种数据处理系统,其特征在于,包括于一报备服务器中,预先向运营商报备所述报备服务器的IP地址和端口号,所述报备服务器被配置有与所述报备服务器对应的服务器转发列表,所述服务器转发列表中包括与所述报备服务器对应的未报备服务器的IP地址以及特征信息,所述数据处理系统包括:4. A data processing system, characterized in that, being included in a reporting server, reporting the IP address and port number of the reporting server to the operator in advance, and the reporting server is configured with the reporting server. The server forwarding list corresponding to the backup server, the server forwarding list includes the IP address and feature information of the unreported server corresponding to the reporting server, and the data processing system includes: 连接模块,用于接收到一电子终端发送的TCP连接握手请求时,依据所述服务器转发列表的未报备服务器的特征信息以及所述电子终端的特征信息选择最优服务器,并通过IP隧道技术将所述TCP连接握手请求转发至所述最优服务器,以供所述最优服务器根据所述TCP连接握手请求,向所述电子终端返回TCP连接握手响应,从而形成TCP连接环路;其中,所述TCP连接握手响应的源IP为所述报备服务器的IP,且所述TCP连接握手响应的源端口为所述报备服务器的端口;The connection module is used to select the optimal server according to the characteristic information of the unreported server in the server forwarding list and the characteristic information of the electronic terminal when receiving a TCP connection handshake request sent by an electronic terminal, and pass the IP tunnel technology forwarding the TCP connection handshake request to the optimal server, so that the optimal server returns a TCP connection handshake response to the electronic terminal according to the TCP connection handshake request, thereby forming a TCP connection loop; wherein, The source IP of the TCP connection handshake response is the IP of the reporting server, and the source port of the TCP connection handshake response is the port of the reporting server; 转发模块,用于当所述报备服务器接收到所述电子终端发送的数据请求时,根据已经形成的所述TCP连接环路,向所述最优服务器转发所述数据请求,以供所述最优服务器根据已经形成的所述TCP连接环路向所述电子终端反馈数据请求响应;其中,所述数据请求响应的源IP为所述报备服务器的IP,且所述数据请求响应的源端口为所述报备服务器的端口。A forwarding module, configured to forward the data request to the optimal server according to the formed TCP connection loop when the reporting server receives the data request sent by the electronic terminal, for the The optimal server feeds back a data request response to the electronic terminal according to the formed TCP connection loop; wherein, the source IP of the data request response is the IP of the reporting server, and the source port of the data request response The port of the reporting server. 5.根据权利要求4所述的数据处理系统,其特征在于:所述报备服务器为代理服务器或内容服务器;5. The data processing system according to claim 4, wherein: the reporting server is a proxy server or a content server; 当所述报备服务器为内容服务器时,所述服务器转发列表中的未报备服务器为内容服务器;When the reporting server is a content server, the unreported server in the server forwarding list is a content server; 当所述报备服务器为代理服务器时,所述服务器转发列表中的未报备服务器为代理服务器,且所述转发模块还用于当所述报备服务器接收到所述电子终端发送的数据请求时,根据已经形成的所述TCP连接环路,向所述最优服务器转发所述数据请求,以供所述最优服务器将所述数据请求发送至与其关联的内容服务器,并接收所述关联的内容服务器的响应以形成所述数据请求响应,并向所述电子终端反馈。When the reporting server is a proxy server, the non-reporting server in the server forwarding list is a proxy server, and the forwarding module is further configured to be used when the reporting server receives a data request sent by the electronic terminal When the TCP connection loop has been formed, forward the data request to the optimal server, so that the optimal server can send the data request to the content server associated with it, and receive the association The response of the content server to form the data request response, and feed back to the electronic terminal. 6.根据权利要求4所述的数据处理系统,其特征在于:所述特征信息包括地理位置信息和/或链路质量信息。6. The data processing system according to claim 4, wherein the characteristic information includes geographic location information and/or link quality information. 7.一种服务器,其特征在于,包括如权利要求4~6中任一项所述的数据处理系统。7. A server, comprising the data processing system according to any one of claims 4 to 6. 8.一种数据处理方法,其特征在于,应用于一未报备服务器中,所述方法包括:8. A data processing method, characterized in that, applied to an unreported server, the method comprising: 通过IP隧道技术接收到一报备服务器发送的来自电子终端的TCP连接握手请求时,根据所述TCP连接握手请求,向所述电子终端返回TCP连接握手响应,从而形成TCP连接环路;其中,所述TCP连接握手响应的源IP为所述报备服务器的IP,且所述TCP连接握手响应的源端口为所述报备服务器的端口;When receiving a TCP connection handshake request from an electronic terminal sent by a reporting server through IP tunneling technology, a TCP connection handshake response is returned to the electronic terminal according to the TCP connection handshake request, thereby forming a TCP connection loop; wherein, The source IP of the TCP connection handshake response is the IP of the reporting server, and the source port of the TCP connection handshake response is the port of the reporting server; 当接收到所述报备服务器转发的源于所述电子终端的数据请求时,根据已经形成的所述TCP连接环路向所述电子终端反馈数据请求响应;其中,所述数据请求响应的源IP为所述报备服务器的IP,且所述数据请求响应的源端口为所述报备服务器的端口。When receiving the data request from the electronic terminal forwarded by the reporting server, feed back a data request response to the electronic terminal according to the formed TCP connection loop; wherein, the source IP address of the data request response is the IP of the reporting server, and the source port of the data request response is the port of the reporting server. 9.根据权利要求8所述的数据处理方法,其特征在于:所述未报备服务器为代理服务器或内容服务器;9. The data processing method according to claim 8, wherein the unreported server is a proxy server or a content server; 当所述未报备服务器为代理服务器时,在所述TCP连接环路形成后,当所述未报备服务器接收所述报备服务器转发的源于所述电子终端的数据请求时,将所述数据请求转发至与所述未报备服务器关联的内容服务器,并将从所述关联的内容服务器接收到的对所述数据请求的响应向所述电子终端反馈。When the unreported server is a proxy server, after the TCP connection loop is formed, when the unreported server receives the data request from the electronic terminal forwarded by the reporting server, The data request is forwarded to the content server associated with the unreported server, and the response to the data request received from the associated content server is fed back to the electronic terminal. 10.一种数据处理系统,其特征在于,应用于一未报备服务器中,所述系统包括:10. A data processing system, characterized in that, applied to an unreported server, the system comprising: 连接模块,用于通过IP隧道技术接收到一报备服务器发送的来自电子终端的TCP连接握手请求时,根据所述TCP连接握手请求,向所述电子终端返回TCP连接握手响应,从而形成TCP连接环路;其中,所述TCP连接握手响应的源IP为所述报备服务器的IP,且所述TCP连接握手响应的源端口为所述报备服务器的端口;The connection module is configured to return a TCP connection handshake response to the electronic terminal according to the TCP connection handshake request when receiving a TCP connection handshake request from an electronic terminal sent by a reporting server through the IP tunnel technology, thereby forming a TCP connection Loop; wherein, the source IP of the TCP connection handshake response is the IP of the reporting server, and the source port of the TCP connection handshake response is the port of the reporting server; 响应模块,用以当接收到所述报备服务器转发的源于所述电子终端的数据请求时,根据已经形成的所述TCP连接环路向所述电子终端反馈数据请求响应;其中,所述数据请求响应的源IP为所述报备服务器的IP,且所述数据请求响应的源端口为所述报备服务器的端口。A response module, configured to feed back a data request response to the electronic terminal according to the formed TCP connection loop when receiving the data request from the electronic terminal forwarded by the reporting server; wherein the data The source IP of the request response is the IP of the reporting server, and the source port of the data request response is the port of the reporting server. 11.根据权利要求10所述的数据处理系统,其特征在于:所述未报备服务器为代理服务器或内容服务器;11. The data processing system according to claim 10, wherein: the unreported server is a proxy server or a content server; 当所述未报备服务器为代理服务器时,在所述TCP连接环路形成后,所述响应模块还用以当所述未报备服务器接收所述报备服务器转发的源于所述电子终端的数据请求时,将所述数据请求转发至与所述未报备服务器关联的内容服务器,并将从所述关联的内容服务器接收到的对所述数据请求的响应向所述电子终端反馈。When the unreported server is a proxy server, after the TCP connection loop is formed, the response module is further configured to receive the unreported server from the electronic terminal when the unreported server is forwarded by the reporting server. When the data request is received, the data request is forwarded to the content server associated with the unreported server, and the response to the data request received from the associated content server is fed back to the electronic terminal. 12.一种服务器,其特征在于:包括如权利要求10或11所述的数据处理系统。12. A server, characterized by comprising the data processing system according to claim 10 or 11.
CN201610725153.1A 2016-08-25 2016-08-25 Server and data processing method and system applied by same Expired - Fee Related CN108306745B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610725153.1A CN108306745B (en) 2016-08-25 2016-08-25 Server and data processing method and system applied by same
PCT/CN2016/107197 WO2018036008A1 (en) 2016-08-25 2016-11-25 Server, and data processing method and system applied thereto

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610725153.1A CN108306745B (en) 2016-08-25 2016-08-25 Server and data processing method and system applied by same

Publications (2)

Publication Number Publication Date
CN108306745A CN108306745A (en) 2018-07-20
CN108306745B true CN108306745B (en) 2020-01-03

Family

ID=61245405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610725153.1A Expired - Fee Related CN108306745B (en) 2016-08-25 2016-08-25 Server and data processing method and system applied by same

Country Status (2)

Country Link
CN (1) CN108306745B (en)
WO (1) WO2018036008A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103560937A (en) * 2013-11-01 2014-02-05 北京蓝汛通信技术有限责任公司 Data accessing method and entry server
CN104023092A (en) * 2014-04-29 2014-09-03 中国联合网络通信集团有限公司 Method and system for realizing directed flow packet
CN105306605A (en) * 2015-12-09 2016-02-03 北京中电普华信息技术有限公司 Double host server system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8184546B2 (en) * 2008-02-29 2012-05-22 Avaya Inc. Endpoint device configured to permit user reporting of quality problems in a communication network
WO2014107147A1 (en) * 2013-01-03 2014-07-10 Hewlett-Packard Development Company, L.P. Identifying an analysis reporting message in network traffic
US20150124622A1 (en) * 2013-11-01 2015-05-07 Movik Networks, Inc. Multi-Interface, Multi-Layer State-full Load Balancer For RAN-Analytics Deployments In Multi-Chassis, Cloud And Virtual Server Environments
CN104243182A (en) * 2014-09-30 2014-12-24 中国联合网络通信集团有限公司 Directional traffic charging method and directional traffic charging system
CN104506644B (en) * 2014-12-30 2018-04-20 北京奇虎科技有限公司 A kind of method, apparatus and mobile terminal for carrying out network data access
CN105101147B (en) * 2015-08-19 2019-03-26 网宿科技股份有限公司 A method and system for realizing directional traffic of mobile app

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103560937A (en) * 2013-11-01 2014-02-05 北京蓝汛通信技术有限责任公司 Data accessing method and entry server
CN104023092A (en) * 2014-04-29 2014-09-03 中国联合网络通信集团有限公司 Method and system for realizing directed flow packet
CN105306605A (en) * 2015-12-09 2016-02-03 北京中电普华信息技术有限公司 Double host server system

Also Published As

Publication number Publication date
CN108306745A (en) 2018-07-20
WO2018036008A1 (en) 2018-03-01

Similar Documents

Publication Publication Date Title
KR102131761B1 (en) MBMS membership management in service capability exposure function
US10042665B2 (en) Customer premises equipment (CPE) with virtual machines for different service providers
US10805268B2 (en) Method and apparatuses for enabling routing of data packets between a wireless device and a service provider based in the local service cloud
CA2847103C (en) Implementing a 3g packet core in a cloud computer with openflow data and control planes
WO2023000935A1 (en) Data processing method, network element device, and readable storage medium
CN103888928B (en) Business strategy control method and system
CN102571587B (en) Method and equipment for forwarding messages
WO2020200436A1 (en) Apparatus, method and computer program for group communication
CN103532878A (en) Data packet processing method, and method, device and system for managing network flow
CN105122741B (en) Service chain control method and device for service flow
RU2014128627A (en) METHOD AND DEVICE FOR SERVICE TRANSMISSION MANAGEMENT
WO2023000936A1 (en) Data processing method, function device and readable storage medium
CN105530666A (en) Session binding method and session binding system
US10567950B2 (en) Content delivery network request handling in wireless communication systems
CN104253878B (en) The vlan information management system and method for DHCP RELAY termination sub-interfaces
CN110391919A (en) Flux of multicast retransmission method, device, electronic equipment
CN106412043B (en) CDN network traffic guidance method and device
CN105099803A (en) A traffic identification method, application server and network element equipment
US20090041013A1 (en) Dynamically Assigning A Policy For A Communication Session
CA2931906A1 (en) Systems and methods for determining a destination location in a network system
CN103327129A (en) Domain name analyticmethod for multi-WAN-port gateway device
CN107005464B (en) Method and device for processing service flow data packet
CN108306745B (en) Server and data processing method and system applied by same
CN117221841A (en) Flow charging system and method
CN106559233A (en) The mirror processing method and device of data flow

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200103

CF01 Termination of patent right due to non-payment of annual fee