[go: up one dir, main page]

CN103188163A - Load balancing method and device - Google Patents

Load balancing method and device Download PDF

Info

Publication number
CN103188163A
CN103188163A CN2011104602567A CN201110460256A CN103188163A CN 103188163 A CN103188163 A CN 103188163A CN 2011104602567 A CN2011104602567 A CN 2011104602567A CN 201110460256 A CN201110460256 A CN 201110460256A CN 103188163 A CN103188163 A CN 103188163A
Authority
CN
China
Prior art keywords
load balancing
network
access request
server access
server
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.)
Pending
Application number
CN2011104602567A
Other languages
Chinese (zh)
Inventor
赵炜
袁明亮
刘快
于杭
胡轶
程路
王易风
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Group Zhejiang Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Group Zhejiang Co Ltd
Priority to CN2011104602567A priority Critical patent/CN103188163A/en
Publication of CN103188163A publication Critical patent/CN103188163A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a load balancing method and device in order to solve the problem that in the prior art, client side applications can not be well guaranteed in a load balancing process. The method includes that the load balancing device receives a server access request sent by a client side, chooses from a plurality of network exits according to a preset load balancing algorithm, and transmits the server access request according to the chosen exit, wherein the plurality of network exits are respectively connected with a plurality of networks through a plurality of physical links, home networks of a server are included in the plurality of networks, other non-home networks and the home networks are linked in a communication mode, and due to the fact that the load balancing device chooses from the plurality of network exits according to the load balancing algorithm and transmits the server access request sent by the client side, the client side applications are well guaranteed in the load balancing process.

Description

一种负载均衡方法及装置A load balancing method and device

技术领域 technical field

本发明涉及数据业务领域,特别涉及一种负载均衡方法及装置。The invention relates to the field of data services, in particular to a load balancing method and device.

背景技术 Background technique

由于目前现有网络的各个核心部分随着业务量的提高,访问量和数据流量的快速增长,其处理能力和计算强度也相应地增大,使得单一的服务器设备根本无法承担。在此情况下,如果扔掉现有设备去做大量的硬件升级,这样将造成现有资源的浪费,而且如果再面临下一次业务量的提升时,这又将导致再一次硬件升级的高额成本投入,甚至性能再卓越的设备也不能满足当前业务量增长的需求。Due to the rapid growth of business volume, access volume and data flow of each core part of the existing network, its processing capacity and calculation intensity also increase correspondingly, making it impossible for a single server device to bear it. In this case, if you throw away the existing equipment and do a lot of hardware upgrades, it will cause a waste of existing resources, and if you face the next increase in business volume, this will lead to another high cost of hardware upgrades. Cost input, even the equipment with excellent performance cannot meet the needs of the current business growth.

为此,一种新的技术-负载均衡(又称为负载分担,英文名称为LoadBalance)出现了,其意思就是将负载(工作任务)进行平衡、分摊到多个操作单元上进行执行,例如Web服务器、FTP服务器、企业关键应用服务器和其它关键任务服务器等,从而共同完成工作任务。现有的负载均衡技术应用都属于正向应用,如根据请求内容和负荷情况实现服务器的负载均衡,或者根据网络情况实现服务器侧的自动选路,其核心是保障服务器的业务正常,而没有保障客户端应用的方案。To this end, a new technology-load balancing (also known as load balancing, the English name is LoadBalance) has emerged, which means to balance and distribute the load (work tasks) to multiple operating units for execution, such as Web Servers, FTP servers, enterprise key application servers and other mission-critical servers, etc., so as to complete work tasks together. The existing load balancing technology applications are all forward applications, such as realizing server load balancing according to request content and load conditions, or realizing automatic route selection on the server side according to network conditions. The core is to ensure the normal business of the server, but there is no guarantee The scheme applied by the client.

由此可见现有技术中存在如下的问题:在负载均衡过程中不能很好的保障客户端应用。It can be seen that the following problems exist in the prior art: the client application cannot be well guaranteed during the load balancing process.

发明内容 Contents of the invention

本发明的目的是针对现有技术中存在的,在负载均衡过程中不能很好的保障客户端应用的问题,提供一种负载均衡方法及装置,该方法包括:The purpose of the present invention is to provide a load balancing method and device for the problem existing in the prior art that the client application cannot be well guaranteed during the load balancing process, the method comprising:

负载均衡装置接收客户端发送的服务器访问请求;The load balancing device receives the server access request sent by the client;

负载均衡装置根据预设的负载均衡算法,从其多个网络出口中进行选择,并通过选择的出口转发服务器访问请求,其中多个网络出口分别经多条物理链路连接多个网络,多个网络中包括服务器的归属网络,其它的非归属网络和归属网络之间具有通信连接。The load balancing device selects from its multiple network outlets according to the preset load balancing algorithm, and forwards server access requests through the selected outlets. The multiple network outlets are respectively connected to multiple networks through multiple physical links, and multiple The network includes the home network of the server, and other non-home networks have communication connections with the home network.

进一步,负载均衡装置根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求具体为:Further, the load balancing device selects from multiple network outlets according to the preset load balancing algorithm, and forwards the server access request through the selected outlet, specifically:

负载均衡装置判断客户端属于指定客户端集合时,根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求。When the load balancing device judges that the client belongs to the specified client set, it selects from multiple network outlets according to the preset load balancing algorithm, and forwards the server access request through the selected outlet.

进一步,还包括:负载均衡装置判断客户端不属于指定客户端集合时,直接通过预设定的网络出口转发服务器访问请求。Further, it also includes: when the load balancing device judges that the client does not belong to the specified client set, directly forwarding the server access request through the preset network egress.

进一步,负载均衡装置根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求具体为:Further, the load balancing device selects from multiple network outlets according to the preset load balancing algorithm, and forwards the server access request through the selected outlet, specifically:

本次服务器访问请求中的访问地址为首次访问,负载均衡装置根据各网络出口对应的路由时延和跳数,以及预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求。The access address in this server access request is the first access, and the load balancing device selects from multiple network outlets according to the routing delay and hop count corresponding to each network outlet, as well as the preset load balancing algorithm, and passes the selected The egress forwards server access requests.

进一步,负载均衡装置从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求具体为:Further, the load balancing device selects from multiple network outlets, and forwards the server access request through the selected outlet, specifically:

本次服务器访问请求中的访问地址为非首次访问,负载均衡装置按之前选择的网络出口转发服务器访问请求。The access address in this server access request is not the first access, and the load balancing device forwards the server access request according to the previously selected network exit.

本发明实施例还提供一种负载均衡装置,包括:The embodiment of the present invention also provides a load balancing device, including:

接收模块,用于接收客户端发送的服务器访问请求;The receiving module is used to receive the server access request sent by the client;

转发模块,用于根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求,其中多个网络出口分别经多条物理链路连接多个网络,多个网络中包括服务器的归属网络,其它的非归属网络和归属网络之间具有通信连接。The forwarding module is used to select from multiple network outlets according to the preset load balancing algorithm, and forward the server access request through the selected outlet, wherein the multiple network outlets are respectively connected to multiple networks through multiple physical links, and multiple One network includes the home network of the server, and other non-home networks have communication connections with the home network.

进一步,转发模块,还用于判断客户端属于指定客户端集合时,根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求。Further, the forwarding module is also used to select from multiple network exits according to a preset load balancing algorithm when judging that the client belongs to the specified client set, and forward the server access request through the selected exit.

进一步,转发模块,还用于判断客户端不属于指定客户端集合时,直接通过预设定的网络出口转发服务器访问请求。Further, the forwarding module is also used to directly forward the server access request through the preset network exit when judging that the client does not belong to the specified client set.

进一步,转发模块,还用于本次服务器访问请求中的访问地址为首次访问,根据各网络出口对应的路由时延和跳数,以及预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求。Further, the forwarding module is also used to select the access address in the server access request as the first access, according to the routing delay and hop count corresponding to each network exit, and the preset load balancing algorithm, from multiple network exits , and forward the server access request through the selected exit.

进一步,转发模块,还用于本次服务器访问请求中的访问地址为非首次访问,按之前选择的网络出口转发服务器访问请求。Further, the forwarding module is also used to forward the server access request according to the previously selected network exit when the access address in the server access request is not the first access.

由于负载均衡装置根据负载均衡算法从多个网络出口中进行选择,转发客户端发送的服务器访问请求,因此在负载均衡过程中很好的保障了客户端应用。Since the load balancing device selects from multiple network outlets according to the load balancing algorithm, and forwards the server access request sent by the client, the client application is well guaranteed during the load balancing process.

附图说明 Description of drawings

图1表示本发明提供的负载均衡系统网络拓扑图;Fig. 1 represents the network topology diagram of the load balancing system provided by the present invention;

图2表示本发明提供的方法流程图;Fig. 2 represents the method flowchart provided by the present invention;

图3表示本发明提供的装置结构图。Fig. 3 shows the structure diagram of the device provided by the present invention.

具体实施方式 Detailed ways

下面结合说明书附图对本发明优选实施例进行说明,本发明实施例提供一种负载均衡的方法及装置,以解决现有技术中存在的现有技术中存在的,在负载均衡过程中不能很好的保障客户端应用的问题。The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. The embodiments of the present invention provide a method and device for load balancing to solve the existing problems in the prior art that cannot be performed well during the load balancing process. The problem of safeguarding client applications.

本实施例的负载均衡系统,如图1所示包括,客户端11、负载均衡装置12、服务器3,客户端11和负载均衡装置12之间具有通信链路,负载均衡装置12具有多个网络出口,并通过多个网络出口分别经多条物理链路13连接多个网络14,多个网络中包括服务器的归属网络,其它的非归属网络和归属网络之间具有通信连接。该方法包括,负载均衡装置接收客户端发送的服务器访问请求,负载均衡装置根据预设的负载均衡算法,从其多个网络出口中进行选择,并通过选择的出口转发服务器访问请求,其中多个网络出口分别经多条物理链路连接多个网络,多个网络中包括服务器的归属网络,其它的非归属网络和归属网络之间具有通信连接。The load balancing system of the present embodiment comprises, as shown in Figure 1, the client 11, the load balancing device 12, the server 3, there is a communication link between the client 11 and the load balancing device 12, and the load balancing device 12 has a plurality of networks and connect multiple networks 14 via multiple physical links 13 through multiple network outlets. The multiple networks include the home network of the server, and there are communication connections between other non-home networks and the home network. The method includes that the load balancing device receives the server access request sent by the client, and the load balancing device selects from a plurality of network outlets according to a preset load balancing algorithm, and forwards the server access request through the selected outlet, wherein the plurality of The network egresses are respectively connected to multiple networks via multiple physical links, and the multiple networks include the home network of the server, and communication connections between other non-home networks and the home network.

本发明实施例提供的方法流程图如下图2所示,包括如下步骤:The flow chart of the method provided by the embodiment of the present invention is shown in Figure 2 below, including the following steps:

步骤101,客户端向负载均衡装置发送服务器访问请求。Step 101, the client sends a server access request to the load balancing device.

步骤102,负载均衡装置根据服务器访问请求,检查源地址判断是否为VIP客户,若是执行步骤106,否则执行步骤103。Step 102, the load balancing device checks the source address to determine whether it is a VIP client according to the server access request, if so, execute step 106, otherwise execute step 103.

本步骤中,从服务器访问请求中提取客户端的源IP地址,若该源IP地址在指定的VIP客户专属IP地址段中,则可以认为该客户端为VIP客户,即负载均衡装置就可以判断客户端属于指定客户端集合,这样后续步骤中可以根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求。例如负载均衡装置有3个网络出口分别是网络出口A、网络出口B、网络出口C,该客户端为VIP客户,则后续步骤中可以根据预设的负载均衡算法,选择网络出口B(当然也可能是网络出口A或网络出口C),并通过网络出口B转发服务器访问请求。具体的实现在后续步骤中详述。In this step, the source IP address of the client is extracted from the server access request. If the source IP address is in the specified IP address range for VIP customers, the client can be considered as a VIP customer, that is, the load balancing device can judge the client The end belongs to the specified client set, so that in the subsequent steps, according to the preset load balancing algorithm, it can select from multiple network exits, and forward the server access request through the selected exit. For example, the load balancing device has 3 network exits, which are network exit A, network exit B, and network exit C, and the client is a VIP customer, then in the subsequent steps, network exit B can be selected according to the preset load balancing algorithm (of course, It may be network exit A or network exit C), and forward the server access request through network exit B. The specific implementation will be described in detail in the subsequent steps.

步骤103,负载均衡装置转发服务器访问请求到一般出口。Step 103, the load balancing device forwards the server access request to the general egress.

本步骤中,若该源IP地址不在指定的VIP客户专属IP地址段中,则可以认为该客户端并非VIP客户,即负载均衡装置判断客户端不属于指定客户端集合时,直接通过预设定的网络出口转发服务器访问请求。例如当客户端为非VIP客户时,负载均衡装置不再进行均衡处理,而是直接将服务器访问请求转发到网络出口A。网络出口A预先的设置非VIP客户端的网络出口。In this step, if the source IP address is not in the specified IP address segment for VIP customers, it can be considered that the client is not a VIP customer, that is, when the load balancing device judges that the client does not belong to the specified The network egress forwards server access requests. For example, when the client is a non-VIP client, the load balancing device does not perform balancing processing, but directly forwards the server access request to the network egress A. Network egress A is pre-configured as the network egress of non-VIP clients.

步骤104,负载均衡装置判断是否能正常访问服务器,若是则执行步骤110,否则执行步骤105。Step 104 , the load balancing device judges whether the server can be accessed normally, and if so, executes step 110 , otherwise executes step 105 .

步骤105,负载均衡装置返回错误信息给客户端,流程结束。Step 105, the load balancing device returns an error message to the client, and the process ends.

步骤106,负载均衡装置调用有多条出口的负载均衡组,并检查目标服务器的IP地址。Step 106, the load balancing device invokes the load balancing group with multiple egresses, and checks the IP address of the target server.

负载均衡装置判断客户端属于指定客户端集合时,调用有多条出口的负载均衡组准备进行均衡处理,负载均衡组中预设有负载均衡算法,通过该预设的负载均衡算法,后续步骤中,根据预设的负载均衡算法,从多个网络出口中进行选择,选择最优的路径,并通过选择出的最优路径对应的网络出口转发服务器访问请求。本步骤中还要从服务器访问请求中提取目标服务器的IP地址。When the load balancing device judges that the client belongs to the specified client set, it calls the load balancing group with multiple egresses to prepare for balancing processing. The load balancing group is preset with a load balancing algorithm. Through the preset load balancing algorithm, the following steps , according to the preset load balancing algorithm, select from multiple network exits, select the optimal path, and forward the server access request through the network exit corresponding to the selected optimal path. In this step, the IP address of the target server is also extracted from the server access request.

步骤107,负载均衡装置判断目标服务器的地址是否有访问记录,若是,则执行步骤109,否则执行步骤108。Step 107, the load balancing device judges whether the address of the target server has an access record, if yes, execute step 109, otherwise execute step 108.

负载均衡装置会记录已经访问过的目标服务器的地址,并将本次的目标服务器的IP地址和记录进行比较,察看本次目标服务器的地址是否被访问过。若访问过,则表明本次服务器访问请求中的访问地址为非首次访问,The load balancing device will record the address of the target server that has been visited, and compare the IP address of the target server with the record to check whether the address of the target server has been visited this time. If it has been accessed, it indicates that the access address in this server access request is not the first access,

步骤108,负载均衡装置根据各网络出口对应的路由时延和跳数,以及预设的负载均衡算法选择最优路径,执行步骤110。Step 108, the load balancing device selects the optimal path according to the routing delay and hop count corresponding to each network egress, and the preset load balancing algorithm, and then executes step 110.

本步骤表明,本次服务器访问请求中的访问地址为首次访问,负载均衡组会以网络出口对应的路由时延和跳数为参数,根据负载均衡算法从多个网络出口中进行选择,选择最优路径,例如,网络出口A对应的路由时延为50ms、跳数5,网络出口B对应的路由时延为30ms、跳数3,网络出口C对应的路由时延为60ms、跳数6,通过负载均衡算法选择的最优路径为网络出口B对应的路径,则负载均衡装置通过网络出口B转发服务器访问请求。This step shows that the access address in this server access request is the first access, and the load balancing group will use the routing delay and hop count corresponding to the network egress as parameters, select from multiple network egresses according to the load balancing algorithm, and select the most For example, the route delay corresponding to network exit A is 50ms and the number of hops is 5; the route delay corresponding to network exit B is 30ms and the number of hops is 3; the route delay corresponding to network exit C is 60ms and the number of hops is 6. The optimal path selected by the load balancing algorithm is the path corresponding to the network egress B, and the load balancing device forwards the server access request through the network egress B.

步骤109,负载均衡装置检查之前选择的最优路径是否可用,若是则执行,步骤110,否则执行步骤108。Step 109 , the load balancing device checks whether the previously selected optimal path is available, if so, execute step 110 , otherwise execute step 108 .

本步骤表明,本次服务器访问请求中的访问地址为非首次访问,负载均衡装置按之前选择的网络出口B转发服务器访问请求。同时进行出口健康检查,检查下网络出口B对应的路径是否可用,防止因路径不可用导致的服务器访问请求无法发送到对应的服务器。This step indicates that the access address in this server access request is not the first access, and the load balancing device forwards the server access request according to the previously selected network exit B. At the same time, the export health check is performed to check whether the path corresponding to the network exit B is available, so as to prevent the server access request from being unable to be sent to the corresponding server due to the unavailable path.

步骤110,服务器响应请求,返回请求数据流程结束。Step 110, the server responds to the request and returns the request data flow to end.

本实施例的方案是一种负载均衡逆向应用,即在客户端侧架设连接多个网络出口的负载均衡装置,从而实现客户端特别是VIP客户访问网络能够自动选路。弥补了VIP客户的重要互联网业务难以进行保障的缺陷,拓展了负载均衡技术在客户端侧的应用范畴。该方法既节约了VIP客户的设备成本和多条链路的维护成本,又能在某个出口异常的情况下仍保证业务正常。The solution of this embodiment is a reverse application of load balancing, that is, a load balancing device connected to multiple network outlets is set up on the client side, so that the client, especially the VIP client, can automatically select a route when accessing the network. It makes up for the defect that it is difficult to guarantee the important Internet services of VIP customers, and expands the application scope of load balancing technology on the client side. This method not only saves the equipment cost of VIP customers and the maintenance cost of multiple links, but also ensures normal service even when a certain egress is abnormal.

本发明实施例还提供一种一种负载均衡装置,如图3所示,包括:The embodiment of the present invention also provides a load balancing device, as shown in FIG. 3 , including:

接收模块201,用于接收客户端发送的服务器访问请求;A receiving module 201, configured to receive a server access request sent by a client;

转发模块202,用于根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求,其中多个网络出口分别经多条物理链路连接多个网络,多个网络中包括服务器的归属网络,其它的非归属网络和归属网络之间具有通信连接。The forwarding module 202 is configured to select from multiple network outlets according to a preset load balancing algorithm, and forward the server access request through the selected outlet, wherein the multiple network outlets are respectively connected to multiple networks via multiple physical links, The multiple networks include the home network of the server, and other non-home networks have communication connections with the home network.

进一步,转发模块202,还用于判断客户端属于指定客户端集合时,根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求。Further, the forwarding module 202 is also configured to select from multiple network egresses according to a preset load balancing algorithm when judging that the client belongs to the specified client set, and forward the server access request through the selected egress.

进一步,转发模块202,还用于判断客户端不属于指定客户端集合时,直接通过预设定的网络出口转发服务器访问请求。Further, the forwarding module 202 is further configured to directly forward the server access request through a preset network egress when judging that the client does not belong to the specified client set.

进一步,转发模块202,还用于本次服务器访问请求中的访问地址为首次访问,根据各网络出口对应的路由时延和跳数,以及预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求。Further, the forwarding module 202 is also used for the access address in this server access request to be the first access, according to the routing delay and hop count corresponding to each network exit, and the preset load balancing algorithm, from multiple network exits Select, and forward server access requests through the selected exit.

进一步,转发模块202,还用于本次服务器访问请求中的访问地址为非首次访问,按之前选择的网络出口转发服务器访问请求。Further, the forwarding module 202 is also used for forwarding the server access request according to the previously selected network exit if the access address in the server access request is not the first visit.

最后应说明的是:以上实施例仅用以说明本发明的技术方案而非对其进行限制,尽管参照较佳实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对本发明的技术方案进行修改或者等同替换,而这些修改或者等同替换亦不能使修改后的技术方案脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that: it still Modifications or equivalent replacements can be made to the technical solutions of the present invention, and these modifications or equivalent replacements cannot make the modified technical solutions deviate from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1.一种负载均衡方法,其特征在于,包括:1. A load balancing method, characterized in that, comprising: 负载均衡装置接收客户端发送的服务器访问请求;The load balancing device receives the server access request sent by the client; 负载均衡装置根据预设的负载均衡算法,从其多个网络出口中进行选择,并通过选择的出口转发服务器访问请求,其中多个网络出口分别经多条物理链路连接多个网络,多个网络中包括服务器的归属网络,其它的非归属网络和归属网络之间具有通信连接。The load balancing device selects from its multiple network outlets according to the preset load balancing algorithm, and forwards server access requests through the selected outlets. The multiple network outlets are respectively connected to multiple networks through multiple physical links, and multiple The network includes the home network of the server, and other non-home networks have communication connections with the home network. 2.根据权利要求1所述的方法,其特征在于,负载均衡装置根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求具体为:2. The method according to claim 1, wherein the load balancing device selects from a plurality of network outlets according to a preset load balancing algorithm, and forwards the server access request through the selected outlet as follows: 负载均衡装置判断客户端属于指定客户端集合时,根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求。When the load balancing device judges that the client belongs to the specified client set, it selects from multiple network outlets according to the preset load balancing algorithm, and forwards the server access request through the selected outlet. 3.根据权利要求2所述的方法,其特征在于,还包括:负载均衡装置判断客户端不属于指定客户端集合时,直接通过预设定的网络出口转发服务器访问请求。3. The method according to claim 2, further comprising: when the load balancing device judges that the client does not belong to the specified client set, directly forwarding the server access request through a preset network egress. 4.根据权利要求1所述的方法,其特征在于,负载均衡装置根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求具体为:4. The method according to claim 1, wherein the load balancing device selects from a plurality of network outlets according to a preset load balancing algorithm, and forwards the server access request through the selected outlet as follows: 本次服务器访问请求中的访问地址为首次访问,负载均衡装置根据各网络出口对应的路由时延和跳数,以及预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求。The access address in this server access request is the first access, and the load balancing device selects from multiple network outlets according to the routing delay and hop count corresponding to each network outlet, as well as the preset load balancing algorithm, and passes the selected The egress forwards server access requests. 5.根据权利要求4所述的方法,其特征在于,负载均衡装置从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求具体为:5. The method according to claim 4, wherein the load balancing device selects from a plurality of network outlets, and forwards the server access request through the selected outlet as follows: 本次服务器访问请求中的访问地址为非首次访问,负载均衡装置按之前选择的网络出口转发服务器访问请求。The access address in this server access request is not the first access, and the load balancing device forwards the server access request according to the previously selected network exit. 6.一种负载均衡装置,其特征在于,包括:6. A load balancing device, characterized in that, comprising: 接收模块,用于接收客户端发送的服务器访问请求;The receiving module is used to receive the server access request sent by the client; 转发模块,用于根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求,其中多个网络出口分别经多条物理链路连接多个网络,多个网络中包括服务器的归属网络,其它的非归属网络和归属网络之间具有通信连接。The forwarding module is used to select from multiple network outlets according to the preset load balancing algorithm, and forward the server access request through the selected outlet, wherein the multiple network outlets are respectively connected to multiple networks through multiple physical links, and multiple One network includes the home network of the server, and other non-home networks have communication connections with the home network. 7.根据权利要求6所述的装置,其特征在于,转发模块,还用于判断客户端属于指定客户端集合时,根据预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求。7. The device according to claim 6, wherein the forwarding module is further used for judging that the client belongs to the specified client set, according to the preset load balancing algorithm, select from multiple network outlets, and pass The selected egress forwards server access requests. 8.根据权利要求7所述的装置,其特征在于,转发模块,还用于判断客户端不属于指定客户端集合时,直接通过预设定的网络出口转发服务器访问请求。8. The device according to claim 7, wherein the forwarding module is further configured to directly forward the server access request through a preset network exit when judging that the client does not belong to the specified client set. 9.根据权利要求6所述的装置,其特征在于,转发模块,还用于本次服务器访问请求中的访问地址为首次访问,根据各网络出口对应的路由时延和跳数,以及预设的负载均衡算法,从多个网络出口中进行选择,并通过选择的出口转发服务器访问请求。9. The device according to claim 6, characterized in that the forwarding module is also used for the access address in this server access request to be the first access, according to the routing delay and hop count corresponding to each network exit, and the preset The load balancing algorithm selects from multiple network outlets and forwards server access requests through the selected outlets. 10.根据权利要求9所述的装置,其特征在于,转发模块,还用于本次服务器访问请求中的访问地址为非首次访问,按之前选择的网络出口转发服务器访问请求。10. The device according to claim 9, wherein the forwarding module is further used to forward the server access request according to the previously selected network exit when the access address in the server access request is not the first access.
CN2011104602567A 2011-12-31 2011-12-31 Load balancing method and device Pending CN103188163A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104602567A CN103188163A (en) 2011-12-31 2011-12-31 Load balancing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104602567A CN103188163A (en) 2011-12-31 2011-12-31 Load balancing method and device

Publications (1)

Publication Number Publication Date
CN103188163A true CN103188163A (en) 2013-07-03

Family

ID=48679134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104602567A Pending CN103188163A (en) 2011-12-31 2011-12-31 Load balancing method and device

Country Status (1)

Country Link
CN (1) CN103188163A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572028A (en) * 2016-11-10 2017-04-19 汉柏科技有限公司 Outbound network load balancing method and device
CN108259372A (en) * 2016-12-28 2018-07-06 天津岩石科技有限公司 A kind of multi-link load balance system and method
CN110138660A (en) * 2019-06-06 2019-08-16 杭州商湾网络科技有限公司 A kind of multiple exit route selection method
WO2020248363A1 (en) * 2019-06-14 2020-12-17 平安科技(深圳)有限公司 Load balancing method for server and related apparatus
CN116155829A (en) * 2021-11-19 2023-05-23 贵州白山云科技股份有限公司 Network traffic processing method, device, medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009662A (en) * 2007-01-31 2007-08-01 杭州华为三康技术有限公司 Message processing method, system and device based on the load balance technology
CN101867976A (en) * 2010-07-22 2010-10-20 杭州华三通信技术有限公司 Load balancing method based on mobile terminal number and equipment
CN102215247A (en) * 2010-05-06 2011-10-12 华为技术有限公司 Network proximity load balancing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009662A (en) * 2007-01-31 2007-08-01 杭州华为三康技术有限公司 Message processing method, system and device based on the load balance technology
CN102215247A (en) * 2010-05-06 2011-10-12 华为技术有限公司 Network proximity load balancing method and device
CN101867976A (en) * 2010-07-22 2010-10-20 杭州华三通信技术有限公司 Load balancing method based on mobile terminal number and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
岳荣惠: "出方向链路负载均衡选路策略的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572028A (en) * 2016-11-10 2017-04-19 汉柏科技有限公司 Outbound network load balancing method and device
CN108259372A (en) * 2016-12-28 2018-07-06 天津岩石科技有限公司 A kind of multi-link load balance system and method
CN110138660A (en) * 2019-06-06 2019-08-16 杭州商湾网络科技有限公司 A kind of multiple exit route selection method
WO2020248363A1 (en) * 2019-06-14 2020-12-17 平安科技(深圳)有限公司 Load balancing method for server and related apparatus
CN116155829A (en) * 2021-11-19 2023-05-23 贵州白山云科技股份有限公司 Network traffic processing method, device, medium and electronic equipment

Similar Documents

Publication Publication Date Title
US12047244B2 (en) Method and system of connecting to a multipath hub in a cluster
US20220131740A1 (en) Method and system of a dynamic high-availability mode based on current wide area network connectivity
CN112868206B (en) Method, system and computer readable medium for providing service broker functionality
US10735553B2 (en) Micro-services in a telecommunications network
US9397933B2 (en) Method and system of providing micro-facilities for network recovery
US8432791B1 (en) Network route injections
CN114079669A (en) System and method for providing a global virtual network (GVN)
US8848522B2 (en) Telecommunications system and server apparatus
CN111541560A (en) Method and apparatus for partial software defined network switch replacement in IP networks
US10320653B2 (en) Route topology discovery in data networks
US20080165683A1 (en) Method, system, and program product for enhancing network communications between endpoints
CN103188163A (en) Load balancing method and device
CN117061357A (en) Network topology management method and system based on virtual private network
Mohammadi et al. EFSUTE: A novel efficient and survivable traffic engineering for software defined networks
US9197545B2 (en) Highly scalable modular system with high reliability and low latency
US8750166B2 (en) Route topology discovery in data networks
US20160294688A1 (en) Network element federation controller and forwarding box
KR20190048324A (en) Method for providing service based on multi network and apparatus therefor
JP6007599B2 (en) Communication system, relay device, relay method, and relay program
US12425350B2 (en) Packet fragmentation prevention in an SDWAN router
CN108390780A (en) Method and apparatus for handling information
CN120017620A (en) VPN cluster system, message processing method, device, equipment and storage medium
CN115914688A (en) Data transmission processing method, device, electronic device and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130703