WO2016150314A1 - Method and system for achieving load balancing of network port inside server - Google Patents

Method and system for achieving load balancing of network port inside server Download PDF

Info

Publication number
WO2016150314A1
WO2016150314A1 PCT/CN2016/076277 CN2016076277W WO2016150314A1 WO 2016150314 A1 WO2016150314 A1 WO 2016150314A1 CN 2016076277 W CN2016076277 W CN 2016076277W WO 2016150314 A1 WO2016150314 A1 WO 2016150314A1
Authority
WO
WIPO (PCT)
Prior art keywords
network port
floating
server
traffic
threshold
Prior art date
Application number
PCT/CN2016/076277
Other languages
French (fr)
Chinese (zh)
Inventor
张敏珠
罗文斌
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016150314A1 publication Critical patent/WO2016150314A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • This paper deals with load balancing methods, and more particularly relates to a method and system for implementing load balancing of a server internal network port.
  • the load balancing for the server network port includes the following manners: Method 1: Selecting an IP floating according to the state of the server network port, specifically: floating the IP address on the network port in the fault state to a normal state.
  • Network port includes the following manners: Method 1: Selecting an IP floating according to the state of the server network port, specifically: floating the IP address on the network port in the fault state to a normal state.
  • Method 2 Determine the mode of selecting the primary and backup servers based on the statistics of the network port traffic. In the first mode, the status of the server network port (fault or normal) needs to be detected based on the operating system, and then according to the detected state of the server network port to determine whether to perform IP floating, so the IP floating judgment process is too dependent on the operating system. And only the normal and faulty two-layer state of the network port is used as the basis for IP floating.
  • the switch between the active and standby servers is implemented according to the network port traffic, which solves the load balancing problem between the servers, but does not solve the load balancing problem inside a single server. It can be seen that the related technology has not provided an effective technical solution for the load balancing problem of the internal network port of the server.
  • the IP floating means that the service of the server network port is switched to another network port of the server or another server for processing.
  • a floating IP corresponds to a service that can be switched between various network ports or servers of a server. For the access side, you only need to access the floating IP to perform the corresponding service. Even if the server on the host side switches, the access terminal can find the corresponding service on the host side as long as it is connected to the floating IP.
  • the technical problem to be solved by the present invention is to provide a method and system for implementing load balancing of the internal network port of the server, thereby implementing load balancing of the internal network port of the server, achieving effective use of the internal network port resources of the server, and improving the work of the internal network port of the server. Efficiency and improve server performance.
  • a method for implementing load balancing of an internal network port of a server including:
  • the floating IP address on the designated network port is floated inside the server according to the preset floating policy and the obtained network port traffic information of the specified network port.
  • the network port traffic information includes a total network port traffic
  • the floating policy includes: floating the floating IP on the designated network port in the server when the total network port of the specified network port is greater than or equal to a preset first threshold.
  • the network port traffic information includes a network port floating IP traffic.
  • the floating policy includes: when the floating IP address of the network port of the specified network port is greater than or equal to a preset second threshold, floating the floating IP address on the designated network port in the server.
  • the network port traffic information includes a total network port traffic and a network port floating IP traffic.
  • the floating policy includes: when the total network traffic of the specified network port is greater than or equal to a preset first threshold, and the floating network IP address of the network port of the specified network port is greater than or equal to a preset second threshold, The floating IP address on the specified network port is floated inside the server.
  • the method before the step of obtaining the network port traffic information of the specified network port in the server, the method further includes:
  • the at least two network ports in the server are respectively selected as the designated network port and the floating network port.
  • the step of floating the floating IP address on the designated network port inside the server includes:
  • the step of floating the floating IP address on the designated network port inside the server includes:
  • the preset third threshold is smaller than the preset. The first threshold.
  • a system for implementing load balancing of an internal network port of a server including a traffic acquisition module and a floating module, wherein
  • the traffic acquisition module is configured to: obtain network port traffic information of a designated network port in the server;
  • the floating module is configured to: float the floating IP address on the designated network port in the server according to the preset floating policy and the obtained network port traffic information of the specified network port.
  • the network port traffic information includes a total network port traffic
  • the floating policy includes: floating the floating IP address on the designated network port in the server when the total network port of the specified network port is greater than or equal to the preset first threshold.
  • the network port traffic information includes a network port floating IP traffic.
  • the floating policy includes: when the floating IP address of the network port of the specified network port is greater than or equal to a preset second threshold, floating the floating IP address on the designated network port in the server.
  • the network port traffic information includes a total network port traffic and a network port floating IP traffic.
  • the floating policy includes: when the total network traffic of the specified network port is greater than or equal to a preset first threshold, and the floating IP traffic of the network port of the designated network port is greater than or equal to a preset second threshold, Floating the floating IP address on the designated network port inside the server.
  • system further includes: a network port selection module,
  • the network port selection module is configured to: before the traffic acquisition module obtains the network port traffic information of the specified network port in the server, the network port of the server is selected as the designated network port and the floating network port respectively.
  • the floating module is configured to float the floating IP address on the designated network port inside the server as follows:
  • the floating module is configured to float the floating IP address on the designated network port inside the server as follows:
  • the network port is configured to float the floating IP address of the specified network port to the floating network port, where the preset third threshold is less than a preset first threshold.
  • the load balancing between the internal network ports of the server is implemented according to the total network traffic of the internal network port of the server, the floating IP traffic of the network port, or a combination of the two.
  • the internal network port resources of the server are effectively utilized, and the working efficiency of the internal network port of the server is improved. It also improves the performance of the server.
  • FIG. 1 is a flowchart of a method for implementing load balancing of an internal network port of a server according to a preferred embodiment of the present invention
  • FIG. 2 is a schematic diagram of a system for implementing load balancing of an internal network port of a server according to a preferred embodiment of the present invention.
  • a method for implementing load balancing of a service internal network port includes:
  • Step 11 Obtain the network port traffic information of the specified network port in the server.
  • the method includes: selecting at least two network ports in the server as the designated network port and the floating network port.
  • the floating network port and the designated network port mentioned here are the network ports that ip can be floated, and are a group of network ports that ip can float.
  • the network port involved in the IP floating may be two or more network ports according to the actual server networking. For example, if at least one server internal network port whose total network port traffic is greater than the preset value is selected as the designated network port, the total network port traffic is selected to be small. At least one internal network port of the server is used as a floating network port.
  • the preset value is, for example, 80% of the maximum threshold of the total internal network port traffic of the server. However, the present invention is not limited thereto.
  • Step 12 The floating IP address on the designated network port is floated inside the server according to the preset floating policy and the obtained network port traffic information of the specified network port.
  • the floating refers to a form that can be freely switched on a specific device, and is a well-known and commonly used technical term for those skilled in the art, and details are not described herein again.
  • the floating ip means that the ip can be set in a specific group of devices according to certain conditions. It is also a well-known and commonly used technical term for those skilled in the art, and details are not described herein.
  • the network port traffic information is the total network port traffic.
  • the floating policy is: when the total network port traffic of the specified network port is greater than or equal to the preset first threshold, the floating IP address on the specified network port is floated inside the server.
  • the network port traffic information is the floating IP address of the network port.
  • the floating policy is: when the floating IP address of the network port of the specified network port is greater than or equal to the preset second threshold, the floating IP address on the specified network port is floated inside the server.
  • the network port traffic information is the total network port traffic and the network port floating IP traffic.
  • the floating policy is: when the total network port traffic of the specified network port is greater than or equal to the preset first threshold, and the network port's floating IP traffic is greater than the specified network port. When the threshold is equal to or equal to the preset second threshold, the floating IP address on the specified network port is floated inside the server.
  • the first threshold and the second threshold are estimated according to service calculations carried on the server.
  • the first threshold is used to indicate the maximum traffic threshold of the internal network port of the server.
  • the second threshold is used to indicate the maximum threshold of floating IP traffic on the internal network port of the server.
  • the server can collect the network port traffic information (including the total network port traffic and the network port floating IP traffic) of the internal network ports in real time, and store the corresponding network port as the designated network port and configure the floating.
  • the network port traffic information of the specified network port that meets the floating policy is obtained from the network port traffic information of the network ports that are configured when the network port traffic information is the floating network IP address of the network port.
  • the floating IP address of the network port is used to determine whether the floating IP address on the specified network port needs to be floating inside the server.
  • the corresponding network port in the server is selected as the designated network port and the floating policy is configured according to the configuration of the floating policy.
  • the network port traffic information is the total network port traffic and the network port floating IP flow.
  • the amount of the total network traffic of the specified network port and the floating IP traffic of the network port are collected periodically or in real time. It is used to determine whether the floating IP address on the specified network port needs to be floating inside the server. Therefore, the manner in which the network port traffic information is obtained by the present invention is not limited. In practical applications, it can be set according to the actual situation.
  • the internal network port of the server is selected as the designated network port and the floating network port respectively.
  • the floating IP address of the designated network port is internally configured in the server. Whether the total traffic of the network port is less than or equal to the preset third threshold. If yes, the floating IP address of the specified network port is floated to the floating network port, where the preset third threshold is less than the preset first threshold.
  • the third threshold is obtained according to the service calculation estimated by the server, and the third threshold is used to indicate the minimum traffic threshold of the internal network port of the server.
  • the third threshold is used to indicate the minimum traffic threshold of the internal network port of the server.
  • the three thresholds are selected until the floating network port that meets the conditions is selected for IP floating.
  • the present invention is not limited thereto.
  • the following is a detailed description of the network port A and the floating network port B.
  • the selection of the designated network port A and the floating network port B is the same as above, and is not described here.
  • the load balancing between the internal network ports of the server is performed by using the total network port traffic.
  • the total network traffic A10 of the specified network port A is greater than or equal to the first threshold A1
  • the specified network port A needs to be floated inside the server.
  • the floating IP address of the specified network port A is floated to the floating network port B when the current network port B0 of the floating network port B is less than or equal to the third threshold A3.
  • the load balancing between the internal network ports of the server is performed by using the combination of the total network port traffic and the floating IP traffic of the network port: when the total network traffic A10 of the specified network port A is greater than or equal to the first threshold. If the current IP address of the network port A is greater than or equal to the second threshold A2, you need to float the floating IP address of the specified network port A in the server. When the B0 is less than or equal to the third threshold A3, the floating IP address on the specified network port A is floated to the floating network port B.
  • the internal network port of the server is selected as the designated network port.
  • floating the floating IP address on the designated network port in the server includes: selecting the total network port traffic is less than or equal to the pre-
  • the internal network port of the third threshold is configured as a floating network port, and the floating IP address of the specified network port is floated to the floating network port, where the preset third threshold is less than a preset first threshold.
  • the third threshold is obtained according to the service calculation estimated by the server, and the third threshold is used to indicate the minimum traffic threshold of the internal network port of the server.
  • the floating network port is not pre-selected.
  • the internal network port that meets the requirements is selected as the floating network port based on the total network traffic of the network ports on the server. The condition is that the total network port traffic is less than or equal to a preset third threshold. If the internal network port of the network port of the server is compared, the internal network port of the specified network port is used as the floating network port, and the floating IP address of the specified network port is floated to the floating network port. If the total network traffic of each network port in the current server does not meet the above conditions, the device enters the waiting state. When there is a floating network port that meets the conditions, IP floating processing is performed.
  • the present invention is not limited thereto.
  • the total traffic of the network port of the floating network port is judged to avoid the ping-pong effect caused by the floating port floating in the floating network after the floating IP address reaches the first threshold or the second threshold. This avoids the situation where floating IPs fluctuate frequently.
  • the system for implementing load balancing of the internal network port of the server includes a traffic obtaining module 201 and a floating module 202.
  • the traffic obtaining module 201 is configured to: obtain network port traffic information of a designated network port in the server;
  • the floating module 202 is configured to: float the floating IP address on the designated network port in the server according to the preset floating policy and the network port traffic information of the specified network port.
  • the network port traffic information is the total network port traffic.
  • the floating policy is: when the total network port traffic of the specified network port is greater than or equal to the preset first threshold, the floating IP address on the specified network port is floated inside the server.
  • the network port traffic information is the floating IP address of the network port.
  • the floating policy is: when the floating IP address of the network port of the specified network port is greater than or equal to the preset second threshold, the floating IP address on the specified network port is floated inside the server.
  • the network port traffic information is the total network port traffic and the network port floating IP traffic.
  • the floating policy is: when the total network port traffic of the specified network port is greater than or equal to the preset first threshold, and the network port's floating IP traffic is greater than the specified network port. When the threshold is equal to or equal to the preset second threshold, the floating IP address on the specified network port is floated inside the server.
  • the settings regarding the first threshold and the second threshold are the same as those described above, and thus are not described herein.
  • the system further includes a network port selection module, configured to: before obtaining the network port traffic information of the specified network port in the server, selecting at least two network ports in the server as the designated network port and the floating network port respectively.
  • the floating module is specifically configured to determine whether the total network traffic of the floating network port is less than or equal to a preset third threshold when the floating IP address of the designated network port is to be floated inside the server. The floating IP address is floating to the floating network port, where the preset third threshold is less than the preset first threshold.
  • the floating module is specifically configured to: when the floating IP address of the specified network port needs to be floating inside the server, select the internal network port of the server whose total network traffic is less than or equal to the preset third threshold as the floating network.
  • the floating IP address of the specified network port is floated to the floating network port.
  • the preset third threshold is smaller than the preset first threshold. The setting of the third threshold is the same as that described above, and thus will not be described herein.
  • the preferred embodiment of the present invention implements load balancing of network port traffic of the internal network port of the server according to the total network port traffic, the network port floating IP traffic, or a combination of the two. In this way, the effective utilization of the internal network port resources of the server is achieved, the working efficiency of the internal network port of the server is improved, and the performance of the server is also improved.
  • the embodiment of the invention further discloses a computer program, comprising program instructions, which when executed by a computer, enable the computer to perform any of the above methods for implementing load balancing of the internal network port of the server.
  • the embodiment of the invention also discloses a carrier carrying the computer program.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the load balancing between the internal network ports of the server is implemented according to the total network traffic of the internal network port of the server, the floating IP traffic of the network port, or a combination of the two.
  • the internal network port resources of the server are effectively utilized, and the working efficiency of the internal network port of the server is improved. It also improves the performance of the server. Therefore, the present invention has strong industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method and system for achieving load balancing of a network port inside a server, comprising: acquiring network port traffic information about a specified network port inside a server; according to a pre-set floating policy and the obtained network port traffic information about the specified network port, specifying a floating IP on the specified network port inside the server in a floating manner. The above-mentioned technical solution can realize load balancing of a network port inside a server, thereby achieving effective utilization of network port resources inside the server, improving the working efficiency of the network port inside the server, and promoting the performance of the server.

Description

一种实现服务器内部网口负载均衡的方法及***Method and system for realizing server internal network port load balancing 技术领域Technical field
本文涉及负载均衡方法,尤其涉及一种实现服务器内部网口负载均衡的方法及***。This paper deals with load balancing methods, and more particularly relates to a method and system for implementing load balancing of a server internal network port.
背景技术Background technique
目前,在相关技术的服务器负载均衡的方案中,针对服务器网口负载均衡包括以下方式:方式一:根据服务器网口状态选择IP浮动,具体为:将故障状态的网口上的IP浮动到正常状态的网口;方式二:根据统计的网口流量确定选择主备服务器的方式。其中,在方式一中,服务器网口的状态(故障或正常)需要基于操作***进行检测,再根据检测的服务器网口状态判断是否进行IP浮动,如此,IP浮动的判断过程太过于依赖操作***,而且仅以网口的正常和故障两层状态作为IP浮动的依据,仅能保证IP的正常服务,无法达到负载均衡以提高服务器工作效率的目的。方式二,根据网口流量实现主备服务器的切换,解决了服务器之间的负载均衡问题,而未解决单个服务器内部的负载均衡问题。可见,对于服务器内部网口的负载均衡问题,相关技术尚未提供有效的技术方案。At present, in the server load balancing scheme of the related art, the load balancing for the server network port includes the following manners: Method 1: Selecting an IP floating according to the state of the server network port, specifically: floating the IP address on the network port in the fault state to a normal state. Network port; Method 2: Determine the mode of selecting the primary and backup servers based on the statistics of the network port traffic. In the first mode, the status of the server network port (fault or normal) needs to be detected based on the operating system, and then according to the detected state of the server network port to determine whether to perform IP floating, so the IP floating judgment process is too dependent on the operating system. And only the normal and faulty two-layer state of the network port is used as the basis for IP floating. Only the normal service of the IP can be guaranteed, and the load balancing cannot be achieved to improve the efficiency of the server. In the second mode, the switch between the active and standby servers is implemented according to the network port traffic, which solves the load balancing problem between the servers, but does not solve the load balancing problem inside a single server. It can be seen that the related technology has not provided an effective technical solution for the load balancing problem of the internal network port of the server.
其中,IP浮动表示将服务器网口的服务切换至服务器的其他网口或其他的服务器进行处理。浮动IP对应于可在服务器的各网口或服务器之间切换的服务。对于访问端,只需访问浮动IP即可进行相应服务。即使主机端的服务器发生切换,访问端只要连接上浮动IP,就可以找到主机端的相应服务。The IP floating means that the service of the server network port is switched to another network port of the server or another server for processing. A floating IP corresponds to a service that can be switched between various network ports or servers of a server. For the access side, you only need to access the floating IP to perform the corresponding service. Even if the server on the host side switches, the access terminal can find the corresponding service on the host side as long as it is connected to the floating IP.
发明内容Summary of the invention
本发明要解决的技术问题是提供一种实现服务器内部网口负载均衡的方法及***,从而实现服务器内部网口的负载均衡,达到服务器内部网口资源的有效利用,提高服务器内部网口的工作效率,并提升服务器的性能。The technical problem to be solved by the present invention is to provide a method and system for implementing load balancing of the internal network port of the server, thereby implementing load balancing of the internal network port of the server, achieving effective use of the internal network port resources of the server, and improving the work of the internal network port of the server. Efficiency and improve server performance.
为了达到上述技术目的,采用如下技术方案: In order to achieve the above technical purpose, the following technical solutions are adopted:
一种实现服务器内部网口负载均衡的方法,包括:A method for implementing load balancing of an internal network port of a server, including:
获取服务器内部指定网口的网口流量信息;Obtain the network port traffic information of the specified network port in the server.
根据预设的浮动策略及获得的所述指定网口的网口流量信息,在所述服务器内部浮动指定网口上的浮动IP。The floating IP address on the designated network port is floated inside the server according to the preset floating policy and the obtained network port traffic information of the specified network port.
可选地,所述网口流量信息包括网口总流量;Optionally, the network port traffic information includes a total network port traffic;
所述浮动策略包括:当所述指定网口的网口总流量大于或等于预设的第一阈值时,在所述服务器内部浮动所述指定网口上的浮动IP。The floating policy includes: floating the floating IP on the designated network port in the server when the total network port of the specified network port is greater than or equal to a preset first threshold.
可选地,所述网口流量信息包括网口浮动IP流量;Optionally, the network port traffic information includes a network port floating IP traffic.
所述浮动策略包括:当所述指定网口的网口浮动IP流量大于或等于预设的第二阈值时,在所述服务器内部浮动所述指定网口上的浮动IP。The floating policy includes: when the floating IP address of the network port of the specified network port is greater than or equal to a preset second threshold, floating the floating IP address on the designated network port in the server.
可选地,所述网口流量信息包括网口总流量和网口浮动IP流量;Optionally, the network port traffic information includes a total network port traffic and a network port floating IP traffic.
所述浮动策略包括:当所述指定网口的网口总流量大于或等于预设的第一阈值,且指定网口的网口浮动IP流量大于或等于预设的第二阈值时,在所述服务器内部浮动所述指定网口上的浮动IP。The floating policy includes: when the total network traffic of the specified network port is greater than or equal to a preset first threshold, and the floating network IP address of the network port of the specified network port is greater than or equal to a preset second threshold, The floating IP address on the specified network port is floated inside the server.
可选地,所述获取服务器内部指定网口的网口流量信息的步骤之前,该方法还包括:Optionally, before the step of obtaining the network port traffic information of the specified network port in the server, the method further includes:
选择所述服务器内部至少两个网口分别作为所述指定网口和浮动网口。The at least two network ports in the server are respectively selected as the designated network port and the floating network port.
可选地,所述在所述服务器内部浮动所述指定网口上的浮动IP的步骤包括:Optionally, the step of floating the floating IP address on the designated network port inside the server includes:
判断所述浮动网口的网口总流量是否小于或等于预设的第三阈值,若是,将所述指定网口上的浮动IP浮动至所述浮动网口,其中,预设的第三阈值小于预设的第一阈值。Determining whether the total network port of the floating network port is less than or equal to a preset third threshold. If yes, the floating IP address of the specified network port is floated to the floating network port, where the preset third threshold is less than The preset first threshold.
可选地,所述在所述服务器内部浮动指定网口上的浮动IP的步骤包括:Optionally, the step of floating the floating IP address on the designated network port inside the server includes:
选择网口总流量小于或等于预设的第三阈值的服务器内部网口作为浮动网口,将指定网口的浮动IP浮动至所述浮动网口,其中,预设的第三阈值小于预设的第一阈值。 Select the internal network port of the server whose network traffic is less than or equal to the preset third threshold as the floating network port, and float the floating IP address of the specified network port to the floating network port. The preset third threshold is smaller than the preset. The first threshold.
一种实现服务器内部网口负载均衡的***,包括流量获取模块和浮动模块,其中A system for implementing load balancing of an internal network port of a server, including a traffic acquisition module and a floating module, wherein
所述流量获取模块设置成:获取服务器内部指定网口的网口流量信息;The traffic acquisition module is configured to: obtain network port traffic information of a designated network port in the server;
所述浮动模块设置成:根据预设的浮动策略及获得的所述指定网口的网口流量信息,在所述服务器内部浮动所述指定网口上的浮动IP。The floating module is configured to: float the floating IP address on the designated network port in the server according to the preset floating policy and the obtained network port traffic information of the specified network port.
可选地,所述网口流量信息包括网口总流量;Optionally, the network port traffic information includes a total network port traffic;
所述浮动策略包括:当指定网口的网口总流量大于或等于预设的第一阈值时,在所述服务器内部浮动所述指定网口上的浮动IP。The floating policy includes: floating the floating IP address on the designated network port in the server when the total network port of the specified network port is greater than or equal to the preset first threshold.
可选地,所述网口流量信息包括网口浮动IP流量;Optionally, the network port traffic information includes a network port floating IP traffic.
所述浮动策略包括:当所述指定网口的网口浮动IP流量大于或等于预设的第二阈值时,在所述服务器内部浮动所述指定网口上的浮动IP。The floating policy includes: when the floating IP address of the network port of the specified network port is greater than or equal to a preset second threshold, floating the floating IP address on the designated network port in the server.
可选地,所述网口流量信息包括网口总流量和网口浮动IP流量;Optionally, the network port traffic information includes a total network port traffic and a network port floating IP traffic.
所述浮动策略包括:当所述指定网口的网口总流量大于或等于预设的第一阈值,且所述指定网口的网口浮动IP流量大于或等于预设的第二阈值时,在所述服务器内部浮动所述指定网口上的浮动IP。The floating policy includes: when the total network traffic of the specified network port is greater than or equal to a preset first threshold, and the floating IP traffic of the network port of the designated network port is greater than or equal to a preset second threshold, Floating the floating IP address on the designated network port inside the server.
可选地,该***还包括:网口选择模块,Optionally, the system further includes: a network port selection module,
所述网口选择模块设置成:在所述流量获取模块获取服务器内部指定网口的网口流量信息之前,选择服务器内部至少两个网口分别作为指定网口和浮动网口。The network port selection module is configured to: before the traffic acquisition module obtains the network port traffic information of the specified network port in the server, the network port of the server is selected as the designated network port and the floating network port respectively.
可选地,所述浮动模块设置成按照如下方式在服务器内部浮动指定网口上的浮动IP:Optionally, the floating module is configured to float the floating IP address on the designated network port inside the server as follows:
判断所述浮动网口的网口总流量是否小于或等于预设的第三阈值,若是,将所述指定网口上的浮动IP浮动至所述浮动网口,其中,预设的第三阈值小于预设的第一阈值。Determining whether the total network port of the floating network port is less than or equal to a preset third threshold. If yes, the floating IP address of the specified network port is floated to the floating network port, where the preset third threshold is less than The preset first threshold.
可选地,所述浮动模块设置成按照如下方式在服务器内部浮动指定网口上的浮动IP:Optionally, the floating module is configured to float the floating IP address on the designated network port inside the server as follows:
选择网口总流量小于或等于预设的第三阈值的服务器内部网口作为浮动 网口,将所述指定网口上的浮动IP浮动至所述浮动网口,其中,预设的第三阈值小于预设的第一阈值。Select the internal network port of the server whose total network traffic is less than or equal to the preset third threshold as the floating interface. The network port is configured to float the floating IP address of the specified network port to the floating network port, where the preset third threshold is less than a preset first threshold.
本发明技术方案中,根据服务器内部网口的网口总流量、网口浮动IP流量或者二者的结合,实现服务器内部网口之间的负载均衡。通过对服务器内部各网口的网口总流量和/或网口浮动IP流量的检测,结合浮动策略的配置,达到了服务器内部网口资源的有效利用,提高了服务器内部网口的工作效率,亦提升了服务器的性能。In the technical solution of the present invention, the load balancing between the internal network ports of the server is implemented according to the total network traffic of the internal network port of the server, the floating IP traffic of the network port, or a combination of the two. Through the detection of the total network traffic of the network ports on the server and/or the floating IP traffic of the network port, combined with the configuration of the floating policy, the internal network port resources of the server are effectively utilized, and the working efficiency of the internal network port of the server is improved. It also improves the performance of the server.
附图概述BRIEF abstract
图1所示为本发明较佳实施例提供的实现服务器内部网口负载均衡的方法的流程图;1 is a flowchart of a method for implementing load balancing of an internal network port of a server according to a preferred embodiment of the present invention;
图2所示为本发明较佳实施例提供的实现服务器内部网口负载均衡的***的示意图。FIG. 2 is a schematic diagram of a system for implementing load balancing of an internal network port of a server according to a preferred embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.
如图1所示,本发明较佳实施例提供的实现服务内部网口负载均衡的方法包括:As shown in FIG. 1 , a method for implementing load balancing of a service internal network port according to a preferred embodiment of the present invention includes:
步骤11:获取服务器内部指定网口的网口流量信息。Step 11: Obtain the network port traffic information of the specified network port in the server.
在本步骤之前,还包括:选择服务器内部至少两个网口分别作为指定网口和浮动网口。这里所说的浮动网口和指定网口是ip可以浮动设置的网口,是ip可以浮动的一组网口。具体而言,根据实际的服务器组网情况,选择IP浮动涉及的网口,可以是两个或两个以上的网口。其中,例如选择网口总流量大于预设值的至少一个服务器内部网口作为指定网口,选择网口总流量小 于预设值的至少一个服务器内部网口作为浮动网口。预设值例如为服务器内部网口总流量的最大阈值的80%。然而,本发明对此并不限定。Before the step, the method includes: selecting at least two network ports in the server as the designated network port and the floating network port. The floating network port and the designated network port mentioned here are the network ports that ip can be floated, and are a group of network ports that ip can float. Specifically, the network port involved in the IP floating may be two or more network ports according to the actual server networking. For example, if at least one server internal network port whose total network port traffic is greater than the preset value is selected as the designated network port, the total network port traffic is selected to be small. At least one internal network port of the server is used as a floating network port. The preset value is, for example, 80% of the maximum threshold of the total internal network port traffic of the server. However, the present invention is not limited thereto.
步骤12:根据预设的浮动策略及获得的指定网口的网口流量信息,在服务器内部浮动指定网口上的浮动IP。Step 12: The floating IP address on the designated network port is floated inside the server according to the preset floating policy and the obtained network port traffic information of the specified network port.
其中,浮动是指在某一特定设备上可以自由切换的一种形式,对于本领域技术人员来说是公知且常用的的技术术语,在此不再赘述。The floating refers to a form that can be freely switched on a specific device, and is a well-known and commonly used technical term for those skilled in the art, and details are not described herein again.
浮动ip是指该ip可以根据某些条件,在特定的一组设备中选择某一设备而设置,对于本领域技术人员来说也是公知且常用的的技术术语,在此不再赘述。The floating ip means that the ip can be set in a specific group of devices according to certain conditions. It is also a well-known and commonly used technical term for those skilled in the art, and details are not described herein.
其中,网口流量信息为网口总流量,浮动策略为:当指定网口的网口总流量大于或等于预设的第一阈值时,在服务器内部浮动指定网口上的浮动IP。The network port traffic information is the total network port traffic. The floating policy is: when the total network port traffic of the specified network port is greater than or equal to the preset first threshold, the floating IP address on the specified network port is floated inside the server.
网口流量信息为网口浮动IP流量,浮动策略为:当指定网口的网口浮动IP流量大于或等于预设的第二阈值时,在服务器内部浮动指定网口上的浮动IP。The network port traffic information is the floating IP address of the network port. The floating policy is: when the floating IP address of the network port of the specified network port is greater than or equal to the preset second threshold, the floating IP address on the specified network port is floated inside the server.
网口流量信息为网口总流量和网口浮动IP流量,浮动策略为:当指定网口的网口总流量大于或等于预设的第一阈值,且指定网口的网口浮动IP流量大于或等于预设的第二阈值时,在服务器内部浮动指定网口上的浮动IP。The network port traffic information is the total network port traffic and the network port floating IP traffic. The floating policy is: when the total network port traffic of the specified network port is greater than or equal to the preset first threshold, and the network port's floating IP traffic is greater than the specified network port. When the threshold is equal to or equal to the preset second threshold, the floating IP address on the specified network port is floated inside the server.
其中,第一阈值及第二阈值根据服务器上承载的业务计算预估得到。第一阈值用来表示服务器内部网口的流量最大阈值,第二阈值用来表示服务器内部网口上的浮动IP流量的最大阈值。The first threshold and the second threshold are estimated according to service calculations carried on the server. The first threshold is used to indicate the maximum traffic threshold of the internal network port of the server. The second threshold is used to indicate the maximum threshold of floating IP traffic on the internal network port of the server.
在一实施例中,服务器可实时采集内部各网口的网口流量信息(包括网口总流量及网口浮动IP流量)并进行存储,当选择服务器内部相应网口作为指定网口并配置浮动策略后,根据浮动策略的配置(如网口流量信息为网口浮动IP流量时),定时从存储的各网口的网口流量信息中获取该指定网口符合浮动策略的网口流量信息(如网口浮动IP流量),用于根据浮动策略判断该指定网口上的浮动IP是否需要在服务器内部浮动。In an embodiment, the server can collect the network port traffic information (including the total network port traffic and the network port floating IP traffic) of the internal network ports in real time, and store the corresponding network port as the designated network port and configure the floating. After the policy is configured, the network port traffic information of the specified network port that meets the floating policy is obtained from the network port traffic information of the network ports that are configured when the network port traffic information is the floating network IP address of the network port. For example, the floating IP address of the network port is used to determine whether the floating IP address on the specified network port needs to be floating inside the server.
在另一实施例中,选择服务器内部相应网口作为指定网口并配置浮动策略,根据该浮动策略的配置(如网口流量信息为网口总流量和网口浮动IP流 量),定时或实时采集该指定网口的网口总流量及网口浮动IP流量数据,用于根据浮动策略判断该指定网口上的浮动IP是否需要在服务器内部浮动。于此,本发明对于网口流量信息的获取方式并不限定。于实际应用中,可根据实际情况进行设置。In another embodiment, the corresponding network port in the server is selected as the designated network port and the floating policy is configured according to the configuration of the floating policy. For example, the network port traffic information is the total network port traffic and the network port floating IP flow. The amount of the total network traffic of the specified network port and the floating IP traffic of the network port are collected periodically or in real time. It is used to determine whether the floating IP address on the specified network port needs to be floating inside the server. Therefore, the manner in which the network port traffic information is obtained by the present invention is not limited. In practical applications, it can be set according to the actual situation.
接下来以具体实施例对本发明的IP浮动判断及浮动过程进行详细说明。Next, the IP floating judgment and floating process of the present invention will be described in detail with reference to specific embodiments.
在第一实施例中,在步骤11之前,预先选择服务器内部网口分别作为指定网口和浮动网口,在步骤12中,在服务器内部浮动指定网口上的浮动IP具体包括:判断浮动网口的网口总流量是否小于或等于预设的第三阈值,若是,将指定网口上的浮动IP浮动至浮动网口,其中,预设的第三阈值小于预设的第一阈值。In the first embodiment, before the step 11, the internal network port of the server is selected as the designated network port and the floating network port respectively. In step 12, the floating IP address of the designated network port is internally configured in the server. Whether the total traffic of the network port is less than or equal to the preset third threshold. If yes, the floating IP address of the specified network port is floated to the floating network port, where the preset third threshold is less than the preset first threshold.
其中,第三阈值根据服务器上承载的业务计算预估得到,第三阈值用来表示服务器内部网口的流量最小阈值。此外,若浮动网口的网口总流量大于预设的第三阈值,则重新从服务器内部网口选择浮动网口,并判断浮动网口的网口总流量是否小于或等于预设值的第三阈值,直至选择到符合条件的浮动网口进行IP浮动。然而,本发明对此并不限定。The third threshold is obtained according to the service calculation estimated by the server, and the third threshold is used to indicate the minimum traffic threshold of the internal network port of the server. In addition, if the total network traffic of the floating network port is greater than the preset third threshold, select the floating network port from the internal network port of the server and determine whether the total network port traffic of the floating network port is less than or equal to the preset value. The three thresholds are selected until the floating network port that meets the conditions is selected for IP floating. However, the present invention is not limited thereto.
接下来以指定网口A和浮动网口B为例加以详细说明,其中,指定网口A和浮动网口B的选择同上所述,这里不再赘述。The following is a detailed description of the network port A and the floating network port B. The selection of the designated network port A and the floating network port B is the same as above, and is not described here.
根据浮动策略的配置,包括以下情况:According to the configuration of the floating policy, the following situations are included:
(一)采用网口总流量进行服务器内部网口之间的负载均衡:当指定网口A的当前网口总流量A10大于或等于第一阈值A1时,则需要在服务器内部浮动指定网口A上的浮动IP,当浮动网口B的当前网口总流量B0小于或等于第三阈值A3时,将指定网口A上的浮动IP浮动至浮动网口B;(1) The load balancing between the internal network ports of the server is performed by using the total network port traffic. When the total network traffic A10 of the specified network port A is greater than or equal to the first threshold A1, the specified network port A needs to be floated inside the server. On the floating IP address, the floating IP address of the specified network port A is floated to the floating network port B when the current network port B0 of the floating network port B is less than or equal to the third threshold A3.
(二)采用网口浮动IP流量进行服务器内部网口之间的负载均衡:当指定网口A的当前网口浮动IP流量A20大于或等于第二阈值A2时,则需要在服务器内部浮动指定网口A上的浮动IP,当浮动网口B的当前网口总流量B0小于或等于第三阈值A3时,将指定网口A上的浮动IP浮动至浮动网口B;(2) Load balancing between the internal network ports of the server by using the floating IP traffic of the network port: When the floating IP traffic A20 of the current network port of the specified network port A is greater than or equal to the second threshold A2, the specified network needs to be floating inside the server. The floating IP address of port A is configured to float the floating IP address of network port A to floating network port B when the total network port B0 of the floating network port B is less than or equal to the third threshold A3.
(三)采用网口总流量和网口浮动IP流量的结合进行服务器内部网口之间的负载均衡:当指定网口A的当前网口总流量A10大于或等于第一阈值 A1,且指定网口A的当前网口浮动IP流量A20大于或等于第二阈值A2时,则需要在服务器内部浮动指定网口A上的浮动IP,当浮动网口B的当前网口总流量B0小于或等于第三阈值A3时,将指定网口A上的浮动IP浮动至浮动网口B。(3) The load balancing between the internal network ports of the server is performed by using the combination of the total network port traffic and the floating IP traffic of the network port: when the total network traffic A10 of the specified network port A is greater than or equal to the first threshold. If the current IP address of the network port A is greater than or equal to the second threshold A2, you need to float the floating IP address of the specified network port A in the server. When the B0 is less than or equal to the third threshold A3, the floating IP address on the specified network port A is floated to the floating network port B.
在第二实施例中,在步骤11之前,预先选择服务器内部网口作为指定网口,在步骤12中,在服务器内部浮动指定网口上的浮动IP具体包括:选择网口总流量小于或等于预设的第三阈值的服务器内部网口作为浮动网口,将指定网口上的浮动IP浮动至所述浮动网口,其中,预设的第三阈值小于预设的第一阈值。其中,第三阈值根据服务器上承载的业务计算预估得到,第三阈值用来表示服务器内部网口的流量最小阈值。In the second embodiment, before the step 11, the internal network port of the server is selected as the designated network port. In step 12, floating the floating IP address on the designated network port in the server includes: selecting the total network port traffic is less than or equal to the pre- The internal network port of the third threshold is configured as a floating network port, and the floating IP address of the specified network port is floated to the floating network port, where the preset third threshold is less than a preset first threshold. The third threshold is obtained according to the service calculation estimated by the server, and the third threshold is used to indicate the minimum traffic threshold of the internal network port of the server.
具体而言,于第二实施例中,浮动网口并未预先选择。当根据浮动策略判断需要在服务器内部浮动指定网口上的浮动IP后,根据服务器内部各网口的网口总流量选择符合条件的内部网口作为浮动网口。该条件为网口总流量小于或等于预设的第三阈值。若经过对服务器内部各网口的网口总流量比较判断得出存在符合上述条件的内部网口,即将该内部网口作为浮动网口,将指定网口上的浮动IP浮动至该浮动网口。若当前服务器内部各网口的网口总流量均不满足上述条件,则进入等待状态,当存在满足条件的浮动网口时,再进行IP浮动处理。然而,本发明对此并不限定。Specifically, in the second embodiment, the floating network port is not pre-selected. After the floating IP address of the specified network port is to be floated in the server, the internal network port that meets the requirements is selected as the floating network port based on the total network traffic of the network ports on the server. The condition is that the total network port traffic is less than or equal to a preset third threshold. If the internal network port of the network port of the server is compared, the internal network port of the specified network port is used as the floating network port, and the floating IP address of the specified network port is floated to the floating network port. If the total network traffic of each network port in the current server does not meet the above conditions, the device enters the waiting state. When there is a floating network port that meets the conditions, IP floating processing is performed. However, the present invention is not limited thereto.
在此,通过浮动网口的网口总流量判断,很好地避免了因为浮动网口的网口总流量因为浮动IP浮动后而达到第一阈值或第二阈值,而引发再次浮动的乒乓效应,从而避免了浮动IP频繁浮动的情况。Here, the total traffic of the network port of the floating network port is judged to avoid the ping-pong effect caused by the floating port floating in the floating network after the floating IP address reaches the first threshold or the second threshold. This avoids the situation where floating IPs fluctuate frequently.
如图2所示,本发明较佳实施例提供的实现服务器内部网口负载均衡的***,包括流量获取模块201及浮动模块202。As shown in FIG. 2, the system for implementing load balancing of the internal network port of the server provided by the preferred embodiment of the present invention includes a traffic obtaining module 201 and a floating module 202.
流量获取模块201,设置成:获取服务器内部指定网口的网口流量信息;The traffic obtaining module 201 is configured to: obtain network port traffic information of a designated network port in the server;
浮动模块202,设置成:根据预设的浮动策略及获得的指定网口的网口流量信息,在服务器内部浮动指定网口上的浮动IP。The floating module 202 is configured to: float the floating IP address on the designated network port in the server according to the preset floating policy and the network port traffic information of the specified network port.
其中,网口流量信息为网口总流量,浮动策略为:当指定网口的网口总流量大于或等于预设的第一阈值时,在服务器内部浮动指定网口上的浮动IP。 The network port traffic information is the total network port traffic. The floating policy is: when the total network port traffic of the specified network port is greater than or equal to the preset first threshold, the floating IP address on the specified network port is floated inside the server.
网口流量信息为网口浮动IP流量,浮动策略为:当指定网口的网口浮动IP流量大于或等于预设的第二阈值时,在服务器内部浮动指定网口上的浮动IP。The network port traffic information is the floating IP address of the network port. The floating policy is: when the floating IP address of the network port of the specified network port is greater than or equal to the preset second threshold, the floating IP address on the specified network port is floated inside the server.
网口流量信息为网口总流量和网口浮动IP流量,浮动策略为:当指定网口的网口总流量大于或等于预设的第一阈值,且指定网口的网口浮动IP流量大于或等于预设的第二阈值时,在服务器内部浮动指定网口上的浮动IP。The network port traffic information is the total network port traffic and the network port floating IP traffic. The floating policy is: when the total network port traffic of the specified network port is greater than or equal to the preset first threshold, and the network port's floating IP traffic is greater than the specified network port. When the threshold is equal to or equal to the preset second threshold, the floating IP address on the specified network port is floated inside the server.
其中,关于第一阈值和第二阈值的设置同上所述,故于此不再赘述。The settings regarding the first threshold and the second threshold are the same as those described above, and thus are not described herein.
在一实施例中,上述***还包括网口选择模块,设置成:在获取服务器内部指定网口的网口流量信息之前,选择服务器内部至少两个网口分别作为指定网口和浮动网口。此外,浮动模块,具体设置成:当需要在服务器内部浮动指定网口上的浮动IP时,判断浮动网口的网口总流量是否小于或等于预设的第三阈值,若是,将指定网口上的浮动IP浮动至浮动网口,其中,预设的第三阈值小于预设的第一阈值。In an embodiment, the system further includes a network port selection module, configured to: before obtaining the network port traffic information of the specified network port in the server, selecting at least two network ports in the server as the designated network port and the floating network port respectively. In addition, the floating module is specifically configured to determine whether the total network traffic of the floating network port is less than or equal to a preset third threshold when the floating IP address of the designated network port is to be floated inside the server. The floating IP address is floating to the floating network port, where the preset third threshold is less than the preset first threshold.
在另一实施例中,浮动模块,具体设置成:当需要在服务器内部浮动指定网口上的浮动IP时,选择网口总流量小于或等于预设的第三阈值的服务器内部网口作为浮动网口,将指定网口上的浮动IP浮动至浮动网口,其中,预设的第三阈值小于预设的第一阈值。其中,关于第三阈值的设置同上所述,故于此不再赘述。In another embodiment, the floating module is specifically configured to: when the floating IP address of the specified network port needs to be floating inside the server, select the internal network port of the server whose total network traffic is less than or equal to the preset third threshold as the floating network. The floating IP address of the specified network port is floated to the floating network port. The preset third threshold is smaller than the preset first threshold. The setting of the third threshold is the same as that described above, and thus will not be described herein.
此外,上述***的具体处理过程同上述方法所述,故于此不再赘述。In addition, the specific processing procedure of the above system is the same as that described above, and thus will not be described herein.
综上所述,本发明较佳实施例根据网口总流量、网口浮动IP流量或者二者的结合使用,实现服务器内部网口的网口流量的负载均衡。如此,达到了服务器内部网口资源的有效利用,提高了服务器内部网口的工作效率,亦提升了服务器的性能。In summary, the preferred embodiment of the present invention implements load balancing of network port traffic of the internal network port of the server according to the total network port traffic, the network port floating IP traffic, or a combination of the two. In this way, the effective utilization of the internal network port resources of the server is achieved, the working efficiency of the internal network port of the server is improved, and the performance of the server is also improved.
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的实现服务器内部网口负载均衡的方法。The embodiment of the invention further discloses a computer program, comprising program instructions, which when executed by a computer, enable the computer to perform any of the above methods for implementing load balancing of the internal network port of the server.
本发明实施例还公开了一种载有所述的计算机程序的载体。The embodiment of the invention also discloses a carrier carrying the computer program.
在阅读并理解了附图和详细描述后,可以明白其他方面。 Other aspects will be apparent upon reading and understanding the drawings and detailed description.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如***、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。Variations or substitutions are readily conceivable within the scope of the present invention by those skilled in the art and are within the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.
工业实用性Industrial applicability
本发明技术方案中,根据服务器内部网口的网口总流量、网口浮动IP流量或者二者的结合,实现服务器内部网口之间的负载均衡。通过对服务器内部各网口的网口总流量和/或网口浮动IP流量的检测,结合浮动策略的配置,达到了服务器内部网口资源的有效利用,提高了服务器内部网口的工作效率,亦提升了服务器的性能。因此本发明具有很强的工业实用性。 In the technical solution of the present invention, the load balancing between the internal network ports of the server is implemented according to the total network traffic of the internal network port of the server, the floating IP traffic of the network port, or a combination of the two. Through the detection of the total network traffic of the network ports on the server and/or the floating IP traffic of the network port, combined with the configuration of the floating policy, the internal network port resources of the server are effectively utilized, and the working efficiency of the internal network port of the server is improved. It also improves the performance of the server. Therefore, the present invention has strong industrial applicability.

Claims (14)

  1. 一种实现服务器内部网口负载均衡的方法,包括:A method for implementing load balancing of an internal network port of a server, including:
    获取服务器内部指定网口的网口流量信息;Obtain the network port traffic information of the specified network port in the server.
    根据预设的浮动策略及获得的所述指定网口的网口流量信息,在所述服务器内部浮动指定网口上的浮动IP。The floating IP address on the designated network port is floated inside the server according to the preset floating policy and the obtained network port traffic information of the specified network port.
  2. 如权利要求1所述的实现服务器内部网口负载均衡的方法,其中The method for implementing load balancing of an internal network port of a server according to claim 1, wherein
    所述网口流量信息包括网口总流量;The network port traffic information includes a total network port traffic;
    所述浮动策略包括:当所述指定网口的网口总流量大于或等于预设的第一阈值时,在所述服务器内部浮动所述指定网口上的浮动IP。The floating policy includes: floating the floating IP on the designated network port in the server when the total network port of the specified network port is greater than or equal to a preset first threshold.
  3. 如权利要求1所述的实现服务器内部网口负载均衡的方法,其中The method for implementing load balancing of an internal network port of a server according to claim 1, wherein
    所述网口流量信息包括网口浮动IP流量;The network port traffic information includes the network port floating IP traffic.
    所述浮动策略包括:当所述指定网口的网口浮动IP流量大于或等于预设的第二阈值时,在所述服务器内部浮动所述指定网口上的浮动IP。The floating policy includes: when the floating IP address of the network port of the specified network port is greater than or equal to a preset second threshold, floating the floating IP address on the designated network port in the server.
  4. 如权利要求1所述的实现服务器内部网口负载均衡的方法,其中The method for implementing load balancing of an internal network port of a server according to claim 1, wherein
    所述网口流量信息包括网口总流量和网口浮动IP流量;The network port traffic information includes the total network port traffic and the network port floating IP traffic.
    所述浮动策略包括:当所述指定网口的网口总流量大于或等于预设的第一阈值,且指定网口的网口浮动IP流量大于或等于预设的第二阈值时,在所述服务器内部浮动所述指定网口上的浮动IP。The floating policy includes: when the total network traffic of the specified network port is greater than or equal to a preset first threshold, and the floating network IP address of the network port of the specified network port is greater than or equal to a preset second threshold, The floating IP address on the specified network port is floated inside the server.
  5. 如权利要求1至4中任一项所述的实现服务器内部网口负载均衡的方法,其中,所述获取服务器内部指定网口的网口流量信息的步骤之前,该方法还包括:The method for implementing the load balancing of the internal network port of the server according to any one of claims 1 to 4, wherein before the step of obtaining the network port traffic information of the designated network port in the server, the method further includes:
    选择所述服务器内部至少两个网口分别作为所述指定网口和浮动网口。The at least two network ports in the server are respectively selected as the designated network port and the floating network port.
  6. 如权利要求5所述的实现服务器内部网口负载均衡的方法,其中,所述在所述服务器内部浮动所述指定网口上的浮动IP的步骤包括:The method for implementing the load balancing of the internal network port of the server according to claim 5, wherein the step of floating the floating IP address on the designated network port inside the server comprises:
    判断所述浮动网口的网口总流量是否小于或等于预设的第三阈值,若是,将所述指定网口上的浮动IP浮动至所述浮动网口,其中,预设的第三阈值小 于预设的第一阈值。Determining whether the total network port of the floating network port is less than or equal to a preset third threshold. If yes, the floating IP address of the specified network port is floated to the floating network port, where the preset third threshold is small. The preset first threshold.
  7. 如权利要求1至4中任一项所述的实现服务器内部网口负载均衡的方法,其中,所述在所述服务器内部浮动指定网口上的浮动IP的步骤包括:The method for implementing the load balancing of the internal network port of the server according to any one of claims 1 to 4, wherein the step of floating the floating IP address on the designated network port inside the server comprises:
    选择网口总流量小于或等于预设的第三阈值的服务器内部网口作为浮动网口,将指定网口的浮动IP浮动至所述浮动网口,其中,预设的第三阈值小于预设的第一阈值。Select the internal network port of the server whose network traffic is less than or equal to the preset third threshold as the floating network port, and float the floating IP address of the specified network port to the floating network port. The preset third threshold is smaller than the preset. The first threshold.
  8. 一种实现服务器内部网口负载均衡的***,包括流量获取模块和浮动模块,其中A system for implementing load balancing of an internal network port of a server, including a traffic acquisition module and a floating module, wherein
    所述流量获取模块设置成:获取服务器内部指定网口的网口流量信息;The traffic acquisition module is configured to: obtain network port traffic information of a designated network port in the server;
    所述浮动模块设置成:根据预设的浮动策略及获得的所述指定网口的网口流量信息,在所述服务器内部浮动所述指定网口上的浮动IP。The floating module is configured to: float the floating IP address on the designated network port in the server according to the preset floating policy and the obtained network port traffic information of the specified network port.
  9. 如权利要求8所述的实现服务器内部网口负载均衡的***,其中The system for implementing load balancing of an internal network port of a server according to claim 8, wherein
    所述网口流量信息包括网口总流量;The network port traffic information includes a total network port traffic;
    所述浮动策略包括:当所述指定网口的网口总流量大于或等于预设的第一阈值时,在所述服务器内部浮动所述指定网口上的浮动IP。The floating policy includes: floating the floating IP on the designated network port in the server when the total network port of the specified network port is greater than or equal to a preset first threshold.
  10. 如权利要求8所述的实现服务器内部网口负载均衡的***,其中The system for implementing load balancing of an internal network port of a server according to claim 8, wherein
    所述网口流量信息包括网口浮动IP流量;The network port traffic information includes the network port floating IP traffic.
    所述浮动策略包括:当所述指定网口的网口浮动IP流量大于或等于预设的第二阈值时,在所述服务器内部浮动所述指定网口上的浮动IP。The floating policy includes: when the floating IP address of the network port of the specified network port is greater than or equal to a preset second threshold, floating the floating IP address on the designated network port in the server.
  11. 如权利要求8所述的实现服务器内部网口负载均衡的***,其中The system for implementing load balancing of an internal network port of a server according to claim 8, wherein
    所述网口流量信息包括网口总流量和网口浮动IP流量;The network port traffic information includes the total network port traffic and the network port floating IP traffic.
    所述浮动策略包括:当所述指定网口的网口总流量大于或等于预设的第一阈值,且所述指定网口的网口浮动IP流量大于或等于预设的第二阈值时,在所述服务器内部浮动所述指定网口上的浮动IP。The floating policy includes: when the total network traffic of the specified network port is greater than or equal to a preset first threshold, and the floating IP traffic of the network port of the designated network port is greater than or equal to a preset second threshold, Floating the floating IP address on the designated network port inside the server.
  12. 如权利要求8至11中任一项所述的实现服务器内部网口负载均衡的***,该***还包括:网口选择模块,The system for implementing load balancing of an internal network port of a server according to any one of claims 8 to 11, further comprising: a network port selection module,
    所述网口选择模块设置成:在所述流量获取模块获取服务器内部指定网 口的网口流量信息之前,选择服务器内部至少两个网口分别作为指定网口和浮动网口。The network port selection module is configured to: acquire the internal designated network of the server in the traffic acquisition module Before the network port traffic information of the interface, select at least two network ports on the server as the designated network port and the floating network port.
  13. 如权利要求12所述的实现服务器内部网口负载均衡的***,其中,所述浮动模块设置成按照如下方式在服务器内部浮动指定网口上的浮动IP:The system for implementing load balancing of the internal network port of the server according to claim 12, wherein the floating module is configured to float the floating IP address on the designated network port within the server as follows:
    判断所述浮动网口的网口总流量是否小于或等于预设的第三阈值,若是,将所述指定网口上的浮动IP浮动至所述浮动网口,其中,预设的第三阈值小于预设的第一阈值。Determining whether the total network port of the floating network port is less than or equal to a preset third threshold. If yes, the floating IP address of the specified network port is floated to the floating network port, where the preset third threshold is less than The preset first threshold.
  14. 如权利要求8至11中任一项所述的实现服务器内部网口负载均衡的***,其中,所述浮动模块设置成按照如下方式在服务器内部浮动指定网口上的浮动IP:The system for implementing load balancing of the internal network port of the server according to any one of claims 8 to 11, wherein the floating module is configured to float the floating IP on the designated network port within the server as follows:
    选择网口总流量小于或等于预设的第三阈值的服务器内部网口作为浮动网口,将所述指定网口上的浮动IP浮动至所述浮动网口,其中,预设的第三阈值小于预设的第一阈值。 Select the internal network port of the server whose network traffic is less than or equal to the preset third threshold as the floating network port, and float the floating IP address of the specified network port to the floating network port. The preset third threshold is smaller than the default. The preset first threshold.
PCT/CN2016/076277 2015-03-26 2016-03-14 Method and system for achieving load balancing of network port inside server WO2016150314A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510136450.8A CN106161267A (en) 2015-03-26 2015-03-26 A kind of method and system realizing server internal network interface load balancing
CN201510136450.8 2015-03-26

Publications (1)

Publication Number Publication Date
WO2016150314A1 true WO2016150314A1 (en) 2016-09-29

Family

ID=56978952

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076277 WO2016150314A1 (en) 2015-03-26 2016-03-14 Method and system for achieving load balancing of network port inside server

Country Status (2)

Country Link
CN (1) CN106161267A (en)
WO (1) WO2016150314A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7877625B2 (en) * 2008-04-16 2011-01-25 Invensys Systems, Inc. Efficient architecture for interfacing redundant devices to a distributed control system
CN102833591A (en) * 2012-08-09 2012-12-19 中兴通讯股份有限公司 Method and device for uninterrupted on-demand service in interactive personality television system
CN102929693A (en) * 2012-09-18 2013-02-13 杭州华为数字技术有限公司 Performance evaluation method and device for servers of whole equipment cabinet

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921369B (en) * 2006-08-08 2011-02-09 华为技术有限公司 Adapting method for network connection
CN101242254B (en) * 2008-02-26 2011-03-16 中兴通讯股份有限公司 Virtual redundant router system and method for transmitting virtual redundant routing protocol packet
CN102231712B (en) * 2011-07-22 2014-04-23 浙江宇视科技有限公司 Method for load sharing on encoder and encoder
CN104239548B (en) * 2014-09-23 2018-07-31 中电长城网际***应用有限公司 Database disaster tolerance system and data storage capacity disaster method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7877625B2 (en) * 2008-04-16 2011-01-25 Invensys Systems, Inc. Efficient architecture for interfacing redundant devices to a distributed control system
CN102833591A (en) * 2012-08-09 2012-12-19 中兴通讯股份有限公司 Method and device for uninterrupted on-demand service in interactive personality television system
CN102929693A (en) * 2012-09-18 2013-02-13 杭州华为数字技术有限公司 Performance evaluation method and device for servers of whole equipment cabinet

Also Published As

Publication number Publication date
CN106161267A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
EP2972855B1 (en) Automatic configuration of external services based upon network activity
US9402205B2 (en) Traffic forwarding method and system based on virtual switch cluster
US20180091408A1 (en) Interconnect congestion control in a storage grid
US10277454B2 (en) Handling failure of stacking system
US9237460B2 (en) Traffic control method and device
CN105007337A (en) Cluster system load balancing method and system thereof
CN106713378B (en) Method and system for providing service by multiple application servers
WO2010145574A1 (en) Method and system for recovering video monitoring service
CN104580120A (en) On-demand-service virtualization network intrusion detection method and device
US20150146735A1 (en) Packet forwarding in a star stacking system
CN108028828A (en) A kind of distributed denial of service ddos attack detection method and relevant device
WO2015067144A1 (en) Method and apparatus for software disposition
Thorat et al. Optimized self-healing framework for software defined networks
US20160344617A1 (en) Shutdown response system
US20170222931A1 (en) Dynamic allocation of flow table capacity
EP2787699A1 (en) Data transmission method, device, and system
US8046602B2 (en) Controlling connection status of network adapters
CN107947955A (en) One kind combines virtual tree mapping and central network robustness Enhancement Method
WO2016150314A1 (en) Method and system for achieving load balancing of network port inside server
JP2014022761A (en) Network system, information relay device, and packet distribution method
US10326638B2 (en) Implementing an energy proportional network architecture from desired network criteria
JP5571826B1 (en) Packet transfer processing apparatus and method
JP6272252B2 (en) Edge redundancy system and edge redundancy method
CN106130800B (en) Data frame processing method and device
CN110636091A (en) Data balancing method, device, equipment and storage medium for cloud storage cluster

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16767691

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16767691

Country of ref document: EP

Kind code of ref document: A1