CN106453116A - SDN (Software Defined Network) based least connection load balancing method and system - Google Patents

SDN (Software Defined Network) based least connection load balancing method and system Download PDF

Info

Publication number
CN106453116A
CN106453116A CN201610957458.5A CN201610957458A CN106453116A CN 106453116 A CN106453116 A CN 106453116A CN 201610957458 A CN201610957458 A CN 201610957458A CN 106453116 A CN106453116 A CN 106453116A
Authority
CN
China
Prior art keywords
server
session
connection
protocol
session protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610957458.5A
Other languages
Chinese (zh)
Other versions
CN106453116B (en
Inventor
翟跃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN SUPERELECTRON TECHNOLOGY Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201610957458.5A priority Critical patent/CN106453116B/en
Publication of CN106453116A publication Critical patent/CN106453116A/en
Application granted granted Critical
Publication of CN106453116B publication Critical patent/CN106453116B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1029Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1031Controlling of the operation of servers by a load balancer, e.g. adding or removing servers that serve requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1046Joining mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides an SDN (Software Defined Network) based least connection load balancing method and system. The method is applied to a controller, and comprises the steps of setting a least connection load balancing configuration table and a session protocol table in advance; when a server protocol message reported by a switch is received, generating session protocol table items in the session protocol table according to the server protocol message; searching the session protocol table when a service request is acquired, and if a matched session protocol table item is unavailable and the connection number of a requested server is less than a connection number threshold, selecting the requested server to perform connection; and if the connection number of the requested server reaches the connection number threshold, selecting a server with the smallest server connection number in the session protocol table to perform redirected connection. The method provided by the invention can perform unified calculation on servers in the whole network, and requests with great load differences are smoothly distributed to each server or link.

Description

A kind of Smallest connection load-balancing method based on SDN and system
Technical field
Embodiment of the present invention is related to data communication technology field, more particularly to a kind of based on SDN (Software Defined Network, software defined network) Smallest connection load-balancing method and system.
Background technology
Load balancing provides a kind of bandwidth of cheap effectively transparent method extended network equipment server, increase and gulps down The amount of telling, Strengthens network data-handling capacity, the motility for improving network and availability.Dispatching algorithm refers to needing load balancing On flow, server according to certain strategy distribution in specified server zone or certain link of given link group, make Obtain each server or link keeps load balancing as much as possible.
Dispatching algorithm is to be connected as granularity, and all messages of same connection can all be distributed to same server or link On.This fine-grained scheduling can avoid sudden the causing between server or link of unique user access to a certain extent Laod unbalance.Load-balancing technique holds abundant load balance scheduling algorithm.The load realized by different dispatching algorithms is equal Weighing apparatus effect difference, can need according to specific application scenarios using different algorithms.Wherein Smallest connection (Least Connection Scheduling) load-balancing algorithm, be by load-balancing device according to currently each server or link Connection number distributes to new connection, to estimate the loading condition of server or link, the server or link for connecting number minimum. The Smallest connection load-balancing algorithm can the request of load difference is larger (connection keep duration differ greatly) smooth be distributed to On each server or link.
In implementing the present invention, it may, inventor has found prior art, and at least there are the following problems:
Traditional Smallest connection load-balancing algorithm be based on a certain equipment, it is impossible to the server of whole network is united One calculates.
It should be noted that above the introduction of technical background is intended merely to convenient technical scheme is carried out clear, Complete explanation, and facilitate the understanding of those skilled in the art and illustrate.Can not be merely because these schemes be the present invention's Background section is set forth and thinks that technique scheme is known to those skilled in the art.
Content of the invention
For the problems referred to above, the purpose of embodiment of the present invention is to provide a kind of Smallest connection load based on SDN all Weighing apparatus method and system, can unifiedly calculate to the server of whole network, be distributed to smooth for request larger for load difference On each server or link, and whole strategy is efficient and simple.
For achieving the above object, embodiment of the present invention provides a kind of Smallest connection load-balancing method based on SDN, institute The method of stating is applied on the controller in SDN, including:Controller pre-sets Smallest connection load balancing allocation list and session association View table, the Smallest connection load balancing allocation list includes to connect number threshold value, and the session protocol table includes the connection of server Number;When the server protocol message that the switch for receiving in SDN is reported, according to the server protocol message is generated Session protocol list item in session protocol table;When the service request of client transmission is got, looked into according to the service request Session protocol table is looked for, if there is no the session protocol list item for mating in the session protocol table, if please in the service request The connection number of the server that asks then selects the server of the request to be attached less than the connection number threshold value;If described The connection number of the server that asks in service request has reached the connection number threshold value, then select to service in the session protocol table The server of device connection number minimum redirects connection.
Further, the configuration item of the Smallest connection load balancing allocation list include Smallest connection load-balancing function and Connection number threshold value, wherein the Smallest connection load-balancing function are used for arranging opening and closing Smallest connection load balancing work( Can, the connection number threshold value is used for arranging connection number threshold value.
Further, the session protocol table includes server IP field, connection digital section, protocol fields, client ip Field and session field, wherein server IP field are used for indicating server ip, connection digital section to be used for indicating this server Connection number, protocol fields are used for indicating service agreement number, and client IP field is used for indicating client ip, and session field is used for referring to Bright session id.
Further, described when the server protocol message that the switch for receiving in SDN is reported, according to the service Device protocol massages generate the session protocol list item in the session protocol table, including:Switch is by privately owned Experimenter message sets up switch and control in SDN to MAC Address and the port id of controller report switch oneself The passage of device processed;The server protocol message of the server connected to controller report respectively by switch, controller respectively from The server protocol message extracts server ip, client ip, session id and service protocol number, and the connection of calculation server Number, generates the session protocol list item in the session protocol table.
Further, described when the service request of client transmission is got, session is searched according to the service request Agreement table, if not having the session protocol list item for mating in the session protocol table, if the clothes that asks in the service request The connection number of business device then selects the server of the request to be attached less than the connection number threshold value;If the service please Ask the connection number of the server of middle request that the connection number threshold value has been reached, then select server connection in the session protocol table The minimum server of number redirects connection, including:When client sends service request by SDN to server, The service request intercepted and captured by controller, and by the client ip in the service request, the server ip of request, session id kimonos Business protocol number is mated with the session protocol list item in the session protocol table;If having coupling in the session protocol table Session protocol list item, then do not process to the service request;If there is no the session protocol for mating in the session protocol table List item, then judge the connection number of the server of request;If the connection number of the server that asks in the service request is less than institute Connection number threshold value is stated, is then selected the server of the request to be attached, and the connection number of the server of the request is added one; If the connection number of the server that asks in the service request has reached the connection number threshold value, the session protocol is selected In table, the server of server connections minimum redirects connection, and the connection number of the server of selection is added one.
Further, methods described also includes:When client sends service disruption request by SDN to server When, controller intercepts and captures the service disruption request, and the server of the client ip during the service disruption is asked, request IP, session id and service protocol number are mated with the session protocol list item in the session protocol table;If assisting in the session There is no the session protocol list item for mating in view table, then beg off from doing process to the service disruption;If in the session protocol table In have the session protocol list item of coupling, then delete the session protocol list item of coupling, and the connection number of the server of request subtracted one.
For achieving the above object, embodiment of the present invention also provides a kind of Smallest connection SiteServer LBS based on SDN, Including:Switch, for setting up passage with controller, and to controller report server protocol message;Controller, for advance Smallest connection load balancing allocation list and session protocol table are set, and the Smallest connection load balancing allocation list includes to connect number threshold Value, the session protocol table includes the connection number of server;When the server protocol message that the switch for receiving in SDN is reported When, the session protocol list item in the session protocol table is generated according to the server protocol message;Send out when client is got During the service request that send, session protocol table is searched according to the service request, if do not mate in the session protocol table Session protocol list item, if the connection number of the server that asks in the service request is selected less than the connection number threshold value The server of the request is attached;If the connection number of the server that asks in the service request has reached the connection Number threshold value, then select the server of server connections minimum in the session protocol table to redirect connection.
Therefore, a kind of Smallest connection load-balancing method and system that embodiment of the present invention is provided, by control Device can carry out unified calculation connection number to the server of whole network, so as to when the server that asks in the service request of client When connection number threshold value is reached, in time service request can be redirected to the few server of connection number, and whole strategy is high Effect and simple.
Description of the drawings
In order to be illustrated more clearly that embodiment of the present invention or technical scheme of the prior art, below will be to embodiment Or accompanying drawing to be used simply is introduced one by one needed for description of the prior art, it should be apparent that, drawings in the following description are Some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, also Other accompanying drawings can be obtained according to these accompanying drawings.
The configuration diagram of the Smallest connection SiteServer LBS based on SDN that Fig. 1 is provided for embodiment of the present invention;
The schematic flow sheet of the Smallest connection load-balancing method based on SDN that Fig. 2 is provided for embodiment of the present invention;
The schematic diagram of the Experimenter message format that Fig. 3 is extended for embodiment of the present invention;
Fig. 4 is the application example schematic diagram based on Fig. 2 method.
Fig. 5 is that the flow process of the Smallest connection load-balancing method based on SDN that another embodiment of the present invention is provided is illustrated Figure.
Specific embodiment
Purpose, technical scheme and advantage for making embodiment of the present invention is clearer, implements below in conjunction with the present invention Accompanying drawing in mode, is clearly and completely described to the technical scheme in embodiment of the present invention, it is clear that described reality The mode of applying is a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, ability The every other embodiment obtained under the premise of creative work is not made by domain those of ordinary skill, belongs to the present invention The scope of protection.
SDN is a kind of new network of Emulex network innovation framework, and which passes through open flows (OpenFlow) by network equipment chain of command and number Separate according to face, by the controller management that concentrates, underlay network device (router, switch, fire wall), screen need not be relied on The difference from underlay network device is covered, it is achieved thereby that the flexible control of network traffics, makes network become more as pipeline Plus intelligence.SDN is to separate the control on the network equipment, by the controller management that concentrates, need not rely on bottom-layer network Equipment (router, switch, fire wall), shields the difference from underlay network device.Additionally, control is to open completely , user can be with self-defined network route and transmission rule strategy, so as to more flexibly and intelligent.
Embodiment of the present invention provides a kind of Smallest connection SiteServer LBS based on SDN, as shown in figure 1, SDN Include controller and switch, wherein the switch in SDN is by the controller management that concentrates.Additionally, client kimonos Business device connects with switch respectively, is communicated by SDN.
Embodiment of the present invention provides a kind of Smallest connection load-balancing method based on SDN.Fig. 2 is referred to, the side Method is applied on the controller in SDN, is comprised the following steps:
Step S21:Controller pre-sets the Smallest connection load balancing allocation list based on SDN and session protocol table.
In the present embodiment, controller pre-sets Smallest connection load balancing allocation list, and the Smallest connection load is equal Configuration item in weighing apparatus allocation list includes Smallest connection load-balancing function and connection number threshold value, wherein Smallest connection load balancing work( Can be used for arranging and Smallest connection load-balancing function is opened and closed, connection number threshold value is used for arranging connection number threshold value, default value Can be 128 connection numbers, concrete as shown in table 1.
Table 1
In the present embodiment, controller also pre-sets session protocol table, and the session protocol table includes server ip word Section, connection digital section, protocol fields, client IP field and session field, concrete as shown in table 2.
Table 2
Field Implication
Server IP field (is indexed) Indicate server ip address
Connection digital section Indicate the connection number of this server
Protocol fields Indicate service agreement number
Client IP field Indicate client ip address
Session field Indicate session id
Step S22:Controller and switch set up passage.
In the present embodiment, SDN switch needs to initialize open flows firstly the need of the passage that sets up with controller (OpenFlow) passage.Switch passes through MAC ground of the privately owned Experimenter message to controller report switch oneself Location and port id.
Compared to the prior art, present embodiment is extended to privately owned Experimenter message, extension Experimenter message format is as shown in figure 3, Experimenter value is needed to ONF tissue application for 255; Experimenter type value is shown to be from switch to controller for 1, and Experimenter type value is shown to be from control for 2 Device processed is to switch.Additionally, in the Experimenter message of extension, also including MAC Address (the Own MAC of oneself Address) and port id (Port ID), wherein port id is maximum supports 128.
Step S23:Controller receives the server protocol message that the switch in SDN is reported, and is assisted according to the server View message generates the session protocol list item in the session protocol table for pre-setting.
In the present embodiment, in SDN, after the completion of switch and the Path Setup of controller, switch is on controller The server protocol message of the connected server of report, server protocol message enters into controller, and controller extracts clothes respectively Business device IP, client ip, session id and service protocol number, and the connection number of each server is calculated, so as to generate session protocol Session protocol list item in table.
Step S24:When controller gets the service request of client transmission, session protocol is searched according to service request Table, if there are the session protocol list item of coupling, ignores the service request;If the session protocol list item not mated, is carried out Step S25.
In the present embodiment, when client sends service request by SDN to server, controller is intercepted and captured should Service request, the service request includes client ip, the server ip of request, session id and service protocol number.
Controller by the client ip in service request, server ip, session id and services protocol number and session protocol table Mated.If there are the session protocol list item of coupling, then the service request that this time intercepts and captures is not new service request, therefore neglects Slightly the service request, need not be operated.
Step S25, judges the connection number of the server of request, if less than connection number threshold value, carries out step S26;If Connection number threshold value is reached, carries out step S27.
In the present embodiment, controller is by the client ip in service request, server ip, session id and service agreement Number and session protocol table mated, if the session protocol list item not mated, the service request that this time intercepts and captures is new Whether service request, need the connection number that continues to judge the server that asks in the service request to reach and be pre-configured with Connection number threshold value in Smallest connection load balancing allocation list.
Step S26, selects the server of request to be attached, and the connection number of the server of request is added one.
In the present embodiment, if the connection number of the server of request is less than the Smallest connection load balancing being pre-configured with Connection number threshold value in allocation list, then select the server that asks to be attached according to server ip, and the service by request The connection number of device adds one.
Step S27, selects the server of connection number minimum to redirect connection, and the connection number by the server for selecting Plus one.
In the present embodiment, if the connection number of the server of request reaches the Smallest connection load balancing being pre-configured with Connection number threshold value in allocation list, then the server that asks saturation, it is impossible to be attached with client.Meeting searched by controller Connect the server of number minimum in words agreement table, the server that service request is redirected to the connection number minimum is attached, And the connection number of the server of selection is added one.
Fig. 4 is the application example schematic diagram based on Fig. 2 method.As shown in figure 4, FTP (File Transfer Protocol, file transfer protocol (FTP)) client communicated by SDN and ftp server, the wherein connection number of ftp server 1 For 100, the connection number of ftp server 2 is 128.
It is 128 to pre-set connection number threshold value.When the service request of ftp client transmission intercepted and captured by the controller in SDN, please When seeking connection ftp server 2, the connection number due to ftp server 2 has reached connection number threshold value for 128, therefore controller FTP is redirected and ftp server 1 connects.
Another embodiment of the present invention also provides a kind of Smallest connection load-balancing method based on SDN.Refer to figure 5, methods described is applied on the controller in SDN, is comprised the following steps:
Step S51~S53 is similar with step S21~S23, therefore will not be described here.
Step S54:If controller gets the service disruption request of client transmission, searched according to service disruption request Session protocol table, if the session protocol list item not mated, ignores service disruption request;Session association if there are coupling View list item, carries out step S55.
In the present embodiment, when client sends service disruption request by SDN to server, controller cuts The service disruption request is obtained, the service disruption request includes client ip, the server ip of request, session id and service agreement Number.
Controller service disruption is asked in client ip, server ip, session id and service protocol number and session association View table is mated.If the session protocol list item not mated, ignore the service disruption request.
S55:The session protocol list item of coupling is deleted, and the connection number of the server of request is subtracted one.
By the Smallest connection load-balancing method based on SDN in above-described embodiment, controller can be to whole network Server is unifiedly calculated, and can be distributed on each server or link smooth for request larger for load difference, so as to Improve the load balance ability of whole network.
Refer to Fig. 1.Embodiment of the present invention provides a kind of Smallest connection SiteServer LBS based on SDN, including:
Switch, for setting up passage with controller, and to controller report server protocol message;
Controller, for pre-setting Smallest connection load balancing allocation list and session protocol table, the Smallest connection is born Carrying equilibrium allocation table includes to connect number threshold value, and the session protocol table includes the connection number of server;When receiving the friendship in SDN Change planes the server protocol message for reporting when, generate the session association in the session protocol table according to the server protocol message View list item;When the service request of client transmission is got, session protocol table is searched according to the service request, if described There is no the session protocol list item for mating in session protocol table, if the connection number of the server that asks in the service request is less than The connection number threshold value, then select the server of the request to be attached;If the server that asks in the service request Connection number reached the connection number threshold value, then select the server of the minimum of server connections in the session protocol table to enter Row redirects connection.
Specifically,
The switch, by privately owned Experimenter message to the controller report switch MAC Address of oneself And port id, set up the passage with controller;The server protocol message of the server for being connected to controller report respectively, The server protocol message includes server ip, client ip, session id and service protocol number, so that controller generation is described Session protocol list item in session protocol table.
The controller, when client sends service request by SDN to server, intercepting and capturing the service please Ask, and the client ip in the service request, the server ip of request, session id and service protocol number are assisted with the session Session protocol list item in view table is mated;If having the session protocol list item of coupling in the session protocol table, to institute State service request not process;If there is no the session protocol list item for mating in the session protocol table, the clothes that asks are judged The connection number of business device;If the connection number of the server that asks in the service request is selected less than the connection number threshold value The server of the request is attached, and the connection number of the server of the request is added one;If in the service request The connection number of the server of request has reached the connection number threshold value, then select in the session protocol table server connections most Little server redirects connection, and the connection number of the server of selection is added one.
The controller, is additionally operable to:When client sends service disruption request by SDN to server, intercept and capture The service disruption request, and the client ip during the service disruption is asked, the server ip of request, session id and service Protocol number is mated with the session protocol list item in the session protocol table;If not mating in the session protocol table Session protocol list item, then beg off from doing process to the service disruption;If there is the session association of coupling in the session protocol table View list item, then delete the session protocol list item of coupling, and the connection number of the server of request subtracted one.
The particular technique details of the above-mentioned Smallest connection SiteServer LBS based on SDN being related to and based on SDN's Similar in Smallest connection load-balancing method, therefore no longer specifically repeat.
Therefore, a kind of Smallest connection load-balancing method based on SDN and system that embodiment of the present invention is provided, Unified calculation connection number can be carried out by controller to the server of whole network, so as to when request in the service request of client Server when reaching connection number threshold value, in time service request can be redirected to and connect the few server of number, and whole Individual strategy is efficient and simple.
Each embodiment in this specification is all described by the way of going forward one by one, identical similar between each embodiment Part mutually referring to what each embodiment was stressed is the difference with other embodiment.
Finally it should be noted that:Above with the purpose for describing, ability is supplied to the description of the various embodiments of the present invention Field technique personnel.It is not intended to exhaustion or be not intended to limit the invention to single disclosed embodiment.As above institute State, the various replacements of the present invention and change are will be apparent for above-mentioned technology one of ordinary skill in the art.Therefore, Although specifically discuss the embodiment of some alternatives, other embodiment will be apparent, or ability Field technique personnel relatively easily draw.It is contemplated that all replacements of the present invention for having discussed including here, modification and Change, and the other embodiment in the spirit and scope of above-mentioned application that falls.

Claims (10)

1. a kind of Smallest connection load-balancing method based on SDN, it is characterised in that methods described is applied to the control in SDN On device, including:
Controller pre-sets Smallest connection load balancing allocation list and session protocol table, the Smallest connection load balancing configuration Table includes to connect number threshold value, and the session protocol table includes the connection number of server;
When the server protocol message that the switch for receiving in SDN is reported, institute is generated according to the server protocol message State the session protocol list item in session protocol table;
When the service request of client transmission is got, session protocol table is searched according to the service request, if in the meeting There is no the session protocol list item for mating in words agreement table, if the connection number of the server that asks in the service request is less than institute Connection number threshold value is stated, then selects the server of the request to be attached;If the server that asks in the service request Connection number has reached the connection number threshold value, then select the server of server connections minimum in the session protocol table to carry out Redirect connection.
2. the Smallest connection load-balancing method based on SDN according to claim 1, it is characterised in that described minimum even The configuration item for connecing load balancing allocation list includes Smallest connection load-balancing function and connection number threshold value, the wherein Smallest connection Load-balancing function is used for arranging opening and closing Smallest connection load-balancing function, and the connection number threshold value is used for arranging connection Number threshold value.
3. the Smallest connection load-balancing method based on SDN according to claim 1 and 2, it is characterised in that the session Agreement table includes server IP field, connection digital section, protocol fields, client IP field and session field, wherein server IP field is used for indicating server ip, and connecting digital section is used for indicating the connection number of this server, and protocol fields are used for indicating clothes Business protocol number, client IP field is used for indicating client ip, and session field is used for indicating session id.
4. the Smallest connection load-balancing method based on SDN according to claim 3, it is characterised in that described when receiving During the server protocol message that the switch in SDN is reported, the session protocol is generated according to the server protocol message Session protocol list item in table, including:
Switch passes through MAC Address and port id of the privately owned Experimenter message to controller report switch oneself, To set up the passage of switch and controller in SDN;
The server protocol message of the server connected to controller report respectively by switch, controller is respectively from the service Device protocol massages extract server ip, client ip, session id and service protocol number, and the connection number of calculation server, generate Session protocol list item in the session protocol table.
5. the Smallest connection load-balancing method based on SDN according to claim 4, it is characterised in that described when obtaining To client send service request when, according to the service request search session protocol table, if in the session protocol table There is no the session protocol list item for mating, if the connection number of the server that asks in the service request is less than the connection number threshold Value, then select the server of the request to be attached;If the connection number of the server that asks in the service request reaches To the connection number threshold value, then the server of server connections minimum in the session protocol table is selected to redirect even Connect, including:
When client sends service request by SDN to server, the service request intercepted and captured by controller, and will be described Meeting in client ip in service request, the server ip of request, session id and service protocol number and the session protocol table Words protocol item is mated;
If there is the session protocol list item of coupling in the session protocol table, the service request is not processed;
If there is no the session protocol list item for mating in the session protocol table, the connection number of the server of request is judged;
If the connection number of the server that asks in the service request selects the request less than the connection number threshold value Server is attached, and the connection number of the server of the request is added one;
If the connection number of the server that asks in the service request has reached the connection number threshold value, the session is selected In agreement table, the server of server connections minimum redirects connection, and the connection number of the server of selection is added one.
6. the Smallest connection load-balancing method based on SDN according to claim 3, it is characterised in that methods described is also Including:
When client sends service disruption request by SDN to server, the service disruption request intercepted and captured by controller, And the client ip in asking the service disruption, the server ip of request, session id and service protocol number and the session Session protocol list item in agreement table is mated;
If not having the session protocol list item for mating in the session protocol table, beg off from doing process to the service disruption;
If there is the session protocol list item of coupling in the session protocol table, the session protocol list item of coupling is deleted, and please The connection number of the server that asks subtracts one.
7. a kind of Smallest connection SiteServer LBS based on SDN, it is characterised in that include:
Switch, for setting up passage with controller, and to controller report server protocol message;
Controller, for pre-setting Smallest connection load balancing allocation list and session protocol table, the Smallest connection load is equal Weighing apparatus allocation list includes to connect number threshold value, and the session protocol table includes the connection number of server;When receiving the switch in SDN During the server protocol message for reporting, the session protocol table in the session protocol table is generated according to the server protocol message ?;When the service request of client transmission is got, session protocol table is searched according to the service request, if in the session There is no the session protocol list item for mating in agreement table, if the connection number of the server that asks in the service request is less than described Connection number threshold value, then select the server of the request to be attached;If the company of the server that asks in the service request Connect number and the connection number threshold value has been reached, then select the server of server connections minimum in the session protocol table to carry out weight Orientation connection.
8. the Smallest connection SiteServer LBS based on SDN according to claim 7, it is characterised in that the switch, Specifically for passing through MAC Address and port id of the privately owned Experimenter message to controller report switch oneself, come Set up the passage with controller;The server protocol message of the server for being connected to controller report respectively, the server Protocol massages include server ip, client ip, session id and service protocol number, so that controller generates the session protocol table In session protocol list item.
9. the Smallest connection SiteServer LBS based on SDN according to claim 8, it is characterised in that the controller, Specifically for:
When client sends service request by SDN to server, the service request is intercepted and captured, and please by the service Session protocol in the client ip asked, the server ip of request, session id and service protocol number and the session protocol table List item is mated;If there is the session protocol list item of coupling in the session protocol table, the service request not being done and is located Reason;If there is no the session protocol list item for mating in the session protocol table, the connection number of the server of request is judged;If The connection number of the server that asks in the service request then selects the server of the request to enter less than the connection number threshold value Row connection, and the connection number of the server of the request is added one;If the connection of the server that asks in the service request Number has reached the connection number threshold value, then select the server of server connections minimum in the session protocol table to be reset To connection, and the connection number of the server of selection is added one.
10. the Smallest connection SiteServer LBS based on SDN according to claim 8, it is characterised in that the control Device, is additionally operable to:
When client sends service disruption request by SDN to server, service disruption request is intercepted and captured, and by institute State the client ip in service disruption request, the server ip of request, session id and service protocol number and the session protocol table In session protocol list item mated;If there is no the session protocol list item for mating in the session protocol table, to described Service disruption begs off from doing process;If there is the session protocol list item of coupling in the session protocol table, the meeting of coupling is deleted Words protocol item, and the connection number of the server of request is subtracted one.
CN201610957458.5A 2016-11-03 2016-11-03 A kind of Smallest connection load-balancing method and system based on SDN Active CN106453116B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610957458.5A CN106453116B (en) 2016-11-03 2016-11-03 A kind of Smallest connection load-balancing method and system based on SDN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610957458.5A CN106453116B (en) 2016-11-03 2016-11-03 A kind of Smallest connection load-balancing method and system based on SDN

Publications (2)

Publication Number Publication Date
CN106453116A true CN106453116A (en) 2017-02-22
CN106453116B CN106453116B (en) 2019-11-26

Family

ID=58179508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610957458.5A Active CN106453116B (en) 2016-11-03 2016-11-03 A kind of Smallest connection load-balancing method and system based on SDN

Country Status (1)

Country Link
CN (1) CN106453116B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846445A (en) * 2017-09-20 2018-03-27 南京邮电大学 A kind of server load balancing method based on SDN
CN107948273A (en) * 2017-11-21 2018-04-20 浙江宇视科技有限公司 A kind of load balancing and safety access method and system based on SDN
CN108667730A (en) * 2018-04-17 2018-10-16 东软集团股份有限公司 Message forwarding method, device, storage medium based on load balancing and equipment
CN108696554A (en) * 2017-04-10 2018-10-23 北京京东尚科信息技术有限公司 Load-balancing method and device
CN108924212A (en) * 2018-06-27 2018-11-30 郑州云海信息技术有限公司 A kind of load-balancing method, system, device and computer readable storage medium
CN110134513A (en) * 2019-04-17 2019-08-16 平安科技(深圳)有限公司 Load-balancing method, device, computer equipment and storage medium
CN110620798A (en) * 2018-06-19 2019-12-27 北京京东尚科信息技术有限公司 Control method, system, equipment and storage medium for FTP connection
CN112291310A (en) * 2020-10-14 2021-01-29 杭州迪普科技股份有限公司 Method and device for counting connection number
CN115334136A (en) * 2022-07-05 2022-11-11 北京天融信网络安全技术有限公司 Connection aging control method, system, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795805A (en) * 2014-02-27 2014-05-14 中国科学技术大学苏州研究院 Distributed server load balancing method based on SDN
CN104158758A (en) * 2014-08-26 2014-11-19 上海斐讯数据通信技术有限公司 Load balancing processing method and system based on user message time feedback in SDN network
CN104980361A (en) * 2014-04-01 2015-10-14 华为技术有限公司 Load balancing method, device, and system
US20160080505A1 (en) * 2014-09-16 2016-03-17 Telefonaktiebolaget L M Ericsson (Publ) Method and system of session-aware load balancing
CN105721577A (en) * 2016-02-15 2016-06-29 安徽大学 Server load balancing method for software defined network
CN105791113A (en) * 2016-02-25 2016-07-20 上海斐讯数据通信技术有限公司 SDN (Software Defined Network)-based multi-link delay equalization method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795805A (en) * 2014-02-27 2014-05-14 中国科学技术大学苏州研究院 Distributed server load balancing method based on SDN
CN104980361A (en) * 2014-04-01 2015-10-14 华为技术有限公司 Load balancing method, device, and system
CN104158758A (en) * 2014-08-26 2014-11-19 上海斐讯数据通信技术有限公司 Load balancing processing method and system based on user message time feedback in SDN network
US20160080505A1 (en) * 2014-09-16 2016-03-17 Telefonaktiebolaget L M Ericsson (Publ) Method and system of session-aware load balancing
CN105721577A (en) * 2016-02-15 2016-06-29 安徽大学 Server load balancing method for software defined network
CN105791113A (en) * 2016-02-25 2016-07-20 上海斐讯数据通信技术有限公司 SDN (Software Defined Network)-based multi-link delay equalization method and system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696554A (en) * 2017-04-10 2018-10-23 北京京东尚科信息技术有限公司 Load-balancing method and device
CN107846445A (en) * 2017-09-20 2018-03-27 南京邮电大学 A kind of server load balancing method based on SDN
CN107948273B (en) * 2017-11-21 2021-02-02 浙江宇视科技有限公司 SDN-based load sharing and secure access method and system
CN107948273A (en) * 2017-11-21 2018-04-20 浙江宇视科技有限公司 A kind of load balancing and safety access method and system based on SDN
CN108667730A (en) * 2018-04-17 2018-10-16 东软集团股份有限公司 Message forwarding method, device, storage medium based on load balancing and equipment
CN108667730B (en) * 2018-04-17 2021-02-12 东软集团股份有限公司 Message forwarding method, device, storage medium and equipment based on load balancing
CN110620798B (en) * 2018-06-19 2023-08-04 北京京东尚科信息技术有限公司 Control method, system, equipment and storage medium for FTP connection
CN110620798A (en) * 2018-06-19 2019-12-27 北京京东尚科信息技术有限公司 Control method, system, equipment and storage medium for FTP connection
CN108924212A (en) * 2018-06-27 2018-11-30 郑州云海信息技术有限公司 A kind of load-balancing method, system, device and computer readable storage medium
CN108924212B (en) * 2018-06-27 2021-06-29 郑州云海信息技术有限公司 Load balancing method, system, device and computer readable storage medium
CN110134513A (en) * 2019-04-17 2019-08-16 平安科技(深圳)有限公司 Load-balancing method, device, computer equipment and storage medium
CN110134513B (en) * 2019-04-17 2023-08-22 平安科技(深圳)有限公司 Load balancing method, device, computer equipment and storage medium
CN112291310A (en) * 2020-10-14 2021-01-29 杭州迪普科技股份有限公司 Method and device for counting connection number
CN112291310B (en) * 2020-10-14 2022-04-26 杭州迪普科技股份有限公司 Method and device for counting connection number
CN115334136A (en) * 2022-07-05 2022-11-11 北京天融信网络安全技术有限公司 Connection aging control method, system, equipment and storage medium
CN115334136B (en) * 2022-07-05 2024-02-02 北京天融信网络安全技术有限公司 Connection aging control method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN106453116B (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN106453116A (en) SDN (Software Defined Network) based least connection load balancing method and system
CN104243337B (en) A kind of method and device across cluster load balance
CN208656813U (en) A kind of enterprise branch office's access request processing system
CN101997826A (en) Routing methods of control net element, forwarding net element and internet protocol network
CN105099898B (en) A kind of PPPOE message forwarding methods and BRAS servers
CN104038447B (en) A kind of message transmitting method and equipment
CN103795805A (en) Distributed server load balancing method based on SDN
CN101335709A (en) Method for implementing load sharing among flow analysis servers and shunting equipment
CN105337973B (en) Method for message interaction and its system
US20140036726A1 (en) Network, data forwarding node, communication method, and program
CN105376246A (en) Adaptive generation management system and method of security strategy based on SDN
CN104852859B (en) A kind of aggregation interface method for processing business and equipment
CN103746925A (en) FiWi converged network and communication method based on FiWi converged network
CN105637910B (en) Downstream data processing method and device, system
CN104521188B (en) A kind of methods, devices and systems for setting up light bypass
CN108989232A (en) Message interaction method and device in SDN
CN106375355A (en) Load balancing processing method and apparatus
CN105450697B (en) A kind of more equipment are same to shield sharing method, device and server
CN106850803A (en) A kind of WRR system and algorithm based on SDN
CN106209633B (en) Message forwarding method and device
CN107733976A (en) A kind of dispatching method for being used to gather grid automation operation system state
WO2020132033A1 (en) Management of live media connections
JP6892206B2 (en) Multipoint communication systems and methods and programs
CN107682265B (en) Message routing method and device of payment system
CN108024290B (en) Tunnel adjusting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201029

Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee after: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210408

Address after: 518107 5th floor, building 7, huidebao Industrial Park, south of outer ring road, Baihua community, Guangming Street, Guangming New District, Shenzhen City, Guangdong Province

Patentee after: SHENZHEN SUPERELECTRON TECHNOLOGY Co.,Ltd.

Address before: 318015 no.2-3167, area a, nonggangcheng, 2388 Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee before: Taizhou Jiji Intellectual Property Operation Co.,Ltd.