CN106034077B - A kind of dynamic route collocating method, apparatus and system - Google Patents

A kind of dynamic route collocating method, apparatus and system Download PDF

Info

Publication number
CN106034077B
CN106034077B CN201510119094.9A CN201510119094A CN106034077B CN 106034077 B CN106034077 B CN 106034077B CN 201510119094 A CN201510119094 A CN 201510119094A CN 106034077 B CN106034077 B CN 106034077B
Authority
CN
China
Prior art keywords
virtual machine
routing
route
virtual
table items
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
CN201510119094.9A
Other languages
Chinese (zh)
Other versions
CN106034077A (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510119094.9A priority Critical patent/CN106034077B/en
Priority to PCT/CN2016/076633 priority patent/WO2016146077A1/en
Publication of CN106034077A publication Critical patent/CN106034077A/en
Application granted granted Critical
Publication of CN106034077B publication Critical patent/CN106034077B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/028Dynamic adaptation of the update intervals, e.g. event-triggered updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/08Learning-based routing, e.g. using neural networks or artificial intelligence
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of dynamic route collocating methods, apparatus and system, are related to computer field, to solve the problems, such as using manual configuration routing heavy workload when distributed network gate and adjustment inconvenience.The specific scheme is that SDN controller receives the route learning message that dynamic routing agency sends;SDN controller updates at least one first route table items according to external routing information;SDN controller converts the first flow entry for secondary route list item in the data packet for carrying out self virtualizing machine that the virtual switch for receiving virtual machine is sent;SDN controller sends the first flow entry to the virtual switch of virtual machine, and the virtual switch to indicate virtual machine is forwarded according to the first flow entry by the distributed network gate disposed on the virtual switch of virtual machine come the data packet of self virtualizing machine.

Description

A kind of dynamic route collocating method, apparatus and system
Technical field
The present invention relates to computer field more particularly to a kind of dynamic route collocating methods, apparatus and system.
Background technique
Software defined network (English: Software Defined Network, abbreviation: SDN) is a kind of by the network equipment Control plane and the network that separates of data surface.Currently, commonly a kind of technology is OpenFlow technology in SDN, using the skill Art, SDN controller can control forwarding of the virtual switch to data packet by the flow table on control virtual switch.With The continuous maturation of SDN technology, more and more operator/cloud service providers are using SDN as the preferred side of management data center Case.
Inside data center, one or more virtual machines can be disposed on a physical server, each virtual machine to Data center's external equipment is needed when sending data packet by centralized gateway and borde gateway.But as data center advises The expansion of mould, the data traffic between virtual machine and data center's external equipment inside data center increases severely, by centralization The data traffic of gateway also can be very big, accordingly, it is possible to will lead to the load excessive of centralized gateway and influence network performance.
In order to share the load of centralized gateway, it may be considered that distributed network gate is used, in the virtual friendship of each virtual machine It changes planes and disposes a distributed network gate on the virtual switch of access (i.e. virtual machine), each virtual machine passes through respective virtual friendship Change planes upper deployment distributed network gate to data center's external equipment send data packet.But in order to enable virtual machine to number Data packet is sent according to center external equipment, needs to shut in each distributed network and is respectively configured outside borde gateway and data center Routing between equipment, if these routings of manual configuration, workload can be very big, and when network topology changes, hand Dynamic these routings of adjustment are very inconvenient.
Summary of the invention
The embodiment of the present invention provides a kind of dynamic route collocating method, apparatus and system, to solve using distribution The problem of manual configuration routing heavy workload and adjustment inconvenience when gateway.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
The embodiment of the present invention in a first aspect, provide a kind of dynamic route collocating method, be applied to software defined network SDN In, the SDN is connected by borde gateway with external network, include in the SDN: SDN controller, at least two virtual machines, The virtual switch of the virtual machine and dynamic routing are acted on behalf of, and deployment is distributed formula net on the virtual switch of the virtual machine It closes, which comprises
The SDN controller receives the route learning message that the dynamic routing agency sends, the route learning message In carry external routing information, the routing that the external routing information is used to characterize between external equipment and borde gateway is closed System;
The SDN controller updates at least one first route table items according to the external routing information, and described at least one In the first route table items of each of a first route table items include the address of the external equipment and is sent out to the external equipment The address for the borde gateway to be passed through when sending data packet;
The data packet from the virtual machine that the SDN controller is sent in the virtual switch for receiving virtual machine When, the first flow entry is converted by secondary route list item, the secondary route list item is at least one described first route table items In a route table items, the address for the external equipment for including in the secondary route list item and described from the virtual machine The destination address of data packet is identical, and the virtual machine is any one virtual machine at least two virtual machine;
The SDN controller sends first flow entry to the virtual switch of the virtual machine, to indicate the void Intend the virtual switch of machine according to first flow entry, the distributed network disposed on the virtual switch by the virtual machine It closes and forwards the data packet from the virtual machine.
With reference to first aspect, in the first possible implementation of the first aspect, the method also includes:
The SDN controller obtains internal routing information from least one third route table items, it is described at least one In each third route table items in three route table items include the address of the virtual machine and sends data packet to the virtual machine When the distributed network gate to be passed through address, it is described to the virtual machine send data packet when the distributed network gate to be passed through The distributed network gate disposed on virtual switch for the virtual machine, the internal routing information is for characterizing the virtual machine With the routing relation between the distributed network gate disposed on the virtual switch of the virtual machine;
The SDN controller sends the first via for carrying the internal routing information by sending out to dynamic routing agency Cloth message, the first via are used to indicate the dynamic routing and are acted on behalf of to the borde gateway publication internal routing from giving out information Information;
Wherein, routing table is stored in the SDN controller, the routing table includes at least one described first routing table Item and at least one described third route table items.
The possible implementation of with reference to first aspect the first, in second of possible implementation of first aspect In, in the SDN controller before obtaining internal routing information at least one third route table items, the method is also wrapped It includes:
The SDN controller obtains the routing iinformation of the virtual machine, and the routing iinformation of the virtual machine includes the void The address for the distributed network gate disposed on the address of quasi- machine and the virtual switch of the virtual machine;
The SDN controller generates the third route table items according to the routing iinformation of the virtual machine.
The possible implementation of second with reference to first aspect, in the third possible implementation of first aspect In, after the SDN controller generates the third route table items according to the routing iinformation of the virtual machine, the method is also Include:
The third route table items are converted the second flow entry by the SDN controller, and to the virtual of the virtual machine Interchanger sends second flow entry.
With reference to first aspect with above-mentioned possible implementation, in a fourth possible implementation of the first aspect, The dynamic routing agency is deployed on the virtual machine, alternatively, dynamic routing agency deployment is on the server.
The 4th kind of possible implementation with reference to first aspect, in the 5th kind of possible implementation of first aspect In, also comprising centralized gateway in the SDN;The routing table also includes the 4th route table items;In 4th route table items The IP address of the IP address of network segment belonging to Internet protocol IP comprising the virtual machine and the centralized gateway;
The method also includes:
The SDN controller is obtained from the 4th route table items concentrates routing iinformation, and the concentration routing iinformation is used Routing relation between the characterization virtual machine and the centralized gateway;
The SDN controller is sent to dynamic routing agency carries the secondary route hair for concentrating routing iinformation Cloth message, the secondary route give out information to be used to indicate the dynamic routing and act on behalf of and issue concentrations to borde gateway and route Information.
The second aspect of the embodiment of the present invention provides a kind of dynamic route collocating method, is applied to software defined network SDN In, the SDN is connected by borde gateway with external network, include in the SDN: SDN controller, at least two virtual machines, The virtual switch of the virtual machine and dynamic routing are acted on behalf of, and deployment is distributed formula net on the virtual switch of the virtual machine It closes, which comprises
The dynamic routing agency receives the external routing information that borde gateway is sent, and the external routing information is used for table Levy the routing relation between external equipment and borde gateway;
The dynamic routing is acted on behalf of to disappear to the route learning that the SDN controller sends the carrying external routing information Breath, so that the SDN controller updates at least one first route table items according to the external routing information, so that institute SDN controller is stated when the virtual switch transmission for receiving virtual machine is from the data packet of the virtual machine, by the second tunnel First flow entry is converted by list item, and sends first flow entry to the virtual switch of the virtual machine;
It wherein, include the external equipment in the first route table items of each of at least one described first route table items Address and to the external equipment send data packet when the borde gateway to be passed through address;The secondary route list item is institute State a route table items at least one first route table items, the address for the external equipment for including in the secondary route list item Identical as the destination address of the data packet from the virtual machine, the virtual machine is at least two virtual machine Any one virtual machine.
In conjunction with second aspect, in the first possible implementation of the second aspect, the method also includes:
Dynamic routing agency receives the first via that the SDN controller is sent by giving out information, the first via by Internal routing information is carried in giving out information, the internal routing information is used to characterize the virtual machine and the virtual machine The routing relation between distributed network gate disposed on virtual switch;
The dynamic routing is acted on behalf of to borde gateway and issues the internal routing information.
In conjunction with the first possible implementation of second aspect, in second of possible implementation of second aspect In, the dynamic routing agency receives the external routing information that borde gateway is sent, comprising:
The dynamic routing agency is based on dynamic routing protocol, receives the external routing information that borde gateway is sent;
The dynamic routing is acted on behalf of to borde gateway and issues the internal routing information, comprising:
The dynamic routing agency is based on the dynamic routing protocol, issues the internal routing information to borde gateway.
In conjunction with second aspect and above-mentioned possible implementation, in the third possible implementation of the second aspect, The dynamic routing agency is deployed on the virtual machine, alternatively, dynamic routing agency deployment is on the server.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect In, also comprising centralized gateway in the SDN;The method also includes:
The dynamic routing agency receives the secondary route that the SDN controller is sent and gives out information, the secondary route Concentration routing iinformation is carried in giving out information, the concentration routing iinformation is for characterizing the virtual machine and the centralized network Routing relation between pass;
The dynamic routing is acted on behalf of to borde gateway and issues the concentration routing iinformation.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect In, the dynamic routing is acted on behalf of to borde gateway and issues the concentration routing iinformation, comprising:
The dynamic routing agency is based on the dynamic routing protocol, issues the concentration routing iinformation to borde gateway.
The third aspect of the embodiment of the present invention provides a kind of software defined network SDN controller, is applied in SDN, described SDN is connected by borde gateway with external network, includes in the SDN: the SDN controller, at least two virtual machines, described The virtual switch of virtual machine and dynamic routing are acted on behalf of, and deployment is distributed formula gateway, institute on the virtual switch of the virtual machine Stating SDN controller includes:
Receiving unit, the route learning message sent for receiving the dynamic routing agency, the route learning message In carry external routing information, the routing that the external routing information is used to characterize between external equipment and borde gateway is closed System;
Updating unit, for updating at least one first route table items according to the external routing information, described at least one In the first route table items of each of a first route table items include the address of the external equipment and is sent out to the external equipment The address for the borde gateway to be passed through when sending data packet;
Converting unit is routed, the data from the virtual machine for sending in the virtual switch for receiving virtual machine Secondary route list item is converted the first flow entry by Bao Shi, and the secondary route list item is at least one described first routing table A route table items in, the address for the external equipment for including in the secondary route list item and described from the virtual machine Data packet destination address it is identical, the virtual machine be at least two virtual machine in any one virtual machine;
First transmission unit, for sending first flow entry to the virtual switch of the virtual machine, to indicate The virtual switch of virtual machine is stated according to first flow entry, the distribution disposed on the virtual switch by the virtual machine Data packet from the virtual machine described in formula gateway forwards.
In conjunction with the third aspect, in the first possible implementation of the third aspect, the SDN controller further include:
Acquiring unit, for obtaining internal routing information from least one third route table items, it is described at least one In each third route table items in three route table items include the address of the virtual machine and sends data packet to the virtual machine When the distributed network gate to be passed through address, it is described to the virtual machine send data packet when the distributed network gate to be passed through The distributed network gate disposed on virtual switch for the virtual machine, the internal routing information is for characterizing the virtual machine With the routing relation between the distributed network gate disposed on the virtual switch of the virtual machine;
Second transmission unit, for sending the first via for carrying the internal routing information to dynamic routing agency By giving out information, the first via issues the inside from giving out information to be used to indicate the dynamic routing and act on behalf of to borde gateway Routing iinformation;
Wherein, routing table is stored in the SDN controller, the routing table includes at least one described first routing table Item and at least one described third route table items.
In conjunction with the first possible implementation of the third aspect, in second of possible implementation of the third aspect In, the acquiring unit, be also used to from least one third route table items obtain internal routing information before, described in acquisition The routing iinformation of virtual machine, the routing iinformation of the virtual machine include the address of the virtual machine and the virtual friendship of the virtual machine Change planes upper deployment distributed network gate address;
The SDN controller further include:
Generation unit, for generating the third route table items according to the routing iinformation of the virtual machine.
In conjunction with second of possible implementation of the third aspect, in the third possible implementation of the third aspect In, the routing converting unit is also used to generate the third according to the routing iinformation of the virtual machine in the generation unit After route table items, the second flow entry is converted by the third route table items;
First transmission unit is also used to send second flow entry to the virtual switch of the virtual machine.
In conjunction with the third aspect and above-mentioned possible implementation, in the fourth possible implementation of the third aspect, The dynamic routing agency is deployed on the virtual machine, alternatively, dynamic routing agency deployment is on the server.
In conjunction with the 4th kind of possible implementation of the third aspect, in the 5th kind of possible implementation of the third aspect In, also comprising centralized gateway in the SDN;The routing table also includes the 4th route table items;In 4th route table items The IP address of the IP address of network segment belonging to Internet protocol IP comprising the virtual machine and the centralized gateway;
The acquiring unit is also used to obtain from the 4th route table items and concentrates routing iinformation, the concentration routing Information is used to characterize the routing relation between the virtual machine and the centralized gateway;
Second transmission unit described concentrates the of routing iinformation for sending to carry to dynamic routing agency Two routing give out information, the secondary route give out information be used to indicate the dynamic routing act on behalf of to borde gateway publication described in Concentrate routing iinformation.
The fourth aspect of the embodiment of the present invention provides a kind of dynamic routing agency, is applied in software defined network SDN, The SDN is connected by borde gateway with external network, includes in the SDN: SDN controller, at least two virtual machines, described The virtual switch of virtual machine and the dynamic routing are acted on behalf of, and deployment is distributed formula net on the virtual switch of the virtual machine It closes, the dynamic routing agency includes:
Receiving unit, for receiving the external routing information of borde gateway transmission, the external routing information is for characterizing Routing relation between external equipment and borde gateway;
Transmission unit, for sending the route learning message for carrying the external routing information to the SDN controller, with So that the SDN controller updates at least one first route table items according to the external routing information, so that the SDN Controller is when the virtual switch transmission for receiving virtual machine is from the data packet of the virtual machine, by secondary route list item It is converted into the first flow entry, and sends first flow entry to the virtual switch of the virtual machine;
It wherein, include the external equipment in the first route table items of each of at least one described first route table items Address and to the external equipment send data packet when the borde gateway to be passed through address;The secondary route list item is institute State a route table items at least one first route table items, the address for the external equipment for including in the secondary route list item Identical as the destination address of the data packet from the virtual machine, the virtual machine is at least two virtual machine Any one virtual machine.
In conjunction with fourth aspect, in the first possible implementation of the fourth aspect, the receiving unit is also used to connect The first via of the SDN controller transmission is received by giving out information, the first via is by carrying internal routing letter in giving out information Breath, the internal routing information are used to characterize the distributed network disposed on the virtual switch of the virtual machine and the virtual machine Routing relation between pass;
The transmission unit is also used to issue the internal routing information to borde gateway.
In conjunction with the first possible implementation of fourth aspect, in second of possible implementation of fourth aspect In, the dynamic routing agency further include:
Control unit is based on dynamic routing protocol for controlling the receiving unit, receives the outside that borde gateway is sent Routing iinformation;
Described control unit is also used to control the transmission unit and is based on the dynamic routing protocol, sends out to borde gateway Internal routing information described in cloth.
In conjunction with fourth aspect and above-mentioned possible implementation, in the third possible implementation of the fourth aspect, The dynamic routing agency is deployed on the virtual machine, alternatively, dynamic routing agency deployment is on the server.
In conjunction with the third possible implementation of fourth aspect, in the 4th kind of possible implementation of fourth aspect In, also comprising centralized gateway in the SDN;
The receiving unit is also used to receive the secondary route that the SDN controller is sent and gives out information, second tunnel By carrying concentration routing iinformation in giving out information, the concentration routing iinformation is for characterizing the virtual machine and the centralization Routing relation between gateway;
The transmission unit is also used to issue the concentration routing iinformation to borde gateway.
In conjunction with the 4th kind of possible implementation of fourth aspect, in the 5th kind of possible implementation of fourth aspect In, described control unit is also used to control the transmission unit and is based on the dynamic routing protocol, to described in borde gateway publication Concentrate routing iinformation.
5th aspect of the embodiment of the present invention provides a kind of dynamic routing configuration system, the system comprises: software definition Network SDN controller, at least two virtual machines, the virtual switch of the virtual machine and dynamic routing agency, the virtual machine Virtual switch on deployment be distributed formula gateway;
The SDN controller, the route learning message sent for receiving the dynamic routing agency, the route learning External routing information is carried in message, the external routing information is used to characterize the routing between external equipment and borde gateway Relationship;At least one first route table items is updated according to the external routing information, at least one described first route table items Each of address in the first route table items comprising the external equipment and will be through when sending data packet to the external equipment The address for the borde gateway crossed;When the virtual switch transmission for receiving virtual machine is from the data packet of the virtual machine, The first flow entry is converted by secondary route list item, the secondary route list item is at least one described first route table items One route table items, the address for the external equipment for including in the secondary route list item and the data from the virtual machine The destination address of packet is identical, and the virtual machine is any one virtual machine at least two virtual machine;To described virtual The virtual switch of machine sends first flow entry, to indicate the virtual switch of the virtual machine according to first flow table , the distributed network gate disposed on the virtual switch by the virtual machine forwards the data from the virtual machine Packet;
The dynamic routing agency, the external routing information sent for receiving the borde gateway;To the SDN Controller sends the route learning message for carrying the external routing information, so that the SDN controller is according to External routing information updates at least one described first route table items, so that the SDN controller is receiving the void The virtual switch of quasi- machine send from the data packet of the virtual machine when, convert described for the secondary route list item One flow entry, and first flow entry is sent to the virtual switch of the virtual machine.
Dynamic route collocating method provided in an embodiment of the present invention, apparatus and system, SDN controller is according to the road received At least one first route table items is updated by the external routing information carried in study message;SDN controller is receiving virtually When the data packet from the virtual machine that the virtual switch of machine (any one virtual machine for including in SDN) is sent, by second Route table items are converted into the first flow entry, and send the first flow entry to the virtual switch of the virtual machine, so that this is virtual The virtual switch of machine, should by the distributed network gate forwarding disposed on the virtual switch of the virtual machine according to the first flow entry Data packet from the virtual machine.Wherein, secondary route list item is a route table items at least one first route table items, The address for the external equipment for including in secondary route list item is identical as the destination address of the data packet from the virtual machine is somebody's turn to do.This Sample, when the virtual machine needs to send data packet to external equipment, the virtual switch of the virtual machine can be according to first-class List item forwards the data packet by the distributed network gate disposed on the virtual switch of the virtual machine, without being distributed manually The routing between borde gateway and external equipment is configured on formula gateway, so as to solve in the prior art using distributed network gate When manual configuration routing heavy workload the problem of;In addition, when network topology changes, using dynamic in the embodiment of the present invention State method for configuring route, SDN controller can update first according to the external routing information dynamic carried in route learning message Route table items are divided so as to dynamically adjust the routing between borde gateway and external equipment with solving to use in the prior art Inconvenient problem is adjusted when cloth gateway.
Detailed description of the invention
Fig. 1 is the composition schematic diagram of the SDN in the embodiment of the present invention;
Fig. 2 is one of embodiment of the present invention dynamic route collocating method flow chart;
Fig. 3 is another dynamic route collocating method flow chart in the embodiment of the present invention;
Fig. 4 is another dynamic route collocating method flow chart in the embodiment of the present invention;
Fig. 5 is another dynamic route collocating method flow chart in the embodiment of the present invention;
Fig. 6 is another dynamic route collocating method flow chart in the embodiment of the present invention;
Fig. 7 is the composition schematic diagram of one of embodiment of the present invention SDN controller;
Fig. 8 is the composition schematic diagram of another SDN controller in the embodiment of the present invention;
Fig. 9 is the composition schematic diagram of another SDN controller in the embodiment of the present invention;
Figure 10 is the composition schematic diagram of one of embodiment of the present invention dynamic routing agency;
Figure 11 is the composition schematic diagram of another dynamic routing agency in the embodiment of the present invention;
Figure 12 is the composition schematic diagram of another SDN controller in the embodiment of the present invention;
Figure 13 is the composition schematic diagram of another dynamic routing agency in the embodiment of the present invention;
Figure 14 is the composition schematic diagram of another dynamic routing agency in the embodiment of the present invention;
Figure 15 is the composition schematic diagram that the dynamic routing of one of the embodiment of the present invention configures system.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention is applied to SDN, and SDN is connected by borde gateway with external network, as shown in Figure 1, wrapping in SDN Controller containing SDN, at least two virtual machines, the virtual switch (i.e. the virtual switch of virtual machine access) of virtual machine and dynamic Route agent.Wherein, multiple virtual machines can access the same virtual switch, but each virtual machine only accesses one virtually The virtual switch of interchanger, i.e., each virtual machine is unique.The virtual switch of virtual machine and virtual machine is deployed in service On device, multiple virtual machines can be disposed on a server.The data packet that virtual machine is sent can pass through distributed network gate and side The forwarding of boundary's gateway reaches external equipment.Dynamic routing agency in the embodiment of the present invention and between borde gateway pass through dynamic road Control plane interaction is carried out by agreement.Common dynamic routing protocol includes: Border Gateway Protocol (English: Border Gateway Protocol, abbreviation: BGP) and ospf (English: Open Shortest Path First, abbreviation: The description of OSPF) agreement etc., specific dynamic routing protocol can refer to associated description in the prior art, the embodiment of the present invention Which is not described herein again.
The embodiment of the present invention provides a kind of dynamic route collocating method, as shown in Figure 2, comprising:
S101, SDN controller receive the route learning message that dynamic routing agency sends.
Wherein, carry external routing information in route learning message, external routing information for characterize external equipment with Routing relation between borde gateway.SDN controller can receive route learning message after the completion of network initial configuration, can also Route learning message is received when changing with the routing relation between external equipment and borde gateway.External routing information can With for characterizing a routing relation between external equipment and borde gateway, external routing information can be used for characterizing multiple Routing relation between external equipment and borde gateway.
It should be noted that the dynamic routing agency in the embodiment of the present invention can dispose on a virtual machine, it can also portion Administration on the server, is configured with the network interface card that can be used for being communicated with borde gateway in dynamic routing agency.Dynamic routing generation Reason can be a functional module, be also possible to a physical entity, when dynamic routing agency deployment on the server when, can be with Server where dynamic routing agency is known as dynamic routing agency.
S102, SDN controller update at least one first route table items according to external routing information.
Wherein, it is stored with routing table in SDN controller, is known as routing by each single item in routing table in the embodiment of the present invention List item.Include at least one first route table items in the routing table, includes an external equipment in each first route table items Address and to the external equipment send data packet when the borde gateway to be passed through address.
The address of external equipment can for external equipment Internet protocol (English: Internet Protocol, abbreviation: IP) address, or media access control (Media Access Control, abbreviation: MAC) address of external equipment, this Inventive embodiments do not limit this.
The address of borde gateway can be the IP address of borde gateway, or the MAC Address of borde gateway, the present invention Embodiment does not limit this.
It should be noted that subnet mask, priority etc., the first routing table can also be included in each first route table items Format can with reference to routing tableau format in the prior art, the present invention to the formats of the first route table items without limitation.
S103, SDN controller, will in the data packet for carrying out self virtualizing machine that the virtual switch for receiving virtual machine is sent Secondary route list item is converted into the first flow entry.
Wherein, secondary route list item is a route table items at least one first route table items, secondary route list item In include external equipment address it is identical as the destination address of the data packet from the virtual machine, the virtual machine in this step is Any one virtual machine at least two virtual machines.
First flow entry is used to indicate the forward rule when virtual switch forwarding data packet of virtual machine.The present invention is implemented Without limitation to the format of the first flow entry, the format of the first flow entry can be retouched example with reference to the correlation of flow entry in the prior art It states.
S104, SDN controller send the first flow entry to the virtual switch of virtual machine, to indicate the virtual friendship of virtual machine It changes planes according to the first flow entry, is forwarded by the distributed network gate disposed on the virtual switch of virtual machine from the virtual machine Data packet.
Illustratively, it is assumed that virtual machine 1 (virtual machine 1 is any one virtual machine for including in SDN) will be to external equipment 1 Data packet is sent, the IP address of external equipment 1 is 10.10.10.5, then virtual machine 1 first sends the packet to virtual switch Machine 1 (i.e. the virtual switch of virtual machine 1);Whether being stored with destination address on the lookup virtual switch 1 of virtual switch 1 is 10.10.10.5 flow entry;It is virtual to hand over if being stored with the flow entry that destination address is 10.10.10.5 on virtual switch 1 1 is changed planes according to the flow entry, which is forwarded by the distributed network gate disposed on virtual switch 1;If virtual switch 1 On be not stored with destination address be 10.10.10.5 flow entry, then the data packet is sent to SDN control by virtual switch 1 Device, SDN controller convert the first flow entry for secondary route list item corresponding with the destination address and are issued to virtual switch 1, virtual switch 1 forwards the data packet further according to the first flow entry, by the distributed network gate disposed on virtual switch 1.
Dynamic route collocating method provided in an embodiment of the present invention, SDN controller is according to the route learning message received The external routing information of middle carrying updates at least one first route table items;SDN controller (is wrapped in SDN receiving virtual machine Any one virtual machine contained) virtual switch send the data packet from the virtual machine when, by secondary route list item turn The first flow entry is turned to, and sends the first flow entry to the virtual switch of the virtual machine, so that the virtual friendship of the virtual machine It changes planes according to the first flow entry, it should be virtual from this by the distributed network gate forwarding disposed on the virtual switch of the virtual machine The data packet of machine.Wherein, secondary route list item is a route table items at least one first route table items, secondary route table The address for the external equipment for including in is identical as the destination address of the data packet from the virtual machine is somebody's turn to do.In this way, when this is virtual When machine needs to send data packet to external equipment, the virtual switch of the virtual machine can be according to the first flow entry, by this The distributed network gate disposed on the virtual switch of virtual machine forwards the data packet, without shutting configuration in distributed network manually Routing between borde gateway and external equipment, so as to solve in the prior art using manual configuration road when distributed network gate The problem of by heavy workload;In addition, when network topology changes, using the dynamic routing configuration side in the embodiment of the present invention Method, SDN controller can update the first route table items according to the external routing information dynamic carried in route learning message, thus The routing between borde gateway and external equipment can be dynamically adjusted, is adjusted when distributed network gate with solving to use in the prior art Inconvenient problem.
Further, as shown in figure 3, dynamic route collocating method provided in an embodiment of the present invention can also include:
S105, SDN controller obtain internal routing information from least one third route table items.
Wherein, in the routing table stored in SDN controller other than comprising at least one first route table items, also include At least one third route table items.It include the ground of virtual machine in each third route table items at least one third route table items Location and when sending data packet to virtual machine the distributed network gate to be passed through address, will be through when to virtual machine transmission data packet The distributed network gate crossed is the distributed network gate disposed on the virtual switch of virtual machine, and internal routing information is for characterizing virtually The routing relation between distributed network gate disposed on the virtual switch of machine and virtual machine.
It should be noted that large-scale data center would generally support that (tenant is to provide using data center to multiple tenants The user in source a, for example, enterprise can be a tenant), the resource at multiple tenant's shared datas center.The embodiment of the present invention In SDN controller can also support the scene of multiple tenants.Specifically, can store multiple routing tables in SDN controller, often The corresponding tenant of a routing table.SDN controller can manage each routing table independently.It is corresponding, dynamic routing generation Multiple dynamic routing instance of agent, the corresponding tenant of each dynamic routing instance of agent, each dynamic can also be disposed in reason Route agent's example can realize the function of the agency of the dynamic routing in the embodiment of the present invention.SDN controller can be to dynamic All dynamic routing instance of agent disposed in route agent carry out the management of life cycle.
S106, SDN controller are sent to dynamic routing agency carries the first via of internal routing information by giving out information, The first via from give out information be used to indicate dynamic routing act on behalf of to borde gateway issue internal routing information.
In this way, borde gateway be obtained with the distributed network gate disposed on the virtual switch of virtual machine and virtual machine it Between routing relation, borde gateway can update the route table items that store on borde gateway according to internal routing information.Work as outside When equipment will send data packet to virtual machine, which is first sent to borde gateway, borde gateway by external equipment According to the route table items stored on borde gateway, which is forwarded to the distribution disposed on the virtual switch of virtual machine The data packet is sent to virtual machine by gateway, then the distributed network gate by disposing on the virtual switch of virtual machine.
It should be noted that in embodiments of the present invention, S105-S106 can be executed before S101-S 104, S105- S106 can also be executed after S101-S104.
Further, in SDN controller before obtaining internal routing information at least one third route table items, SDN The routing iinformation of a virtual machine in available at least two virtual machine of controller, further according to the routing iinformation of the virtual machine Generate a third route table items.Wherein, the routing iinformation of the virtual machine includes the address of the virtual machine and the void of the virtual machine The address for the distributed network gate disposed on quasi- interchanger.
Further, after SDN controller generates third route table items according to the routing iinformation of the virtual machine, SDN control Device processed can convert third route table items to the second flow entry, and send the second flow table to the virtual switch of the virtual machine , the second flow entry can serve to indicate that the forwarding rule when virtual switch of the virtual machine forwards data packet to the virtual machine Then.
Optionally, centralized gateway can also be included in SDN;Can also include in the routing table stored in SDN controller 4th route table items;The IP address and centralized network of network segment belonging to Internet protocol IP in 4th route table items comprising virtual machine The IP address of pass.
Dynamic route collocating method provided in an embodiment of the present invention can also include: SDN controller from the 4th route table items Routing iinformation is concentrated in middle acquisition, and routing iinformation is concentrated to be used to characterize the routing relation between virtual machine and centralized gateway;SDN control Device processed sends to carry to dynamic routing agency concentrates the secondary route of routing iinformation to give out information, and secondary route gives out information use It acts on behalf of to issue to borde gateway in instruction dynamic routing and concentrates routing iinformation.
It should be noted that the third route table items in the embodiment of the present invention are different from the 4th route table items, third routing List item is Host routes, and the 4th route table items are network segment routing.SDN controller can control dynamic routing and act on behalf of to borde gateway Host routes are issued, dynamic routing is also can control and acts on behalf of to borde gateway publication network segment routing.It can be set in SDN controller Distributed network gate switch, when distributed network gate, which switchs, to be opened, dynamic routing is acted on behalf of to borde gateway and issues Host routes, host Routing can serve to indicate that each virtual machine send data packet when the distributed network gate to be passed through respectively, for example, to IP To pass through the distribution disposed on the virtual switch of virtual machine 1 when the transmission data packet of virtual machine 1 that address is 192.168.100.5 Formula gateway will pass through the virtual switch of virtual machine 2 when sending data packet to the virtual machine 2 that IP address is 192.168.100.125 The distributed network gate disposed on machine;When distributed network gate, which switchs, closes, dynamic routing is acted on behalf of to borde gateway and issues network segment road By network segment routing can serve to indicate that will be by concentrating when the virtual machine for belonging to the same network segment to IP address sends data packet Formula gateway will pass through when for example, sending data packet to the virtual machine that IP address is 192.168.100.1-192.168.100.255 Centralized gateway.Under multi-tenant scene, different gateways is can be used in different tenants, for example, a tenant uses distribution Formula gateway, another tenant use centralized gateway.
The embodiment of the present invention provides a kind of dynamic route collocating method, as shown in Figure 4, comprising:
S201, dynamic routing agency receive the external routing information that borde gateway is sent, and external routing information is for characterizing Routing relation between external equipment and borde gateway.
Wherein, dynamic routing agency can receive external routing information after the completion of network initial configuration, can also be outside Routing relation between portion's equipment and borde gateway receives external routing information when changing.
Dynamic routing agency in the embodiment of the present invention can dispose on a virtual machine, can also dispose on the server.
S202, dynamic routing act on behalf of the route learning message for sending to SDN controller and carrying external routing information, so that SDN controller updates at least one first route table items according to external routing information, so that SDN controller is receiving void When the data packet for carrying out self virtualizing machine that the virtual switch of quasi- machine is sent, the first flow entry is converted by secondary route list item, and The first flow entry is sent to the virtual switch of virtual machine.
It wherein, include the address of an external equipment in the first route table items of each of at least one first route table items With the address of the borde gateway to be passed through when sending data packet to the external equipment;Secondary route list item be at least one first A route table items in route table items, the address for the external equipment for including in secondary route list item and the data for carrying out self virtualizing machine The destination address of packet is identical, and virtual machine is any one virtual machine at least two virtual machines.
Further, dynamic routing agency may include: " master " dynamic routing agency and " standby " dynamic routing agency." master " Dynamic routing agency and " standby " dynamic routing agency are the identical dynamic routing agency of two functions.Under normal conditions, " master " dynamic routing agency's operation.It can establish " heartbeat " mechanism, i.e. " master " between SDN controller and " master " dynamic routing agency Dynamic routing agency periodically can send customized structural body (also referred to as " heartbeat packet " or " a heartbeat to SDN controller Frame "), if SDN controller can normally receive " heartbeat packet ", SDN controller can determine " master " dynamic routing agency just Often operation;If SDN controller can not normally receive " heartbeat packet ", SDN controller can determine that " master " dynamic routing is acted on behalf of It breaks down or delay machine occurs, at this point, SDN controller control " standby " dynamic routing agency runs, to guarantee reliability.Wherein, The particular content of " heartbeat " mechanism and the specific format of " heartbeat packet " can refer to associated description in the prior art, and the present invention is real Example is applied no longer to be described in detail here.
Dynamic route collocating method provided in an embodiment of the present invention, dynamic routing is acted on behalf of to be sent outside carrying to SDN controller The route learning message of portion's routing iinformation so that SDN controller according to external routing information update at least one first via by List item, so that SDN controller in the data packet for carrying out self virtualizing machine that the virtual switch for receiving virtual machine is sent, is incited somebody to action Secondary route list item is converted into the first flow entry, and sends the first flow entry to the virtual switch of virtual machine.In this way, virtual machine Virtual switch can pass through the distributed network gate disposed on the virtual switch of virtual machine and forward according to the first flow entry The data packet for carrying out self virtualizing machine, without shutting the routing between configuration borde gateway and external equipment in distributed network manually, So as to solve the problems, such as in the prior art using manual configuration routing heavy workload when distributed network gate;In addition, working as network When topology changes, using the dynamic route collocating method in the embodiment of the present invention, dynamic routing agency can pass through outside The routing relation between external equipment and borde gateway after routing information acquisition network topology change, and by being controlled to SDN Device sends route learning message instruction SDN controller dynamic and updates the first route table items, so as to dynamically adjust borde gateway Routing between external equipment is inconvenient using adjustment when distributed network gate in the prior art to solve the problems, such as.
Further, as shown in figure 5, dynamic route collocating method provided in an embodiment of the present invention can also include:
S203, dynamic routing agency receive the first via of SDN controller transmission by giving out information.
Wherein, the first via is by carrying internal routing information in giving out information, and internal routing information is for characterizing virtual machine With the routing relation between the distributed network gate disposed on the virtual switch of virtual machine.
S204, dynamic routing are acted on behalf of to borde gateway and are issued internal routing information.
In this way, borde gateway be obtained with the distributed network gate disposed on the virtual switch of virtual machine and virtual machine it Between routing relation, borde gateway can update the route table items that store on borde gateway according to internal routing information.Work as outside When equipment will send data packet to virtual machine, which is first sent to borde gateway, borde gateway by external equipment According to the route table items stored on borde gateway, which is forwarded to the distribution disposed on the virtual switch of virtual machine The data packet is sent to virtual machine by gateway, then the distributed network gate by disposing on the virtual switch of virtual machine.
It should be noted that in embodiments of the present invention, S203-S204 can be executed before S201-S202, S203- S204 can also be executed after S201-S202.
Further, dynamic routing agency can be based on dynamic routing protocol, receive the external routes that borde gateway is sent Information;Dynamic routing agency can also be based on dynamic routing protocol, issue internal routing information to borde gateway.Wherein, dynamic Routing Protocol can be BGP or OSPF etc..
Optionally, centralized gateway can also be included in SDN;Dynamic route collocating method provided in an embodiment of the present invention is also May include: dynamic routing agency receive SDN controller send secondary route give out information, secondary route give out information in take With routing iinformation is concentrated, routing iinformation is concentrated to be used to characterize the routing relation between virtual machine and centralized gateway;Dynamic road It is issued from agency to borde gateway and concentrates routing iinformation.
Further, dynamic routing agency can also be based on dynamic routing protocol, issue to borde gateway and concentrate routing letter Breath.
The embodiment of the present invention also provides a kind of configuration method of dynamic routing, as shown in Figure 6, comprising:
S301, dynamic routing agency receive the external routing information that borde gateway is sent.
Wherein, external routing information is used to characterize the routing relation between external equipment and borde gateway.Dynamic routing generation Reason can receive external routing information after the completion of network initial configuration, can also road between external equipment and borde gateway External routing information is received when being changed by relationship.
Dynamic routing agency in the embodiment of the present invention can dispose on a virtual machine, can also dispose on the server.
S302, dynamic routing act on behalf of the route learning message for sending to SDN controller and carrying external routing information.
S303, SDN controller update at least one first route table items according to external routing information.
It wherein, include the address of an external equipment in the first route table items of each of at least one first route table items With the address of the borde gateway to be passed through when sending data packet to the external equipment.
S304, virtual machine 1 send data packet 1 to virtual switch 1, and the destination address of data packet 1 is the ground of external equipment 1 Location.
Wherein, virtual machine 1 is any one virtual machine for including in SDN, and virtual switch 1 is the virtual friendship of virtual machine 1 It changes planes.
S305, virtual switch 1 send data packet 1 to SDN controller.
Secondary route list item is converted the first flow entry by S306, SDN controller.
Wherein, secondary route list item is a route table items at least one first route table items, secondary route list item In include external equipment 1 address.
S307, SDN controller send the first flow entry to virtual switch 1, to indicate virtual switch 1 according to first-class List item forwards data packet 1 by the distributed network gate disposed on virtual switch 1.
S308, SDN controller obtain internal routing information from least one third route table items.
Wherein, routing table is stored in SDN controller, routing table includes at least one first route table items and at least one Third route table items.In each third route table items at least one third route table items comprising virtual machine address and to this The address for the distributed network gate to be passed through when virtual machine sends data packet, point to be passed through when sending data packet to virtual machine Cloth gateway is the distributed network gate disposed on the virtual switch of virtual machine, and internal routing information is for characterizing virtual machine and void The routing relation between distributed network gate disposed on the virtual switch of quasi- machine.
S309, SDN controller send the first via for carrying internal routing information by giving out information to dynamic routing agency.
S310, dynamic routing are acted on behalf of to borde gateway and are issued internal routing information.
In this way, borde gateway be obtained with the distributed network gate disposed on the virtual switch of virtual machine and virtual machine it Between routing relation, borde gateway can update the route table items that store on borde gateway according to internal routing information.Work as outside When equipment will send data packet to virtual machine, which is first sent to borde gateway, borde gateway by external equipment According to the route table items stored on borde gateway, which is forwarded to the distribution disposed on the virtual switch of virtual machine The data packet is sent to virtual machine by gateway, then the distributed network gate by disposing on the virtual switch of virtual machine.
Dynamic route collocating method provided in an embodiment of the present invention, SDN controller is according to the route learning message received The external routing information of middle carrying updates at least one first route table items;SDN controller (is wrapped in SDN receiving virtual machine 1 Any one virtual machine contained) virtual switch (virtual switch 1) send data packet 1 when, by secondary route list item turn It turns to the first flow entry, and sends the first flow entry to virtual switch 1, so that virtual switch 1 is according to the first flow entry, Data packet 1 is forwarded by the distributed network gate disposed on virtual switch 1.Wherein, secondary route list item be at least one first A route table items in route table items, the address for the external equipment for including in secondary route list item and the destination of data packet 1 Location is identical.In this way, virtual switch 1 can be according to first-class when virtual machine 1 needs to send data packet 1 to external equipment List item forwards the data packet 1 by the distributed network gate disposed on virtual switch 1, without shutting manually in distributed network The routing between borde gateway and external equipment is configured, so as to match manually when solving in the prior art using distributed network gate The problem of setting routing heavy workload;In addition, being matched when network topology changes using the dynamic routing in the embodiment of the present invention Method is set, SDN controller can update the first route table items according to the external routing information dynamic carried in route learning message, So as to dynamically adjust the routing between borde gateway and external equipment, when solving to use distributed network gate in the prior art Adjust inconvenient problem.
The embodiment of the present invention also provides a kind of SDN controller, is applied in SDN, and SDN passes through borde gateway and external network It is connected, includes in SDN: SDN controller, at least two virtual machines, the virtual switch of virtual machine and dynamic routing agency, virtually Deployment is distributed formula gateway on the virtual switch of machine, as shown in fig. 7, SDN controller includes: receiving unit 41, updating unit 42, converting unit 43 and the first transmission unit 44 are routed.
Receiving unit 41 carries in route learning message for receiving the route learning message of dynamic routing agency's transmission There is external routing information, external routing information is used to characterize the routing relation between external equipment and borde gateway.
Updating unit 42, for updating at least one first route table items according to external routing information, at least one first In the first route table items of each of route table items include the address an of external equipment and sends data packet to the external equipment When the borde gateway to be passed through address.
Converting unit 43 is routed, the data packet for carrying out self virtualizing machine for sending in the virtual switch for receiving virtual machine When, the first flow entry is converted by secondary route list item, secondary route list item is one at least one first route table items Route table items, the address for the external equipment for including in secondary route list item and the destination address phase for the data packet for carrying out self virtualizing machine Together, virtual machine is any one virtual machine at least two virtual machines.
First transmission unit 44, for sending the first flow entry to the virtual switch of virtual machine, to indicate virtual machine Virtual switch is forwarded according to the first flow entry by the distributed network gate disposed on the virtual switch of virtual machine come self-virtualizing The data packet of machine.
Further, as shown in figure 8, SDN controller provided in an embodiment of the present invention further include: acquiring unit 45 and second Transmission unit 46.
Acquiring unit 45, for obtaining internal routing information from least one third route table items, at least one third In each third route table items in route table items comprising virtual machine address and to virtual machine send data packet when to be passed through Distributed network gate address, to virtual machine send data packet when the distributed network gate to be passed through for virtual machine virtual switch The distributed network gate disposed on machine, internal routing information are used to characterize point disposed on the virtual switch of virtual machine and virtual machine Routing relation between cloth gateway.
Second transmission unit 46, for sending the first via for carrying internal routing information by issuing to dynamic routing agency Message, the first via from give out information be used to indicate dynamic routing act on behalf of to borde gateway issue internal routing information.
Wherein, routing table is stored in SDN controller, routing table includes at least one first route table items and at least one Third route table items.
Further, acquiring unit 45 are also used to obtaining internal routing information from least one third route table items Before, the routing iinformation of virtual machine is obtained, the routing iinformation of virtual machine includes the address of virtual machine and the virtual switch of virtual machine The address for the distributed network gate disposed on machine.
As shown in figure 9, the SDN controller further include: generation unit 47.
Generation unit 47, for generating third route table items according to the routing iinformation of virtual machine.
Further, converting unit 43 is routed, is also used to generate the according to the routing iinformation of virtual machine in generation unit 47 After three route table items, the second flow entry is converted by third route table items.
First transmission unit 44 is also used to send the second flow entry to the virtual switch of virtual machine.
Further, dynamic routing agency can dispose on a virtual machine, and dynamic routing agency can also be deployed in service On device.
Optionally, also comprising centralized gateway in SDN;Routing table also includes the 4th route table items;In 4th route table items The IP address of the IP address of network segment belonging to Internet protocol IP comprising virtual machine and centralized gateway.
Acquiring unit 45 is also used to obtain from the 4th route table items and concentrates routing iinformation, routing iinformation is concentrated to be used for table Levy the routing relation between virtual machine and centralized gateway.
Second transmission unit 46 carries the secondary route publication for concentrating routing iinformation for sending to dynamic routing agency Message, secondary route give out information be used to indicate dynamic routing act on behalf of to borde gateway issue concentrate routing iinformation.
It should be noted that the specific descriptions of part functional module can be in SDN controller provided in an embodiment of the present invention With reference to the corresponding content in embodiment of the method, the present embodiment is no longer described in detail here.
SDN controller provided in an embodiment of the present invention, SDN controller is according to carrying in the route learning message received External routing information updates at least one first route table items;(include in SDN is any receiving virtual machine for SDN controller One virtual machine) virtual switch send the data packet for carrying out self virtualizing machine when, convert secondary route list item to first-class List item, and the first flow entry is sent to the virtual switch of virtual machine, so that the virtual switch of virtual machine is according to first-class List item, the data packet that this is forwarded come self virtualizing machine by the distributed network gate disposed on the virtual switch of virtual machine.Wherein, Two route table items are a route table items at least one first route table items, the external equipment for including in secondary route list item Address it is identical as the destination address for carrying out the data packet of self virtualizing machine.In this way, when virtual machine needs to send number to external equipment When according to packet, the virtual switch of virtual machine can pass through what is disposed on the virtual switch of virtual machine according to the first flow entry Distributed network gate forwards the data packet, without shutting the road between configuration borde gateway and external equipment in distributed network manually By so as to solve the problems, such as in the prior art using manual configuration routing heavy workload when distributed network gate;In addition, working as net When network topology changes, using the SDN controller in the embodiment of the present invention, SDN controller can be according to route learning message The external routing information dynamic of middle carrying updates the first route table items, so as to dynamically adjust borde gateway and external equipment it Between routing, adjustment is inconvenient when solving the problems, such as in the prior art using distributed network gate.
The embodiment of the present invention also provides a kind of dynamic routing agency, is applied in SDN, SDN passes through borde gateway and outside Network is connected, and includes in SDN: SDN controller, at least two virtual machines, the virtual switch of virtual machine and dynamic routing agency, Deployment is distributed formula gateway on the virtual switch of virtual machine, and as shown in Figure 10, dynamic routing agency includes: 51 He of receiving unit Transmission unit 52.
Receiving unit 51, for receiving the external routing information of borde gateway transmission, external routing information is outer for characterizing Routing relation between portion's equipment and borde gateway.
Transmission unit 52, for sending the route learning message for carrying external routing information to SDN controller, so that SDN controller updates at least one first route table items according to external routing information, so that SDN controller is receiving void When the data packet for carrying out self virtualizing machine that the virtual switch of quasi- machine is sent, the first flow entry is converted by secondary route list item, and The first flow entry is sent to the virtual switch of virtual machine.
It wherein, include the address of an external equipment in the first route table items of each of at least one first route table items With the address of the borde gateway to be passed through when sending data packet to the external equipment;Secondary route list item be at least one first A route table items in route table items, the address for the external equipment for including in secondary route list item and the data for carrying out self virtualizing machine The destination address of packet is identical, and virtual machine is any one virtual machine at least two virtual machines.
Further, receiving unit 51, be also used to receive SDN controller transmission the first via by giving out information, the first via By carrying internal routing information in giving out information, internal routing information is used to characterize the virtual switch of virtual machine and virtual machine Routing relation between the distributed network gate of upper deployment.
Transmission unit 52 is also used to issue internal routing information to borde gateway.
Further, as shown in figure 11, dynamic routing is acted on behalf of further include: control unit 53.
Control unit 53 is based on dynamic routing protocol for controlling and receiving unit 51, receives the outside that borde gateway is sent Routing iinformation.
Control unit 53 is also used to control transmission unit 52 and is based on dynamic routing protocol, issues internal road to borde gateway By information.
Further, dynamic routing agency can dispose on a virtual machine, and dynamic routing agency can also be deployed in service On device.
Optionally, also comprising centralized gateway in SDN.
Receiving unit 51, the secondary route for being also used to receive the transmission of SDN controller give out information, and secondary route gives out information In carry concentration routing iinformation, concentrate routing iinformation to be used to characterize the routing relation between virtual machine and centralized gateway;
Transmission unit 52 is also used to issue to borde gateway and concentrates routing iinformation.
Further, control unit 53 are also used to control transmission unit 52 and are based on dynamic routing protocol, send out to borde gateway Cloth concentrates routing iinformation.
It should be noted that the specific descriptions of part functional module can in dynamic routing agency provided in an embodiment of the present invention With with reference to the corresponding content in embodiment of the method, the present embodiment is no longer described in detail here.
Dynamic routing agency provided in an embodiment of the present invention, dynamic routing, which is acted on behalf of to send to SDN controller, carries external road By the route learning message of information, so that SDN controller updates at least one first route table items according to external routing information, So that SDN controller receive virtual machine virtual switch send the data packet for carrying out self virtualizing machine when, by second Route table items are converted into the first flow entry, and send the first flow entry to the virtual switch of virtual machine.In this way, the void of virtual machine Quasi- interchanger can be come from according to the first flow entry by the distributed network gate forwarding disposed on the virtual switch of virtual machine The data packet of virtual machine, without shutting the routing between configuration borde gateway and external equipment in distributed network manually, thus It can solve the problem of heavy workload is routed using manual configuration when distributed network gate in the prior art;In addition, working as network topology It when changing, is acted on behalf of using the dynamic routing in the embodiment of the present invention, dynamic routing agency can pass through external routing information The routing relation between external equipment and borde gateway after obtaining network topology change, and by sending road to SDN controller First route table items are updated by study message instruction SDN controller dynamic, are set so as to dynamically adjust borde gateway and outside Routing between standby is inconvenient using adjustment when distributed network gate in the prior art to solve the problems, such as.
The embodiment of the present invention also provides a kind of SDN controller, is applied in SDN, and SDN passes through borde gateway and external network It is connected, includes in SDN: SDN controller, at least two virtual machines, the virtual switch of virtual machine and dynamic routing agency, virtually Deployment is distributed formula gateway on the virtual switch of machine, and as shown in figure 12, SDN controller includes: receiver 61,62 and of processor Transmitter 63.
Receiver 61 carries in route learning message for receiving the route learning message of dynamic routing agency's transmission External routing information, external routing information are used to characterize the routing relation between external equipment and borde gateway.
Processor 62, for updating at least one first route table items, at least one first via according to external routing information When from the first route table items of each of list item including the address an of external equipment and send data packet to the external equipment The address for the borde gateway to be passed through;In the data packet for carrying out self virtualizing machine that the virtual switch for receiving virtual machine is sent When, the first flow entry is converted by secondary route list item, secondary route list item is one at least one first route table items Route table items, the address for the external equipment for including in secondary route list item and the destination address phase for the data packet for carrying out self virtualizing machine Together, virtual machine is any one virtual machine at least two virtual machines.
Transmitter 63, for sending the first flow entry to the virtual switch of virtual machine, to indicate the virtual friendship of virtual machine It changes planes according to the first flow entry, is forwarded by the distributed network gate disposed on the virtual switch of virtual machine come the number of self virtualizing machine According to packet.
Further, processor 62 are also used to obtain internal routing information from least one third route table items, at least When including the address of virtual machine in each third route table items in one third route table items and sending data packet to virtual machine The address for the distributed network gate to be passed through, the distributed network gate to be passed through is virtual machine when sending data packet to virtual machine The distributed network gate disposed on virtual switch, internal routing information are used to characterize the virtual switch of virtual machine and virtual machine Routing relation between the distributed network gate of deployment.
Transmitter 63 is also used to send the first via for carrying internal routing information to dynamic routing agency and is disappeared by issuing Breath, the first via from give out information be used to indicate dynamic routing act on behalf of to borde gateway issue internal routing information.
Wherein, routing table is stored in SDN controller, routing table includes at least one first route table items and at least one Third route table items.
Further, processor 62, be also used to from least one third route table items obtain internal routing information it Before, the routing iinformation of virtual machine is obtained, the routing iinformation of virtual machine includes the address of virtual machine and the virtual switch of virtual machine The address of the distributed network gate of upper deployment;SDN controller generates third route table items according to the routing iinformation of virtual machine.
Further, processor 62 are also used to after generating third route table items according to the routing iinformation of virtual machine, will Third route table items are converted into the second flow entry.
Transmitter 63 is also used to send the second flow entry to the virtual switch of virtual machine.
Further, dynamic routing agency can dispose on a virtual machine, and dynamic routing agency can also be deployed in service On device.
Optionally, also comprising centralized gateway in SDN;Routing table also includes the 4th route table items;In 4th route table items The IP address of the IP address of network segment belonging to Internet protocol IP comprising virtual machine and centralized gateway.
Processor 62 is also used to obtain from the 4th route table items and concentrates routing iinformation, concentrates routing iinformation for characterizing Routing relation between virtual machine and centralized gateway.
Transmitter 63 is also used to send the secondary route publication for carrying concentration routing iinformation to dynamic routing agency and disappears Breath, secondary route give out information be used to indicate dynamic routing act on behalf of to borde gateway issue concentrate routing iinformation.
It should be noted that the specific descriptions of part functional module can be in SDN controller provided in an embodiment of the present invention With reference to the corresponding content in embodiment of the method, the present embodiment is no longer described in detail here.
SDN controller provided in an embodiment of the present invention, SDN controller is according to carrying in the route learning message received External routing information updates at least one first route table items;(include in SDN is any receiving virtual machine for SDN controller One virtual machine) virtual switch send the data packet for carrying out self virtualizing machine when, convert secondary route list item to first-class List item, and the first flow entry is sent to the virtual switch of virtual machine, so that the virtual switch of virtual machine is according to first-class List item, the data packet that this is forwarded come self virtualizing machine by the distributed network gate disposed on the virtual switch of virtual machine.Wherein, Two route table items are first route table items at least one first route table items, the outside for including in secondary route list item The address of equipment is identical as the destination address for carrying out the data packet of self virtualizing machine.In this way, when virtual machine needs to send out to external equipment When sending data packet, the virtual switch of virtual machine can pass through the virtual switch top of virtual machine according to the first flow entry The distributed network gate of administration forwards the data packet, without shutting between configuration borde gateway and external equipment in distributed network manually Routing, manual configuration routing heavy workload when so as to solve the problems, such as in the prior art using distributed network gate;In addition, When network topology changes, using the SDN controller in the embodiment of the present invention, SDN controller can be according to route learning The external routing information dynamic carried in message updates the first route table items, sets so as to dynamically adjust borde gateway and outside Routing between standby is inconvenient using adjustment when distributed network gate in the prior art to solve the problems, such as.
The embodiment of the present invention also provides a kind of dynamic routing agency, is applied in SDN, SDN passes through borde gateway and outside Network is connected, and includes in SDN: SDN controller, at least two virtual machines, the virtual switch of virtual machine and dynamic routing agency, Deployment is distributed formula gateway on the virtual switch of virtual machine, and as shown in figure 13, dynamic routing agency includes: receiver 71 and hair Send device 72.
Receiver 71, for receiving the external routing information of borde gateway transmission, external routing information is for characterizing outside Routing relation between equipment and borde gateway.
Transmitter 72, for sending the route learning message for carrying external routing information to SDN controller, so that SDN Controller updates at least one first route table items according to external routing information, so that SDN controller is receiving virtually When the data packet for carrying out self virtualizing machine that the virtual switch of machine is sent, the first flow entry is converted by secondary route list item, and to The virtual switch of virtual machine sends the first flow entry.
It wherein, include the address of an external equipment in the first route table items of each of at least one first route table items With the address of the borde gateway to be passed through when sending data packet to the external equipment;Secondary route list item be at least one first A route table items in route table items, the address for the external equipment for including in secondary route list item and the data for carrying out self virtualizing machine The destination address of packet is identical, and virtual machine is any one virtual machine at least two virtual machines.
Further, receiver 71, be also used to receive SDN controller transmission the first via by giving out information, the first via by Internal routing information is carried in giving out information, internal routing information is used to characterize the virtual switch of virtual machine and virtual machine Routing relation between the distributed network gate of deployment.
Transmitter 72 is also used to issue internal routing information to borde gateway.
Further, as shown in figure 14, dynamic routing is acted on behalf of further include: processor 73.
Processor 73 is based on dynamic routing protocol for controlling and receiving device 71, receives the external routes that borde gateway is sent Information;It controls transmitter 72 and is based on dynamic routing protocol, issue internal routing information to borde gateway.
Further, dynamic routing agency can dispose on a virtual machine, and dynamic routing agency can also be deployed in service On device.
Optionally, also comprising centralized gateway in SDN.
Receiver 71, the secondary route for being also used to receive the transmission of SDN controller gives out information, during secondary route gives out information Concentration routing iinformation is carried, routing iinformation is concentrated to be used to characterize the routing relation between virtual machine and centralized gateway.
Transmitter 72 is also used to issue to borde gateway and concentrates routing iinformation.
Further, processor 73 are also used to control transmitter 72 and are based on dynamic routing protocol, issue and collect to borde gateway Middle routing iinformation.
It should be noted that the specific descriptions of part functional module can in dynamic routing agency provided in an embodiment of the present invention With with reference to the corresponding content in embodiment of the method, the present embodiment is no longer described in detail here.
Dynamic routing agency provided in an embodiment of the present invention, dynamic routing, which is acted on behalf of to send to SDN controller, carries external road By the route learning message of information, so that SDN controller updates at least one first route table items according to external routing information, So that SDN controller receive virtual machine virtual switch send the data packet for carrying out self virtualizing machine when, by second Route table items are converted into the first flow entry, and send the first flow entry to the virtual switch of virtual machine.In this way, the void of virtual machine Quasi- interchanger can be come from according to the first flow entry by the distributed network gate forwarding disposed on the virtual switch of virtual machine The data packet of virtual machine, without shutting the routing between configuration borde gateway and external equipment in distributed network manually, thus It can solve the problem of heavy workload is routed using manual configuration when distributed network gate in the prior art;In addition, working as network topology It when changing, is acted on behalf of using the dynamic routing in the embodiment of the present invention, dynamic routing agency can pass through external routing information The routing relation between external equipment and borde gateway after obtaining network topology change, and by sending road to SDN controller First route table items are updated by study message instruction SDN controller dynamic, are set so as to dynamically adjust borde gateway and outside Routing between standby is inconvenient using adjustment when distributed network gate in the prior art to solve the problems, such as.
The embodiment of the present invention also provides a kind of dynamic routing configuration system, and as shown in figure 15, dynamic routing configures system packet It includes: SDN controller 81, at least two virtual machines 82, the virtual switch 83 of virtual machine 82 and dynamic routing agency 84, it is virtual to hand over Deployment on 83 of changing planes is distributed formula gateway.
SDN controller 81 is taken in route learning message for receiving the route learning message of 84 transmission of dynamic routing agency With external routing information, external routing information is used to characterize the routing relation between external equipment and borde gateway;According to outer At least one first route table items of portion's updating route information, in the first route table items of each of at least one first route table items Address comprising external equipment and to external equipment send data packet when the borde gateway to be passed through address;Receiving void When the data packet for carrying out self virtualizing machine 82 that quasi- interchanger 83 is sent, the first flow entry, the second tunnel are converted by secondary route list item By the route table items that list item is at least one first route table items, the ground for the external equipment for including in secondary route list item Location is identical as the destination address of the data packet from the virtual machine 82, and virtual machine 82 is any one at least two virtual machines Virtual machine;The first flow entry is sent to virtual switch 83, to indicate virtual switch 83 according to the first flow entry, by virtual The distributed network gate forwarding disposed on interchanger 83 carrys out the data packet of self virtualizing machine 82.
Dynamic routing agency 84, for receiving the external routing information of borde gateway transmission;It is taken to the transmission of SDN controller 81 Route learning message with external routing information so that SDN controller 81 according to external routing information update at least one One route table items, so that SDN controller 81 is in the data packet for carrying out self virtualizing machine 82 for receiving the transmission of virtual switch 83 When, the first flow entry is converted by secondary route list item, and send the first flow entry to virtual switch 83.
Dynamic routing provided in an embodiment of the present invention configures system, and SDN controller is according to the route learning message received The external routing information of middle carrying updates at least one first route table items;SDN controller (is wrapped in SDN receiving virtual machine Any one virtual machine contained) virtual switch send the data packet for carrying out self virtualizing machine when, secondary route list item is converted For the first flow entry, and the first flow entry is sent to the virtual switch of virtual machine, so that the virtual switch root of virtual machine According to the first flow entry, the data that this is forwarded come self virtualizing machine by the distributed network gate disposed on the virtual switch of virtual machine Packet.Wherein, secondary route list item is first route table items at least one first route table items, in secondary route list item The address for the external equipment for including is identical as the destination address for carrying out the data packet of self virtualizing machine.In this way, when virtual machine need to When external equipment sends data packet, the virtual switch of virtual machine can pass through the virtual of virtual machine according to the first flow entry The distributed network gate disposed on interchanger forwards the data packet, without shutting configuration borde gateway and outer in distributed network manually Routing between portion's equipment, so as to solve in the prior art using manual configuration routing heavy workload when distributed network gate Problem;In addition, configuring system, SDN controller using the dynamic routing in the embodiment of the present invention when network topology changes The first route table items can be updated according to the external routing information dynamic carried in route learning message, so as to dynamically adjust Routing between borde gateway and external equipment adjusts inconvenient ask to solve to use in the prior art when distributed network gate Topic.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description It is convenienct and succinct, only the example of the division of the above functional modules, in practical application, can according to need and will be upper It states function distribution to be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before can referring to The corresponding process in embodiment of the method is stated, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit Indirect coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this hair The all or part of the steps of bright each embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only deposits Reservoir (English: Read-Only Memory, abbreviation: ROM), random access memory (English: Random Access Memory, abbreviation: RAM), the various media that can store program code such as magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (27)

1. a kind of dynamic route collocating method is applied in software defined network SDN, the SDN passes through borde gateway and outside Network is connected, which is characterized in that includes in the SDN: the virtual friendship of SDN controller, at least two virtual machines, the virtual machine It changes planes and is acted on behalf of with dynamic routing, deployment is distributed formula gateway on the virtual switch of the virtual machine, which comprises
The SDN controller receives the route learning message that the dynamic routing agency sends, and takes in the route learning message With external routing information, the external routing information is used to characterize the routing relation between external equipment and borde gateway;
The SDN controller updates at least one first route table items according to the external routing information, it is described at least one In the first route table items of each of one route table items include the address of the external equipment and sends number to the external equipment According to the address of the borde gateway to be passed through when packet;
The SDN controller, will when the virtual switch transmission for receiving virtual machine is from the data packet of the virtual machine Secondary route list item is converted into the first flow entry, and the secondary route list item is one at least one described first route table items A route table items, the address for the external equipment for including in the secondary route list item and the data packet from the virtual machine Destination address it is identical, the virtual machine be at least two virtual machine in any one virtual machine;
The SDN controller sends first flow entry to the virtual switch of the virtual machine, to indicate the virtual machine Virtual switch according to first flow entry, the distributed network gate disposed on the virtual switch by the virtual machine turns Send out the data packet from the virtual machine.
2. the method according to claim 1, wherein the method also includes:
The SDN controller obtains internal routing information, at least one described third road from least one third route table items From in each third route table items in list item including the address of the virtual machine and sending data packet when institute to the virtual machine The address for the distributed network gate to be passed through, it is described to the virtual machine send data packet when the distributed network gate to be passed through be institute The distributed network gate disposed on the virtual switch of virtual machine is stated, the internal routing information is for characterizing the virtual machine and institute State the routing relation between the distributed network gate disposed on the virtual switch of virtual machine;
The SDN controller is disappeared to the first via that dynamic routing agency's transmission carries the internal routing information by issuing Breath, the first via are believed from giving out information to be used to indicate the dynamic routing and act on behalf of to the borde gateway publication internal routing Breath;
Wherein, be stored with routing table in the SDN controller, the routing table include at least one described first route table items and At least one described third route table items.
3. according to the method described in claim 2, it is characterized in that, in the SDN controller from least one third routing table Before obtaining internal routing information in, the method also includes:
The SDN controller obtains the routing iinformation of the virtual machine, and the routing iinformation of the virtual machine includes the virtual machine Address and the virtual machine virtual switch on the address of distributed network gate disposed;
The SDN controller generates the third route table items according to the routing iinformation of the virtual machine.
4. according to the method described in claim 3, it is characterized in that, in the SDN controller according to the routing of the virtual machine After information generates the third route table items, the method also includes:
The third route table items are converted the second flow entry by the SDN controller, and to the virtual switch of the virtual machine Machine sends second flow entry.
5. the method according to any one of claim 2-4, which is characterized in that the dynamic routing agency is deployed in described On virtual machine, alternatively, dynamic routing agency is deployed on server belonging to the virtual machine.
6. according to the method described in claim 5, it is characterized in that, also comprising centralized gateway in the SDN;The routing table It also include the 4th route table items;The IP of network segment belonging to Internet protocol IP in 4th route table items comprising the virtual machine The IP address of address and the centralized gateway;
The method also includes:
The SDN controller is obtained from the 4th route table items concentrates routing iinformation, and the concentration routing iinformation is used for table Levy the routing relation between the virtual machine and the centralized gateway;
The SDN controller, which sends to carry the secondary route for concentrating routing iinformation and issue to dynamic routing agency, to disappear Breath, the secondary route, which gives out information to be used to indicate the dynamic routing and act on behalf of to issue the concentration to borde gateway and route, to be believed Breath.
7. a kind of dynamic route collocating method is applied in software defined network SDN, the SDN passes through borde gateway and outside Network is connected, which is characterized in that includes in the SDN: the virtual friendship of SDN controller, at least two virtual machines, the virtual machine It changes planes and is acted on behalf of with dynamic routing, deployment is distributed formula gateway on the virtual switch of the virtual machine, which comprises
The dynamic routing agency receives the external routing information that borde gateway is sent, and the external routing information is outer for characterizing Routing relation between portion's equipment and borde gateway;
The route learning message for sending to the SDN controller and carrying the external routing information is acted on behalf of in the dynamic routing, with So that the SDN controller updates at least one first route table items according to the external routing information, so that the SDN Controller is when the virtual switch transmission for receiving virtual machine is from the data packet of the virtual machine, by secondary route list item It is converted into the first flow entry, and sends first flow entry to the virtual switch of the virtual machine;
It wherein, include the address of the external equipment in the first route table items of each of at least one described first route table items With the address of the borde gateway to be passed through when sending data packet to the external equipment;The secondary route list item be it is described extremely Lack a route table items in first route table items, the address for the external equipment for including in the secondary route list item and institute The destination address for stating the data packet from the virtual machine is identical, and the virtual machine is any at least two virtual machine One virtual machine.
8. the method according to the description of claim 7 is characterized in that the method also includes:
The dynamic routing agency receives the first via of the SDN controller transmission by giving out information, and the first via is by issuing Carry internal routing information in message, the internal routing information is used to characterize the virtual of the virtual machine and the virtual machine The routing relation between distributed network gate disposed on interchanger;
The dynamic routing is acted on behalf of to borde gateway and issues the internal routing information.
9. according to the method described in claim 8, it is characterized in that, dynamic routing agency receives the outer of borde gateway transmission Portion's routing iinformation, comprising:
The dynamic routing agency is based on dynamic routing protocol, receives the external routing information that borde gateway is sent;
The dynamic routing is acted on behalf of to borde gateway and issues the internal routing information, comprising:
The dynamic routing agency is based on the dynamic routing protocol, issues the internal routing information to borde gateway.
10. method according to claim 7 or 8, which is characterized in that the dynamic routing agency is deployed in the virtual machine On, alternatively, dynamic routing agency is deployed on server belonging to the virtual machine.
11. according to the method described in claim 9, it is characterized in that, the dynamic routing agency be deployed on the virtual machine, Alternatively, the dynamic routing agency is deployed on server belonging to the virtual machine.
12. according to the method described in claim 10, it is characterized in that, also comprising centralized gateway in the SDN;The method Further include:
The dynamic routing agency receives the secondary route that the SDN controller is sent and gives out information, the secondary route publication Carry concentration routing iinformation in message, the concentration routing iinformation for characterize the virtual machine and the centralized gateway it Between routing relation;
The dynamic routing is acted on behalf of to borde gateway and issues the concentration routing iinformation.
13. according to the method for claim 11, which is characterized in that also comprising centralized gateway in the SDN;The method Further include:
The dynamic routing agency receives the secondary route that the SDN controller is sent and gives out information, the secondary route publication Carry concentration routing iinformation in message, the concentration routing iinformation for characterize the virtual machine and the centralized gateway it Between routing relation;
The dynamic routing is acted on behalf of to borde gateway and issues the concentration routing iinformation.
14. according to the method for claim 13, which is characterized in that the dynamic routing is acted on behalf of to described in borde gateway publication Concentrate routing iinformation, comprising:
The dynamic routing agency is based on the dynamic routing protocol, issues the concentration routing iinformation to borde gateway.
15. a kind of software defined network SDN controller is applied in SDN, the SDN passes through borde gateway and external network phase Even, which is characterized in that include in the SDN: the virtual switch of the SDN controller, at least two virtual machines, the virtual machine Machine and dynamic routing are acted on behalf of, and deployment is distributed formula gateway on the virtual switch of the virtual machine, and the SDN controller includes:
Receiving unit is taken in the route learning message for receiving the route learning message of the dynamic routing agency transmission With external routing information, the external routing information is used to characterize the routing relation between external equipment and borde gateway;
Updating unit, for updating at least one first route table items according to the external routing information, it is described at least one In the first route table items of each of one route table items include the address of the external equipment and sends number to the external equipment According to the address of the borde gateway to be passed through when packet;
Converting unit is routed, the data packet from the virtual machine for sending in the virtual switch for receiving virtual machine When, the first flow entry is converted by secondary route list item, the secondary route list item is at least one described first route table items In a route table items, the address for the external equipment for including in the secondary route list item and described from the virtual machine The destination address of data packet is identical, and the virtual machine is any one virtual machine at least two virtual machine;
First transmission unit, for sending first flow entry to the virtual switch of the virtual machine, to indicate the void Intend the virtual switch of machine according to first flow entry, the distributed network disposed on the virtual switch by the virtual machine It closes and forwards the data packet from the virtual machine.
16. SDN controller according to claim 15, which is characterized in that the SDN controller further include:
Acquiring unit, for obtaining internal routing information, at least one described third road from least one third route table items From in each third route table items in list item including the address of the virtual machine and sending data packet when institute to the virtual machine The address for the distributed network gate to be passed through, it is described to the virtual machine send data packet when the distributed network gate to be passed through be institute The distributed network gate disposed on the virtual switch of virtual machine is stated, the internal routing information is for characterizing the virtual machine and institute State the routing relation between the distributed network gate disposed on the virtual switch of virtual machine;
Second transmission unit, for sending the first via for carrying the internal routing information by sending out to dynamic routing agency Cloth message, the first via are used to indicate the dynamic routing and are acted on behalf of to the borde gateway publication internal routing from giving out information Information;
Wherein, be stored with routing table in the SDN controller, the routing table include at least one described first route table items and At least one described third route table items.
17. SDN controller according to claim 16, which is characterized in that the acquiring unit is also used to from least one Before obtaining internal routing information in a third route table items, the routing iinformation of the virtual machine, the road of the virtual machine are obtained It include the address for the distributed network gate disposed on the address of the virtual machine and the virtual switch of the virtual machine by information;
The SDN controller further include:
Generation unit, for generating the third route table items according to the routing iinformation of the virtual machine.
18. SDN controller according to claim 17, which is characterized in that the routing converting unit is also used to described After generation unit generates the third route table items according to the routing iinformation of the virtual machine, the third route table items are turned Turn to the second flow entry;
First transmission unit is also used to send second flow entry to the virtual switch of the virtual machine.
19. SDN controller described in any one of 6-18 according to claim 1, which is characterized in that the dynamic routing agency department Administration is on the virtual machine, alternatively, dynamic routing agency is deployed on server belonging to the virtual machine.
20. SDN controller according to claim 19, which is characterized in that also comprising centralized gateway in the SDN;Institute Stating routing table also includes the 4th route table items;Belonging to Internet protocol IP in 4th route table items comprising the virtual machine The IP address of the IP address of network segment and the centralized gateway;
The acquiring unit is also used to obtain from the 4th route table items and concentrates routing iinformation, the concentration routing iinformation For characterizing the routing relation between the virtual machine and the centralized gateway;
Second transmission unit carries second tunnel for concentrating routing iinformation for sending to dynamic routing agency By giving out information, the secondary route, which gives out information to be used to indicate the dynamic routing and act on behalf of to borde gateway, issues the concentration Routing iinformation.
21. a kind of dynamic routing agency, is applied in software defined network SDN, the SDN passes through borde gateway and external network Be connected, which is characterized in that include in the SDN: SDN controller, at least two virtual machines, the virtual machine virtual switch It is acted on behalf of with the dynamic routing, deployment is distributed formula gateway, the dynamic routing agency on the virtual switch of the virtual machine Include:
Receiving unit, for receiving the external routing information of borde gateway transmission, the external routing information is for characterizing outside Routing relation between equipment and borde gateway;
Transmission unit, for sending the route learning message for carrying the external routing information to the SDN controller, so that The SDN controller updates at least one first route table items according to the external routing information, so that the SDN is controlled Device converts secondary route list item when the virtual switch transmission for receiving virtual machine is from the data packet of the virtual machine For the first flow entry, and first flow entry is sent to the virtual switch of the virtual machine;
It wherein, include the address of the external equipment in the first route table items of each of at least one described first route table items With the address of the borde gateway to be passed through when sending data packet to the external equipment;The secondary route list item be it is described extremely Lack a route table items in first route table items, the address for the external equipment for including in the secondary route list item and institute The destination address for stating the data packet from the virtual machine is identical, and the virtual machine is any at least two virtual machine One virtual machine.
22. dynamic routing agency according to claim 21, which is characterized in that the receiving unit is also used to receive institute The first via of SDN controller transmission is stated by giving out information, the first via is by carrying internal routing information, institute in giving out information State the distributed network gate disposed on virtual switch of the internal routing information for characterizing the virtual machine and the virtual machine it Between routing relation;
The transmission unit is also used to issue the internal routing information to borde gateway.
23. dynamic routing agency according to claim 22, which is characterized in that the dynamic routing agency further include:
Control unit is based on dynamic routing protocol for controlling the receiving unit, receives the external routes that borde gateway is sent Information;
Described control unit, is also used to control the transmission unit and is based on the dynamic routing protocol, issues institute to borde gateway State internal routing information.
24. dynamic routing agency according to claim 23, which is characterized in that the dynamic routing agency is deployed in described On virtual machine, alternatively, dynamic routing agency is deployed on server belonging to the virtual machine.
25. dynamic routing agency according to claim 24, which is characterized in that also comprising centralized gateway in the SDN;
The receiving unit is also used to receive the secondary route that the SDN controller is sent and gives out information, the secondary route hair Concentration routing iinformation is carried in cloth message, the concentration routing iinformation is for characterizing the virtual machine and the centralized gateway Between routing relation;
The transmission unit is also used to issue the concentration routing iinformation to borde gateway.
26. dynamic routing agency according to claim 25, which is characterized in that described control unit is also used to control institute It states transmission unit and is based on the dynamic routing protocol, issue the concentration routing iinformation to borde gateway.
27. a kind of dynamic routing configures system, which is characterized in that the system comprises: software defined network SDN controller, extremely Few two virtual machines, the virtual switch of the virtual machine and dynamic routing agency, the virtual switch top of the virtual machine Administration is distributed formula gateway;
The SDN controller, the route learning message sent for receiving the dynamic routing agency, the route learning message In carry external routing information, the routing that the external routing information is used to characterize between external equipment and borde gateway is closed System;At least one first route table items is updated according to the external routing information, at least one described first route table items In each first route table items comprising the external equipment address and to the external equipment send data packet when to be passed through Borde gateway address;It, will when the virtual switch transmission for receiving virtual machine is from the data packet of the virtual machine Secondary route list item is converted into the first flow entry, and the secondary route list item is one at least one described first route table items A route table items, the address for the external equipment for including in the secondary route list item and the data packet from the virtual machine Destination address it is identical, the virtual machine be at least two virtual machine in any one virtual machine;To the virtual machine Virtual switch send first flow entry, to indicate the virtual switch of the virtual machine according to first flow table , the distributed network gate disposed on the virtual switch by the virtual machine forwards the data from the virtual machine Packet;
The dynamic routing agency, the external routing information sent for receiving the borde gateway;It is controlled to the SDN Device sends the route learning message for carrying the external routing information, so that the SDN controller is according to the outside At least one first route table items described in updating route information, so that the SDN controller is receiving the virtual machine Virtual switch send from the data packet of the virtual machine when, convert the secondary route list item to described first-class List item, and first flow entry is sent to the virtual switch of the virtual machine.
CN201510119094.9A 2015-03-18 2015-03-18 A kind of dynamic route collocating method, apparatus and system Active CN106034077B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510119094.9A CN106034077B (en) 2015-03-18 2015-03-18 A kind of dynamic route collocating method, apparatus and system
PCT/CN2016/076633 WO2016146077A1 (en) 2015-03-18 2016-03-17 Dynamic route configuration method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510119094.9A CN106034077B (en) 2015-03-18 2015-03-18 A kind of dynamic route collocating method, apparatus and system

Publications (2)

Publication Number Publication Date
CN106034077A CN106034077A (en) 2016-10-19
CN106034077B true CN106034077B (en) 2019-06-28

Family

ID=56918277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510119094.9A Active CN106034077B (en) 2015-03-18 2015-03-18 A kind of dynamic route collocating method, apparatus and system

Country Status (2)

Country Link
CN (1) CN106034077B (en)
WO (1) WO2016146077A1 (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888438B (en) * 2016-09-29 2021-06-08 上海天旦网络科技发展有限公司 Flow table technology-based system for automatically sensing and adapting to cloud environment change
CN106550159B (en) * 2017-01-23 2019-09-06 广州海格通信集团股份有限公司 VoIP communication system
CN106911506B (en) * 2017-02-27 2020-07-10 苏州浪潮智能科技有限公司 Method and device for avoiding management network disconnection during network service restart
CN108574635B (en) 2017-03-09 2021-06-22 华为技术有限公司 Routing priority configuration method, device and controller
US20190028409A1 (en) * 2017-07-19 2019-01-24 Alibaba Group Holding Limited Virtual switch device and method
CN109688062B (en) * 2017-10-19 2021-07-13 中兴通讯股份有限公司 Routing method and routing equipment
CN108616386A (en) * 2018-03-29 2018-10-02 西安交通大学 A kind of construction method and SDN virtual network environments of SDN virtual network environments
CN109617804B (en) * 2018-12-11 2020-10-13 广东省新一代通信与网络创新研究院 Method, device, computer readable storage medium and system for defining routing protocol
CN111404705B (en) * 2019-01-02 2023-05-09 中国移动通信有限公司研究院 SDN optimization method and device and computer readable storage medium
CN110086676B (en) * 2019-05-08 2022-11-22 深信服科技股份有限公司 Configuration method of distributed router and related equipment
CN110430076B (en) * 2019-07-31 2022-05-31 新华三技术有限公司合肥分公司 Route management method and device
CN112751766B (en) * 2019-10-30 2023-07-11 华为技术有限公司 Message forwarding method and system, related equipment and chip
CN111181860A (en) * 2020-01-07 2020-05-19 苏宁云计算有限公司 Route forwarding method, device and system based on zuul gateway
US11528213B2 (en) * 2020-12-30 2022-12-13 Juniper Networks, Inc. Sharing routes using an in-memory data store in a distributed network system
CN113014426B (en) * 2021-02-10 2023-04-07 优刻得科技股份有限公司 Method and device for establishing communication between cloud server and client server
CN113938379A (en) * 2021-09-29 2022-01-14 浪潮云信息技术股份公司 Method for dynamically loading cloud platform log acquisition configuration
CN115277550B (en) * 2022-06-21 2023-11-28 阿里巴巴(中国)有限公司 Routing system, routing method and routing device of virtual network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152264A (en) * 2013-02-25 2013-06-12 北京百度网讯科技有限公司 Openflow network and IP (Internet Protocol) network interconnection communication method and openflow subnet edge switch
CN104022960A (en) * 2013-02-28 2014-09-03 杭州华三通信技术有限公司 Method and device realizing PVLAN through OpenFlow protocol
CN104243317A (en) * 2014-09-26 2014-12-24 杭州华三通信技术有限公司 Method and device for forwarding IP (internet protocol) routes
CN104283756A (en) * 2013-07-02 2015-01-14 杭州华三通信技术有限公司 Method and device for realizing distributed type multi-tenant virtual network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2756289C (en) * 2009-04-01 2016-02-02 Nicira Networks, Inc. Method and apparatus for implementing and managing virtual switches
US9167501B2 (en) * 2011-08-29 2015-10-20 Telefonaktiebolaget L M Ericsson (Publ) Implementing a 3G packet core in a cloud computer with openflow data and control planes
US9608924B2 (en) * 2011-09-27 2017-03-28 Nec Corporation Network system, front-end unit and control message transmission rate reducing method
US9392050B2 (en) * 2013-03-15 2016-07-12 Cisco Technology, Inc. Automatic configuration of external services based upon network activity
CN104394083B (en) * 2014-09-22 2017-12-15 华为技术有限公司 Method, the method and its device and system of message forwarding of forwarding-table item processing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152264A (en) * 2013-02-25 2013-06-12 北京百度网讯科技有限公司 Openflow network and IP (Internet Protocol) network interconnection communication method and openflow subnet edge switch
CN104022960A (en) * 2013-02-28 2014-09-03 杭州华三通信技术有限公司 Method and device realizing PVLAN through OpenFlow protocol
CN104283756A (en) * 2013-07-02 2015-01-14 杭州华三通信技术有限公司 Method and device for realizing distributed type multi-tenant virtual network
CN104243317A (en) * 2014-09-26 2014-12-24 杭州华三通信技术有限公司 Method and device for forwarding IP (internet protocol) routes

Also Published As

Publication number Publication date
CN106034077A (en) 2016-10-19
WO2016146077A1 (en) 2016-09-22

Similar Documents

Publication Publication Date Title
CN106034077B (en) A kind of dynamic route collocating method, apparatus and system
US11563669B2 (en) Method for implementing network virtualization and related apparatus and communications system
CN104702512B (en) The multi-level control system and computer implemented method of network management are provided for software defined network
EP3313025B1 (en) Data packet forwarding
US8755377B2 (en) Facilitating operation of one or more virtual networks
US10243830B2 (en) Software defined network-based gateway migation processing
CN102577256B (en) For the method and apparatus of transparent cloud computing in virtual network infrastructure situation
CN103546374B (en) A kind of method and apparatus E-Packeted in edge double layer network
CN106549875B (en) A kind of conversation managing method, device and load balancer
JP5664557B2 (en) Computer, network connection switching method and program
CN103825954A (en) OpenFlow control method and corresponding insert, platform and network thereof
CN105337870B (en) A kind of route issuing method and device
CN104618244A (en) SDN network and traditional IP network intercommunicating method and system
CN104584491A (en) System and method providing distributed virtual routing and switching (DVRS)
CN104243317A (en) Method and device for forwarding IP (internet protocol) routes
CN105553849A (en) Conventional IP network and SPTN network intercommunication method and system
CN104301129A (en) Dynamic host configuration method and system in software defined network
CN110430114B (en) Virtual router and method for realizing interconnection between SDN network and traditional IP network
US9467374B2 (en) Supporting multiple IEC-101/IEC-104 masters on an IEC-101/IEC-104 translation gateway
CN106656905A (en) Firewall cluster realization method and apparatus
EP3588859B1 (en) Network device configuration versioning
CN109863726A (en) Distributed clients guard station device
CN107809495A (en) Address management method and device
CN109088823A (en) A kind of method and device for realizing terminal interconnection
US10419282B1 (en) Self-configuring network devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20220224

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.