CN107846365A - A kind of load balancing based on SDN realizes system and method - Google Patents
A kind of load balancing based on SDN realizes system and method Download PDFInfo
- Publication number
- CN107846365A CN107846365A CN201711003145.7A CN201711003145A CN107846365A CN 107846365 A CN107846365 A CN 107846365A CN 201711003145 A CN201711003145 A CN 201711003145A CN 107846365 A CN107846365 A CN 107846365A
- Authority
- CN
- China
- Prior art keywords
- packet
- flow table
- load balancing
- interchanger
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Technical scheme realizes system and method including a kind of load balancing based on SDN, and the system includes terminal, controller, interchanger and multiple back-end servers, for realizing:When reaching load balancing, generate the message of the traffic assignments of terminal to back-end server, message includes terminal IP and virtual ip address, and also includes the packet for business processing;The recognizable flow table of interchanger is generated, and flow table is sent to interchanger;Virtual ip address is modified according to flow table default rule, and receives the packet that back-end server is sent and carries out the reduction of IP address;The packet that desampler is sent, and business computing and corresponding data bag is generated corresponding to performing, wherein packet includes message.Invention has the beneficial effect that:The load balancing of link level is realized, compared to the load balancing of traditional proxy level;Greatly improve the forwarding performance of load balancing;Dynamic modification flow table rule, can be achieved the flexible customization of network.
Description
Technical field
The present invention relates to a kind of load balancing based on SDN to realize system and method, belongs to field of computer data processing.
Background technology
Load balancing (Load Balance, abbreviation LB) is a kind of Clustering of server or the network equipment.Load is equal
Weighing apparatus shares specific business (network service, network traffics etc.) to multiple servers or the network equipment, so as to improve business
Disposal ability, it ensure that the high availability of business.
Such as:Certain system has the portfolio of 70,000,000 daily, and single server can only also handle 50,000,000 at full capacity
Business, single server can not handle so big portfolio at all.A disposal ability identical clothes can be now further added by
All business are shared this two-server by business device, allow them to handle a part respectively, and load-balancing technique is exactly to solve
How by business share two even multiple servers.
Realize that the mode of load balancing is mainly realized by Full Proxy at present, the load balancing realized by Full Proxy,
Client will be established with Full Proxy and connected, and agency establishes connection with back-end server again and connected twice, it is necessary to establish, and this is great
Reduce the performance of load balancing.
The load balancing implementation process of Full Proxy as shown in Figure 1, it is specific as follows:Client and Full Proxy (load first
Balanced Full Proxy) TCP links are established, HTTP request is sent to Full Proxy, Full Proxy HTTP request is parsed, enter guild
The operation such as management, access control is talked about, is afterwards that the HTTP request distributes a back-end server according to load-balancing algorithm, and will
HTTP request after processing is forwarded to the back-end server, and after processing is complete, http response message is sent to for server
Full Proxy, the response message is returned into client via Full Proxy.So once request needs foundation to connect twice.
SDN:Software defined network;
OpenFlow:SDN control planes and Forwarding plane communication protocol;
OpenFlow interchangers:Support the software switch of OpenFlow agreements.
The content of the invention
Technical scheme provides a kind of load balancing based on SDN and realizes system and method, based on SDN technologies
Load balancing realize the load balancing of link level, once request only needs to establish once to connect, and solves prior art
Deficiency.
Technical scheme realizes system including a kind of load balancing based on SDN, and the system includes terminal, control
Device, interchanger and multiple back-end servers, wherein:Terminal, for when reaching load balancing, generating the traffic assignments of terminal
To the message of back-end server, message includes terminal IP and virtual ip address, and also includes the packet for business processing;
Controller, the flow table recognizable for generating interchanger, and flow table is sent to the interchanger;Interchanger, for receiving
State the request instruction of terminal transmission and receive the flow table that the controller is sent, according to flow table default rule to virtual IP address
Location is modified, and the packet of modification is transmitted, and receives the packet that the back-end server is sent and progress
The reduction of IP address;Back-end server, the packet sent for receiving the interchanger, and business computing corresponding to execution
And corresponding data bag is generated, wherein packet includes message.
System is realized according to the load balancing based on SDN, it is characterised in that:The terminal is further for holding
The server of row business processing, the back-end server are used for the database for sharing business load scheduling.
System is realized according to the load balancing based on SDN, wherein controller also includes:Flow table rules customization mould
Block, sent for self-defined flow table rule, and by flow table rule to the interchanger and server, the flow table rule is used for pair
The IP conversions of controller are defined.
System is realized according to the load balancing based on SDN, wherein interchanger is used to perform following steps:To appointing
Meaning packet records transformation rule when performing IP conversions, and switch signs are recorded in packet and controller simultaneously;Work as stream
When dynamic change occurs for table rule, verification whether there is history switch signs by the packet of controller, if being called in the presence of if
History transformation rule performs reduction conversion to packet, if history switch signs are not present, using new conversion to packet
Perform conversion.
System is realized according to the load balancing based on SDN, wherein interchanger also includes:When recognize by number
When being not present in terminal according to bag, send data packets to controller and stored or deleted.
Technical scheme also includes a kind of implementation of load balancing based on SDN, it is characterised in that this method
Including:When reaching load balancing, generate the message of the traffic assignments of terminal to back-end server, message include terminal IP and
Virtual ip address, and also include the packet for business processing;The recognizable flow table of interchanger is generated, and flow table is sent
To interchanger;The request instruction and receive the flow table that controller is sent that receiving terminal is sent, according to flow table default rule pair
Virtual ip address is modified, and the packet of modification is transmitted, and receives the packet of back-end server transmission simultaneously
Carry out the reduction of IP address;The packet that desampler is sent, and business computing and corresponding data is generated corresponding to performing
Bag, wherein packet includes message.
Beneficial effects of the present invention are:The load balancing of link level is realized, compared to the load balancing of traditional proxy level;Pole
The big forwarding performance for improving load balancing;Dynamic modification flow table rule, can be achieved the flexible customization of network.
Brief description of the drawings
Fig. 1 show the load balancing implementation process figure according to the Full Proxy of this prior art;
Fig. 2 show the general structure block diagram according to embodiment of the present invention;
Fig. 3 show the interaction figure according to embodiment of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings with specific embodiment pair
The present invention is described in detail.It is equal that the load balancing based on SDN of the present invention realizes that system and method is applied to server load
The realization of weighing apparatus.
Fig. 2 show the general structure block diagram according to embodiment of the present invention.Including terminal, interchanger, controller,
Multiple servers, wherein interchanger are OpenFlow
Different from traditional load balancing, the forwarding of the load balancing based on OpenFlow is realized by flow table
's.
Controller is according to the rule of load balancing first, the flow table that generation OpenFlow interchangers can identify, and will stream
Table is distributed to OpenFlow interchangers.
After OpenFlow interchangers are being connected to the packet for issuing virtual IP address, according to the rule set in flow table, by number
The IP of back-end server is revised as according to the purpose IP in bag, is then forwarded.When being searched not in local flow table then, then will
Packet transfers to controller to handle or abandon.
When the response message of back-end server is by OpenFlow interchangers, interchanger is according to flow table, by the source of message
Location is reduced to the VSIP of empty service, returns again to client, completes whole load dispatch process.
Fig. 3 show the interaction figure according to embodiment of the present invention.
It includes below scheme:
(1) transmission of end-user request packet, i.e. service request, now purpose IP=virtual ip address, source IP=
IP address of terminal;
(2) interchanger is according to flow table processing data bag, now purpose IP=(rear end) server ip address, source IP=terminal
IP address;
(3) response of the server to interchanger, according to flow table processing data bag purpose IP=terminal IP, source IP=server
IP address;
(4) interchanger carries out corresponding, wherein purpose IP=terminals IP, source IP=virtual ip address to terminal.
When can be seen that client request arrival load balancing from above flow, establish connection and simply change
Destination address in IP bags, is then forwarded directly to corresponding server, it is achieved thereby that the load of link level is equal by IP bags
Weighing apparatus, once request are simply established and once connected, and so greatly improve the forwarding performance of load balancing.
It is described above, simply presently preferred embodiments of the present invention, the invention is not limited in above-mentioned embodiment, as long as
It reaches the technique effect of the present invention with identical means, should all belong to protection scope of the present invention.In the protection model of the present invention
Its technical scheme and/or embodiment can have a variety of modifications and variations in enclosing.
Claims (6)
1. a kind of load balancing based on SDN realizes system, the system includes terminal, controller, interchanger and multiple rear ends clothes
Business device, wherein:
Terminal, for when reaching load balancing, generating to include the message of the traffic assignments of terminal to back-end server, message
Terminal IP and virtual ip address, and also include the packet for business processing;
Controller, the flow table recognizable for generating interchanger, and flow table is sent to the interchanger;
Interchanger, for receiving the request instruction of the terminal transmission and receiving the flow table of the controller transmission, according to stream
Table default rule is modified to virtual ip address, and the packet of modification is transmitted, and receives the rear end clothes
The packet of business device transmission simultaneously carries out the reduction of IP address;
Back-end server, the packet sent for receiving the interchanger, and business computing corresponding to execution simultaneously generate phase
Packet is answered, wherein packet includes message.
2. the load balancing according to claim 1 based on SDN realizes system, it is characterised in that:
The terminal is further the server for performing business processing, and the back-end server is used to share business load tune
The database of degree.
3. the load balancing according to claim 1 based on SDN realizes system, it is characterised in that described controller is also
Including:
Flow table rules customization module, sent for self-defined flow table rule, and by flow table rule to the interchanger, the flow table
The IP conversions that rule is used for controller are defined.
4. the load balancing according to claim 1 based on SDN realizes system, it is characterised in that described interchanger is used
In execution following steps:
Transformation rule is recorded when performing IP conversions to arbitrary data bag, and switch signs are recorded in packet and control simultaneously
In device;
When dynamic change occurs for flow table rule, verification whether there is history switch signs by the packet of controller, if depositing
Then call history transformation rule to perform reduction conversion to packet, if history switch signs are not present, use new conversion
Conversion is performed to packet.
5. the load balancing according to claim 1 based on SDN realizes system, it is characterised in that described interchanger is also
Including:
When recognize by packet be not present in terminal when, send data packets to controller and stored or deleted.
6. a kind of implementation of load balancing based on SDN, it is characterised in that this method includes:
When reaching load balancing, generate the message of the traffic assignments of terminal to back-end server, message include terminal IP and
Virtual ip address, and also include the packet for business processing;
The recognizable flow table of interchanger is generated, and flow table is sent to interchanger;
The request instruction and receive the flow table that controller is sent that receiving terminal is sent, according to flow table default rule to virtual IP address
Address is modified, and the packet of modification is transmitted, and is received the packet that back-end server is sent and carried out IP
The reduction of address;
The packet that desampler is sent, and business computing and corresponding data bag, wherein packet are generated corresponding to performing
Including message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711003145.7A CN107846365A (en) | 2017-10-24 | 2017-10-24 | A kind of load balancing based on SDN realizes system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711003145.7A CN107846365A (en) | 2017-10-24 | 2017-10-24 | A kind of load balancing based on SDN realizes system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107846365A true CN107846365A (en) | 2018-03-27 |
Family
ID=61663084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711003145.7A Pending CN107846365A (en) | 2017-10-24 | 2017-10-24 | A kind of load balancing based on SDN realizes system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107846365A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109451084A (en) * | 2018-09-14 | 2019-03-08 | 华为技术有限公司 | A kind of service access method and device |
CN109495440A (en) * | 2018-09-06 | 2019-03-19 | 国家电网有限公司 | A kind of random device of Intranet dynamic security |
CN111641724A (en) * | 2020-06-04 | 2020-09-08 | 山东汇贸电子口岸有限公司 | Application method of LVS load balancer under cloud |
CN111970209A (en) * | 2020-07-13 | 2020-11-20 | 珠海高凌信息科技股份有限公司 | SIP service equalization system |
CN113271260A (en) * | 2021-05-12 | 2021-08-17 | 康键信息技术(深圳)有限公司 | Load balancing processing method, device, equipment and storage medium |
WO2022267458A1 (en) * | 2021-06-25 | 2022-12-29 | 平安科技(深圳)有限公司 | Load balancing method, apparatus and device, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104811383A (en) * | 2015-03-19 | 2015-07-29 | 杭州华三通信技术有限公司 | Message forwarding method and equipment |
US20160182378A1 (en) * | 2014-12-18 | 2016-06-23 | Telefonaktiebolaget L M Ericsson (Publ) | Method and system for load balancing in a software-defined networking (sdn) system upon server reconfiguration |
CN106101298A (en) * | 2016-06-06 | 2016-11-09 | 刘昱 | Network address conversion device based on SDN and method |
CN106850459A (en) * | 2017-02-27 | 2017-06-13 | 郑州云海信息技术有限公司 | A kind of method and device for realizing virtual network load balancing |
-
2017
- 2017-10-24 CN CN201711003145.7A patent/CN107846365A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160182378A1 (en) * | 2014-12-18 | 2016-06-23 | Telefonaktiebolaget L M Ericsson (Publ) | Method and system for load balancing in a software-defined networking (sdn) system upon server reconfiguration |
CN104811383A (en) * | 2015-03-19 | 2015-07-29 | 杭州华三通信技术有限公司 | Message forwarding method and equipment |
CN106101298A (en) * | 2016-06-06 | 2016-11-09 | 刘昱 | Network address conversion device based on SDN and method |
CN106850459A (en) * | 2017-02-27 | 2017-06-13 | 郑州云海信息技术有限公司 | A kind of method and device for realizing virtual network load balancing |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109495440A (en) * | 2018-09-06 | 2019-03-19 | 国家电网有限公司 | A kind of random device of Intranet dynamic security |
CN109451084A (en) * | 2018-09-14 | 2019-03-08 | 华为技术有限公司 | A kind of service access method and device |
CN109451084B (en) * | 2018-09-14 | 2020-12-22 | 华为技术有限公司 | Service access method and device |
CN111641724A (en) * | 2020-06-04 | 2020-09-08 | 山东汇贸电子口岸有限公司 | Application method of LVS load balancer under cloud |
CN111970209A (en) * | 2020-07-13 | 2020-11-20 | 珠海高凌信息科技股份有限公司 | SIP service equalization system |
CN113271260A (en) * | 2021-05-12 | 2021-08-17 | 康键信息技术(深圳)有限公司 | Load balancing processing method, device, equipment and storage medium |
WO2022267458A1 (en) * | 2021-06-25 | 2022-12-29 | 平安科技(深圳)有限公司 | Load balancing method, apparatus and device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107846365A (en) | A kind of load balancing based on SDN realizes system and method | |
CN109996307B (en) | Data routing method and terminal | |
US20130107713A1 (en) | Distributed chassis architecture having integrated service appliances | |
CN105282191B (en) | SiteServer LBS, controller and method | |
CN106713499A (en) | Load balancing method, equipment and system | |
CN102347959B (en) | Resource access system and method based on identity and session | |
CN111614631B (en) | User mode assembly line framework firewall system | |
CN106973053B (en) | The acceleration method and system of BAS Broadband Access Server | |
JP6395867B2 (en) | OpenFlow communication method and system, control unit, and service gateway | |
EP2081336B1 (en) | Business message transmission method, system and apparatus | |
US20230300726A1 (en) | Data processing method and apparatus, network element device, storage medium, and program product | |
US20230300106A1 (en) | Data processing method, network element device and readable storage medium | |
CN107948087A (en) | A kind of method and apparatus of load balancing | |
CN113747373B (en) | Message processing system, device and method | |
CN102932269A (en) | Method and device for balancing load | |
CN209805866U (en) | Conversation maintaining system | |
Wang et al. | CDLB: a cross-domain load balancing mechanism for software defined networks in cloud data centre | |
CN101355585B (en) | System and method for protecting information of distributed architecture data communication equipment | |
CN112968965B (en) | Metadata service method, server and storage medium for NFV network node | |
CN101621528B (en) | Conversation system based on Ethernet switch cluster management and method for realizing conversation passage | |
CN105072057B (en) | A kind of intermediate switching equipment and its method and system for network data transmission | |
CN107483628A (en) | Unidirectional proxy method and system based on DPDK | |
CN116455817A (en) | Software-defined cloud network fusion architecture and route implementation method | |
CN104580420B (en) | A kind of data transmission system and method across IDC | |
WO2001067678A1 (en) | An information switch |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180327 |
|
RJ01 | Rejection of invention patent application after publication |