CN107370671A - A kind of equal-cost route exchange method and terminal based on SDN - Google Patents
A kind of equal-cost route exchange method and terminal based on SDN Download PDFInfo
- Publication number
- CN107370671A CN107370671A CN201610317252.6A CN201610317252A CN107370671A CN 107370671 A CN107370671 A CN 107370671A CN 201610317252 A CN201610317252 A CN 201610317252A CN 107370671 A CN107370671 A CN 107370671A
- Authority
- CN
- China
- Prior art keywords
- vip
- interchanger
- address
- information
- virtual machine
- 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
Links
Classifications
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- 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/02—Topology update or discovery
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a kind of equal-cost route exchange method based on SDN and terminal, methods described to include:If receiving the request to create of the VIP from cloud client, secondary IP address creates VIP in pond;Correspondingly virtual machine is configured according to the VIP of establishment;Obtain the appropriate ports information reported from interchanger;Exit port group is issued according to the port information of the interchanger, and is assembled according to the exit port and puts equal-cost route table.The present invention can reduce the memory cost of interchanger, and can lift the forwarding performance of interchanger;Can further save interchanger administration overhead it is excessively huge the problem of.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of equal-cost route interaction side based on SDN
Method and terminal.
Background technology
In LVS (Linux Virtual Server, Linux virtual server) group system, Yong Huxu
Create the LVS clusters for belonging to and controlling oneself.Traditional LVS clusters and the message pass-through mode of interchanger are to pass through
Dynamic routing protocol, such as Border Gateway Protocol (Border Gateway Protocol, Border Gateway Protocol)
Carry out message forwarding.However, when being forwarded using dynamic routing protocol, interchanger needs to safeguard and LVS
Real IP address and real MAC address list item between cluster virtual machine, and when the LVS clusters oneself created
When quantity is enough, interchanger needs to safeguard a plurality of Routing Protocol, causes forwarding performance to reduce;In addition, hand over
Change planes and also need to safeguard that the list item between each LVS clusters causes the administration overhead of interchanger excessively huge.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of equal-cost route exchange method and end based on SDN
The design at end.
A kind of equal-cost route exchange method based on SDN, methods described include:
If the establishment for receiving the virtual ip address (Virtual IP Address, VIP) from cloud client please
Ask, secondary IP address creates VIP in pond;
Correspondingly virtual machine is configured according to the VIP of establishment;
Obtain the appropriate ports information reported from interchanger;
Exit port group is issued according to the port information of the interchanger, and is assembled according to the exit port and puts equivalence
Routing table.
Specifically, the VIP according to establishment correspondingly configures to virtual machine, specifically include:Will wound
The LoopBack interfaces of the VIP configurations built on a virtual machine.
Specifically, after creating VIP in the secondary IP address pond, in addition to:Real IP is obtained from virtual machine
Address (Real IP Address, RIP).
Specifically, the information of appropriate ports is corresponding with the switch ports themselves including the virtual machine
Relation information.
More specifically, the information of appropriate ports is stored in the LLDP list items of the interchanger.
A kind of terminal, including:
Receiving module, for receiving the request to create of the VIP from cloud client;
Creation module, for creating VIP in secondary IP address pond;
Configuration module, for correspondingly being configured according to the VIP of establishment to virtual machine;
Data obtaining module, for obtaining the appropriate ports information reported from interchanger;
Issue module, for issuing exit port group according to the port information of the interchanger, and according to it is described go out
Port set configures equal-cost route table.
Specifically, the configuration module, specifically for the LoopBack by the VIP configurations of establishment on a virtual machine
Interface.
Specifically, also include acquisition module, for obtaining real IP address (RIP) from virtual machine.
Specifically, the information of appropriate ports is corresponding with the switch ports themselves including the virtual machine
Relation information.
More specifically, the information of appropriate ports is stored in the LLDP list items of the interchanger.
In summary, the invention has the advantages that:The present invention by create be used for message forward etc.
Valency routing table, in the message repeating process of LVS clusters and interchanger, use the routing forwarding mechanism of equal value
The memory cost of interchanger can be reduced;And when the LVS number of clusters of establishment is enough, interchanger is not required to
A plurality of Routing Protocol is safeguarded, but forwarding performance can be lifted using the forwarding mechanism of the present invention, in addition,
Interchanger need not safeguard the list item between each LVS clusters and cause the administration overhead of interchanger excessively huge
Greatly.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to needed for embodiment description
The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are some of the present invention
Embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, may be used also
To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the flow chart of the equal-cost route exchange method provided in an embodiment of the present invention based on SDN.
Fig. 2 is the functional block diagram of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear
Chu, it is fully described by, it is clear that described embodiment is part of the embodiment of the present invention, rather than all
Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative labor
The every other embodiment obtained under the premise of dynamic, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide one kind based on SDN (Software Defined Network,
SDN) the equal-cost route exchange method of network, this method comprise the following steps:
Step S10, user create LVS (Linux Virtual Server, Linux Virtual Services in cloud client
Device) cluster.
Step S20, if SDN controllers receive virtual ip address (the Virtual IP from cloud client
Address, VIP) request to create;VIP then is created in secondary IP address pond, and generates virtual mac address
(Virtual Media Access Control, VMAC).
In this step, VMAC is automatically generated by SDN controllers, and the VMAC generated is used to hand over
That changes planes issues direct routing;Accurately say, it is necessary to by the message forwarded when carrying out message forwarding
Purpose physical address (Destination Media Access Control, DMAC) is revised as SDN controllers
The VMAC of generation;In addition, in the present invention is implemented, the VIP created can be controlled with same SDN
The VMAC of device generation processed, because the VMAC of SDN controllers generation is intended merely to carry out routing forwarding.
Step S30, SDN controller obtains real IP address (Real IP Address, RIP) from virtual machine.
In this step, SDN controllers need to get RIP from the virtual machine of LVS clusters, so that institute
The VIP of establishment can be configured accurately to the virtual machine of LVS clusters.
Step S40, SDN controller correspondingly configures according to the VIP of establishment to virtual machine.
Specifically, in this step, SDN controllers can configure the VIP of establishment in the virtual of LVS clusters
LoopBack interfaces on machine, so that SDN controllers form corresponding annexation with LVS clusters, with
Facilitate the forwarding of message.
Step S50, SDN controller obtain the appropriate ports information reported from interchanger.
In this step, there is one-to-one relationship, SDN with switch ports themselves for the virtual machine of LVS clusters
The port information that controller is reported by LLDP agreements acquisition interchanger.Specifically, SDN controllers are obtained
The port information taken includes the virtual machine of LVS clusters and the correspondence relationship information of switch ports themselves;Accurately say,
The correspondence relationship information is stored in the LLDP list items of interchanger.
Step S60, SDN controller issues exit port group according to the port information of interchanger, and according to described
Exit port, which assembles, puts equal-cost route table.
In this step, the virtual machine of LVS clusters and the one-to-one corresponding of interchanger are record due to port information
Relation, therefore, SDN controllers are arranged to exit port group using the port information, and are configured to equal-cost route
Table, when carrying out message forwarding, directly enter from multiple ports in the equal-cost route table of SDN controllers configuration
The forwarding of row message can (and traditional message repeating process needs the virtual machine shape of interchanger and each LVS clusters
Message forwarding could be carried out with the corresponding list item of real MAC address) into real IP address;Like this, exist
In the message repeating process of LVS clusters and interchanger, exchange can be reduced using the routing forwarding mechanism of equal value
The memory cost of machine;And when the LVS number of clusters of establishment is enough, interchanger need not safeguard a plurality of road
By agreement, but forwarding performance can be lifted using the equal-cost route forwarding mechanism of the present invention, in addition, exchanging
Machine need not safeguard the list item between each LVS clusters and cause the administration overhead of interchanger excessively huge.
Step S70, the LVS that user creates realize that message forwards with interchanger using the equal-cost route table.
As shown in Fig. 2 the corresponding above-mentioned equal-cost route exchange method based on SDN, the present invention also propose
A kind of terminal, the terminal include:Receiving module S100, creation module S200, acquisition module S300, configuration
Module S400, data obtaining module S500, issue module S600.
Wherein receiving module S100, for receiving the request to create of the VIP from cloud client.
Creation module S200, for creating VIP in secondary IP address pond, and generate virtual mac address
(VMAC)。
Acquisition module S300, for obtaining real IP address (RIP) from virtual machine.
Configuration module S400, for correspondingly being configured according to the VIP of establishment to virtual machine.
Data obtaining module S500, for obtaining the appropriate ports information reported from interchanger.
Wherein, port information includes the correspondence relationship information of the virtual machine and the switch ports themselves, the end
Message breath is stored in the LLDP list items of interchanger.
Module S600 is issued, for issuing exit port group according to the port information of the interchanger, and according to institute
State exit port and assemble and put equal-cost route table.
Further, configuration module S400 is specifically used for configuring the VIP of establishment on a virtual machine
LoopBack interfaces.
Compared with prior art, the beneficial effects of the present invention are:The present invention realizes LVS by SDN controllers
Equal-cost route forwarding mechanism between cluster and interchanger, that is, obtained using SDN controllers from interchanger
Port information issue exit port group, and assemble according to the exit port issued that to put equal-cost route table (traditional
The message pass-through mode of LVS clusters and interchanger is that interchanger needs to safeguard and LVS by dynamic routing protocol
Real IP address and real MAC address list item between cluster virtual machine);In LVS clusters and interchanger
Message repeating process in, the memory cost of interchanger can be reduced using the routing forwarding mechanism of equal value;And
When the LVS number of clusters of establishment is enough, interchanger need not safeguard a plurality of Routing Protocol, but use
The forwarding mechanism of the present invention can lift forwarding performance, in addition, interchanger need not be safeguarded and each LVS collection
Group between list item and cause the administration overhead of interchanger excessively huge.
It is described above, it is the embodiment of the present invention, but protection scope of the present invention is not limited thereto,
Any one skilled in the art the invention discloses technical scope in, can readily occur in various
Equivalent modifications or substitutions, these modifications or substitutions should be all included within the scope of the present invention.Therefore,
Protection scope of the present invention should be defined by scope of the claims.
Claims (10)
1. a kind of equal-cost route exchange method based on SDN, it is characterised in that methods described includes:
If the establishment for receiving the virtual ip address (Virtual IP Address, VIP) from cloud client please
Ask, secondary IP address creates VIP in pond;
Correspondingly virtual machine is configured according to the VIP of establishment;
Obtain the appropriate ports information reported from interchanger;
Exit port group is issued according to the port information of the interchanger, and is assembled according to the exit port and puts equivalence
Routing table.
2. the method as described in claim 1, it is characterised in that the VIP according to establishment is correspondingly to virtual machine
Configured, specifically included:
By the LoopBack interfaces of the VIP configurations of establishment on a virtual machine.
3. the method as described in claim 1, it is characterised in that after creating VIP in the secondary IP address pond, also
Including:
Real IP address (Real IP Address, RIP) is obtained from virtual machine.
4. the method as described in claim 1, it is characterised in that the information of appropriate ports includes described virtual
The correspondence relationship information of machine and the switch ports themselves.
5. method as claimed in claim 4, it is characterised in that the information of appropriate ports is stored in the friendship
In LLDP (Link Layer Discovery Protocol, the LLDP) list item changed planes.
A kind of 6. terminal, it is characterised in that including:
Receiving module, for receiving the request to create of the VIP from cloud client;
Creation module, for creating VIP in secondary IP address pond;
Configuration module, for correspondingly being configured according to the VIP of establishment to virtual machine;
Data obtaining module, for obtaining the appropriate ports information reported from interchanger;
Issue module, for issuing exit port group according to the port information of the interchanger, and according to it is described go out
Port set configures equal-cost route table.
7. terminal as claimed in claim 6, it is characterised in that the configuration module, specifically for by establishment
The LoopBack interfaces of VIP configurations on a virtual machine.
8. terminal as claimed in claim 6, it is characterised in that also including acquisition module, for being obtained from virtual machine
Take real IP address (RIP).
9. terminal as claimed in claim 6, it is characterised in that the information of appropriate ports includes described virtual
The correspondence relationship information of machine and the switch ports themselves.
10. method as claimed in claim 9, it is characterised in that the information of appropriate ports is stored in described
In the LLDP list items of interchanger.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610317252.6A CN107370671B (en) | 2016-05-13 | 2016-05-13 | Equivalent routing interaction method and terminal based on SDN network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610317252.6A CN107370671B (en) | 2016-05-13 | 2016-05-13 | Equivalent routing interaction method and terminal based on SDN network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107370671A true CN107370671A (en) | 2017-11-21 |
CN107370671B CN107370671B (en) | 2020-05-15 |
Family
ID=60304684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610317252.6A Active CN107370671B (en) | 2016-05-13 | 2016-05-13 | Equivalent routing interaction method and terminal based on SDN network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107370671B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102710801A (en) * | 2012-05-03 | 2012-10-03 | 浙江宇视科技有限公司 | Method and device for processing live video stream on demand |
CN103078804A (en) * | 2012-12-28 | 2013-05-01 | 福建星网锐捷网络有限公司 | Method and device for processing equivalent multipath list as well as network equipment |
CN104038376A (en) * | 2014-06-30 | 2014-09-10 | 浪潮(北京)电子信息产业有限公司 | Method and device for managing real servers and LVS clustering system |
CN104780201A (en) * | 2015-03-02 | 2015-07-15 | 新浪网技术(中国)有限公司 | Data packet processing method and device for use in IPVS (Internet Protocol Virtual Server) cluster |
CN105515979A (en) * | 2015-12-29 | 2016-04-20 | 新浪网技术(中国)有限公司 | Open shortest path first (OSPF) over-network balanced forwarding method and OSPF over-network balanced forwarding system |
-
2016
- 2016-05-13 CN CN201610317252.6A patent/CN107370671B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102710801A (en) * | 2012-05-03 | 2012-10-03 | 浙江宇视科技有限公司 | Method and device for processing live video stream on demand |
CN103078804A (en) * | 2012-12-28 | 2013-05-01 | 福建星网锐捷网络有限公司 | Method and device for processing equivalent multipath list as well as network equipment |
CN104038376A (en) * | 2014-06-30 | 2014-09-10 | 浪潮(北京)电子信息产业有限公司 | Method and device for managing real servers and LVS clustering system |
CN104780201A (en) * | 2015-03-02 | 2015-07-15 | 新浪网技术(中国)有限公司 | Data packet processing method and device for use in IPVS (Internet Protocol Virtual Server) cluster |
CN105515979A (en) * | 2015-12-29 | 2016-04-20 | 新浪网技术(中国)有限公司 | Open shortest path first (OSPF) over-network balanced forwarding method and OSPF over-network balanced forwarding system |
Also Published As
Publication number | Publication date |
---|---|
CN107370671B (en) | 2020-05-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Xia et al. | A tale of two topologies: Exploring convertible data center network architectures with flat-tree | |
CN103997414B (en) | Generate method and the network control unit of configuration information | |
CN105282191B (en) | SiteServer LBS, controller and method | |
CN102577277B (en) | Providing a logical aggregated point-to-point data link incorporating a multi-point link | |
CN102511151B (en) | Router, virtual cluster router system and establishing method thereof | |
CN104618475B (en) | Horizontal direction communication means and SDN systems for isomery SDN network | |
EP3096490B1 (en) | Method for realizing network virtualization and related device and communication system | |
US20150117216A1 (en) | Method and system for load balancing at a data network | |
CN104348724B (en) | A kind of data forwarding method and device for supporting multi-tenant | |
CN103763367A (en) | Method and system for designing distributed virtual network in cloud calculating data center | |
CN102307246A (en) | Protection system and method for secure communication among virtual machines based on cloud computing | |
CN110324159B (en) | Link configuration method, controller and storage medium | |
CN103534987B (en) | For the method and system of configuration virtual network configuration | |
CN104539558B (en) | Extendible capacity IP phone interchanger rolling reamer machine system and automatic expansion method | |
CN108270690A (en) | The method and apparatus for controlling message flow | |
CN113259503A (en) | Method and system for realizing cross-network communication among different containers based on Infiniband | |
CN107003860A (en) | A kind of software defined network controller and its creation method | |
CN106452873A (en) | Control method, control device and processor in software defined network | |
CN104301229A (en) | Data packet forwarding method and device and routing table generating method and device. | |
EP3399424B1 (en) | Using unified api to program both servers and fabric for forwarding for fine-grained network optimizations | |
CN107547403A (en) | Message forwarding method, assisted method, device, controller and main frame | |
CN108512737A (en) | A kind of method and SDN controllers of data center IP layers of interconnection | |
CN107370671A (en) | A kind of equal-cost route exchange method and terminal based on SDN | |
CN103152428A (en) | Method for carrying out service communication among nodes on cloud platform | |
CN103004157A (en) | Interface register method and device for network device to join cluster system |
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 |