CN103560937A - Data accessing method and entry server - Google Patents
Data accessing method and entry server Download PDFInfo
- Publication number
- CN103560937A CN103560937A CN201310535225.2A CN201310535225A CN103560937A CN 103560937 A CN103560937 A CN 103560937A CN 201310535225 A CN201310535225 A CN 201310535225A CN 103560937 A CN103560937 A CN 103560937A
- Authority
- CN
- China
- Prior art keywords
- server
- information
- link information
- network
- destination
- 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.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
本申请公开了一种数据访问方法和入口服务器,其中,该方法包括:入口服务器接收待传输的访问请求信息,访问请求信息用于访问目的服务器上的数据;入口服务器获取入口服务器与目的服务器之间的链路信息,其中,链路信息由配置系统动态分配;入口服务器根据链路信息将访问请求信息发送给目的服务器。本发明解决了现有TCP代理服务器的转发端口是预先固定好的,只能通过使用者手动修改,不能动态的修改的技术问题,通过链路的动态分配增加了链路的利用率,并加快了数据传输的速度。
The present application discloses a data access method and an entry server, wherein the method includes: the entry server receives access request information to be transmitted, and the access request information is used to access data on the destination server; The link information among them is dynamically assigned by the configuration system; the entry server sends the access request information to the destination server according to the link information. The invention solves the technical problem that the forwarding port of the existing TCP proxy server is fixed in advance and can only be manually modified by the user, but cannot be dynamically modified. The dynamic allocation of the link increases the utilization rate of the link and speeds up the process. the speed of data transmission.
Description
技术领域technical field
本申请涉及互联网领域,具体而言,涉及一种数据访问方法和入口服务器。This application relates to the Internet field, and in particular, relates to a data access method and an entry server.
背景技术Background technique
在CDN领域中,通过将用户的访问引导到最近的下层TCP代理服务器上,下层TCP代理服务器通过监听特定的套接字(IP地址+端口)来接受来自用户的访问请求,并使用预先配置好的上层TCP代理服务器的套接字与上层建立连接,然后将请求转发给上层,同时将来自上层的响应转发给用户,而在本地不做分析。In the CDN field, by directing the user's access to the nearest lower-layer TCP proxy server, the lower-layer TCP proxy server accepts the access request from the user by listening to a specific socket (IP address + port), and uses the pre-configured The socket of the upper layer TCP proxy server establishes a connection with the upper layer, then forwards the request to the upper layer, and forwards the response from the upper layer to the user, without analyzing locally.
通过在互联网中搭建多个TCP代理服务器,经过多层的TCP代理服务器的转发,实现用户对源站的访问,并利用在各个TCP代理服务器之间搭建优质链路来实现用户加速访问。By building multiple TCP proxy servers on the Internet, through the forwarding of multi-layer TCP proxy servers, users can access the source site, and use high-quality links between TCP proxy servers to realize user accelerated access.
现有的常见技术为TCP代理转发模式,下层TCP代理服务器的监听套接字,将TCP请求转发给上层的代理服务器,上层TCP代理服务器将TCP请求转发给源站服务器。但是这些套接字必须是预先在TCP代理服务器中预先配置好的,不能根据链路的情况自动修改,只能通过使用者手动来修改。The existing common technology is the TCP proxy forwarding mode. The listening socket of the lower-layer TCP proxy server forwards the TCP request to the upper-layer proxy server, and the upper-layer TCP proxy server forwards the TCP request to the origin server. But these sockets must be pre-configured in the TCP proxy server in advance, and cannot be automatically modified according to the link situation, and can only be manually modified by the user.
针对上述的问题,目前尚未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.
发明内容Contents of the invention
本申请的主要目的在于提供一种数据访问方法和入口服务器,以至少解决现有TCP代理服务器的转发端口是预先固定好的,只能通过使用者手动修改,不能动态的修改的问题。The main purpose of this application is to provide a data access method and an entry server to at least solve the problem that the forwarding port of the existing TCP proxy server is fixed in advance and can only be manually modified by the user, and cannot be dynamically modified.
根据本申请的一个方面,提供了一种数据访问方法,其包括:入口服务器接收待传输的访问请求信息,其中,访问请求信息用于访问目的服务器上的数据;入口服务器获取入口服务器与目的服务器之间的链路信息,其中,链路信息由配置系统根据包括入口服务器和目的服务器在内的网络服务器上报的自身至网络服务器集合中的其他网络服务器的延时信息和丢包率信息计算得到;入口服务器根据链路信息将访问请求信息发送给目的服务器。According to one aspect of the present application, a data access method is provided, which includes: the entry server receives access request information to be transmitted, wherein the access request information is used to access data on the destination server; The link information between them, where the link information is calculated by the configuration system according to the delay information and packet loss rate information from itself to other network servers in the network server set reported by the network server including the entry server and the destination server ; The entry server sends the access request information to the destination server according to the link information.
作为一种可选方案,在入口服务器接收待传输的访问请求信息之前,数据访问方法还包括:包括入口服务器和目的服务器在内的网络服务器集合中的每个网络服务器每隔预定周期或在满足预定的条件下获取自身至网络服务器集合中的其他网络服务器的延时信息和丢包率信息;网络服务器将延时信息和丢包率信息发送给配置系统;入口服务器接收配置系统返回的入口服务器与目的服务器之间的链路信息;入口服务器获取入口服务器与目的服务器之间的链路信息包括:入口服务器从本地获取入口服务器与目的服务器之间的链路信息。As an optional solution, before the ingress server receives the access request information to be transmitted, the data access method further includes: each network server in the network server set including the ingress server and the destination server every predetermined period or when meeting Obtain the delay information and packet loss rate information from itself to other network servers in the network server set under predetermined conditions; the network server sends the delay information and packet loss rate information to the configuration system; the entry server receives the entry server returned by the configuration system The link information with the destination server: the entry server obtaining the link information between the entry server and the destination server includes: the entry server locally obtaining the link information between the entry server and the destination server.
作为一种可选方案,预定的条件包括:网络服务器接收到配置系统发送的链路信息获取请求。As an optional solution, the predetermined condition includes: the network server receives a link information acquisition request sent by the configuration system.
作为一种可选方案,入口服务器获取入口服务器与目的服务器之间的链路信息包括:配置系统接收入口服务器发送的用于获取链路信息的第一请求消息;配置系统响应于第一请求消息向包括入口服务器和目的服务器在内的网络服务器集合中的每个网络服务器发送用于获取链路信息的第二请求消息;配置系统接收网络服务器发送的自身至网络服务器集合中的其他网络服务器的延时信息和丢包率信息;配置系统根据延时信息和丢包率信息计算入口服务器与目的服务器之间的链路信息;配置系统将入口服务器与目的服务器之间的链路信息发送给入口服务器。As an optional solution, the ingress server acquiring link information between the ingress server and the destination server includes: configuring the system to receive a first request message for acquiring link information sent by the ingress server; configuring the system to respond to the first request message Send a second request message for obtaining link information to each network server in the network server set including the entry server and the destination server; the configuration system receives the information sent by the network server to other network servers in the network server set. Delay information and packet loss rate information; the configuration system calculates the link information between the ingress server and the destination server according to the delay information and packet loss rate information; the configuration system sends the link information between the ingress server and the destination server to the ingress server.
作为一种可选方案,入口服务器根据链路信息将访问请求信息发送给目的服务器包括:入口服务器通过链路信息指示的多个中间服务器将访问请求信息发送给与目的服务器连接的出口服务器;出口服务器将访问请求信息发送给目的服务器;其中,在多个中间服务器之间传输访问请求信息包括如下步骤:多个中间服务器中的第一中间服务器从链路信息中获取作为第一中间服务器下一跳的第二中间服务器的套接字;第一中间服务器根据第二中间服务器的套接字与第二中间服务器建立连接;若第一中间服务器与第二中间服务器建立连接成功,则第一中间服务器从链路信息中删除第一中间服务器的套接字,并将更新后的链路信息和访问请求信息发送给第二中间服务器;其中,套接字为IP地址和端口号或为IP地址。As an optional solution, the ingress server sending the access request information to the destination server according to the link information includes: the ingress server sends the access request information to the egress server connected to the destination server through multiple intermediate servers indicated by the link information; The server sends the access request information to the destination server; wherein, transmitting the access request information between multiple intermediate servers includes the following steps: the first intermediate server in the multiple intermediate servers obtains the link information as the next link of the first intermediate server. Jump the socket of the second intermediate server; the first intermediate server establishes a connection with the second intermediate server according to the socket of the second intermediate server; if the connection between the first intermediate server and the second intermediate server is successfully established, the first intermediate server The server deletes the socket of the first intermediate server from the link information, and sends the updated link information and access request information to the second intermediate server; wherein, the socket is an IP address and a port number or is an IP address .
作为一种可选方案,在多个中间服务器之间传输访问请求信息包括:若第一中间服务器与第二中间服务器建立连接失败,则第一中间服务器从链路信息中获取作为第二中间服务器下一跳的第三中间服务器的套接字;第一中间服务器根据第三中间服务器的套接字与第三中间服务器建立连接;若第一中间服务器与第三中间服务器建立连接成功,则第一中间服务器从链路信息中删除第一中间服务器和第二中间服务器的套接字,并将更新后的链路信息和访问请求信息发送给第三中间服务器。As an optional solution, the transmission of the access request information between multiple intermediate servers includes: if the connection between the first intermediate server and the second intermediate server fails to be established, the first intermediate server obtains from the link information as the second intermediate server The socket of the third intermediate server of the next hop; the first intermediate server establishes a connection with the third intermediate server according to the socket of the third intermediate server; if the connection between the first intermediate server and the third intermediate server is successfully established, then the first intermediate server An intermediate server deletes the sockets of the first intermediate server and the second intermediate server from the link information, and sends the updated link information and access request information to the third intermediate server.
根据本申请的另一方面,提供了一种入口服务器,其包括:第一传输单元,用于接收待传输的访问请求信息,其中,访问请求信息用于访问目的服务器上的数据;获取单元,用于获取入口服务器与目的服务器之间的链路信息,其中,链路信息由配置系统根据包括入口服务器和目的服务器在内的网络服务器上报的自身至网络服务器集合中的其他网络服务器的延时信息和丢包率信息计算得到;第二传输单元,用于根据链路信息将访问请求信息发送给目的服务器。According to another aspect of the present application, an entry server is provided, which includes: a first transmission unit, configured to receive access request information to be transmitted, wherein the access request information is used to access data on the destination server; an acquisition unit, Used to obtain the link information between the entry server and the destination server, where the link information is provided by the configuration system according to the delay from itself to other network servers in the network server set reported by the network servers including the entry server and the destination server information and packet loss rate information are calculated; the second transmission unit is configured to send the access request information to the destination server according to the link information.
作为一种可选方案,该入口服务器包括:第三传输单元,用于在接收待传输的访问请求信息之前,每隔预定周期或在满足预定的条件下获取入口服务器至网络服务器集合中的其他网络服务器的延时信息和丢包率信息,其中,网络服务器集合包括入口服务器和目的服务器;将延时信息和丢包率信息发送给配置系统;第四传输单元,用于接收配置系统返回的入口服务器与目的服务器之间的链路信息;其中获取单元用于从本地获取入口服务器与目的服务器之间的链路信息。As an optional solution, the portal server includes: a third transmission unit, configured to acquire the portal server to other information in the network server set every predetermined period or when a predetermined condition is met before receiving the access request information to be transmitted. Delay information and packet loss rate information of the network server, wherein the set of network servers includes an entry server and a destination server; the delay information and packet loss rate information are sent to the configuration system; the fourth transmission unit is used to receive the information returned by the configuration system The link information between the entry server and the destination server; wherein the obtaining unit is used to locally obtain the link information between the entry server and the destination server.
作为一种可选方案,预定的条件包括:网络服务器接收到配置系统发送的链路信息获取请求。As an optional solution, the predetermined condition includes: the network server receives a link information acquisition request sent by the configuration system.
作为一种可选方案,获取单元包括:第一传输模块,用于配置系统发送用于获取链路信息的第一请求消息;第二传输模块,用于接收配置系统响应于第一请求消息发送的用于获取链路信息的第二请求消息;第三传输模块,用于响应于第二请求消息向配置系统发送的入口服务器至网络服务器集合中的其他网络服务器的延时信息和丢包率信息,其中,网络服务器集合包括入口服务器和目的服务器;第四传输模块,用于接收配置系统发送的根据延时信息和丢包率信息计算得到的入口服务器与目的服务器之间的链路信息。As an optional solution, the acquisition unit includes: a first transmission module, configured to configure the system to send a first request message for acquiring link information; a second transmission module, configured to receive the configuration system to send in response to the first request message The second request message used to obtain link information; the third transmission module, used to send the delay information and packet loss rate from the ingress server to other network servers in the network server set to the configuration system in response to the second request message information, wherein the set of network servers includes an ingress server and a destination server; the fourth transmission module is used to receive the link information between the ingress server and the destination server calculated according to the delay information and packet loss rate information sent by the configuration system.
通过本申请的技术方案,能够达到以下有益效果:Through the technical solution of the present application, the following beneficial effects can be achieved:
1)从全局感知整条链路的信息,并根据获取到各个网络服务器感知的链路信息计算链路,从而可以更合理利用链路资源,做到全网的带宽利用最大化,增加链路利用率;1) Perceive the information of the entire link globally, and calculate the link based on the link information obtained from each network server, so that link resources can be used more reasonably, the bandwidth utilization of the entire network can be maximized, and the number of links can be increased. utilization rate;
2)用于建立连接的套接字是从动态分配的链路信息中解析得到的,而不需要进行预先配置,从而减少了配置的复杂度,加快了数据的传输速度;2) The socket used to establish a connection is parsed from the dynamically allocated link information without pre-configuration, thereby reducing the complexity of configuration and speeding up data transmission;
3)可以将入口服务器的IP带给目的服务器,使得目的服务器可以获取到网民IP。3) The IP of the entry server can be brought to the destination server, so that the destination server can obtain the IP of the netizen.
当然,实施本申请的任一产品并不一定需要同时达到以上所述的所有优点。Of course, implementing any product of the present application does not necessarily need to achieve all the above-mentioned advantages at the same time.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:
图1是根据本申请实施例的传输网络的一种可选的示意图;FIG. 1 is an optional schematic diagram of a transmission network according to an embodiment of the present application;
图2是根据本申请实施例的数据访问方法的一种可选的流程图;FIG. 2 is an optional flow chart of a data access method according to an embodiment of the present application;
图3是根据本申请实施例的传输网络的另一种可选的示意图;FIG. 3 is another optional schematic diagram of a transmission network according to an embodiment of the present application;
图4是根据本申请实施例的数据访问方法的另一种可选的流程图;FIG. 4 is another optional flow chart of a data access method according to an embodiment of the present application;
图5是根据本申请实施例的数据访问方法的又一种可选的流程图;FIG. 5 is another optional flowchart of a data access method according to an embodiment of the present application;
图6是根据本申请实施例的数据访问方法的又一种可选的流程图;FIG. 6 is another optional flowchart of a data access method according to an embodiment of the present application;
图7是根据本申请实施例的传输网络的又一种可选的示意图;FIG. 7 is another optional schematic diagram of a transmission network according to an embodiment of the present application;
图8是根据本申请实施例的传输网络的另一种可选的示意图;FIG. 8 is another optional schematic diagram of a transmission network according to an embodiment of the present application;
图9是根据本申请实施例的入口服务器的一种可选的示意图;FIG. 9 is an optional schematic diagram of an entry server according to an embodiment of the present application;
图10是根据本申请实施例的入口服务器的另一种可选的示意图;以及FIG. 10 is another optional schematic diagram of an ingress server according to an embodiment of the present application; and
图11是根据本申请实施例的入口服务器的又一种可选的示意图。Fig. 11 is another optional schematic diagram of an ingress server according to an embodiment of the present application.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present application will be described in detail with reference to the drawings and embodiments. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
如本申请所使用的,术语“模块”、“组件”或“单元”可以指在计算机上执行的软件对象或例程。尽管此处所描述的系统和方法以软件来实现,但是硬件或软件和硬件的组合的实现也是可能并被构想的。As used in this application, the term "module", "component" or "unit" may refer to a software object or routine executed on a computer. Although the systems and methods described herein are implemented in software, implementations in hardware or a combination of software and hardware are also possible and contemplated.
实施例1Example 1
如图1所示,在本实施例所示的传输网络中包括:入口服务器102-1和102-2、中间服务器106-1至106-3以及目的服务器104。入口服务器102-1和102-2可以通过中间服务器106-1至106-3中的一个或多个将数据访问请求发送到对应的目的服务器104。需要说明的是,图1所示的传输网络仅是一种示例,入口服务器、中间服务器以及目的服务器之间的网络拓扑结构还可以为其他连接方式,而且本实施例对中间服务器的数量不做限定,作为一种可选的实现方式,入口服务器还可以直接与目的服务器相连。As shown in FIG. 1 , the transmission network shown in this embodiment includes: entry servers 102 - 1 and 102 - 2 , intermediate servers 106 - 1 to 106 - 3 , and
基于图1所示的传输网络,本实施例还提供了一种可选的数据访问方法,以下以入口服务器102-1为例进行叙述,如图2所示,该数据访问方法包括但不限于如下步骤:Based on the transmission network shown in Figure 1, this embodiment also provides an optional data access method, which is described below using the entry server 102-1 as an example, as shown in Figure 2, the data access method includes but is not limited to Follow the steps below:
S202,入口服务器102-1接收待传输的访问请求信息,其中,上述访问请求信息用于访问目的服务器104上的数据;S202, the entry server 102-1 receives access request information to be transmitted, wherein the above access request information is used to access data on the
可选的,上述访问请求信息可以包括来自用户在终端上输入的网页地址,例如,www.baidu.com。此外,可以为不同的地域设置不同的入口服务器,例如,当广州的用户在终端上输入网页地址,则可以将该携带有该网页地址的访问请求信息路由到设置在广州的入口服务器102-1上。Optionally, the above access request information may include a web page address input by the user on the terminal, for example, www.baidu.com. In addition, different portal servers can be set for different regions. For example, when a user in Guangzhou enters a webpage address on the terminal, the access request information carrying the webpage address can be routed to the portal server 102-1 set in Guangzhou. superior.
S204,入口服务器102-1获取入口服务器102-1与目的服务器104之间的链路信息,其中,链路信息由配置系统根据包括入口服务器和目的服务器在内的网络服务器上报的自身至网络服务器集合中的其他网络服务器的延时信息和丢包率信息计算得到;S204, the entry server 102-1 obtains the link information between the entry server 102-1 and the
作为一种可选的方式,入口服务器102-1与目的服务器104之间的链路信息包括最优链路信息,可选的,上述最优链路信息可为跳数最少的链路。As an optional manner, the link information between the ingress server 102-1 and the
作为一种可选的方式,链路信息获取可以包括如下步骤:获取到入口服务器102-1、中间服务器106-1至106-3以及目的服务器104的链路信息,并根据这些链路信息计算入口服务器102-1与目的服务器104之间的链路信息。这里,入口服务器102-1、中间服务器106-1至106-3以及目的服务器104的链路信息可以包括但不限于:各个服务器至其他网络服务器之间的延时信息和丢包率信息。As an optional method, obtaining link information may include the following steps: obtaining link information to the entry server 102-1, intermediate servers 106-1 to 106-3, and
可选的,假设入口服务器102-1与目的服务器104之间的链路为:入口服务器102-1—中间服务器106-1—中间服务器106-2—目的服务器104。对于上述链路,上述链路信息可以包括但不限于:中间服务器106-1、中间服务器106-2和中间服务器106-2的套接字,这里,套接字包括:IP地址和端口号或IP地址。Optionally, it is assumed that the link between the entry server 102-1 and the
S206,入口服务器102-1根据上述链路信息将上述访问请求信息发送给上述目的服务器104。S206, the entry server 102-1 sends the above access request information to the
可选的,入口服务器102-1可以经过中间服务器106-1、中间服务器106-2传输到目的服务器104,或者,经过中间服务器106-1、中间服务器106-3传输到目的服务器104。需要说明的是,上述传输路径仅是一种示例,对于不同的网络拓扑结构,入口服务器102-1至目的服务器104之间可以存在不同的传输路径。Optionally, the entry server 102-1 may transmit to the
作为一种可选的方式,当完成上述访问请求后,由入口服务器102-1建立到目的服务器104之间的链路连接也将被拆除。As an optional manner, after the above access request is completed, the link connection established by the entry server 102-1 to the
作为另一种可选的方式,入口服务器102-1在获取入口服务器102-1与目的服务器104之间的链路信息之后,入口服务器102-1会预先建立多个完整链路连接,并放到连接池之中,当访问请求访问时,入口服务器102-1可从连接池中取一个已经建立好的连接,进行数据的传输,这样,可以减少建立连接的时间,起到加速传输的效果;当完成上述访问请求后,由入口服务器102-1建立到目的服务器104之间的链路连接也将被拆除。而连接池中随即会有一个新的连接补充到连接池之中,供后续的访问请求使用。此外,连接都有超时时间,该超时时间由目的服务器104决定,在连接超时时间之内的连接都是可用的,而当连接超时,该连接将被主动从连接池中去除,连接池内始终保证连接是可用的。As another alternative, after the ingress server 102-1 obtains the link information between the ingress server 102-1 and the
通过上述实施例,从全局感知整条链路的信息,并根据获取到各个网络服务器感知的链路信息计算链路,从而可以更合理利用链路资源,做到全网的带宽利用最大化,增加链路利用率;此外,用于建立连接的套接字是从动态分配的链路信息中解析得到的,而不需要进行预先配置,从而减少了配置的复杂度,加快了数据的传输速度;进一步,可以将入口服务器的IP带给目的服务器,使得目的服务器可以获取到网民IP。Through the above-mentioned embodiment, the information of the entire link is perceived globally, and the link is calculated according to the acquired link information perceived by each network server, so that link resources can be used more reasonably, and the bandwidth utilization of the entire network can be maximized. Increase link utilization; in addition, the socket used to establish a connection is parsed from dynamically allocated link information without pre-configuration, thereby reducing the complexity of configuration and speeding up data transmission ; Further, the IP of the entry server can be brought to the destination server, so that the destination server can obtain the IP of the netizen.
为了获取动态分配的链路信息,本实施例提供了以下几种实现方式:In order to obtain dynamically allocated link information, this embodiment provides the following implementation methods:
1)作为一种可选的实现方式,如图3和图4所示,在上述入口服务器102-1和102-2接收待传输的访问请求信息之前,该数据访问方法还包括:1) As an optional implementation, as shown in Figure 3 and Figure 4, before the above-mentioned entrance servers 102-1 and 102-2 receive the access request information to be transmitted, the data access method further includes:
S402,入口服务器102-1和102-2每隔预定周期获取自身至网络服务器集合中其他网络服务器的延时信息和丢包率信息,并将延时信息和丢包率信息发送给配置系统302。可选的,网络服务器集合可以包括但不限于:入口服务器102-1和102-2、中间服务器106-1至106-3以及目的服务器104。S402, the ingress servers 102-1 and 102-2 acquire the delay information and packet loss rate information from themselves to other network servers in the network server set at predetermined intervals, and send the delay information and packet loss rate information to the configuration system 302 . Optionally, the network server set may include but not limited to: entry servers 102-1 and 102-2, intermediate servers 106-1 to 106-3, and
例如,入口服务器102-1每隔预定周期获取以下信息:For example, the portal server 102-1 acquires the following information every predetermined period:
a)入口服务器102-1至中间服务器106-1的延时信息和丢包率信息;a) Delay information and packet loss rate information from the ingress server 102-1 to the intermediate server 106-1;
b)入口服务器102-1至中间服务器106-2的延时信息和丢包率信息;b) delay information and packet loss rate information from the ingress server 102-1 to the intermediate server 106-2;
c)入口服务器102-1至中间服务器106-3的延时信息和丢包率信息;c) Delay information and packet loss rate information from the entry server 102-1 to the intermediate server 106-3;
d)入口服务器102-1至目的服务器104的延时信息和丢包率信息。d) Delay information and packet loss rate information from the ingress server 102-1 to the
S404,中间服务器106-1至106-3和目的服务器104每隔预定周期获取自身至网络服务器集合中其他网络服务器的延时信息和丢包率信息,并将延时信息和丢包率信息发送给配置系统302。S404, the intermediate servers 106-1 to 106-3 and the
S406,配置系统302根据接收到延时信息和丢包率信息计算得到入口服务器102-1至目的服务器104之间的链路信息以及入口服务器102-2至目的服务器104之间的链路信息;S406, the configuration system 302 calculates the link information between the ingress server 102-1 and the
S408,入口服务器102-1接收配置系统302返回的入口服务器102-1与目的服务器104之间的链路信息,入口服务器102-2接收配置系统302返回的入口服务器102-2与目的服务器104之间的链路信息。S408, the entry server 102-1 receives the link information between the entry server 102-1 and the
可选的,上述S402与S404可以同时执行,或者,按顺序执行。Optionally, the above S402 and S404 may be executed simultaneously, or executed sequentially.
在本实施例中,上述入口服务器102-1和102-2在接收上述配置系统302返回的入口服务器102-1与目的服务器104之间的链路信息及入口服务器102-2与目的服务器104之间的链路信息之后,可以将该链路信息保存至本地的存储器中,以便于在接收到数据访问请求时,从本地的存储器中获取入口服务器102-1与目的服务器104之间的链路信息及入口服务器102-2与目的服务器104之间的链路信息。通过上述实施例,根据动态分配的链路信息,可以更快获取链路信息,提高访问速度,更合理地利用链路资源。In this embodiment, the entry servers 102-1 and 102-2 receive the link information between the entry server 102-1 and the
2)作为另一种可选方式,如图5所示,入口服务器102-1和102-2也可以在满足预定的条件下获取自身至其他网络服务器的延时信息和丢包率信息,包括:2) As another optional method, as shown in FIG. 5 , the ingress servers 102-1 and 102-2 can also obtain delay information and packet loss rate information from themselves to other network servers under predetermined conditions, including :
S502,入口服务器102-1和102-2接收到配置系统302发送的链路信息获取请求,用于获取自身至网络服务器集合中其他网络服务器的延时信息和丢包率信息。可选的,网络服务器集合可以包括但不限于:入口服务器102-1和102-2、中间服务器106-1至106-3以及目的服务器104。S502, the ingress servers 102-1 and 102-2 receive link information acquisition requests sent by the configuration system 302, and are used to acquire delay information and packet loss rate information from themselves to other network servers in the network server set. Optionally, the network server set may include but not limited to: entry servers 102-1 and 102-2, intermediate servers 106-1 to 106-3, and
可选的,上述预定的条件包括:网络服务器集合中的每个网络服务器接收到上述配置系统302发送的链路信息获取请求,但本实施例不仅限于这一种方式,还可以包含其他的预定条件。Optionally, the predetermined conditions include: each network server in the network server set receives the link information acquisition request sent by the configuration system 302, but this embodiment is not limited to this method, and may also include other predetermined conditions condition.
例如,入口服务器102-1满足预定的条件下包括接收到上述配置系统302发送的链路信息获取请求:获取以下信息:For example, when the entry server 102-1 meets the predetermined condition, it includes receiving the link information acquisition request sent by the configuration system 302: acquiring the following information:
a)入口服务器102-1至中间服务器106-1的延时信息和丢包率信息;a) Delay information and packet loss rate information from the ingress server 102-1 to the intermediate server 106-1;
b)入口服务器102-1至中间服务器106-2的延时信息和丢包率信息;b) delay information and packet loss rate information from the ingress server 102-1 to the intermediate server 106-2;
c)入口服务器102-1至中间服务器106-3的延时信息和丢包率信息;c) delay information and packet loss rate information from the entry server 102-1 to the intermediate server 106-3;
d)入口服务器102-1至目的服务器104的延时信息和丢包率信息。d) Delay information and packet loss rate information from the ingress server 102-1 to the
S504,中间服务器106-1至106-3及目的服务器104接收到所述配置系统302发送的链路信息获取请求,用于获取自身至网络服务器集合中其他网络服务器的延时信息和丢包率信息。S504, the intermediate servers 106-1 to 106-3 and the
例如,中间服务器106-1满足预定的条件下包括接收到上述配置系统302发送的链路信息获取请求:获取以下信息:For example, when the intermediate server 106-1 meets the predetermined conditions, it includes receiving the link information acquisition request sent by the configuration system 302: acquiring the following information:
a)中间服务器106-1至入口服务器102-1的延时信息和丢包率信息;a) Delay information and packet loss rate information from the intermediate server 106-1 to the ingress server 102-1;
b)中间服务器106-1至中间服务器106-2的延时信息和丢包率信息;b) delay information and packet loss rate information from the intermediate server 106-1 to the intermediate server 106-2;
c)中间服务器106-1至中间服务器106-3的延时信息和丢包率信息;c) delay information and packet loss rate information from the intermediate server 106-1 to the intermediate server 106-3;
d)中间服务器106-1至目的服务器104的延时信息和丢包率信息。d) Delay information and packet loss rate information from the intermediate server 106-1 to the
在本实施例中,包括入口服务器102-1及102-2在内的网络服务器接收到配置系统302发送的链路获取请求之后,获取自身至网络服务器集合中其他网络服务器的延时信息和丢包率信息。In this embodiment, after receiving the link acquisition request sent by the configuration system 302, the network servers including the entry servers 102-1 and 102-2 obtain the delay information and loss information from themselves to other network servers in the network server set. Packet rate information.
通过上述实施例,配置系统及时从每个网络服务器获取其自身至网络服务器集合中其他网络服务器的延时信息和丢包率信息,由以上链路数据计算得到当时的链路信息,实现了从全局感知整条链路的信息,方便根据需求实现实时的数据访问。Through the above-mentioned embodiment, the configuration system obtains the delay information and packet loss rate information from each network server in time from itself to other network servers in the network server set, and obtains the link information at that time from the above link data calculation, and realizes from The information of the entire link is globally perceived, which facilitates real-time data access according to requirements.
3)作为又一种可选方式,结合图6所示,入口服务器102-1和102-2获取入口服务器102-1与目的服务器104之间的链路信息及入口服务器102-2与目的服务器104之间的链路信息包括:3) As yet another optional method, as shown in FIG. 6, the ingress servers 102-1 and 102-2 acquire the link information between the ingress server 102-1 and the
S602,入口服务器102-1和102-2向配置系统302传输第一请求消息;可选的,入口服务器102-1和102-2实时传输第一请求消息,上述第一请求消息用于获取链路信息。S602, the entrance servers 102-1 and 102-2 transmit the first request message to the configuration system 302; optionally, the entrance servers 102-1 and 102-2 transmit the first request message in real time, and the above-mentioned first request message is used to obtain the link road information.
S604,配置系统302接收到第一传输请求后,响应于第一请求向入口服务器102-1和102-2传输第二请求消息。可选的,第二请求消息用于获取入口服务器102-1和102-2至网络服务器集合中其他网络服务器的延时信息和丢包率信息。S604. After receiving the first transmission request, the configuration system 302 transmits a second request message to the ingress servers 102-1 and 102-2 in response to the first request. Optionally, the second request message is used to obtain delay information and packet loss rate information from the ingress servers 102-1 and 102-2 to other network servers in the network server set.
S606,配置系统302接收到第一传输请求后,响应于第一请求向中间服务器106-1至106-3及目的服务器104传输第二请求消息。可选的,第二请求消息用于获取中间服务器106-1至106-3及目的服务器104至网络服务器集合中其他网络服务器的延时信息和丢包率信息。S606. After receiving the first transmission request, the configuration system 302 transmits a second request message to the intermediate servers 106-1 to 106-3 and the
作为一种可选的方式,当完成上述访问请求后,由入口服务器102-1和102-2建立到目的服务器104之间的链路连接也将被拆除。As an optional manner, after the above access request is completed, the link connection established by the entry servers 102-1 and 102-2 to the
作为另一种可选的方式,入口服务器102-1在获取入口服务器102-1与目的服务器104之间的链路信息及入口服务器102-2在获取入口服务器102-2与目的服务器104之间的链路信息之后,入口服务器102-1和102-2会预先建立多个完整链路连接,并放到各自相应的连接池之中,当访问请求访问时,入口服务器102-1和102-2可从连接池中取一个已经建立好的连接,进行数据的传输,这样,可以减少建立连接的时间,起到加速传输的效果;当完成上述访问请求后,由入口服务器102-1和102-2建立到目的服务器104之间的链路连接也将被拆除。而连接池中随即会有一个新的连接补充到连接池之中,供后续的访问请求使用。此外,连接都有超时时间,该超时时间由目的服务器104决定,在连接超时时间之内的连接都是可用的,而当连接超时,该连接将被主动从连接池中去除,连接池内始终保证连接是可用的。通过上述实施例,入口服务器可以在接收到来自终端的数据访问请求时实时地请求获取链路信息,使得所得的链路信息可以实时更新,从而可以更合理利用链路资源,做到全网的带宽利用最大化,增加链路利用率。As another optional mode, the portal server 102-1 obtains the link information between the portal server 102-1 and the
以下结合图7-图8,以入口服务器102-1为例,来描述入口服务器102-1根据上述链路信息将上述访问请求信息发送给所述目的服务器104的方案。The scheme in which the portal server 102-1 sends the above access request information to the
假设链路信息指示入口服务器102-1至目的服务器104的链路为:入口服务器102-1、中间服务器106-1、中间服务器106-2、出口服务器702、目的服务器104。基于图7所示的传输网络可知,入口服务器102-1根据上述链路信息将上述访问请求信息发送给所述目的服务器104包括如下步骤:Assume that the link information indicates that the link from the ingress server 102 - 1 to the
S1:入口服务器102-1通过链路信息指示的中间服务器106-1和106-2将上述访问请求信息发送给与目的服务器104连接的出口服务器702;在本实施例中,出口服务器702可以视为是一个中间服务器。S1: The ingress server 102-1 sends the above access request information to the egress server 702 connected to the
S2:出口服务器702将上述访问请求信息发送给目的服务器104。S2: The egress server 702 sends the above access request information to the
作为步骤S1的一种可选实现方案,入口服务器102-1从链路信息中获取中间服务器106-1的套接字,并根据中间服务器106-1的套接字与中间服务器106-1建立连接。当连接建立成功后,入口服务器102-1将链路信息和访问请求信息发送给中间服务器106-1。然后,中间服务器106-1从上述链路信息中获取作为中间服务器106-1下一跳的中间服务器106-2的套接字;中间服务器106-1根据中间服务器106-2的套接字与中间服务器106-2建立连接。As an optional implementation of step S1, the ingress server 102-1 obtains the socket of the intermediate server 106-1 from the link information, and establishes an connect. After the connection is established successfully, the entry server 102-1 sends the link information and the access request information to the intermediate server 106-1. Then, the intermediate server 106-1 obtains the socket of the intermediate server 106-2 as the next hop of the intermediate server 106-1 from the above-mentioned link information; The intermediate server 106-2 establishes the connection.
可选的,上述访问请求信息包括TCP头(TCP header)和TCP主体(TCP body),格式如表1所示:Optionally, the above access request information includes a TCP header (TCP header) and a TCP body (TCP body), the format of which is shown in Table 1:
表1Table 1
可选的,假设链路为入口服务器102-1——中间服务器106-1——中间服务器106-2——出口服务器702——目的服务器104,则链路信息包括如下格式:Optionally, assuming that the link is the ingress server 102-1—the intermediate server 106-1—the intermediate server 106-2—the egress server 702—the
^^^入口服务器102-1监听套接字+中间服务器106-1监听套接字+中间服务器106-2套接字+出口服务器702套接字#目的服务器104监听套接字负载均衡方式$$$^^^Ingress server 102-1 listening socket + intermediate server 106-1 listening socket + intermediate server 106-2 socket + export server 702 socket
例如:For example:
^^^192.168.100.166:80+192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$^^^192.168.100.166:80+192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$
可选的,建立服务器之间的连接的同时,将客户端IP和链路信息组装成元数据,该元数据以“^^^”作为开始标记,以“$$$”作为结束标记,用户IP后以“*”区分,中间套接字之间用“+”连接,出口服务器702和目的服务器104之间用“#”区分,“”后接负载均衡方式。假设链路为中间服务器106-1——中间服务器106-2——出口服务器702——目的服务器104,元数据格式表示如下:Optionally, when establishing a connection between servers, assemble the client IP and link information into metadata, the metadata starts with "^^^" and ends with "$$$". Use "*" after IP to distinguish, use "+" to connect between intermediate sockets, use "#" to distinguish between egress server 702 and
^^^用户IP*中间服务器106-1监听套接字+中间服务器106-2套接字+出口服务器702套接字#目的服务器104监听套接字负载均衡方式$$$^^^User IP*intermediate server 106-1 listening socket+intermediate server 106-2 socket+exit server 702 socket
例如:For example:
^^^192.168.100.112*192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$^^^192.168.100.112*192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$
可选的,入口服务器102-1将元数据插入到访问请求的TCP header和TCP body之间。例如,元数据为:Optionally, the entry server 102-1 inserts metadata between the TCP header and the TCP body of the access request. For example, the metadata is:
^^^192.168.100.112*192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$^^^192.168.100.112*192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$
则元数据与TCP header和TCP body的关系可如下表2所示:Then the relationship between metadata and TCP header and TCP body can be shown in Table 2 below:
表2Table 2
如果入口服务器102-1的下一跳就是目的服务器104,那么就不需要再封装元数据。If the next hop of the ingress server 102-1 is the
可选的,若中间服务器106-1与中间服务器106-2建立连接成功,则中间服务器106-1从链路信息中删除中间服务器106-1的套接字,并将更新后的链路信息和上述访问请求信息发送给中间服务器106-2。在本实施例中,上述套接字可以包括但不限于:IP地址和端口号或IP地址。Optionally, if the connection between the intermediate server 106-1 and the intermediate server 106-2 is successfully established, the intermediate server 106-1 deletes the socket of the intermediate server 106-1 from the link information, and sends the updated link information and the above access request information are sent to the intermediate server 106-2. In this embodiment, the above socket may include but not limited to: IP address and port number or IP address.
例如,链路为中间服务器106-1——中间服务器106-2——出口服务器702——目的服务器104,传输的元数据格式如下:For example, the link is the intermediate server 106-1—the intermediate server 106-2—the egress server 702—the
^^^192.168.100.112*192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$^^^192.168.100.112*192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$
若中间服务器106-1与中间服务器106-2建立连接成功,则修改元数据信息,去掉自身套接字,然后将元数据+客户端IP转发给后端服务器,中间服务器106-1发送的元数据信息格式如下:If the intermediate server 106-1 establishes a connection with the intermediate server 106-2 successfully, then modify the metadata information, remove its own socket, then forward the metadata + client IP to the backend server, and the metadata sent by the intermediate server 106-1 The format of the data information is as follows:
^^^192.168.100.112*192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$^^^192.168.100.112*192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$
若中间服务器106-2与出口服务器702建立连接成功,则中间服务器106-2发送的元数据信息格式如下:If the connection between the intermediate server 106-2 and the egress server 702 is successfully established, the format of the metadata information sent by the intermediate server 106-2 is as follows:
^^^192.168.100.112*192.168.100.191:65331#192.168.100.194:80cip$$$^^^192.168.100.112*192.168.100.191:65331#192.168.100.194:80cip$$$
直至目的服务器104,链路信息将被删除,保留客户端IP发送到目的服务器104,Until the
格式如下表3:The format is as follows Table 3:
表3table 3
可选的,若中间服务器106-1与中间服务器106-2建立连接失败,则中间服务器106-1从上述链路信息中获取作为中间服务器106-2下一跳的出口服务器702的套接字;中间服务器106-1根据出口服务器702的套接字与出口服务器702建立连接。Optionally, if the intermediate server 106-1 fails to establish a connection with the intermediate server 106-2, the intermediate server 106-1 acquires the socket of the egress server 702 as the next hop of the intermediate server 106-2 from the above link information ; The intermediate server 106-1 establishes a connection with the egress server 702 according to the socket of the egress server 702.
例如,中间服务器106-1通过中间服务器106-3与出口服务器702建立连接(如图8虚线所示)。可选的,若中间服务器106-1与106-3建立连接失败,则中间服务器106-1从上述链路信息中获取作为中间服务器106-3下一跳的出口服务器702的套接字;若中间服务器106-1与出口服务器702建立连接成功,则中间服务器106-1从上述链路信息中删除中间服务器106-1及中间服务器106-3的套接字,并将更新后的链路信息和上述访问请求信息发送给出口服务器702。在本实施例中,上述套接字可以包括但不限于:IP地址和端口号或IP地址。For example, the intermediate server 106-1 establishes a connection with the egress server 702 through the intermediate server 106-3 (as shown by the dotted line in FIG. 8 ). Optionally, if the intermediate server 106-1 fails to establish a connection with 106-3, the intermediate server 106-1 acquires the socket of the egress server 702 as the next hop of the intermediate server 106-3 from the above link information; If the connection between the intermediate server 106-1 and the export server 702 is successfully established, the intermediate server 106-1 deletes the sockets of the intermediate server 106-1 and the intermediate server 106-3 from the above-mentioned link information, and sends the updated link information and the above access request information are sent to the egress server 702. In this embodiment, the above socket may include but not limited to: IP address and port number or IP address.
例如,假设链路为:中间服务器106-1——中间服务器106-3——出口服务器702——目的服务器104,传输的元数据格式如下:For example, assuming that the link is: intermediate server 106-1——intermediate server 106-3—exit server 702——
^^^192.168.100.112*192.168.100.116:65330+192.168.100.190:65333+192.168.100.191:65331#192.168.100.194:80cip$$$^^^192.168.100.112*192.168.100.116:65330+192.168.100.190:65333+192.168.100.191:65331#192.168.100.194:80cip$$$
若中间服务器106-1与中间服务器106-3建立连接失败,则跳过中间服务器106-3的套接字,与下一跳套接字出口服务器702的套接字建立连接,中间服务器106-1将从上述链路信息中删除中间服务器106-1及中间服务器106-3的套接字,并将更新后的链路信息和上述访问请求信息发送给出口服务器702,传输的元数据格式如下:If the intermediate server 106-1 fails to establish a connection with the intermediate server 106-3, then skip the socket of the intermediate server 106-3, and establish a connection with the socket of the next hop socket outlet server 702, and the intermediate server 106- 1. Delete the sockets of the intermediate server 106-1 and the intermediate server 106-3 from the above link information, and send the updated link information and the above access request information to the egress server 702. The format of the transmitted metadata is as follows :
^^^192.168.100.112*192.168.100.191:65331#192.168.100.194:80cip$$$^^^192.168.100.112*192.168.100.191:65331#192.168.100.194:80cip$$$
在出口服务器702接收到更新后的链路信息和上述访问请求信息之后,从上述链路信息中获取作为出口服务器702下一跳的目的服务器104的套接字;出口服务器702根据目的服务器104的套接字与目的服务器104建立连接;若出口服务器702与目的服务器104的连接建立成功,则出口服务器702将访问请求信息发送给目的服务器104。也就是说,出口服务器702不会将用于网络传输的链路信息发送给目的服务器104。After the egress server 702 receives the updated link information and the above-mentioned access request information, it obtains the socket of the
通过上述实施例,用于建立连接的套接字是从动态分配的链路信息中解析得到的,而不需要进行预先配置,从而减少了配置的复杂度,加快了数据的传输速度;进一步,可以将入口服务器的IP带给目的服务器,使得目的服务器可以获取到网民IP。Through the above-mentioned embodiment, the socket used to establish the connection is obtained by parsing the dynamically allocated link information without pre-configuration, thereby reducing the complexity of configuration and speeding up the data transmission speed; further, The IP of the entry server can be brought to the destination server, so that the destination server can obtain the IP of the netizen.
实施例2Example 2
本实施例提供了一种入口服务器,以入口服务器102-1为例,如图9所示,本实施例中的入口服务器102-1包括:This embodiment provides an entry server, taking the entry server 102-1 as an example, as shown in FIG. 9, the entry server 102-1 in this embodiment includes:
1)第一传输单元802:用于接收待传输的访问请求信息,其中,上述访问请求信息用于访问目的服务器上的数据;1) The first transmission unit 802: used to receive the access request information to be transmitted, wherein the above access request information is used to access data on the destination server;
2)获取单元804:用于获取上述入口服务器与上述目的服务器之间的链路信息,其中,链路信息由配置系统根据包括入口服务器和目的服务器在内的网络服务器上报的自身至网络服务器集合中的其他网络服务器的延时信息和丢包率信息计算得到;2) Obtaining unit 804: used to obtain link information between the above-mentioned entry server and the above-mentioned destination server, wherein the link information is reported by the configuration system according to the network server including the entry server and the destination server from itself to the set of network servers Delay information and packet loss rate information of other network servers in the network are calculated;
3)第二传输单元806:用于根据上述链路信息将上述访问请求信息发送给上述目的服务器。3) The second transmission unit 806: configured to send the above access request information to the above destination server according to the above link information.
作为一种可选的方式,以入口服务器102-1为例,当完成上述访问请求后,由入口服务器102-1建立到目的服务器104之间的链路连接也将被拆除。As an optional manner, taking the entry server 102-1 as an example, after the above access request is completed, the link connection established by the entry server 102-1 to the
作为另一种可选的方式,以入口服务器102-1为例,入口服务器102-1在获取入口服务器102-1与目的服务器104之间的链路信息之后,入口服务器102-1会预先建立多个完整链路连接,并放到连接池之中,当访问请求访问时,入口服务器102-1可从连接池中取一个已经建立好的连接,进行数据的传输,这样,可以减少建立连接的时间,起到加速传输的效果;当完成上述访问请求后,由入口服务器102-1建立到目的服务器104之间的链路连接也将被拆除。而连接池中随即会有一个新的连接补充到连接池之中,供后续的访问请求使用。此外,连接都有超时时间,该超时时间由目的服务器104决定,在连接超时时间之内的连接都是可用的,而当连接超时,该连接将被主动从连接池中去除,连接池内始终保证连接是可用的。As another optional way, taking the ingress server 102-1 as an example, after the ingress server 102-1 obtains the link information between the ingress server 102-1 and the
在本发明实施例中,入口服务器102-1通过第一传输单元802接收用于访问目的服务器104上的数据的访问请求信息,并由获取单元804获取由配置系统302动态分配的用于上述入口服务器102-1与上述目的服务器104之间的上述链路信息,然后,由第二传输单元806根据上述链路信息将上述访问请求信息发送给上述目的服务器104。可选的,上述链路信息可以包括但不限于:中间服务器106-1、中间服务器106-2和中间服务器106-2的套接字,这里,套接字包括:IP地址和端口号或IP地址。In this embodiment of the present invention, the entry server 102-1 receives access request information for accessing data on the
通过上述实施例,由配置系统动态分配的链路信息,可以减少配置的复杂度,加快对动态内容的传输速度。Through the above embodiments, the link information dynamically allocated by the configuration system can reduce configuration complexity and speed up the transmission of dynamic content.
作为一种可选方式,仍以入口服务器102-1为例,如图10所示,上述入口服务器102-1还包括:As an optional manner, still taking the entry server 102-1 as an example, as shown in FIG. 10, the above entry server 102-1 also includes:
1)第三传输单元902,用于在接收上述待传输的访问请求信息之前,每隔预定周期或在满足预定的条件下获取上述入口服务器至网络服务器集合中的其他网络服务器的延时信息和丢包率信息,其中,上述网络服务器集合包括上述入口服务器和上述目的服务器;将上述延时信息和上述丢包率信息发送给上述配置系统;1) The third transmission unit 902 is configured to acquire the delay information and Packet loss rate information, wherein the above-mentioned network server set includes the above-mentioned entrance server and the above-mentioned destination server; sending the above-mentioned delay information and the above-mentioned packet loss rate information to the above-mentioned configuration system;
2)第四传输单元904,用于接收上述配置系统返回的上述入口服务器与上述目的服务器之间的上述链路信息,其中,上述链路信息由上述配置系统根据上述延时信息和上述丢包率信息计算得到;2) The fourth transmission unit 904 is configured to receive the above-mentioned link information between the above-mentioned ingress server and the above-mentioned destination server returned by the above-mentioned configuration system, wherein the above-mentioned link information is provided by the above-mentioned configuration system according to the above-mentioned delay information and the above-mentioned packet loss Rate information is calculated;
其中,上述获取单元用于从本地获取上述入口服务器与上述目的服务器之间的上述链路信息。Wherein, the obtaining unit is configured to locally obtain the link information between the entry server and the destination server.
在本发明的实施例中,在接收上述待传输的访问请求信息之前,入口服务器102-1的第三传输单元902每隔预定周期获取或在满足预定的条件下获取上述入口服务器102-1至中间服务器106-1至106-3或目的服务器104的延时信息和丢包率信息;将所获取的上述延时信息和丢包率信息发送给配置系统302,第四传输单元904接收配置系统302根据上述数据计算得出链路信息,并发送给入口服务器102-1。In the embodiment of the present invention, before receiving the above-mentioned access request information to be transmitted, the third transmission unit 902 of the portal server 102-1 obtains the above-mentioned portal server 102-1 to The delay information and packet loss rate information of the intermediate servers 106-1 to 106-3 or the
作为一种可选方式,上述预定的条件包括:上述网络服务器接收到上述配置系统302发送的链路信息获取请求。As an optional manner, the predetermined condition includes: the network server receives the link information acquisition request sent by the configuration system 302 .
在本发明的实施例中,入口服务器102-1也可在接收到配置系统302发送的链路信息请求,响应于该请求,向配置系统302发送上述延时信息和丢包率信息。In the embodiment of the present invention, the ingress server 102-1 may also send the above delay information and packet loss rate information to the configuration system 302 after receiving the link information request sent by the configuration system 302, in response to the request.
通过上述实施例,数据访问过程中,可以预先从全局定期或以预定条件感知整条链路的信息,配合链路探测及链路计算服务器,可以更合理利用链路资源,做到全网的带宽利用最大化,增加链路利用率。Through the above-mentioned embodiments, during the data access process, the information of the entire link can be sensed in advance from the global perspective or with predetermined conditions, and link resources can be used more rationally by cooperating with the link detection and link calculation server, so as to achieve full network Maximize bandwidth utilization and increase link utilization.
作为一种可选方式,如图11所示,上述获取单元804,包括:As an optional manner, as shown in FIG. 11, the acquisition unit 804 includes:
1)第一传输模块1002,用于上述配置系统发送用于获取上述链路信息的第一请求消息;1) The first transmission module 1002, configured for the above-mentioned configuration system to send a first request message for obtaining the above-mentioned link information;
2)第二传输模块1004,用于接收上述配置系统响应于上述第一请求消息发送的用于获取链路信息的第二请求消息;2) A second transmission module 1004, configured to receive a second request message for acquiring link information sent by the configuration system in response to the first request message;
3)第三传输模块1006,用于响应于上述第二请求消息向上述配置系统发送的上述入口服务器至网络服务器集合中的其他网络服务器的延时信息和丢包率信息,其中,上述网络服务器集合包括上述入口服务器和上述目的服务器;3) The third transmission module 1006, configured to send delay information and packet loss rate information from the above-mentioned entrance server to other network servers in the network server set to the above-mentioned configuration system in response to the above-mentioned second request message, wherein the above-mentioned network server The collection includes the above-mentioned entry server and the above-mentioned destination server;
4)第四传输模块1008,用于接收上述配置系统发送的根据上述延时信息和上述丢包率信息计算得到的上述入口服务器与上述目的服务器之间的上述链路信息。4) The fourth transmission module 1008 is configured to receive the above-mentioned link information between the above-mentioned ingress server and the above-mentioned destination server and calculated according to the above-mentioned delay information and the above-mentioned packet loss rate information sent by the above-mentioned configuration system.
作为一种可选的方式,以入口服务器102-1为例,当完成上述访问请求后,由入口服务器102-1建立到目的服务器104之间的链路连接也将被拆除。As an optional manner, taking the entry server 102-1 as an example, after the above access request is completed, the link connection established by the entry server 102-1 to the
作为另一种可选的方式,以入口服务器102-1为例,入口服务器102-1在获取入口服务器102-1与目的服务器104之间的链路信息之后,入口服务器102-1会预先建立多个完整链路连接,并放到连接池之中,当访问请求访问时,入口服务器102-1可从连接池中取一个已经建立好的连接,进行数据的传输,这样,可以减少建立连接的时间,起到加速传输的效果;当完成上述访问请求后,由入口服务器102-1建立到目的服务器104之间的链路连接也将被拆除。而连接池中随即会有一个新的连接补充到连接池之中,供后续的访问请求使用。此外,连接都有超时时间,该超时时间由目的服务器104决定,在连接超时时间之内的连接都是可用的,而当连接超时,该连接将被主动从连接池中去除,连接池内始终保证连接是可用的。As another optional way, taking the ingress server 102-1 as an example, after the ingress server 102-1 obtains the link information between the ingress server 102-1 and the
在本发明实施例中,入口服务器102-1由第一传输模块1002向上述配置系统302发送第一请求消息,用于获取链路信息;上述入口服务器102-1由第二传输模块1004接收上述配置系统302响应于上述第一请求消息发送的用于获取链路信息的第二请求消息,用于获取链路信息;入口服务器102-1第三传输模块1006响应于第二请求消息,向上述配置系统302发送自身至包括第一中间服务器106-1至106-3或目的服务器104的网络服务器集合中的其他网络服务器的延时信息和丢包率信息;上述配置系统302根据上述获取的链路数据计算链路信息,并发送至入口服务器102-1,由第四传输模块1008接收。In this embodiment of the present invention, the entry server 102-1 sends a first request message to the configuration system 302 by the first transmission module 1002 to obtain link information; the entry server 102-1 receives the above-mentioned The second request message sent by the configuration system 302 in response to the above-mentioned first request message for obtaining link information is used to obtain link information; the third transmission module 1006 of the ingress server 102-1 responds to the second request message to the above-mentioned The configuration system 302 sends itself to the delay information and packet loss rate information of other network servers in the network server set including the first intermediate server 106-1 to 106-3 or the
可选的,上述访问请求信息包括TCP头(TCP header)和TCP主体(TCP body),格式如表4所示:Optionally, the above access request information includes a TCP header (TCP header) and a TCP body (TCP body), the format of which is shown in Table 4:
表4Table 4
可选的,假设链路为入口服务器102-1——中间服务器106-1——中间服务器106-2——出口服务器702——目的服务器104,则链路信息包括如下格式:Optionally, assuming that the link is the ingress server 102-1—the intermediate server 106-1—the intermediate server 106-2—the egress server 702—the
^^^入口服务器102-1监听套接字+中间服务器106-1监听套接字+中间服务器106-2套接字+出口服务器702套接字#目的服务器104监听套接字负载均衡方式$$$^^^Ingress server 102-1 listening socket + intermediate server 106-1 listening socket + intermediate server 106-2 socket + export server 702 socket
例如:For example:
^^^192.168.100.166:80+192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$^^^192.168.100.166:80+192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$
可选的,建立服务器之间的连接的同时,将客户端IP和链路信息组装成元数据,该元数据以“^^^”作为开始标记,以“$$$”作为结束标记,用户IP后以“*”区分,中间套接字之间用“+”连接,出口服务器702和目的服务器104之间用“#”区分,“”后接负载均衡方式。假设链路为中间服务器106-1——中间服务器106-2——出口服务器702——目的服务器104,元数据格式表示如下:Optionally, when establishing a connection between servers, assemble the client IP and link information into metadata, the metadata starts with "^^^" and ends with "$$$". Use "*" after IP to distinguish, use "+" to connect between intermediate sockets, use "#" to distinguish between egress server 702 and
^^^用户IP*中间服务器106-1监听套接字+中间服务器106-2套接字+出口服务器702套接字#目的服务器104监听套接字负载均衡方式$$$^^^User IP*intermediate server 106-1 listening socket+intermediate server 106-2 socket+exit server 702 socket
例如:For example:
^^^192.168.100.112*192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$^^^192.168.100.112*192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$
可选的,入口服务器102-1将元数据插入到访问请求的TCP header和TCP body之间。例如,元数据为:Optionally, the entry server 102-1 inserts metadata between the TCP header and the TCP body of the access request. For example, the metadata is:
^^^192.168.100.112*192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$^^^192.168.100.112*192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80cip$$$
则元数据与TCP header和TCP body的关系可如下表5所示:The relationship between metadata and TCP header and TCP body can be shown in Table 5 below:
表5table 5
如果入口服务器102-1的下一跳就是目的服务器104,那么就不需要再封装元数据。If the next hop of the ingress server 102-1 is the
通过上述实施例,从全局感知整条链路的信息,并根据获取到各个网络服务器感知的链路信息计算链路,从而可以更合理利用链路资源,做到全网的带宽利用最大化,增加链路利用率;此外,用于建立连接的套接字是从动态分配的链路信息中解析得到的,而不需要进行预先配置,从而减少了配置的复杂度,加快了数据的传输速度;进一步,可以将入口服务器的IP带给目的服务器,使得目的服务器可以获取到网民IP。Through the above-mentioned embodiment, the information of the entire link is perceived globally, and the link is calculated according to the acquired link information perceived by each network server, so that link resources can be used more reasonably, and the bandwidth utilization of the entire network can be maximized. Increase link utilization; in addition, the socket used to establish a connection is parsed from dynamically allocated link information without pre-configuration, thereby reducing the complexity of configuration and speeding up data transmission ; Further, the IP of the entry server can be brought to the destination server, so that the destination server can obtain the IP of the netizen.
显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned application can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present application is not limited to any specific combination of hardware and software.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310535225.2A CN103560937B (en) | 2013-11-01 | 2013-11-01 | Data access method and portal server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310535225.2A CN103560937B (en) | 2013-11-01 | 2013-11-01 | Data access method and portal server |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103560937A true CN103560937A (en) | 2014-02-05 |
| CN103560937B CN103560937B (en) | 2017-03-15 |
Family
ID=50015091
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310535225.2A Active CN103560937B (en) | 2013-11-01 | 2013-11-01 | Data access method and portal server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103560937B (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105721398A (en) * | 2014-12-04 | 2016-06-29 | 深圳市金蝶中间件有限公司 | Data access method and device |
| CN106716975A (en) * | 2016-12-27 | 2017-05-24 | 深圳前海达闼云端智能科技有限公司 | A transmission link resume method, device and system |
| CN108124504A (en) * | 2017-12-12 | 2018-06-05 | 深圳前海达闼云端智能科技有限公司 | TFO transmission methods, proxy server and system |
| CN108306745A (en) * | 2016-08-25 | 2018-07-20 | 网宿科技股份有限公司 | Server and its data processing method and system of application |
| CN112818336A (en) * | 2020-12-28 | 2021-05-18 | 深圳市金微蓝技术有限公司 | Data access method, data access device and computer readable storage medium |
| CN115967555A (en) * | 2022-12-19 | 2023-04-14 | 南京科讯次元信息科技有限公司 | Cross-network-segment data link establishing and accessing method and system |
| CN116233252A (en) * | 2022-12-26 | 2023-06-06 | 新浪技术(中国)有限公司 | A CDN back-to-source method and device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004040851A1 (en) * | 2002-10-31 | 2004-05-13 | British Telecommunications Public Limited Company | Data accession process |
| CN101242318A (en) * | 2008-03-14 | 2008-08-13 | 华为技术有限公司 | Method and device for acquiring network connection quality of network nodes |
| CN101764839A (en) * | 2009-12-23 | 2010-06-30 | 成都市华为赛门铁克科技有限公司 | Data access method and uniform resource locator (URL) server |
| CN101800758A (en) * | 2009-02-09 | 2010-08-11 | 华为终端有限公司 | Mobile terminal network visiting method, system and gateway |
| CN102594703A (en) * | 2012-03-19 | 2012-07-18 | 广州华多网络科技有限公司 | Relay-node-based Internet communication system and communication path selection method |
-
2013
- 2013-11-01 CN CN201310535225.2A patent/CN103560937B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004040851A1 (en) * | 2002-10-31 | 2004-05-13 | British Telecommunications Public Limited Company | Data accession process |
| CN101242318A (en) * | 2008-03-14 | 2008-08-13 | 华为技术有限公司 | Method and device for acquiring network connection quality of network nodes |
| CN101800758A (en) * | 2009-02-09 | 2010-08-11 | 华为终端有限公司 | Mobile terminal network visiting method, system and gateway |
| CN101764839A (en) * | 2009-12-23 | 2010-06-30 | 成都市华为赛门铁克科技有限公司 | Data access method and uniform resource locator (URL) server |
| CN102594703A (en) * | 2012-03-19 | 2012-07-18 | 广州华多网络科技有限公司 | Relay-node-based Internet communication system and communication path selection method |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105721398A (en) * | 2014-12-04 | 2016-06-29 | 深圳市金蝶中间件有限公司 | Data access method and device |
| CN105721398B (en) * | 2014-12-04 | 2019-07-26 | 深圳市金蝶天燕中间件股份有限公司 | The method and device of data access |
| CN108306745A (en) * | 2016-08-25 | 2018-07-20 | 网宿科技股份有限公司 | Server and its data processing method and system of application |
| CN108306745B (en) * | 2016-08-25 | 2020-01-03 | 网宿科技股份有限公司 | Server and data processing method and system applied by same |
| CN106716975A (en) * | 2016-12-27 | 2017-05-24 | 深圳前海达闼云端智能科技有限公司 | A transmission link resume method, device and system |
| CN106716975B (en) * | 2016-12-27 | 2020-01-24 | 深圳前海达闼云端智能科技有限公司 | Transmission link continuous transmission method, device and system |
| CN108124504A (en) * | 2017-12-12 | 2018-06-05 | 深圳前海达闼云端智能科技有限公司 | TFO transmission methods, proxy server and system |
| CN108124504B (en) * | 2017-12-12 | 2021-05-07 | 达闼机器人有限公司 | TFO transmission method, proxy server and system |
| CN112818336A (en) * | 2020-12-28 | 2021-05-18 | 深圳市金微蓝技术有限公司 | Data access method, data access device and computer readable storage medium |
| CN115967555A (en) * | 2022-12-19 | 2023-04-14 | 南京科讯次元信息科技有限公司 | Cross-network-segment data link establishing and accessing method and system |
| CN116233252A (en) * | 2022-12-26 | 2023-06-06 | 新浪技术(中国)有限公司 | A CDN back-to-source method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103560937B (en) | 2017-03-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103560937B (en) | Data access method and portal server | |
| US9031069B2 (en) | Method, system, and apparatus for extranet networking of multicast virtual private network | |
| WO2017137008A1 (en) | Virtual network apparatus, and related method | |
| CN104579887A (en) | Cloud gateway, cloud gateway creation and configuration system and method | |
| CN104780088A (en) | Service message transmission method and equipment | |
| CN103780467B (en) | communication connection method, communication device and communication system | |
| CN110324159B (en) | Link configuration method, controller and storage medium | |
| WO2014005442A1 (en) | Network service access method and system | |
| CN106656843A (en) | Load sharing method and related device | |
| US12580983B2 (en) | Data transmission method and communication apparatus | |
| CN104486327A (en) | Method and client side of communication between pages and long connection servers | |
| CN107181681A (en) | SDN layer 2 forwarding methods and system | |
| CN106357542A (en) | Method for providing multicast service and software defined network controller | |
| CN101039309B (en) | Link sharing service device and communication method | |
| WO2023273957A1 (en) | Computing power release method and apparatus, and computing power update method and apparatus | |
| EP2892196B1 (en) | Method, network node and system for implementing point-to-multipoint multicast | |
| US8855015B2 (en) | Techniques for generic pruning in a trill network | |
| CN104539586A (en) | Session management method and device | |
| CN109194914B (en) | Method and device for processing equipment information | |
| CN103929365A (en) | A load balancing system and method suitable for UDP services | |
| WO2023005745A1 (en) | Message forwarding method, device and system, and computer-readable storage medium | |
| CN106533984B (en) | A social resource access method and device | |
| EP3503484A1 (en) | Message transmission method, device and network system | |
| CN105681266A (en) | Communication cluster method and device for MMTel (MultiMedia Telephony) | |
| WO2013023465A1 (en) | Interconnection and intercommunication method for identity location separated network and traditional network, ilr and asr |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20190528 Address after: 100034 No. 4, 8th Gate, No. 2 Xilangxia Hutong, Xicheng District, Beijing Patentee after: Wang Song Address before: 100015 Beijing Chaoyang District Jiuxianqiao North Road No. 7 Diaotong Times Square Building No. 3 Area A Patentee before: ChinaCache International Holdings Ltd. |
|
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20190613 Address after: Room 1527, Room 1, Room 1, Room 1, Room 1, Room 1, Room 831-2, Changping Road, Anning North Road, Haidian District, Beijing (Dongsheng District) Patentee after: ChinaCache International Holdings Ltd. Address before: 100034 No. 4, 8th Gate, No. 2 Xilangxia Hutong, Xicheng District, Beijing Patentee before: Wang Song |
|
| TR01 | Transfer of patent right | ||
| PP01 | Preservation of patent right |
Effective date of registration: 20220225 Granted publication date: 20170315 |
|
| PP01 | Preservation of patent right | ||
| PD01 | Discharge of preservation of patent |
Date of cancellation: 20250225 Granted publication date: 20170315 |
|
| PD01 | Discharge of preservation of patent | ||
| PP01 | Preservation of patent right |
Effective date of registration: 20251230 Granted publication date: 20170315 |
|
| PP01 | Preservation of patent right |



