Embodiment
Hereinafter with reference to accompanying drawing, also describe the application in detail in conjunction with the embodiments.It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
As used in this application, term " module ", " assembly " or " unit " can refer to software object or the routine carried out on computers.Although system and method described herein is realized with software, the realization of the combination of hardware or software and hardware also may and be conceived.
Embodiment 1
As shown in Figure 1, at the transmission network shown in the present embodiment, comprise: portal server 102-1 and 102-2, intermediate server 106-1 to 106-3 and destination server 104.Portal server 102-1 and 102-2 can send to corresponding destination server 104 by data access request by one or more in intermediate server 106-1 to 106-3.It should be noted that, transmission network shown in Fig. 1 is only a kind of example, network topology structure between portal server, intermediate server and destination server can also be other connected modes, and the present embodiment does not limit the quantity of intermediate server, as a kind of optional implementation, portal server can also directly be connected with destination server.
Transmission network based on shown in Fig. 1, the present embodiment also provides a kind of optional data access method, below take portal server 102-1 and narrates as example, and as shown in Figure 2, this data access method includes but not limited to following steps:
S202, portal server 102-1 receives accessing request information waiting for transmission, and wherein, above-mentioned accessing request information is for accessing the data on destination server 104;
Optionally, above-mentioned accessing request information can comprise the web page address of inputting in terminal from user, for example, and www.baidu.com.In addition, portal server that can be different for different areal setting, for example, the user when Guangzhou inputs web page address in terminal, and the accessing request information that this can be carried to this web page address is routed on the portal server 102-1 that is arranged on Guangzhou.
S204, portal server 102-1 obtains the link information between portal server 102-1 and destination server 104, what wherein, link information was reported according to the webserver that comprises portal server and destination server by configuration-system self calculates to delayed data and the packet loss information of other webservers in webserver set;
As a kind of optional mode, the link information between portal server 102-1 and destination server 104 comprises optimum link information, and optional, above-mentioned optimum link information can be the minimum link of jumping figure.
As a kind of optional mode, link information obtains the link information that can comprise the steps: to get portal server 102-1, intermediate server 106-1 to 106-3 and destination server 104, and calculates the link information between portal server 102-1 and destination server 104 according to these link informations.Here, the link information of portal server 102-1, intermediate server 106-1 to 106-3 and destination server 104 can include but not limited to: each server is to the delayed data between other webservers and packet loss information.
Optionally, suppose that the link between portal server 102-1 and destination server 104 is: portal server 102-1-intermediate server 106-1-intermediate server 106-2-destination server 104.For above-mentioned link, above-mentioned link information can include but not limited to: the socket of intermediate server 106-1, intermediate server 106-2 and intermediate server 106-2, here, socket comprises: IP address and port numbers or IP address.
S206, portal server 102-1 sends to above-mentioned purpose server 104 according to above-mentioned link information by above-mentioned accessing request information.
Optionally, portal server 102-1 can pass through intermediate server 106-1, intermediate server 106-2 and be transferred to destination server 104, or, through intermediate server 106-1, intermediate server 106-3, be transferred to destination server 104.It should be noted that, above-mentioned transmission path is only a kind of example, and for different network topology structures, portal server 102-1 can exist different transmission paths between destination server 104.
As a kind of optional mode, after completing above-mentioned access request, the link connection being established between destination server 104 by portal server 102-1 also will be removed.
As the optional mode of another kind, portal server 102-1 is after the link information obtaining between portal server 102-1 and destination server 104, portal server 102-1 can set up a plurality of complete link connections in advance, and be put among connection pool, when access request is accessed, portal server 102-1 can get a connection having established from connection pool, carry out the transmission of data, like this, can reduce the time connecting, play the effect of accelerating transmission; After completing above-mentioned access request, the link connection being established between destination server 104 by portal server 102-1 also will be removed.And have immediately a new connection in connection pool, add among connection pool, for follow-up access request.In addition, connecting and have time-out time, this time-out time to be determined by destination server 104, is all available in the connection connecting within time-out time, and overtime when connecting, this connection will initiatively be removed from connection pool, and it is available in connection pool, guaranteeing all the time to connect.
By above-described embodiment, from the information of overall perception whole piece link, and calculate link according to the link information that gets each webserver perception, thereby can more rationally utilize link circuit resource, accomplish that the bandwidth usage of the whole network maximizes, increase link utilization; In addition, for the socket connecting, be to resolve and obtain from the link information of dynamic assignment, and do not need to carry out pre-configured, thereby reduced the complexity of configuration, accelerated the transmission speed of data; Further, can bring destination server by the IP of portal server, make destination server can get netizen IP.
In order to obtain the link information of dynamic assignment, the present embodiment provides following several implementations:
1), as a kind of optional implementation, as shown in Figure 3 and Figure 4, before above-mentioned portal server 102-1 and 102-2 receive accessing request information waiting for transmission, this data access method also comprises:
S402, portal server 102-1 and 102-2 obtain self to delayed data and the packet loss information of other webservers in webserver set every predetermined period, and delayed data and packet loss information are sent to configuration-system 302.Optionally, webserver set can include but not limited to: portal server 102-1 and 102-2, intermediate server 106-1 to 106-3 and destination server 104.
For example, portal server 102-1 obtains following information every predetermined period:
A) portal server 102-1 is to delayed data and the packet loss information of intermediate server 106-1;
B) portal server 102-1 is to delayed data and the packet loss information of intermediate server 106-2;
C) portal server 102-1 is to delayed data and the packet loss information of intermediate server 106-3;
D) portal server 102-1 is to delayed data and the packet loss information of destination server 104.
S404, intermediate server 106-1 to 106-3 and destination server 104 obtain self to delayed data and the packet loss information of other webservers in webserver set every predetermined period, and delayed data and packet loss information are sent to configuration-system 302.
S406, configuration-system 302 calculates portal server 102-1 to the link information between destination server 104 and portal server 102-2 to the link information between destination server 104 according to receiving delayed data and packet loss information;
S408, the portal server 102-1 that portal server 102-1 reception configuration-system 302 returns and the link information between destination server 104, the portal server 102-2 that portal server 102-2 reception configuration-system 302 returns and the link information between destination server 104.
Optionally, above-mentioned S402 and S404 can carry out simultaneously, or, carry out in order.
In the present embodiment, after portal server 102-1 and the link information between the link information between destination server 104 and portal server 102-2 and destination server 104 that above-mentioned portal server 102-1 and 102-2 return at the above-mentioned configuration-system 302 of reception, this link information can be saved in local memory, so that when receiving data access request, from local memory, obtain link information between portal server 102-1 and destination server 104 and the link information between portal server 102-2 and destination server 104.By above-described embodiment, according to the link information of dynamic assignment, can obtain sooner link information, improve access speed, more reasonably utilize link circuit resource.
2), as another kind of optional mode, as shown in Figure 5, portal server 102-1 and 102-2 also can obtain self to delayed data and the packet loss information of other webservers meeting under predetermined condition, comprising:
S502, the link information that portal server 102-1 and 102-2 receive configuration-system 302 transmissions obtains request, for obtaining self to delayed data and the packet loss information of other webservers of webserver set.Optionally, webserver set can include but not limited to: portal server 102-1 and 102-2, intermediate server 106-1 to 106-3 and destination server 104.
Optionally, above-mentioned predetermined condition comprises: the link information that each webserver in webserver set receives above-mentioned configuration-system 302 transmissions obtains request, but the present embodiment is not limited only to this kind of mode, can also comprise other predetermined condition.
For example, portal server 102-1 meets and under predetermined condition, comprises that receiving the link information that above-mentioned configuration-system 302 sends obtains request: obtain following information:
A) portal server 102-1 is to delayed data and the packet loss information of intermediate server 106-1;
B) portal server 102-1 is to delayed data and the packet loss information of intermediate server 106-2;
C) portal server 102-1 is to delayed data and the packet loss information of intermediate server 106-3;
D) portal server 102-1 is to delayed data and the packet loss information of destination server 104.
S504, the link information that intermediate server 106-1 to 106-3 and destination server 104 receive described configuration-system 302 transmissions obtains request, for obtaining self to delayed data and the packet loss information of other webservers of webserver set.
For example, intermediate server 106-1 meets and under predetermined condition, comprises that receiving the link information that above-mentioned configuration-system 302 sends obtains request: obtain following information:
A) intermediate server 106-1 is to delayed data and the packet loss information of portal server 102-1;
B) intermediate server 106-1 is to delayed data and the packet loss information of intermediate server 106-2;
C) intermediate server 106-1 is to delayed data and the packet loss information of intermediate server 106-3;
D) intermediate server 106-1 is to delayed data and the packet loss information of destination server 104.
In the present embodiment, the webserver that comprises portal server 102-1 and 102-2 receives after link that configuration-system 302 sends obtains request, obtains self to delayed data and the packet loss information of other webservers in webserver set.
Pass through above-described embodiment, configuration-system obtains himself to delayed data and the packet loss information of other webservers webserver set from each webserver in time, by above link data, calculate link information at that time, realized from the information of overall perception whole piece link, conveniently realized according to demand real-time data access.
3), as another optional mode, shown in Fig. 6, portal server 102-1 and 102-2 obtain link information between portal server 102-1 and destination server 104 and the link information between portal server 102-2 and destination server 104 comprises:
S602, portal server 102-1 and 102-2 are to configuration-system 302 transmission the first request messages; Optionally, portal server 102-1 and 102-2 real-time Transmission the first request message, above-mentioned the first request message is used for obtaining link information.
S604, configuration-system 302 receives after the first transmission request, in response to the first request, to portal server 102-1 and 102-2, transmits the second request message.Optionally, the second request message is for obtaining portal server 102-1 and 102-2 to delayed data and the packet loss information of other webservers of webserver set.
S606, configuration-system 302 receives after the first transmission request, in response to the first request, to intermediate server 106-1 to 106-3 and destination server 104, transmits the second request messages.Optionally, the second request message is for obtaining intermediate server 106-1 to 106-3 and destination server 104 to delayed data and the packet loss information of other webservers of webserver set.
As a kind of optional mode, after completing above-mentioned access request, the link connection being established between destination server 104 by portal server 102-1 and 102-2 also will be removed.
As the optional mode of another kind, portal server 102-1 is obtaining after link information between portal server 102-1 and destination server 104 and portal server 102-2 obtaining the link information between portal server 102-2 and destination server 104, portal server 102-1 and 102-2 can set up a plurality of complete link connections in advance, and be put into separately among corresponding connection pool, when access request is accessed, portal server 102-1 and 102-2 can get a connection having established from connection pool, carry out the transmission of data, like this, can reduce the time connecting, play the effect of accelerating transmission, after completing above-mentioned access request, the link connection being established between destination server 104 by portal server 102-1 and 102-2 also will be removed.And have immediately a new connection in connection pool, add among connection pool, for follow-up access request.In addition, connecting and have time-out time, this time-out time to be determined by destination server 104, is all available in the connection connecting within time-out time, and overtime when connecting, this connection will initiatively be removed from connection pool, and it is available in connection pool, guaranteeing all the time to connect.Pass through above-described embodiment, portal server can be when receiving the data access request of self terminal acquisition request link information in real time, make the link information of gained can real-time update, thereby can more rationally utilize link circuit resource, the bandwidth usage of accomplishing the whole network maximizes, and increases link utilization.
Below in conjunction with Fig. 7-Fig. 8, take portal server 102-1 as example, describe portal server 102-1 and according to above-mentioned link information, above-mentioned accessing request information is sent to the scheme of described destination server 104.
Suppose that link information indication portal server 102-1 to the link of destination server 104 is: portal server 102-1, intermediate server 106-1, intermediate server 106-2, output port server 702, destination server 104.Transmission network based on shown in Fig. 7 is known, and portal server 102-1 sends to described destination server 104 to comprise the steps: above-mentioned accessing request information according to above-mentioned link information
S1: the intermediate server 106-1 that portal server 102-1 indicates by link information sends to above-mentioned accessing request information with 106-2 the output port server 702 being connected with destination server 104; In the present embodiment, can be considered as be an intermediate server to output port server 702.
S2: output port server 702 sends to destination server 104 by above-mentioned accessing request information.
As a kind of optional implementation of step S1, portal server 102-1 obtains the socket of intermediate server 106-1 from link information, and connects according to the socket of intermediate server 106-1 and intermediate server 106-1.After connection is successfully established, portal server 102-1 sends to intermediate server 106-1 by link information and accessing request information.Then, intermediate server 106-1 obtains the socket as the intermediate server 106-2 of intermediate server 106-1 down hop from above-mentioned link information; Intermediate server 106-1 connects according to the socket of intermediate server 106-2 and intermediate server 106-2.
Optionally, above-mentioned accessing request information comprises TCP head (TCP header) and TCP main body (TCP body), and form is as shown in table 1:
Table 1
Optionally, suppose that link is portal server 102-1---intermediate server 106-1---intermediate server 106-2---output port server 702---destination server 104, link information comprises following form:
^^^ portal server 102-1 monitors socket+intermediate server 106-1 and monitors socket+intermediate server 106-2 socket+output port server 702 socket # destination servers 104 monitoring socket@load balancing mode $ $ $
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:80@cip$$$
Optionally, when setting up the connection between server, client ip and link information are assembled into metadata, this metadata is usingd " ^^^ " as beginning label, using " " as end mark, after User IP, with " * ", distinguish, between middle socket, with "+", connect, between output port server 702 and destination server 104, by " # ", distinguish, after "@", connect load balancing mode.Suppose that link is intermediate server 106-1---intermediate server 106-2---output port server 702---destination server 104, metadata format is expressed as follows:
^^^ User IP * intermediate server 106-1 monitors socket+intermediate server 106-2 socket+output port server 702 socket # destination servers 104 and monitors socket@load balancing mode $ $ $
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:80@cip$$$
Optionally, portal server 102-1 is inserted into metadata between the TCP header and TCP body of access request.For example, 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:80@cip$$$
The relation of metadata and TCP header and TCP body can be as shown in table 2 below:
Table 2
If the down hop of portal server 102-1 is exactly destination server 104, so just do not need package metadata again.
Optionally, if intermediate server 106-1 and intermediate server 106-2 connect successfully, intermediate server 106-1 deletes the socket of intermediate server 106-1 from link information, and link information and above-mentioned accessing request information after upgrading are sent to intermediate server 106-2.In the present embodiment, above-mentioned socket can include but not limited to: IP address and port numbers or IP address.
For example, link is intermediate server 106-1---intermediate server 106-2---output port server 702---destination server 104, and the metadata format of transmission is as follows:
^^^192.168.100.112*192.168.100.116:65330+192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80@cip$$$
If intermediate server 106-1 and intermediate server 106-2 connect successfully, revise metadata information, remove self socket, then metadata+client ip is transmitted to back-end server, the metadata information form that intermediate server 106-1 sends is as follows:
^^^192.168.100.112*192.168.100.180:65332+192.168.100.191:65331#192.168.100.194:80@cip$$$
If intermediate server 106-2 and output port server 702 connect successfully, the metadata information form that intermediate server 106-2 sends is as follows:
^^^192.168.100.112*192.168.100.191:65331#192.168.100.194:80@cip$$$
Until destination server 104, link information, by deleted, retain client ip and sends to destination server 104,
Form is as following table 3:
Table 3
Optionally, if intermediate server 106-1 and intermediate server 106-2 connect unsuccessfully, intermediate server 106-1 obtains the socket as the output port server 702 of intermediate server 106-2 down hop from above-mentioned link information; Intermediate server 106-1 connects according to the socket of output port server 702 and output port server 702.
For example, intermediate server 106-1 is by intermediate server 106-3 and output port server 702 connect (as shown in Fig. 8 dotted line).Optionally, if intermediate server 106-1 and 106-3 connect unsuccessfully, intermediate server 106-1 obtains the socket as the output port server 702 of intermediate server 106-3 down hop from above-mentioned link information; If intermediate server 106-1 and output port server 702 connect successfully, intermediate server 106-1 deletes the socket of intermediate server 106-1 and intermediate server 106-3 from above-mentioned link information, and link information and above-mentioned accessing request information after upgrading are sent to output port server 702.In the present embodiment, above-mentioned socket can include but not limited to: IP address and port numbers or IP address.
For example, suppose that link is: intermediate server 106-1---intermediate server 106-3---output port server 702---destination server 104, the metadata format of transmission is as follows:
^^^192.168.100.112*192.168.100.116:65330+192.168.100.190:65333+192.168.100.191:65331#192.168.100.194:80@cip$$$
If intermediate server 106-1 and intermediate server 106-3 connect unsuccessfully, skip the socket of intermediate server 106-3, connect with the socket of down hop socket output port server 702, intermediate server 106-1 will delete the socket of intermediate server 106-1 and intermediate server 106-3 from above-mentioned link information, and link information and above-mentioned accessing request information after upgrading are sent to output port server 702, the metadata format of transmission is as follows:
^^^192.168.100.112*192.168.100.191:65331#192.168.100.194:80@cip$$$
After output port server 702 receives the link information and above-mentioned accessing request information after renewal, from above-mentioned link information, obtain the socket as the destination server 104 of output port server 702 down hops; Output port server 702 connects according to the socket of destination server 104 and destination server 104; If output port server 702 was successfully established with being connected of destination server 104, output port server 702 sends to destination server 104 by accessing request information.That is to say, output port server 702 can not send to destination server 104 by the link information for Internet Transmission.
By above-described embodiment, for the socket connecting, be to resolve and obtain from the link information of dynamic assignment, and do not need to carry out pre-configured, thereby reduced the complexity of configuration, accelerated the transmission speed of data; Further, can bring destination server by the IP of portal server, make destination server can get netizen IP.
Embodiment 2
The present embodiment provides a kind of portal server, take portal server 102-1 as example, and as shown in Figure 9, the portal server 102-1 in the present embodiment comprises:
1) the first transmission unit 802: for receiving accessing request information waiting for transmission, wherein, above-mentioned accessing request information is for accessing the data on destination server;
2) acquiring unit 804: for obtaining the link information between above-mentioned portal server and above-mentioned purpose server, what wherein, link information was reported according to the webserver that comprises portal server and destination server by configuration-system self calculates to delayed data and the packet loss information of other webservers in webserver set;
3) the second transmission unit 806: for above-mentioned accessing request information being sent to above-mentioned purpose server according to above-mentioned link information.
As a kind of optional mode, take portal server 102-1 as example, after completing above-mentioned access request, the link connection being established between destination server 104 by portal server 102-1 also will be removed.
As the optional mode of another kind, take portal server 102-1 as example, portal server 102-1 is after the link information obtaining between portal server 102-1 and destination server 104, portal server 102-1 can set up a plurality of complete link connections in advance, and be put among connection pool, when access request is accessed, portal server 102-1 can get a connection having established from connection pool, carry out the transmission of data, like this, can reduce the time connecting, play the effect of accelerating transmission; After completing above-mentioned access request, the link connection being established between destination server 104 by portal server 102-1 also will be removed.And have immediately a new connection in connection pool, add among connection pool, for follow-up access request.In addition, connecting and have time-out time, this time-out time to be determined by destination server 104, is all available in the connection connecting within time-out time, and overtime when connecting, this connection will initiatively be removed from connection pool, and it is available in connection pool, guaranteeing all the time to connect.
In embodiments of the present invention, portal server 102-1 receives for accessing the accessing request information of the data on destination server 104 by the first transmission unit 802, and by acquiring unit 804 obtain by configuration-system 302 dynamic assignment for the above-mentioned link information between above-mentioned portal server 102-1 and above-mentioned purpose server 104, then, by the second transmission unit 806, according to above-mentioned link information, above-mentioned accessing request information is sent to above-mentioned purpose server 104.Optionally, above-mentioned link information can include but not limited to: the socket of intermediate server 106-1, intermediate server 106-2 and intermediate server 106-2, here, socket comprises: IP address and port numbers or IP address.
By above-described embodiment, by the link information of configuration-system dynamic assignment, can reduce the complexity of configuration, accelerate the transmission speed to dynamic content.
As a kind of optional mode, still take portal server 102-1 as example, as shown in figure 10, above-mentioned portal server 102-1 also comprises:
1) the 3rd transmission unit 902, for before receiving above-mentioned accessing request information waiting for transmission, every predetermined period or meeting and obtain above-mentioned portal server under predetermined condition to delayed data and the packet loss information of other webservers in webserver set, wherein, above-mentioned webserver set comprises above-mentioned portal server and above-mentioned purpose server; Above-mentioned delayed data and above-mentioned packet loss information are sent to above-mentioned configuration-system;
2) the 4th transmission unit 904, for receiving above-mentioned portal server that above-mentioned configuration-system returns and the above-mentioned link information between above-mentioned purpose server, wherein, above-mentioned link information is calculated according to above-mentioned delayed data and above-mentioned packet loss information by above-mentioned configuration-system;
Wherein, above-mentioned acquiring unit is for obtaining the above-mentioned link information between above-mentioned portal server and above-mentioned purpose server from this locality.
In an embodiment of the present invention, before receiving above-mentioned accessing request information waiting for transmission, the 3rd transmission unit 902 of portal server 102-1 obtains or is meeting under predetermined condition every predetermined period and obtains above-mentioned portal server 102-1 to delayed data and the packet loss information of intermediate server 106-1 to 106-3 or destination server 104; Send to configuration-system 302, the four transmission units 904 reception configuration-systems 302 to calculate link information according to above-mentioned data obtained above-mentioned delayed data and packet loss information, and send to portal server 102-1.
As a kind of optional mode, above-mentioned predetermined condition comprises: the link information that the above-mentioned webserver receives above-mentioned configuration-system 302 transmissions obtains request.
In an embodiment of the present invention, portal server 102-1 also can, in the link information request that receives configuration-system 302 transmissions, in response to this request, send above-mentioned delayed data and packet loss information to configuration-system 302.
By above-described embodiment, in data access process, can be in advance from the overall situation regularly or with the information of predetermined condition perception whole piece link, coordinate link detection and link calculation server, can more rationally utilize link circuit resource, accomplish that the bandwidth usage of the whole network maximizes, increase link utilization.
As a kind of optional mode, as shown in figure 11, above-mentioned acquiring unit 804, comprising:
1) the first transport module 1002, sends for obtaining the first request message of above-mentioned link information for above-mentioned configuration-system;
2) the second transport module 1004, for receive that above-mentioned configuration-system sends in response to above-mentioned the first request message for obtaining the second request message of link information;
3) the 3rd transport module 1006, delayed data and packet loss information for the above-mentioned portal server that sends to above-mentioned configuration-system in response to above-mentioned the second request message to other webservers of webserver set, wherein, above-mentioned webserver set comprises above-mentioned portal server and above-mentioned purpose server;
4) the 4th transport module 1008, for the above-mentioned portal server calculating according to above-mentioned delayed data and above-mentioned packet loss information that receives that above-mentioned configuration-system sends and the above-mentioned link information between above-mentioned purpose server.
As a kind of optional mode, take portal server 102-1 as example, after completing above-mentioned access request, the link connection being established between destination server 104 by portal server 102-1 also will be removed.
As the optional mode of another kind, take portal server 102-1 as example, portal server 102-1 is after the link information obtaining between portal server 102-1 and destination server 104, portal server 102-1 can set up a plurality of complete link connections in advance, and be put among connection pool, when access request is accessed, portal server 102-1 can get a connection having established from connection pool, carry out the transmission of data, like this, can reduce the time connecting, play the effect of accelerating transmission; After completing above-mentioned access request, the link connection being established between destination server 104 by portal server 102-1 also will be removed.And have immediately a new connection in connection pool, add among connection pool, for follow-up access request.In addition, connecting and have time-out time, this time-out time to be determined by destination server 104, is all available in the connection connecting within time-out time, and overtime when connecting, this connection will initiatively be removed from connection pool, and it is available in connection pool, guaranteeing all the time to connect.
In embodiments of the present invention, portal server 102-1 sends the first request message by the first transport module 1002 to above-mentioned configuration-system 302, for obtaining link information; Above-mentioned portal server 102-1 by the second transport module 1004, receive that above-mentioned configuration-system 302 sends in response to above-mentioned the first request message for obtaining the second request message of link information, for obtaining link information; Portal server 102-1 the 3rd transport module 1006 is in response to the second request message, to above-mentioned configuration-system 302, sends self to the delayed data and the packet loss information that comprise other webservers in the webserver set of the first intermediate server 106-1 to 106-3 or destination server 104; Above-mentioned configuration-system 302 calculates link information according to the above-mentioned link data obtaining, and is sent to portal server 102-1, by the 4th transport module 1008, is received.
Optionally, above-mentioned accessing request information comprises TCP head (TCP header) and TCP main body (TCP body), and form is as shown in table 4:
Table 4
Optionally, suppose that link is portal server 102-1---intermediate server 106-1---intermediate server 106-2---output port server 702---destination server 104, link information comprises following form:
^^^ portal server 102-1 monitors socket+intermediate server 106-1 and monitors socket+intermediate server 106-2 socket+output port server 702 socket # destination servers 104 monitoring socket@load balancing mode $ $ $
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:80@cip$$$
Optionally, when setting up the connection between server, client ip and link information are assembled into metadata, this metadata is usingd " ^^^ " as beginning label, using " " as end mark, after User IP, with " * ", distinguish, between middle socket, with "+", connect, between output port server 702 and destination server 104, by " # ", distinguish, after "@", connect load balancing mode.Suppose that link is intermediate server 106-1---intermediate server 106-2---output port server 702---destination server 104, metadata format is expressed as follows:
^^^ User IP * intermediate server 106-1 monitors socket+intermediate server 106-2 socket+output port server 702 socket # destination servers 104 and monitors socket@load balancing mode $ $ $
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:80@cip$$$
Optionally, portal server 102-1 is inserted into metadata between the TCP header and TCP body of access request.For example, 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:80@cip$$$
The relation of metadata and TCP header and TCP body can be as shown in table 5 below:
Table 5
If the down hop of portal server 102-1 is exactly destination server 104, so just do not need package metadata again.
By above-described embodiment, from the information of overall perception whole piece link, and calculate link according to the link information that gets each webserver perception, thereby can more rationally utilize link circuit resource, accomplish that the bandwidth usage of the whole network maximizes, increase link utilization; In addition, for the socket connecting, be to resolve and obtain from the link information of dynamic assignment, and do not need to carry out pre-configured, thereby reduced the complexity of configuration, accelerated the transmission speed of data; Further, can bring destination server by the IP of portal server, make destination server can get netizen IP.
Obviously, those skilled in the art should be understood that, each module of above-mentioned the application or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the application is not restricted to any specific hardware and software combination.
The preferred embodiment that the foregoing is only the application, is not limited to the application, and for a person skilled in the art, the application can have various modifications and variations.All within the application's spirit and principle, any modification of doing, be equal to replacement, improvement etc., within all should being included in the application's protection range.