CN106790656A - A kind of load balancing apparatus and its method based on SDN - Google Patents

A kind of load balancing apparatus and its method based on SDN Download PDF

Info

Publication number
CN106790656A
CN106790656A CN201710038089.4A CN201710038089A CN106790656A CN 106790656 A CN106790656 A CN 106790656A CN 201710038089 A CN201710038089 A CN 201710038089A CN 106790656 A CN106790656 A CN 106790656A
Authority
CN
China
Prior art keywords
load
load balancing
flow table
message
controller
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
CN201710038089.4A
Other languages
Chinese (zh)
Other versions
CN106790656B (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.)
Nanjing Balance Network Technology Co Ltd
Original Assignee
Nanjing Balance Network 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 Nanjing Balance Network Technology Co Ltd filed Critical Nanjing Balance Network Technology Co Ltd
Priority to CN201710038089.4A priority Critical patent/CN106790656B/en
Publication of CN106790656A publication Critical patent/CN106790656A/en
Application granted granted Critical
Publication of CN106790656B publication Critical patent/CN106790656B/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
    • 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/1038Load balancing arrangements to avoid a single path through a load balancer

Landscapes

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

Abstract

The invention discloses a kind of load balancing apparatus based on SDN and its method, comprising a load balancing controller and multiple load-equalizing switch, multiple load-equalizing switch are connected with load balancing controller by its base plane and set up openflow passages, load balancing controller is used to shunt decision-making and load monitoring, and the instruction that load balancing controller of the load-equalizing switch according to is issued is parsed to data traffic and forwarded or abandoned.The present invention shunts load-balancing device control plane and Forwarding plane, reduces the complexity of SiteServer LBS, improves system maintainability, realizes many device intercommunicating cascades, reduces Development and Production cost.

Description

A kind of load balancing apparatus and its method based on SDN
Technical field
The present invention relates to a kind of load balancing apparatus and its method, particularly a kind of load balancing apparatus based on SDN and Its method.
Background technology
The load-balancing device of current existing network operation, due to the particularity of application scenarios, is private network special equipment, soft or hard Part needs individually designed, research and development, and cost is more high;Increase to meet the explosive of existing network flow simultaneously, software and hardware is also needed Continual upgrading is wanted, equipment manufacturer needs long-term input manpower and materials to carry out the stable operation of proof load balancing equipment and hold Continuous optimization and upgrading.
Due to the load balancing implementation difference of different manufacturers, each equipment manufacturer has a set of maintenance management of oneself System and load-balancing algorithm, reduce network efficiency, bring various maintenance inconvenience, increase maintenance management cost, and Therefore cannot also be realized across many equipment cascadings of producer.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of load balancing apparatus based on SDN and its method, realize Many device intercommunicating cascades.
In order to solve the above technical problems, the technical solution adopted in the present invention is:
A kind of load balancing apparatus based on SDN, it is characterised in that:Comprising a load balancing controller and multiple load balancing Interchanger, multiple load-equalizing switch are connected with load balancing controller by its base plane and set up openflow passages, Load balancing controller is used to shunt decision-making and load monitoring, under load balancing controller of the load-equalizing switch according to The instruction of hair is parsed to data traffic and is forwarded or abandoned.
Further, three-level flow table is provided with the load-equalizing switch, flow table is used separately in service traffics identification, stream Table one is used for the balanced forwarding of this equipment flow, and the flow that flow table two is used for InterWorking Equipment is forwarded.
Further, the flow table one is load balancing forward table, start bit of the flow table item with data flow ID in messages Put and length, data flow ID be match matching fields, Action fields are modification purpose Mac addresses, modification purpose Ip, Output output ports.
Further, the flow table two for interconnection forward table, flow table item with purpose ip be match matching fields, action Field is acted for output, and output port is the port for connecting certain cascade load-equalizing switch.
A kind of a kind of load balancing side based on SDN of the load balancing apparatus based on SDN described in usage right requirement 1 Method, it is characterised in that comprise the steps of:
Step one:Backend nodes ip is configured at the end of load balancing controller 1, load balancing controller 1 is first by all negative Carry the packet out message modes that balanced interchanger issues the arp messages of encapsulation query node mac addresses, end segment after acquisition Point mac addresses and port mapping relationship;Then load balancing controller is regularly by carrying icmp or snmp messages Packet out message obtains the load weight of backend nodes, and in load balancing controller by the generation point of specific sort algorithm The balanced group table of stream;
Step 2:Load-equalizing switch supports three-level flow table, by load balancing controller to load-equalizing switch flow table Flow table item of the addition based on purpose ip forwardings in zero, destination address is that the bag that enters of the virtual ip of the machine jumps to flow table one, destination Location is not that the bag that enters of the virtual ip of the machine jumps to flow table two, and packet in are packaged into if other messages such as messages such as arp, icmp Information reporting load balancing controller, it is remaining, abandon;
Step 3:Message into flow table one matches flow table item, is forwarded by corresponding action instructions if hit, no Message is then encapsulated into packet in information reporting load balancing controllers by hit, and load balancing controller is from loading sharing group A low node of load is selected to be exported as message in table, construction FlowMod message issues flow table rule to flow table one;
Step 4:Message into flow table two matches flow table item first, hit, then forwarded by flow table action, does not order In, then message is packaged into packet in information reporting load balancing controllers, controller according to the purpose IP address of message, In conjunction with the whole network link topology of controller, the forward-path of the message is calculated, it is equal to the load on forward-path successively Weighing apparatus issues the flow table item of flow table two.
Further, load balancing controller and load-equalizing switch only support that L4 is matched in openflow 1.3.4 On the basis of add to payload part matching support, comprising specified matching payload offset and data length.
Further, the load-equalizing switch is identified to inbound port packet, the message of matching flow table rule, Then operated by the action fields of flow table item, the message being not hit by, then the action for being configured by table miss is operated.
The present invention compared with prior art, with advantages below and effect:The present invention will be loaded equal based on SDN design philosophys Weighing apparatus equipment control plane and Forwarding plane are shunted, and reduce the complexity of SiteServer LBS, improve system maintainability, real Now many device intercommunicating cascades, reduce Development and Production cost;The present invention will be changed in former framework by hard-wired business function For pure software is realized, the hardware and software development cost of former load-balancing device can be effectively reduced;SDN characteristics determine that load is equal simultaneously Weighing apparatus controller possesses the overall topological ability of network, and what load balancing controller can be in United Dispatching, management whole network is all Equipment, flow distribution form;Load-equalizing switch reduces software and hardware complicated due to only making data identification and forwarding purposes Degree, decreases and correspondingly develops maintenance cost.
Brief description of the drawings
Fig. 1 is a kind of schematic diagram of load balancing apparatus based on SDN of the invention.
Specific embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings and by embodiment, and following examples are to this hair Bright explanation and the invention is not limited in following examples.
As shown in figure 1, a kind of load balancing apparatus based on SDN of the invention, comprising a He of load balancing controller 1 Multiple load-equalizing switch 2, multiple load-equalizing switch 2 are connected with load balancing controller 1 by its base plane and built Vertical openflow passages 3, load balancing controller 1 is used to shunt decision-making and load monitoring, and load-equalizing switch 2 is according to load The instruction that balance controller 1 is issued is parsed to data traffic and is forwarded or abandoned.
Three-level flow table is provided with load-equalizing switch 2, flow table 04 recognizes that flow table 1 is used for this for service traffics The balanced forwarding of equipment flow, the flow that flow table 26 is used for InterWorking Equipment is forwarded.Flow table 1 is load balancing forward table, flow table Be match matching fields with data flow ID original positions in messages and length, data flow ID, Action fields are to change Purpose Mac addresses, modification purpose Ip, output output port 7.Flow table 26 is interconnection forward table, and flow table item is with purpose ip Match matching fields, action fields are acted for output, and output port is the end for connecting certain cascade load-equalizing switch Mouth 8.
A kind of load-balancing method based on SDN, comprises the steps of:
Step one:Backend nodes ip is configured at the end of load balancing controller 1, load balancing controller 1 is first by all negative Carry the packet out message modes that balanced interchanger issues the arp messages of encapsulation query node mac addresses, end segment after acquisition Point mac addresses and port mapping relationship;Then load balancing controller is regularly by carrying icmp or snmp messages Packet out message obtains the load weight of backend nodes, and in load balancing controller by the generation point of specific sort algorithm The balanced group table of stream;
Step 2:Load-equalizing switch supports three-level flow table, by load balancing controller to load-equalizing switch flow table Flow table item of the addition based on purpose ip forwardings in zero, destination address is that the bag that enters of the virtual ip of the machine jumps to flow table one, destination Location is not that the bag that enters of the virtual ip of the machine jumps to flow table two, and packet in are packaged into if other messages such as messages such as arp, icmp Information reporting load balancing controller, it is remaining, abandon;
Step 3:Flow table 1 is load balancing forward table, flow table item with data flow ID original positions in messages and length, Data flow ID is match matching fields, and Action fields are modification purpose Mac addresses, modification purpose Ip, output output end Mouthful.Message into flow table one matches flow table item, is forwarded by corresponding action instructions if hit, then will be not hit by Message is encapsulated into packet in information reporting load balancing controllers, and load balancing controller is selected from loading sharing group table One low node of load is exported as message, and construction FlowMod message issues flow table rule to flow table one;
Step 4:Flow table 26 is interconnection forward table, and flow table item is match matching fields with purpose ip, and action fields are Output is acted, and output port is the port for connecting certain cascade load-equalizing switch.Into flow table two message first With flow table item, hit is then forwarded by flow table action, is not hit by, then message is packaged into packet in information reportings Load balancing controller, controller, in conjunction with the whole network link topology of controller, is calculated according to the purpose IP address of message The forward-path of the message, issues the flow table item of flow table two to the load balancing on forward-path successively.
Load balancing controller and load-equalizing switch on the basis of openflow 1.3.4 agreements are fully complied with, root According to the business characteristic of load balancing, targetedly it is customized, the basis of L4 matchings is only supported in openflow 1.3.4 On with the addition of to payload part matching support, comprising specified matching payload offset and data length.
Load balancing controller by the most of business function in comprising existing specification, by former framework by hard-wired Business function is changed into pure software realization, can effectively reduce the hardware and software development cost of former load-balancing device.While SDN characteristics Determine that load balancing controller possesses the overall topological ability of network, load balancing controller can United Dispatching, management it is whole All devices, flow distribution form in network.Load-equalizing switch is reduced due to only making data identification and forwarding purposes Software and hardware complexity, decreases and correspondingly develops maintenance cost.
The above, is only presently preferred embodiments of the present invention, and any formal limitation is not made to the present invention, though So the present invention is disclosed above with preferred embodiment, but is not limited to the present invention, any to be familiar with this professional technology people Member, without departing from the scope of the present invention, when making a little change or modification using the technology contents of the disclosure above Be the Equivalent embodiments of equivalent variations, as long as be without departing from technical solution of the present invention content, according to technical spirit of the invention, Within the spirit and principles in the present invention, any simple modification, equivalent and improvement for being made to above example etc., still Belong within the protection domain of technical solution of the present invention.

Claims (7)

1. a kind of load balancing apparatus based on SDN, it is characterised in that:It is equal comprising a load balancing controller and multiple loads Weighing apparatus interchanger, multiple load-equalizing switch are connected that to set up openflow logical by its base plane with load balancing controller Road, load balancing controller is used to shunt decision-making and load monitoring, load balancing control of the load-equalizing switch according to The instruction that device is issued is parsed to data traffic and is forwarded or abandoned.
2. according to a kind of load balancing apparatus based on SDN described in claim 1, it is characterised in that:The load balancing is handed over Three-level flow table is provided with changing planes, flow table is used separately in service traffics identification, and flow table one is used for the balanced forwarding of this equipment flow, stream The flow that table two is used for InterWorking Equipment is forwarded.
3. according to a kind of load balancing apparatus based on SDN described in claim 2, it is characterised in that:The flow table one is negative Carry balanced forward table, flow table item with data flow ID original positions in messages and length, data flow ID be match matching words Section, Action fields are modification purpose Mac addresses, modification purpose Ip, output output port.
4. according to a kind of load balancing apparatus based on SDN described in claim 2, it is characterised in that:The flow table two is mutual Connection forward table, flow table item is match matching fields with purpose ip, and action fields are acted for output, and output port is connection The port of certain cascade load-equalizing switch.
5. a kind of usage right requires a kind of load balancing side based on SDN of the load balancing apparatus based on SDN described in 1 Method, it is characterised in that comprise the steps of:
Step one:Backend nodes ip is configured at the end of load balancing controller 1, load balancing controller 1 is first by all negative Carry the packet out message modes that balanced interchanger issues the arp messages of encapsulation query node mac addresses, end segment after acquisition Point mac addresses and port mapping relationship;Then load balancing controller is regularly by carrying icmp or snmp messages Packet out message obtains the load weight of backend nodes, and in load balancing controller by the generation point of specific sort algorithm The balanced group table of stream;
Step 2:Load-equalizing switch supports three-level flow table, by load balancing controller to load-equalizing switch flow table Flow table item of the addition based on purpose ip forwardings in zero, destination address is that the bag that enters of the virtual ip of the machine jumps to flow table one, destination Location is not that the bag that enters of the virtual ip of the machine jumps to flow table two, and packet in are packaged into if other messages such as messages such as arp, icmp Information reporting load balancing controller, it is remaining, abandon;
Step 3:Message into flow table one matches flow table item, is forwarded by corresponding action instructions if hit, no Message is then encapsulated into packet in information reporting load balancing controllers by hit, and load balancing controller is from loading sharing group A low node of load is selected to be exported as message in table, construction FlowMod message issues flow table rule to flow table one;
Step 4:Message into flow table two matches flow table item first, hit, then forwarded by flow table action, does not order In, then message is packaged into packet in information reporting load balancing controllers, controller according to the purpose IP address of message, In conjunction with the whole network link topology of controller, the forward-path of the message is calculated, it is equal to the load on forward-path successively Weighing apparatus issues the flow table item of flow table two.
6. according to a kind of load-balancing method based on SDN described in claim 5, it is characterised in that:Load balancing controller Added on the basis of openflow 1.3.4 only support to L4 to match to the matching of payload parts with load-equalizing switch Support, comprising specified matching payload skews and data length.
7. according to a kind of load-balancing method based on SDN described in claim 5, it is characterised in that:The load balancing is handed over Change planes and inbound port packet be identified, the message of matching flow table rule is then operated by the action fields of flow table item, The message being not hit by, then operated by the action that table miss are configured.
CN201710038089.4A 2017-01-19 2017-01-19 SDN-based load balancing device and method thereof Active CN106790656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710038089.4A CN106790656B (en) 2017-01-19 2017-01-19 SDN-based load balancing device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710038089.4A CN106790656B (en) 2017-01-19 2017-01-19 SDN-based load balancing device and method thereof

Publications (2)

Publication Number Publication Date
CN106790656A true CN106790656A (en) 2017-05-31
CN106790656B CN106790656B (en) 2019-12-31

Family

ID=58944109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710038089.4A Active CN106790656B (en) 2017-01-19 2017-01-19 SDN-based load balancing device and method thereof

Country Status (1)

Country Link
CN (1) CN106790656B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360273A (en) * 2017-09-11 2017-11-17 深圳市茁壮网络股份有限公司 A kind of domain name analytic method and device
CN107846445A (en) * 2017-09-20 2018-03-27 南京邮电大学 A kind of server load balancing method based on SDN
CN108512758A (en) * 2018-03-07 2018-09-07 华为技术有限公司 Message processing method, controller and forwarding unit
CN108540559A (en) * 2018-04-16 2018-09-14 北京航空航天大学 A kind of SDN controllers for supporting IPSec VPN load balancing
CN110417562A (en) * 2018-04-26 2019-11-05 华为技术有限公司 Method, controller and the device of installation rule
CN111800348A (en) * 2019-04-09 2020-10-20 中兴通讯股份有限公司 Load balancing method and device
CN112468408A (en) * 2020-11-13 2021-03-09 中盈优创资讯科技有限公司 SDN-based load balancing implementation method and device
CN112671713A (en) * 2020-11-30 2021-04-16 山东电力工程咨询院有限公司 SDN network data forwarding method, SDN switch, controller and system
CN112968978A (en) * 2021-05-19 2021-06-15 南京烽火星空通信发展有限公司 Internet traffic distribution method based on SDN technology

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209121A (en) * 2013-03-15 2013-07-17 中兴通讯股份有限公司 Discovery method and device based on Open Flow protocol for control plane device
CN105610709A (en) * 2016-02-03 2016-05-25 西安电子科技大学 SDN-based high-volume data stream load balancing system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209121A (en) * 2013-03-15 2013-07-17 中兴通讯股份有限公司 Discovery method and device based on Open Flow protocol for control plane device
CN105610709A (en) * 2016-02-03 2016-05-25 西安电子科技大学 SDN-based high-volume data stream load balancing system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
谢亮: "软件定义网络中OpenFlow交换机流表优化技术研究", 《CNKI硕博士论文库》 *
马强: "虚拟化环境下基于OpenFlow的服务器集群动态负载均衡架构设计与实现", 《CNKI硕博士论文库》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360273A (en) * 2017-09-11 2017-11-17 深圳市茁壮网络股份有限公司 A kind of domain name analytic method and device
CN107846445A (en) * 2017-09-20 2018-03-27 南京邮电大学 A kind of server load balancing method based on SDN
CN108512758A (en) * 2018-03-07 2018-09-07 华为技术有限公司 Message processing method, controller and forwarding unit
US11546255B2 (en) 2018-03-07 2023-01-03 Huawei Technologies Co., Ltd. Packet processing method, controller, and forwarding device
CN108512758B (en) * 2018-03-07 2021-09-14 华为技术有限公司 Message processing method, controller and forwarding equipment
CN108540559B (en) * 2018-04-16 2020-12-18 北京航空航天大学 SDN controller supporting IPSec VPN load balancing
CN108540559A (en) * 2018-04-16 2018-09-14 北京航空航天大学 A kind of SDN controllers for supporting IPSec VPN load balancing
CN110417562B (en) * 2018-04-26 2021-01-29 华为技术有限公司 Method, controller and device for installing rules
CN110417562A (en) * 2018-04-26 2019-11-05 华为技术有限公司 Method, controller and the device of installation rule
CN111800348A (en) * 2019-04-09 2020-10-20 中兴通讯股份有限公司 Load balancing method and device
CN112468408A (en) * 2020-11-13 2021-03-09 中盈优创资讯科技有限公司 SDN-based load balancing implementation method and device
CN112468408B (en) * 2020-11-13 2023-10-03 中盈优创资讯科技有限公司 SDN-based load balancing implementation method and device
CN112671713A (en) * 2020-11-30 2021-04-16 山东电力工程咨询院有限公司 SDN network data forwarding method, SDN switch, controller and system
CN112968978A (en) * 2021-05-19 2021-06-15 南京烽火星空通信发展有限公司 Internet traffic distribution method based on SDN technology

Also Published As

Publication number Publication date
CN106790656B (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN106790656A (en) A kind of load balancing apparatus and its method based on SDN
CN104935516B (en) Communication system and method based on software defined network
CN103227843B (en) A kind of physical link address management method and device
CN103166874B (en) A kind of message forwarding method and equipment
CN104243270B (en) A kind of method and apparatus for establishing tunnel
US9331936B2 (en) Switch fabric support for overlay network features
CN104253770B (en) Realize the method and apparatus of the distributed virtual switch system
US9614759B2 (en) Systems and methods for providing anycast MAC addressing in an information handling system
CN107395532B (en) Multi-tenant virtual network isolation method based on SDN
US20140169189A1 (en) Network Status Mapping
CN105357142B (en) A kind of Network Load Balance device design method based on ForCES
US9504016B2 (en) Optimized multicast routing in a Clos-like network
CN105450532A (en) Three-layer forwarding method and three-layer forwarding device in software defined network
CN100591048C (en) Method for equilibrating network-flow load and the third-level exchanger
CN105262667A (en) Method and device for controlling multicast transmission in Overlay network
CN104601472A (en) Chip VXLAN gateway distributed routing implementation method and message processing system
CN105656796A (en) Method and device for achieving three-layer forwarding of virtual extensible local area network
CN104702479A (en) Tunnel building method and device in Software Defined Network (SDN)
CN105429870A (en) VXLAN security gateway device and application method thereof in SDN
WO2020093871A1 (en) Downlink message sending method and apparatus and downlink message forwarding method and apparatus
CN102511151A (en) Router, virtual cluster router system and establishing method thereof
TWI759571B (en) Data transfer method based on flow table
CN104798350A (en) Virtual link aggregations across multiple fabric switches
CN108390821A (en) A kind of openflow interchangers realize the method and system of dual-active
CN106453091B (en) The equivalent route management method and device of router Forwarding plane

Legal Events

Date Code Title Description
PB01 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