CN106453116B - A kind of Smallest connection load-balancing method and system based on SDN - Google Patents

A kind of Smallest connection load-balancing method and system based on SDN Download PDF

Info

Publication number
CN106453116B
CN106453116B CN201610957458.5A CN201610957458A CN106453116B CN 106453116 B CN106453116 B CN 106453116B CN 201610957458 A CN201610957458 A CN 201610957458A CN 106453116 B CN106453116 B CN 106453116B
Authority
CN
China
Prior art keywords
server
session
protocol
request
connection
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.)
Active
Application number
CN201610957458.5A
Other languages
Chinese (zh)
Other versions
CN106453116A (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)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of Smallest connection load-balancing method and system based on SDN, and wherein method is applied on controller, comprising: presets Smallest connection load balancing allocation list and session protocol table;When receiving the server protocol message that interchanger reports, the session protocol list item in session protocol table is generated according to server protocol message;When getting service request, session protocol table is searched, if, if the connection number of the server of request is less than connection number threshold value, the server of request is selected to be attached without matched session protocol list item;If the connection number of the server of request has reached connection number threshold value, the smallest server of server connections in session protocol table is selected to redirect connection.The present invention can unifiedly calculate the server of whole network, and the biggish request of load difference is smoothly distributed to each server or chain road.

Description

A kind of Smallest connection load-balancing method and system based on SDN
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 technique
Load balancing provides the bandwidth of a kind of cheap effectively transparent method extended network equipment and server, increase gulps down The amount of spitting, Strengthens network data-handling capacity, the flexibility and availability for improving network.Dispatching algorithm refers to needing load balancing Flow makes according to certain strategy distribution to the server in specified server zone or certain chain of given link group road It obtains each server or link keeps load balancing as much as possible.
For dispatching algorithm to be connected as granularity, all messages of same connection can all be distributed to the same server or link On.This fine-grained scheduling to a certain extent can be to avoid sudden the causing between server or link of single user's access Laod unbalance.Load-balancing technique holds load balance scheduling algorithm abundant.The load that different dispatching algorithms are realized is equal The effect that weighs is different, can need according to specific application scenarios using different algorithms.Wherein Smallest connection (Least Connection Scheduling) load-balancing algorithm is by load-balancing device according to current each server or link Connection number estimates the loading condition of server or link, and the smallest server of connection number or link are distributed in new connection. The Smallest connection load-balancing algorithm can the request of load difference is larger (connection keep duration differ greatly) be smoothly distributed to Each server or chain road.
In implementing the present invention, it may, inventor has found the prior art, at least there are the following problems:
Traditional Smallest connection load-balancing algorithm can not be united to the server of whole network based on a certain equipment One calculates.
It should be noted that the above description of the technical background be intended merely to it is convenient to technical solution of the present invention carry out it is clear, Complete explanation, and facilitate the understanding of those skilled in the art and illustrate.Cannot merely because these schemes of the invention Background technology part is expounded and thinks that above-mentioned technical proposal is known to those skilled in the art.
Summary of the invention
In view of the above-mentioned problems, embodiment of the present invention to be designed to provide a kind of Smallest connection load based on SDN equal Weigh method and system, can unifiedly calculate to the server of whole network, and the biggish request of load difference is smoothly distributed to Each server or chain road, and entire strategy is efficient and simple.
To achieve the above object, embodiment of the present invention provides a kind of Smallest connection load-balancing method based on SDN, institute Method is stated applied on the controller in SDN, comprising: controller presets Smallest connection load balancing allocation list and session association Table is discussed, the Smallest connection load balancing allocation list includes connection number threshold value, and the session protocol table includes the connection of server Number;When the server protocol message that the interchanger received in SDN reports, according to server protocol message generation Session protocol list item in session protocol table;When getting the service request of client transmission, looked into according to the service request Session protocol table is looked for, if there is no matched session protocol list item in the session protocol table, if asked in the service request The connection number for the server asked is less than the connection number threshold value, then the server of the request is selected to be attached;If described The connection number for the server requested in service request has reached the connection number threshold value, then selects to service in the session protocol table The smallest server of device connection number 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 opens and closes Smallest connection load balancing function for being arranged Can, the connection number threshold value is for being arranged 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 is for indicating server ip, and connection digital section is for indicating this server Connection number, protocol fields are for indicating service agreement number, and client IP field is for indicating client ip, and session field is for referring to Bright session id.
Further, when the server protocol message reported when the interchanger received in SDN, according to the service Device protocol massages generate the session protocol list item in the session protocol table, comprising: interchanger passes through privately owned MAC Address and port id of the Experimenter message to controller report interchanger oneself, interchanger and control in Lai Jianli SDN The channel of device processed;The server protocol message for the server that interchanger is connected to controller report respectively, 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 getting the service request of client transmission, session is searched according to the service request Agreement table, if not having matched session protocol list item in the session protocol table, if the clothes requested in the service request The connection number of business device is less than the connection number threshold value, then the server of the request is selected to be attached;If the service is asked It asks the connection number of the server of middle request to have reached the connection number threshold value, then server in the session protocol table is selected to connect The smallest server of number redirects connection, comprising: when client sends service request to server by SDN network, Controller intercepts and captures the service request, and by the server ip of client ip, request in the service request, session id kimonos Business protocol number is matched with the session protocol list item in the session protocol table;If having in the session protocol table matched Session protocol list item is then not processed the service request;If there is no matched session protocol in the session protocol table List item then judges the connection number of the server of request;If the connection number for the server requested in the service request is less than institute Connection number threshold value is stated, then the server of the request is selected to be attached, and the connection number of the server of the request is added one; If the connection number for the server requested in the service request has reached the connection number threshold value, the session protocol is selected The smallest server of server connections redirects connection in table, and the connection number of the server of selection is added one.
Further, the method also includes: when client by SDN network to server send service disruption request When, controller intercepts and captures service disruption request, and by the server of client ip, request in service disruption request IP, session id and service protocol number are matched with the session protocol list item in the session protocol table;If being assisted in the session There is no matched session protocol list item in view table, then begs off from doing processing to the service disruption;If in the session protocol table In have matched session protocol list item, then delete matched session protocol list item, and the connection number of the server of request is subtracted one.
To achieve the above object, embodiment of the present invention also provides a kind of Smallest connection SiteServer LBS based on SDN, It include: interchanger, for establishing channel with controller, and to controller report server protocol message;Controller, for preparatory Smallest connection load balancing allocation list is set and session protocol table, the Smallest connection load balancing allocation list include connection number threshold Value, the session protocol table includes the connection number of server;When the server protocol message that the interchanger received in SDN reports When, the session protocol list item in the session protocol table is generated according to the server protocol message;It is sent out when getting client When the service request sent, session protocol table is searched according to the service request, if not matched in the session protocol table Session protocol list item selects if the connection number for the server requested in the service request is less than the connection number threshold value The server of the request is attached;If the connection number for the server requested in the service request has reached the connection Number threshold value, then select the smallest server of server connections in the session protocol table to redirect connection.
Therefore a kind of Smallest connection load-balancing method that provides of embodiment of the present invention and system, pass through control Device can the server to whole network carry out unified calculation connection number, thus when the server requested in the service request of client When having reached connection number threshold value, service request can be redirected to the few server of connection number in time, and entire strategy is high Effect and it is simple.
Detailed description of the invention
It, below will be to embodiment in order to illustrate more clearly of embodiment of the present invention or technical solution in the prior art Or attached drawing needed to be used in the description of the prior art is simply introduced one by one, it should be apparent that, the accompanying drawings in the following description is Some embodiments of the present invention, for those of ordinary skill in the art, without creative efforts, also Other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 is the configuration diagram for the Smallest connection SiteServer LBS based on SDN that embodiment of the present invention provides;
Fig. 2 is the flow diagram for the Smallest connection load-balancing method based on SDN that embodiment of the present invention provides;
Fig. 3 is the schematic diagram of the Experimenter message format of embodiment of the present invention extension;
Fig. 4 is the application example schematic diagram based on Fig. 2 method.
Fig. 5 is the process signal for the Smallest connection load-balancing method based on SDN that another embodiment of the present invention provides Figure.
Specific embodiment
To keep the purposes, technical schemes and advantages of embodiment of the present invention clearer, implement below in conjunction with the present invention The technical solution in embodiment of the present invention is clearly and completely described in attached drawing in mode, it is clear that described reality The mode of applying is some embodiments of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ability Domain those of ordinary skill every other embodiment obtained without creative efforts, belongs to the present invention The range of protection.
SDN is a kind of new network of Emulex network innovation framework, passes through open flows (OpenFlow) for network equipment control plane and number It separates according to face, is shielded by the controller management concentrated without underlay network device (router, interchanger, firewall) is relied on The difference from underlay network device has been covered, to realize the flexible control of network flow, has become network more as pipeline Add intelligence.SDN is to separate the control on the network equipment, by the controller management concentrated, without dependence bottom-layer network Equipment (router, interchanger, firewall), shields the difference from underlay network device.In addition, control is complete opening , user can be routed with customized network and transmission rule strategy, thus more flexible and intelligent.
Embodiment of the present invention provides a kind of Smallest connection SiteServer LBS based on SDN, as shown in Figure 1, SDN network In include controller and interchanger, wherein the interchanger in SDN network is by the controller management concentrated.In addition, client kimonos Business device is connected with interchanger respectively, is communicated by SDN network.
Embodiment of the present invention provides a kind of Smallest connection load-balancing method based on SDN.Referring to Fig. 2, the side Method is applied on the controller in SDN, comprising the following steps:
Step S21: controller presets Smallest connection load balancing allocation list and session protocol table based on SDN.
In the present embodiment, controller presets Smallest connection load balancing allocation list, and 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 function It can be used to be arranged and open and close Smallest connection load-balancing function, connection number threshold value is for being arranged connection number threshold value, default value It can be 128 connection numbers, it is specific as shown in table 1.
Table 1
In the present embodiment, controller also presets session protocol table, which includes server ip word Section, connection digital section, protocol fields, client IP field and session field, it is specific as shown in table 2.
Table 2
Field Meaning
Server IP field (index) Indicate server ip address
Connect 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 interchanger establish channel.
In the present embodiment, SDN switch needs to initialize open flows firstly the need of the channel established with controller (OpenFlow) channel.Interchanger is by privately owned Experimenter message to the MAC of controller report interchanger oneself Location and port id.
Compared to the prior art, present embodiment extends privately owned Experimenter message, extension Experimenter message format is as shown in figure 3, Experimenter value needs to organize to apply to ONF for 255; Experimenter type value is shown to be from interchanger to controller for 1, and Experimenter type value is shown to be for 2 from control Device processed is to interchanger.In addition, further including MAC Address (the Own MAC of oneself in the Experimenter message of extension Address) and port id (Port ID), wherein port id maximum supports 128.
Step S23: controller receives the server protocol message that the interchanger in SDN reports, and is assisted according to the server View message generates the session protocol list item in pre-set session protocol table.
In the present embodiment, after the completion of the Path Setup of the interchanger in SDN and controller, interchanger is on controller The server protocol message of connected server is reported, server protocol message enters 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, 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 ignores the service request if there is matched session protocol list item;If carried out without matched session protocol list item Step S25.
In the present embodiment, when client sends service request to server by SDN network, controller is intercepted and captured should Service request includes client ip, the server ip of request, session id and service protocol number in the service request.
Controller is by client ip, server ip, session id and the service protocol number and session protocol table in service request It is matched.If there is matched session protocol list item, then the service request this time intercepted and captured is not new service request, therefore is neglected Slightly service request, without being operated.
Step S25 judges the connection number of the server of request, if it is less than connection number threshold value, carries out step S26;If Reach connection number threshold value, carries out step S27.
In the present embodiment, controller is by client ip, server ip, session id and the service agreement in service request Number and session protocol table matched, if without matched session protocol list item, this time intercept and capture service request be new Service request, needs to continue to judge whether the connection number for the server requested in the service request reaches preconfigured 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 preconfigured Smallest connection load balancing Connection number threshold value in allocation list then selects the server of request to be attached according to server ip, and by the service of request The connection number of device adds one.
Step S27 selects the smallest server of connection number to redirect connection, and by the connection number of the server of selection Add one.
In the present embodiment, if the connection number of the server of request reaches preconfigured Smallest connection load balancing Connection number threshold value in allocation list, the then server requested have been saturated, and can not be attached with client.Controller searches meeting The smallest server of connection number in agreement table is talked about, service request is redirected to the smallest server of the connection number and 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) client communicated by SDN network and ftp server, the wherein connection number of ftp server 1 It is 100, the connection number of ftp server 2 is 128.
Presetting connection number threshold value is 128.When the service request that the controller intercepting and capturing ftp client in SDN is sent, ask When seeking connection ftp server 2, connection number threshold value, controller are had reached since the connection number of ftp server 2 is 128 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.Please refer to figure 5, the method is applied on the controller in SDN, comprising the following steps:
Step S51~S53 is similar with step S21~S23, therefore details are not described herein.
Step S54: it if controller gets the service disruption request of client transmission, requests to search according to service disruption Session protocol table, if ignoring the service disruption request without matched session protocol list item;If there is matched session is assisted List item is discussed, step S55 is carried out.
In the present embodiment, when client, which sends service disruption to server by SDN network, requests, controller is cut Service disruption request is obtained, includes client ip, the server ip of request, session id and service agreement in service disruption request Number.
Controller by service disruption request in client ip, server ip, session id and service protocol number and session assist View table is matched.If ignoring service disruption request without matched session protocol list item.
S55: matched session protocol list item is deleted, and the connection number of the server of request is subtracted one.
The Smallest connection load-balancing method based on SDN in through the foregoing embodiment, controller can be to whole network Server is unifiedly calculated, and each server or chain road the biggish request of load difference can be smoothly distributed to, thus Improve the load balance ability of whole network.
Please refer to Fig. 1.Embodiment of the present invention provides a kind of Smallest connection SiteServer LBS based on SDN, comprising:
Interchanger, for establishing channel with controller, and to controller report server protocol message;
Controller, for presetting Smallest connection load balancing allocation list and session protocol table, the Smallest connection is negative Carrying equilibrium allocation table includes connection 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 reported when, according to the server protocol message generate the session in the session protocol table association Discuss list item;When getting the service request of client transmission, session protocol table is searched according to the service request, if described There is no matched session protocol list item in session protocol table, if the connection number for the server requested 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 requested in the service request Connection number have reached the connection number threshold value, then select in the session protocol table the smallest server of server connections into Row redirects connection.
Specifically,
The interchanger, by privately owned Experimenter message to the MAC Address of controller report interchanger oneself And port id, to establish the channel with controller;The server protocol message of the server connected respectively to controller report, The server protocol message includes server ip, client ip, session id and service protocol number, so that described in controller generation Session protocol list item in session protocol table.
The controller is intercepted and captured the service and is asked when client sends service request to server by SDN network It asks, and the server ip of client ip, request in the service request, session id and service protocol number and the session is assisted Session protocol list item in view table is matched;If having matched session protocol list item in the session protocol table, to institute Service request is stated to be not processed;If there is no matched session protocol list item in the session protocol table, the clothes of request are judged The connection number of business device;If the connection number for the server requested in the service request is less than the connection number threshold value, select 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 selects in the session protocol table server connections most Small server redirects connection, and the connection number of the server of selection is added one.
The controller, is also used to: when client, which sends service disruption to server by SDN network, requests, intercepting and capturing Service disruption request, and by server ip, session id and the service of client ip, request in service disruption request Protocol number is matched with the session protocol list item in the session protocol table;If not matched in the session protocol table Session protocol list item then begs off from doing processing to the service disruption;If there is matched session to assist in the session protocol table List item is discussed, then deletes matched session protocol list item, and the connection number of the server of request is 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 It is similar in Smallest connection load-balancing method, therefore no longer specifically repeat.
Therefore a kind of Smallest connection load-balancing method and system based on SDN that embodiment of the present invention provides, By controller can the server to whole network carry out unified calculation connection number, thus when client service request in request Server when having reached connection number threshold value, service request can be redirected to the few server of connection number in time, and whole A strategy is efficient and simple.
Each embodiment in this specification is described in a progressive manner, same and similar between each embodiment Part may refer to each other, what each embodiment stressed is the difference with other embodiments.
Finally, it should be noted that being supplied to ability to the description of various embodiments of the invention above with the purpose described Field technique personnel.It is that it is not intended to exhaustion or be not intended to and limit the invention to single disclosed embodiment.Institute as above It states, various substitutions of the invention and variation will be apparent for above-mentioned technology one of ordinary skill in the art.Therefore, Although having specifically discussed some alternative embodiments, other embodiment will be apparent or ability Field technique personnel relatively easily obtain.The present invention is intended to include herein by discussion cross all substitutions of the invention, modification and Variation, and fall in the other embodiment in the spirit and scope of above-mentioned application.

Claims (6)

1. a kind of Smallest connection load-balancing method based on SDN, which is characterized in that the method is applied to the control in SDN On device, comprising:
Controller presets Smallest connection load balancing allocation list and session protocol table, the Smallest connection load balancing configuration Table includes connection number threshold value, and the session protocol table includes the connection number of server;
When the server protocol message that the interchanger received in SDN reports, institute is generated according to the server protocol message State the session protocol list item in session protocol table, specifically include: interchanger is by privately owned Experimenter message to control Device reports the MAC Address and port id of interchanger oneself, the channel of interchanger and controller in Lai Jianli SDN;Interchanger difference The server protocol message of the server connected to controller report, controller are extracted from the server protocol message respectively Server ip, client ip, session id and service protocol number, and the connection number of calculation server, generate the session protocol table In session protocol list item;
When client sends service request to server by SDN network, controller intercepts and captures the service request, and will be described Server ip, session id and service protocol number and the meeting in the session protocol table of client ip, request in service request Words protocol item is matched;
If there is matched session protocol list item in the session protocol table, the service request is not processed;
If there is no matched session protocol list item in the session protocol table, the connection number of the server of request is judged;
If the connection number for the server requested in the service request is less than the connection number threshold value, the request is selected Server is attached, and the connection number of the server of the request is added one;
If the connection number for the server requested in the service request has reached the connection number threshold value, the session is selected The smallest server of server connections redirects connection in agreement table, and the connection number of the server of selection is added one.
2. the Smallest connection load-balancing method according to claim 1 based on SDN, which is characterized in that the minimum is even The configuration item for connecing load balancing allocation list includes Smallest connection load-balancing function and connection number threshold value, wherein the Smallest connection Load-balancing function opens and closes Smallest connection load-balancing function for being arranged, and the connection number threshold value is for being arranged connection Number threshold value.
3. the Smallest connection load-balancing method according to claim 1 or 2 based on SDN, which is characterized in that the session Agreement table includes server IP field, connects digital section, protocol fields, client IP field and session field, wherein server IP field is for indicating that server ip, connection digital section are used to indicate the connection number of this server, and protocol fields are for indicating clothes Business protocol number, client IP field is for indicating client ip, and session field is for indicating session id.
4. the Smallest connection load-balancing method according to claim 3 based on SDN, which is characterized in that the method is also Include:
When client, which sends service disruption to server by SDN network, requests, controller intercepts and captures the service disruption request, And by the server ip of client ip, request in service disruption request, session id and service protocol number and the session Session protocol list item in agreement table is matched;
If there is no matched session protocol list item in the session protocol table, beg off from doing processing to the service disruption;
If there is matched session protocol list item in the session protocol table, matched session protocol list item is deleted, and will ask The connection number for the server asked subtracts one.
5. a kind of Smallest connection SiteServer LBS based on SDN characterized by comprising
Interchanger, for establishing channel with controller, and to controller report server protocol message;
Controller, for presetting Smallest connection load balancing allocation list and session protocol table, the Smallest connection load is equal The allocation list that weighs includes connection number threshold value, and the session protocol table includes the connection number of server;When receiving the interchanger in SDN When the server protocol message reported, the session protocol table in the session protocol table is generated according to the server protocol message : interchanger is come by MAC Address and port id of the privately owned Experimenter message to controller report interchanger oneself Establish the channel of interchanger and controller in SDN;The server for the server that interchanger is connected to controller report respectively is assisted Message is discussed, controller extracts server ip, client ip, session id and service agreement from the server protocol message respectively Number, and the connection number of calculation server, generate the session protocol list item in the session protocol table;
When client sends service request to server by SDN network, controller intercepts and captures the service request, and will be described Server ip, session id and service protocol number and the meeting in the session protocol table of client ip, request in service request Words protocol item is matched;
If there is matched session protocol list item in the session protocol table, the service request is not processed;
If there is no matched session protocol list item in the session protocol table, the connection number of the server of request is judged;
If the connection number for the server requested in the service request is less than the connection number threshold value, the request is selected Server is attached, and the connection number of the server of the request is added one;
If the connection number for the server requested in the service request has reached the connection number threshold value, the session is selected The smallest server of server connections redirects connection in agreement table, and the connection number of the server of selection is added one.
6. the Smallest connection SiteServer LBS according to claim 5 based on SDN, which is characterized in that the controller, It is also used to:
When client, which sends service disruption to server by SDN network, requests, service disruption request is intercepted and captured, and by institute It states the client ip in service disruption request, the server ip of request, session id and services protocol number and the session protocol table In session protocol list item matched;If there is no matched session protocol list item in the session protocol table, to described Service disruption begs off from doing processing;If there is matched session protocol list item in the session protocol table, matched meeting is deleted Protocol item is talked about, 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 CN106453116A (en) 2017-02-22
CN106453116B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696554B (en) * 2017-04-10 2021-11-30 北京京东尚科信息技术有限公司 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
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
CN108924212B (en) * 2018-06-27 2021-06-29 郑州云海信息技术有限公司 Load balancing method, system, device and computer readable storage medium
CN110134513B (en) * 2019-04-17 2023-08-22 平安科技(深圳)有限公司 Load balancing method, device, computer equipment and storage medium
CN112291310B (en) * 2020-10-14 2022-04-26 杭州迪普科技股份有限公司 Method and device for counting connection number
CN115334136B (en) * 2022-07-05 2024-02-02 北京天融信网络安全技术有限公司 Connection aging control method, system, equipment and storage medium

Citations (5)

* 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
CN105721577A (en) * 2016-02-15 2016-06-29 安徽大学 Software defined network-oriented server load balancing method
CN105791113A (en) * 2016-02-25 2016-07-20 上海斐讯数据通信技术有限公司 SDN (Software Defined Network)-based multi-link delay equalization method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10003641B2 (en) * 2014-09-16 2018-06-19 Telefonaktiebolaget Lm Ericsson (Publ) Method and system of session-aware load balancing

Patent Citations (5)

* 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
CN105721577A (en) * 2016-02-15 2016-06-29 安徽大学 Software defined network-oriented server load balancing method
CN105791113A (en) * 2016-02-25 2016-07-20 上海斐讯数据通信技术有限公司 SDN (Software Defined Network)-based multi-link delay equalization method and system

Also Published As

Publication number Publication date
CN106453116A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106453116B (en) A kind of Smallest connection load-balancing method and system based on SDN
CN101335709B (en) Method for implementing load sharing among flow analysis servers and shunting equipment
KR20210037416A (en) Apparatus and method for service detection and analzing service characteristics using network data analytic function in mobile communication system
US20140372567A1 (en) Methods of forwarding data packets using transient tables and related load balancers
US20140372616A1 (en) Methods of forwarding/receiving data packets using unicast and/or multicast communications and related load balancers and servers
CN103873379B (en) A kind of distributed route based on overlay network is anti-to ruin tactics configuring method and system
RU2014128627A (en) METHOD AND DEVICE FOR SERVICE TRANSMISSION MANAGEMENT
CN102006242A (en) Routing method of router and router
US20150180764A1 (en) Dynamic filtering and load optimization instructions based on subscribtion and real-time network and service load data
US20140036726A1 (en) Network, data forwarding node, communication method, and program
CN109218216A (en) Chain polymerization traffic distribution method, device, equipment and storage medium
Xiaolong et al. MTSS: multi-path traffic scheduling mechanism based on SDN
CN112583734B (en) Burst flow control method and device, electronic equipment and storage medium
US20240086253A1 (en) Systems and methods for intent-based orchestration of a virtualized environment
CN104144227B (en) IP address querying method, system and the whole network resouce controller
CN106375355B (en) Load balancing processing method and device
JP2016046603A (en) Network function load distribution system and method
US12101663B2 (en) Technique for controlling and performing data traffic handling in a core network domain
JP6131203B2 (en) Device selection network system, device selection server and program
Yao et al. A computing-aware routing protocol for Computing Force Network
CN105681266B (en) A kind of communication cluster method and device of mediaphone MMTel
CN106331129A (en) Load balancing apparatus and load balancing method thereof
Thai et al. Towards load-balanced service chaining by hash-based traffic steering on softswitches
CN106209633B (en) Message forwarding method and device
WO2018082518A1 (en) Tunnel adjustment method and device, and computer storage medium

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.