CN110086676A - A kind of configuration method and relevant device of distribution router - Google Patents

A kind of configuration method and relevant device of distribution router Download PDF

Info

Publication number
CN110086676A
CN110086676A CN201910381442.8A CN201910381442A CN110086676A CN 110086676 A CN110086676 A CN 110086676A CN 201910381442 A CN201910381442 A CN 201910381442A CN 110086676 A CN110086676 A CN 110086676A
Authority
CN
China
Prior art keywords
host equipment
dvr
dvs
equipment
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910381442.8A
Other languages
Chinese (zh)
Other versions
CN110086676B (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201910381442.8A priority Critical patent/CN110086676B/en
Publication of CN110086676A publication Critical patent/CN110086676A/en
Application granted granted Critical
Publication of CN110086676B publication Critical patent/CN110086676B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/44Distributed routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers

Landscapes

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

Abstract

The embodiment of the present application discloses the configuration method and relevant device of a kind of distribution router, for optimizing SDN network framework.The embodiment of the present application method includes: applied to SDN controller, and the SDN controller is for controlling host equipment;The SDN controller receives the communication request information that the host equipment is sent, and the host equipment includes the distributed virtual switch dvs;Distributed virtual routing dvr is issued according to dvs of the communication request information into the host equipment, so that the virtual machine vm in the host equipment is communicated by the dvr.Wherein, communication request information is used to indicate in the host equipment that there are the communication requirements of virtual machine vm, therefore, distributed virtual routing dvr is issued according to dvs of the communication request information into host equipment, so that the virtual machine vm in host equipment can be communicated by dvr, compared with prior art, the virtual machine vm in host equipment will no longer be required to communicate across host, can be with direct communication in host equipment.

Description

A kind of configuration method and relevant device of distribution router
Technical field
This application involves the communications field more particularly to the configuration methods and relevant device of a kind of distribution router.
Background technique
Software defined network (Software Defined Network, SDN) is a kind of new network wound of Emulex network New architecture, is a kind of implementation of network virtualization, and core technology OpenFlow is by by network equipment control plane and number It is separated according to face, to realize the flexible control of network flow, network is made to become more intelligent as pipeline.
Network in traditional IT architecture, according to business demand deployment it is online after, if business demand changes, again The configuration modified on corresponding network equipment (router, interchanger, firewall) is a very cumbersome thing.Internet/ Under the fast changing service environment of mobile Internet, the high stable and high-performance of network are also insufficient for business demand, flexibly Property and agility are more crucial instead.The thing that SDN is done is to separate the control on the network equipment, by the control concentrated Device management shields the difference from underlay network device without underlay network device (router, interchanger, firewall) is relied on It is different.And control be it is wide-open, user can with it is customized it is any want realize network routing and transmission rule strategy, thus It is more flexible and intelligent.
In the prior art, SDN is made of SDN controller and switching equipment.Wherein, SDN controller refers to that software is fixed The equipment in adopted network central control preparative layer face, can be physical entity, is also possible to software program, be responsible for routing in network, path meter It calculates and complicated network function is realized.SDN is since its core technology OpenFlow is by by network equipment control plane and data surface It separates, to realize the flexible control of network flow, so that network is become more intelligent as pipeline, develop multiple points Branch, such as Onos controller, OpenDayLight controller etc..
Referring to Fig. 1, by taking Onos controller as an example, as shown in Figure 1, specifically wherein, including following equipment: host Host, virtual machine (Virtual Machine, VM), interchanger switch, network card equipment eth, router router.It is specific logical Letter process is as follows: when VM1 (1.1.1.1) needs are communicated with the VM2 (2.2.2.1) of the machine, it is assumed that be ping.
1, VM1 first sends address resolution protocol (ARP, Address Resolution Protocol) request, obtains Address media access control (MAC, Media Access Control) of VM2.VM1-- > switch1-- > eth1_1, by outer Portion's network, eth2_1-- > router.It tables look-up by router and finds that VM2 exists (assuming that router has learnt to VM2's The address mac), return to the address mac of VM2.
2, VM1 obtains the address mac of VM2, then sends ping request packet to VM2.The avenues of communication of VM1 and VM2 For VM1-- > switch1-- > eth1_1-- > external network -- > eth2_1-- > router-- > eth2_1-- > external network -- > eth1_1-->switch2-->VM2。
3, VM2 sends ping reply packet, avenues of communication VM2-- > switch2-- > eth1_1-- > external network -- > Eth2_1-- > router-- > eth2_1-- > external network -- > eth1_1-- > switch1-- > VM1.
During above-mentioned network communication, due to all having corresponding router in networking and in not all host, such as Shown in Fig. 1, the virtual machine of 2 the machine in each host1 is communicated, and is needed outer net out, is caused hair fastener detour, affects communication Rate, and add somewhat to the East and West direction flow i.e. communication flows of network internal.In addition, if host2 breaks down, So, VM1 and VM2 will be unable to normal communication, and Single Point of Faliure may cause whole network and all be unable to normal communication.
Summary of the invention
The embodiment of the present application provides the configuration method and relevant device of a kind of distribution router, for optimizing SDN net Network framework.
The embodiment of the present application first aspect provides a kind of configuration method of distribution router, is applied to SDN controller, The SDN controller is for controlling host equipment, which comprises
The communication request information that the host equipment is sent is received, the host equipment includes the distributed virtual switch dvs;
Distributed virtual routing dvr is issued according to dvs of the communication request information into the host equipment, so that Virtual machine vm in the host equipment is communicated by the dvr.
Optionally, distributed virtual routing is being issued according to dvs of the communication request information into the host equipment After dvr, the method also includes:
Judge that the port of the host equipment whether there is the link communicated with the dvs;
If so, judging in the host equipment with the presence or absence of vm;
When determining in the host equipment there are when the vm, then configuration information is obtained;
Resource distribution is carried out to the dvr in the host equipment according to the configuration information.
Optionally, the method also includes:
When determining in the host equipment there is no when the vm, judge to whether there is in preset duration from current time Newly-established vm, at the time of the current time is that the dvs determined into the host equipment successfully issues the dvr;
If the dvr is transferred from the host equipment if it is determined that newly-established vm is not present.
Optionally, the method also includes:
If it is determined that then obtaining the configuration information there are when the newly-established vm out of current time device preset duration;
Resource distribution is carried out to the dvr in the host equipment according to the configuration information.
Optionally, the method also includes:
If it is determined that the dvr is then transferred from institute when the link communicated with the dvs is not present in the port of the host equipment State host equipment.
Optionally, distributed virtual routing is being issued according to dvs of the communication request information into the host equipment Before dvr, the method also includes:
Judge that the port of the host equipment whether there is the link communicated with the dvs;
Distributed virtual road is issued according to dvs of the communication request information into the host equipment if so, executing By dvr.
The embodiment of the present application second aspect provides a kind of configuration system of distribution router, is applied to SDN controller, The SDN controller is used to control host equipment, the system comprises:
Receiving unit, the communication request information sent for receiving the host equipment, the host equipment include distribution Formula virtual switch dvs;
Issuance unit, for issuing distributed virtual according to dvs of the communication request information into the host equipment Dvr is routed, so that the virtual machine vm in the host equipment is communicated by the dvr.
Optionally, the system also includes:
First judging unit, for judging that the port of the host equipment whether there is the link communicated with the dvs;
Second judgment unit, for when first judging unit determine the host equipment port exist with it is described When the link of dvs communication, judge in the host equipment with the presence or absence of vm;
First acquisition unit, for determining in the host equipment there are when the vm, then when the second judgment unit Obtain configuration information;
First resource configuration unit, for being provided in the host equipment to the dvr according to the configuration information Source configuration.
Optionally, the system also includes:
Third judging unit, for when the second judgment unit determines in the host equipment there is no the vm, Judge to whether there is newly-established vm in preset duration from current time, the current time is to determine to the host equipment In dvs at the time of successfully issue the dvr;
First distancing unit, for determining that there is no new in preset duration from current time when the third judging unit When the vm of foundation, the dvr is transferred from the host equipment.
Optionally, the system also includes:
Second acquisition unit, described in determining and existing out of current time device preset duration when the third judging unit When newly-established vm, then the configuration information is obtained;
Secondary resource configuration unit, for being provided in the host equipment to the dvr according to the configuration information Source configuration.
Optionally, the system also includes:
Second distancing unit, for when first judging unit determine the host equipment port be not present with it is described When the link of dvs communication, then the dvr is transferred from the host equipment.
Optionally, the method also includes:
4th judging unit, for judging that the port of the host equipment whether there is the link communicated with the dvs;
Execution unit, for determining that it is logical with the dvs that the port of the host equipment exists when the 4th judging unit When the link of letter, the issuing unit is executed according to dvs of the communication request information into the host equipment and issues distribution Formula virtual flow-line dvr.
The embodiment of the present application third aspect provides a kind of computer installation, comprising:
Processor, memory, input-output equipment and bus;
The processor, memory, input-output equipment are connected with the bus respectively;
The processor is for executing method as in the foregoing embodiment.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, is stored thereon with computer journey Sequence: the step of computer program realizes method as in the foregoing embodiment when being executed by processor.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that in the present embodiment, is applied to SDN Controller, the SDN controller is for controlling host equipment;The SDN controller receives the communication that the host equipment is sent Solicited message, the host equipment include the distributed virtual switch dvs;It is set according to the communication request information to the host Dvs in standby issues distributed virtual routing dvr, so that the virtual machine vm in the host equipment is carried out by the dvr Communication.Wherein, communication request information is used to indicate in the host equipment that there are the communication requirements of virtual machine vm, therefore, according to institute It states dvs of the communication request information into the host equipment and issues distributed virtual routing dvr, so that in host equipment Virtual machine vm can be communicated by dvr, and compared with prior art, the virtual machine vm in host equipment will no longer be required to across master Machine communicates, in host equipment can be with direct communication.
Detailed description of the invention
Fig. 1 is a kind of communication mode of SDN network framework in the prior art;
Fig. 2 is an a kind of schematic diagram of the configuration method embodiment of distribution router in the embodiment of the present application;
Fig. 3 is a kind of another schematic diagram of the configuration method embodiment of distribution router in the embodiment of the present application;
Fig. 4 is a kind of another schematic diagram of the configuration method embodiment of distribution router in the embodiment of the present application;
A kind of another schematic diagram of the configuration method embodiment of distribution router in Fig. 5-1 the embodiment of the present application;
A kind of another schematic diagram of the configuration method embodiment of distribution router in Fig. 5-2 the embodiment of the present application;
A kind of another schematic diagram of the configuration method embodiment of distribution router in Fig. 5-3 the embodiment of the present application;
Fig. 6 is an a kind of schematic diagram of the configuration system embodiment of distribution router in the embodiment of the present application;
Fig. 7 is an a kind of schematic diagram of computer installation embodiment in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides the configuration method and relevant device of a kind of distribution router, for optimizing SDN net Network framework.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing Four " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein or describing Sequence other than appearance is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that covering is non-exclusive Include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to clearly arrange Those of out step or unit, but may include be not clearly listed or it is solid for these process, methods, product or equipment The other step or units having.
In the prior art, SDN is made of SDN controller and switching equipment.Wherein, SDN controller refers to that software is fixed The equipment in adopted network central control preparative layer face, can be physical entity, is also possible to software program, be responsible for routing in network, path meter It calculates and complicated network function is realized.SDN is since its core technology OpenFlow is by by network equipment control plane and data surface It separates, to realize the flexible control of network flow, so that network is become more intelligent as pipeline, develop multiple points Branch, such as Onos controller, OpenDayLight controller etc..
Referring to Fig. 1, by taking Onos controller as an example, as shown in Figure 1, specifically wherein, including following equipment: host Host, virtual machine (Virtual Machine, VM), interchanger switch, network card equipment eth, router router.It is specific logical Letter process is as follows: when VM1 (1.1.1.1) needs are communicated with the VM2 (2.2.2.1) of the machine, it is assumed that be ping.
1, VM1 first sends address resolution protocol (ARP, Address Resolution Protocol) request, obtains Address media access control (MAC, Media Access Control) of VM2.VM1-- > switch1-- > eth1_1, by outer Portion's network, eth2_1-- > router.It tables look-up by router and finds that VM2 exists (assuming that router has learnt to VM2's The address mac), return to the address mac of VM2.
2, VM1 obtains the address mac of VM2, then sends ping request packet to VM2.The avenues of communication of VM1 and VM2 For VM1-- > switch1-- > eth1_1-- > external network -- > eth2_1-- > router-- > eth2_1-- > external network -- > eth1_1-->switch2-->VM2。
3, VM2 sends ping reply packet, avenues of communication VM2-- > switch2-- > eth1_1-- > external network -- > Eth2_1-- > router-- > eth2_1-- > external network -- > eth1_1-- > switch1-- > VM1.
During above-mentioned network communication, due to all having corresponding router in networking and in not all host, such as Shown in Fig. 1, the virtual machine of 2 the machine in each host1 is communicated, and is needed outer net out, is caused hair fastener detour, affects communication Rate, and add somewhat to the East and West direction flow i.e. communication flows of network internal.In addition, if host2 breaks down, So, VM1 and VM2 will be unable to normal communication, and Single Point of Faliure may cause whole network and all be unable to normal communication.For this purpose, this Shen Please embodiment provide the configuration method and relevant device of a kind of distribution router, for optimizing SDN network framework.
In order to make it easy to understand, the detailed process in the embodiment of the present application is described below, referring to Fig. 2, the application A kind of one embodiment of the configuration method of distribution router includes: in embodiment
201, the communication request information that the host equipment is sent is received.
In the present embodiment, SDN controller receives the communication request information that the host equipment is sent, the host equipment packet Include the distributed virtual switch dvs.
It specifically, include the distributed virtual switch dvs in host equipment, which is used to indicate the host There are the communication requirements of virtual machine vm in equipment, i.e., in the host equipment there is currently virtual machine vm will either create The communication requirement of vm, herein, the quantity of the host equipment can be one or more, and there are the communications of vm to need in host equipment The communication requirement that specifically can serve to indicate that between multiple vm in a host equipment is sought, can be used for instruction multiple main frames There are the communication requirements between different vm in equipment, herein without limitation.
202, distributed virtual routing dvr is issued according to dvs of the communication request information into the host equipment.
In the present embodiment, the SDN controller is according to the communication request information received in step 201 to the host equipment In dvs issue distributed virtual routing dvr so that the virtual machine vm in the host equipment is led to by the dvr Letter.
Specifically, SDN controller can dispatch dvr to the host equipment where dvs in several ways, such as pass through Ovsdb agreement is scheduled, NETCONF agreement is scheduled or other way executes scheduling process, is not done herein specifically It limits.Illustratively, this is illustrated for sentencing ovsdb agreement, and SDN controller is opposite by dvr by ovsdb agreement The setting rule answered is issued in ovsdb database, and then the host equipment where dvs, can by interacting with ovsdb database To create or delete dvr in the host device.
In addition, illustratively, SDN controller can be used for controlling multiple specifically during step 302 issues dvr Host equipment, therefore, the implementation procedure of step 302 can be SDN controller and issue dvr to multiple main frames equipment, so that institute It states and is all communicated by the dvr between the different vm in multiple main frames equipment.Therefore, in different host equipments or not When sub- equipment or submodule in same host equipment need to be in communication with each other, network communication can be carried out by dvr, Multiple main frames equipment i.e. in SDN controller can carry out network communication by the dvr.
In the present embodiment, it is applied to SDN controller, the SDN controller is for controlling host equipment;The SDN control Device receives the communication request information that the host equipment is sent, and the host equipment includes the distributed virtual switch dvs;According to Dvs of the communication request information into the host equipment issues distributed virtual routing dvr, so that the host equipment In virtual machine vm communicated by the dvr.Wherein, communication request information is used to indicate in the host equipment and exists virtually Therefore the communication requirement of machine vm issues distributed virtual road according to dvs of the communication request information into the host equipment By dvr, so that the virtual machine vm in host equipment can be communicated by dvr, compared with prior art, host equipment Interior virtual machine vm will no longer be required to communicate across host, can be with direct communication in host equipment.
In the embodiment of the present application, based on embodiment described in Fig. 2, specifically step 202 according to the communication request information to After dvs in the host equipment issues distributed virtual routing dvr, data further can also be carried out to the dvr and matched It sets, so that the virtual machine vm in the host equipment is communicated by the dvr.But it is again restricted for the configuration of dvr It currently whether there is vm in the host equipment, and if it exists, then can directly configure to dvr, if it does not exist, then can be set The dvr carries out standby or other operations, will be introduced below by specific embodiment.
Referring to Fig. 3, based on embodiment described in Fig. 2, a kind of configuration method of distribution router of the embodiment of the present application In another embodiment, which may include:
301, the communication request information that the host equipment is sent is received;
302, distributed virtual routing dvr is issued according to dvs of the communication request information into the host equipment.
Step 301 and step 302 are similar with abovementioned steps 201 and step 202, and details are not described herein again.
303, judge that the port of the host equipment whether there is the link communicated with the dvs, if so, thening follow the steps 304, if it is not, thening follow the steps 311;
In this implementation, SDN controller judges that the port of host equipment whether there is and institute after step 302 issues dvr The link for stating dvs communication, if so, 304 are thened follow the steps, if it is not, thening follow the steps 311.
Specifically, SDN controller judges that the host equipment whether there is the link that communicates with the dvs, such as can be with By judging whether the dvs in host equipment can be led to by the port (such as ethernet port eth) in host equipment Letter, if so, 304 are thened follow the steps, if it is not, thening follow the steps 311.
Judge that the port of host equipment whether there is the link process communicated with dvs and can calculate topology using active herein Mode judged, can also be judged by the way of heartbeat detection, other modes can also be used to be judged, Specifically herein without limitation.For in such a way that active calculates topology, one task of timer of SDN controller unlatching (such as 1 second Detection 1 time), the topological structure of SDN controller relevant device is actively calculated, i.e. detection dvs whether can with the network equipment being connected Enough determine that dvs retains on this device, if so, determining that the port of host equipment has the link communicated with dvs;If it is not, Then determine that the link of dvs communication is not present in the port of host equipment.In addition, the mode of heartbeat detection is specifically SDN controller week Phase property (such as 1s) obtains the detecting state of a dvs, determines whether the port of host equipment deposits according to the detecting state of dvs In the link communicated with dvs.
304, judge with the presence or absence of vm in the host equipment, if so, 305 are thened follow the steps, if it is not, thening follow the steps 307;
In the present embodiment, communicate when SDN controller determines that the port of host equipment exists in step 303 with the dvs When link, then judge with the presence or absence of virtual machine vm in the host equipment, if so, 305 are thened follow the steps, if it is not, then executing step Rapid 307.
Specifically, SDN controller can be by reading data in the communication request information in step 201, according to reading Data judge to be also possible to through the registration list of devices in the host equipment in the host equipment with the presence or absence of virtual machine vm It whether there is vm in middle judgement host equipment, can also be that other way judges, specifically herein without limitation.
305, when determining in the host equipment there are when the vm, then configuration information is obtained;
In the present embodiment, when SDN controller is determined in the host equipment in step 304 there are when vm, then configuration is obtained Information.
Specifically, the configuration information is for configuring dvr, use so that vm in host equipment by the dvr into Row communication.Herein, the detailed process for obtaining configuration information, which can be, receives the initial of other equipment transmissions by RESTfulAPI Configuration data, RESTFULAPI are a kind of northbound interfaces, northbound interface is available to other producers or operator carry out access and The interface of management, i.e., the interface provided upwards.Can be customized, as long as can to SDN controller configuration distributing With.
306, resource distribution is carried out to the dvr in the host equipment according to the configuration information.
In the present embodiment, after step 305 obtains configuration information, SDN controller can be according to the configuration confidence in master Resource distribution is carried out to dvr in machine equipment.
Specifically, when there are when virtual machine vm, i.e. scheduling dvr enters in the host equipment where SDN controller determines dvs The first configuration information for configuring the dvr when host to be connected with the vm in host equipment, and being acquired using step 303 into The relevant configuration of row, at this point, resource distribution required for working normally in addition to dvr for example routes, the basis such as ACL, service money Outside the configuration in source, it is also necessary to carry out the communication such as data configuration such as IP address, the address mac to dvr according to the vm in host equipment The configuration of resource, with so that the communication link between dvr and vm is established, so that can between multiple vm in host equipment To carry out data communication by the communication link.
307, when determining in the host equipment there is no the vm, judge from current time in preset duration whether There are newly-established vm, if so, 309 are thened follow the steps, if it is not, thening follow the steps 308;
In the present embodiment, when SDN controller is determined in the host equipment in step 304 there is no vm, then judge from It whether there is newly-established vm from current time in preset duration, if so, 309 are thened follow the steps, if it is not, thening follow the steps 308.
Specifically, at the time of current time is that the dvs determined into the host equipment successfully issues the dvr, herein Specifically there are many determining modes, prefixed time interval after the dvs that can be intended in host equipment is issued (such as 10 seconds, 20 Second) not receiving error message, then determination issues success, it is also possible to acknowledge receipt of the feedback of the dvr to receive host equipment and disappears Breath issues successful foundation for determination, can also be the validation testing of other forms, specifically herein without limitation.
308, if it is not, the dvr is then transferred from the host equipment.
In the present embodiment, when SDN controller determines in the host equipment preset duration from current time in step 307 It is interior that newly-established vm is not present, then the dvr is transferred from the host equipment.Illustratively, SDN, which controls implement body, can pass through host Interface (such as Ethernet interface eth) in equipment is to determine whether in the presence of the link connecting with dvs, when determining in host equipment When physical interface relevant to dvs disconnects, meaning that user needs power off to the host equipment at this time is either no longer needed It to be communicated, be just transferred from the dvr in the host equipment where the dvs using dvr in the host equipment.Since host is set It is standby there is no the link communicated with the dvs, depend merely on dvr at this time also and cannot achieve the communication in host equipment between vm, therefore It needs the dvr being transferred from host equipment, to save Internet resources.
309, if it is determined that it is described with confidence there are when the newly-established vm, then obtaining out of current time device preset duration Breath;
In the present embodiment, when SDN controller determines in the host equipment preset duration from current time in step 307 Inside there is newly-established vm, then obtains the configuration information.
Specifically, when SDN controller determines host equipment in step 307, there are newly-established vm in preset duration When, then the communication connection between the dvr and the newly-established vm is established, so that the newly-established vm is described in Dvr is communicated.
310, resource distribution is carried out to the dvr in the host equipment according to the configuration information.
In the present embodiment, step 309 and step 310 are similar with the configuration process of abovementioned steps 305 and step 306, herein It repeats no more.
311, if it is determined that when the link communicated with the dvs is not present in the port of the host equipment, then by the dvr tune From the host equipment.
In the present embodiment, communicated when SDN controller determines that the port of the host equipment is not present in step 301 with dvs Link when, then the host equipment that is transferred from the dvr where the dvs.
Specifically, since dvs exists with host equipment, illustratively, SDN control implement body can pass through host equipment In interface (such as Ethernet interface eth) to determine whether in the presence of the link being connect with dvs, when determine in host equipment with When the relevant physical interface of dvs disconnects, means that user needs power off to the host equipment at this time and either no longer need It is communicated, is just transferred from the dvr in the host equipment where the dvs using dvr in the host equipment.Due to host equipment There is no the links communicated with the dvs, depend merely on dvr at this time also and cannot achieve the communication in host equipment between vm, therefore need The dvr is transferred from host equipment, to save Internet resources.
In the embodiment of the present application, based on embodiment described in Fig. 2 or Fig. 3, specifically believed in step 202 according to the communication request Cease the dvs into the host equipment issue distributed virtual routing dvr before, so that it may preset judgement is carried out, to sentence It is communicated with the presence or absence of port with dvs in disconnected host equipment, to decide whether to issue dvr.Below referring to Fig. 4, being based on Embodiment described in Fig. 2 or Fig. 3 should in a kind of another embodiment of the configuration method of distribution router of the embodiment of the present application Embodiment may include:
401, judge that the port of the host equipment whether there is the link communicated with the dvs, if so, thening follow the steps 402, if it is not, thening follow the steps 403;
In the present embodiment, specifically before step 202 issues virtual flow-line dvr, SDN controller judges in the host equipment With the presence or absence of the link communicated in dvs, if so, 402 are thened follow the steps, if it is not, thening follow the steps 403.
402, distributed void is issued according to dvs of the communication request information into the host equipment if so, executing Quasi- routing dvr.
In the present embodiment, when SDN controller is present in the link of dvs communication in the determining host equipment of step 401, It thens follow the steps 202 and distributed virtual routing dvr is issued according to dvs of the communication request information into the host equipment, With so that executing the subsequent step as described in Fig. 2 or Fig. 3 in embodiment.
403, if it is not, then executing other steps.
In the present embodiment, when SDN controller determines the link for being not present in dvs in the host equipment and communicating in step 401 When, then step 202, which can not be executed, according to dvs of the communication request information into the host equipment issues distributed virtual Dvr is routed, is also possible to etc. pending, the judgment step for being spaced go to execute step 401 again at regular intervals is can also be, follows Ring executes, and can also be other operations, specifically herein without limitation.
Process described in Fig. 5 is illustrated below by specific embodiment, please refers to Fig. 5-1, Fig. 5-2, figure 5-3, wherein dev is host equipment device, and eth is the interface of host equipment device, and dvr is distributed virtual router, Dvs is the distributed virtual switch, and vm is virtual machine.
Specifically in Fig. 5-1, when cable 1., when 5. simultaneously switching off, the link that dvs1 is not determined can be connected with dev1, So at this moment the dvr1 should just be dispatched and be left dev1;In Fig. 5-2, when 6. cable makes dvs2 be connected with the eth2_1 on dev2 When, dvr1 can determine that a link is communicated with dev2, and at this moment dvr1 can be dispatched on dev2, at this point, being formed in Fig. 5-3 Network configuration.
The method part in the embodiment of the present application is described above, below from the angle of virtual bench to the application Embodiment is described.Below referring to Fig. 6, an a kind of reality of the configuration system of distribution router in the embodiment of the present application Applying example includes:
Receiving unit 601, the communication request information sent for receiving the host equipment, the host equipment include point Cloth virtual switch dvs;
Issuance unit 602, for issuing distributed void according to dvs of the communication request information into the host equipment Quasi- routing dvr.
In the present embodiment, receiving unit 601, the communication request information sent for receiving the host equipment, the master Machine equipment includes the distributed virtual switch dvs;Issuance unit 602, for according to the communication request information to the host Dvs in equipment issues distributed virtual routing dvr.Wherein, communication request information, which is used to indicate in the host equipment, has void The communication requirement of quasi- machine vm, therefore, issuance unit 602 is according under dvs of the communication request information into the host equipment It sends out distributed virtual and routes dvr, so that the virtual machine vm in host equipment can be communicated by dvr, with existing skill Art is compared, and the virtual machine vm in host equipment will no longer be required to communicate across host, can be with direct communication in host equipment.
As a preferred embodiment, which can also include:
First judging unit 603, for judging that the port of the host equipment whether there is the chain communicated with the dvs Road;
Second judgment unit 604, for determining that the port of the host equipment exists and institute when first judging unit When stating the link of dvs communication, judge in the host equipment with the presence or absence of vm;
First acquisition unit 605, for determining in the host equipment there are when the vm when the second judgment unit, Then obtain configuration information;
First resource configuration unit 606, for being carried out in the host equipment to the dvr according to the configuration information Resource distribution.
As a preferred embodiment, which can also include:
Third judging unit 607, for determining that there is no the vm in the host equipment when the second judgment unit When, judge to whether there is newly-established vm in preset duration from current time, the current time is to determine to the host At the time of dvs in equipment successfully issues the dvr;
First distancing unit 608, for not deposited in preset duration from current time when the third judging unit is determined In newly-established vm, the dvr is transferred from the host equipment.
As a preferred embodiment, which can also include:
Second acquisition unit 609, for existing out of current time device preset duration when the third judging unit is determined When the newly-established vm, then the configuration information is obtained;
Secondary resource configuration unit 610, for being carried out in the host equipment to the dvr according to the configuration information Resource distribution.
As a preferred embodiment, which can also include:
Second distancing unit 611, for when first judging unit determine the host equipment port be not present with When the link of the dvs communication, then the dvr is transferred from the host equipment.
As a preferred embodiment, which can also include:
4th judging unit 612, for judging that the port of the host equipment whether there is the chain communicated with the dvs Road;
Execution unit 613, for determining that the port of the host equipment exists and the dvs when the 4th judging unit When the link of communication, executes the issuing unit and issued point according to dvs of the communication request information into the host equipment Cloth virtual flow-line dvr.
Referring to Fig. 7, one specific embodiment of SND controller includes: in the embodiment of the present application
The device 700 can generate bigger difference because configuration or performance are different, may include one or more Central processing unit (central processing units, CPU) 701 (for example, one or more processors) and storage Device 705 is stored with one or more application program or data in the memory 705.
Wherein, memory 705 can be volatile storage or persistent storage.The program for being stored in memory 705 can wrap One or more modules are included, each module may include to the series of instructions operation in block chain node device.More into One step, central processing unit 701 can be set to communicate with memory 705, execute in memory 705 on intelligent terminal 700 Series of instructions operation.
The device 700 can also include one or more power supplys 702, one or more wired or wireless networks Interface 703, one or more input/output interfaces 704, and/or, one or more operating systems, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
In the present embodiment, processor 701 is specifically used for executing following steps:
The communication request information that the host equipment is sent is received, the host equipment includes the distributed virtual switch dvs;
Distributed virtual routing dvr is issued according to dvs of the communication request information into the host equipment, so that Virtual machine vm in the host equipment is communicated by the dvr.
As a preferred embodiment, issued according to dvs of the communication request information into the host equipment After distributed virtual routes dvr, the method also includes:
Judge that the port of the host equipment whether there is the link communicated with the dvs;
If so, judging in the host equipment with the presence or absence of vm;
When determining in the host equipment there are when the vm, then configuration information is obtained;
Resource distribution is carried out to the dvr in the host equipment according to the configuration information.
As a preferred embodiment, the method also includes:
When determining in the host equipment there is no when the vm, judge to whether there is in preset duration from current time Newly-established vm, at the time of the current time is that the dvs determined into the host equipment successfully issues the dvr;
If it is not, the dvr is then transferred from the host equipment.
As a preferred embodiment, the method also includes:
If it is determined that then obtaining the configuration information there are when the newly-established vm out of current time device preset duration;
Resource distribution is carried out to the dvr in the host equipment according to the configuration information.
As a preferred embodiment, the method also includes:
If it is determined that the dvr is then transferred from institute when the link communicated with the dvs is not present in the port of the host equipment State host equipment.
As a preferred embodiment, issued according to dvs of the communication request information into the host equipment Before distributed virtual routes dvr, the method also includes:
Judge that the port of the host equipment whether there is the link communicated with the dvs;
Distributed virtual road is issued according to dvs of the communication request information into the host equipment if so, executing By dvr.
It is understood that the size of the serial number of above steps is not meant in the various embodiments of the application Execution sequence it is successive, the execution of each step sequence should be determined by its function and internal logic, without coping with the embodiment of the present application Implementation process constitute any restriction.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and 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 unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, 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, each functional unit in each embodiment of the application can integrate in 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, the technical solution of the application 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.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (12)

1. a kind of configuration method of distribution router, which is characterized in that be applied to SDN controller, the SDN controller is used for Control host equipment, which comprises
The communication request information that the host equipment is sent is received, the host equipment includes the distributed virtual switch dvs;
Distributed virtual routing dvr is issued according to dvs of the communication request information into the host equipment, so that described Virtual machine vm in host equipment is communicated by the dvr.
2. the method according to claim 1, wherein according to the communication request information to the host equipment In dvs issue distributed virtual routing dvr after, the method also includes:
Judge that the port of the host equipment whether there is the link communicated with the dvs;
If so, judging in the host equipment with the presence or absence of vm;
When determining in the host equipment there are when the vm, then configuration information is obtained;
Resource distribution is carried out to the dvr in the host equipment according to the configuration information.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
It is newly-built there is no when the vm, judging to whether there is in preset duration from current time in the host equipment when determining Vertical vm, at the time of the current time is that the dvs determined into the host equipment successfully issues the dvr;
If it is determined that newly-established vm is not present, then the dvr is transferred from the host equipment.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
If it is determined that then obtaining the configuration information there are when the newly-established vm out of current time device preset duration;
Resource distribution is carried out to the dvr in the host equipment according to the configuration information.
5. according to the described in any item methods of claim 2 to 4, which is characterized in that the method also includes:
If it is determined that the dvr is then transferred from the master when link communicated with the dvs is not present in the port of the host equipment Machine equipment.
6. method according to any one of claims 1 to 4, which is characterized in that according to the communication request information to institute State the dvs in host equipment issue distributed virtual routing dvr before, the method also includes:
Judge that the port of the host equipment whether there is the link communicated with the dvs;
Distributed virtual routing is issued according to dvs of the communication request information into the host equipment if so, executing dvr。
7. a kind of configuration system of distribution router, which is characterized in that be applied to SDN controller, the SDN controller is used for Host equipment is controlled, the system comprises:
Receiving unit, the communication request information sent for receiving the host equipment, the host equipment include distributed empty Quasi- interchanger dvs;
Issuance unit, for issuing distributed virtual routing according to dvs of the communication request information into the host equipment Dvr, so that the virtual machine vm in the host equipment is communicated by the dvr.
8. system according to claim 7, which is characterized in that the system also includes:
First judging unit, for judging that the port of the host equipment whether there is the link communicated with the dvs;
Second judgment unit, for determining that it is logical with the dvs that the port of the host equipment exists when first judging unit When the link of letter, judge in the host equipment with the presence or absence of vm;
First acquisition unit is then obtained for determining in the host equipment there are when the vm when the second judgment unit Configuration information;
First resource configuration unit is matched for carrying out resource to the dvr in the host equipment according to the configuration information It sets.
9. system according to claim 8, which is characterized in that the system also includes:
Third judging unit, for judging when the second judgment unit determines and the vm is not present in the host equipment It whether there is newly-established vm in preset duration from current time, the current time is to determine into the host equipment At the time of dvs successfully issues the dvr;
First distancing unit, for being established in preset duration there is no new from current time when the third judging unit is determined Vm when, the dvr is transferred from the host equipment.
10. system according to claim 9, which is characterized in that the system also includes:
Second acquisition unit, for determining that there are described newly-built out of current time device preset duration when the third judging unit When vertical vm, then the configuration information is obtained;
Secondary resource configuration unit is matched for carrying out resource to the dvr in the host equipment according to the configuration information It sets.
11. a kind of computer installation characterized by comprising
Processor, memory, input-output equipment and bus;
The processor, memory, input-output equipment are connected with the bus respectively;
The processor is for executing such as method as claimed in any one of claims 1 to 6.
12. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the computer program It realizes when being executed by processor such as the step of any one of claims 1 to 6 the method.
CN201910381442.8A 2019-05-08 2019-05-08 Configuration method of distributed router and related equipment Active CN110086676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910381442.8A CN110086676B (en) 2019-05-08 2019-05-08 Configuration method of distributed router and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910381442.8A CN110086676B (en) 2019-05-08 2019-05-08 Configuration method of distributed router and related equipment

Publications (2)

Publication Number Publication Date
CN110086676A true CN110086676A (en) 2019-08-02
CN110086676B CN110086676B (en) 2022-11-22

Family

ID=67419351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910381442.8A Active CN110086676B (en) 2019-05-08 2019-05-08 Configuration method of distributed router and related equipment

Country Status (1)

Country Link
CN (1) CN110086676B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971667A (en) * 2019-11-05 2020-04-07 武汉瑞盈通网络技术有限公司 Method for recovering default configuration of equipment and electronic equipment
CN111092770A (en) * 2019-12-23 2020-05-01 联想(北京)有限公司 Virtual network management method and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110142053A1 (en) * 2009-12-15 2011-06-16 Jacobus Van Der Merwe Methods and apparatus to communicatively couple virtual private networks to virtual machines within distributive computing networks
US20120173757A1 (en) * 2011-01-05 2012-07-05 International Business Machines Corporation Routing optimization for virtual machine migration between geographically remote data centers
US20120204051A1 (en) * 2009-10-07 2012-08-09 Takahiro Murakami Power saving system and power saving method
US20150139028A1 (en) * 2013-11-18 2015-05-21 Huawei Technologies Co., Ltd. Method for controlling generation of routing information, method for generating routing information and apparatuses thereof
CN106034077A (en) * 2015-03-18 2016-10-19 华为技术有限公司 Dynamic route configuration method, device and system thereof
CN106789667A (en) * 2016-11-21 2017-05-31 华为技术有限公司 A kind of data forwarding method, relevant device and system
CN106936777A (en) * 2015-12-29 2017-07-07 中移(苏州)软件技术有限公司 Cloud computing distributed network implementation method based on OpenFlow, system
CN107147574A (en) * 2016-03-01 2017-09-08 深圳市深信服电子科技有限公司 Message forwarding method and system based on distributed virtual router
CN108173695A (en) * 2017-12-29 2018-06-15 深信服网络科技(深圳)有限公司 Flow monitoring system and method in cloud environment
US20180302343A1 (en) * 2017-04-14 2018-10-18 Argela Yazilim ve Bilisim Teknolojileri San. ve Tic. A.S. System and method for convergence of software defined network (sdn) and network function virtualization (nfv)
CN109039913A (en) * 2018-08-23 2018-12-18 郑州云海信息技术有限公司 Virtual routing device and virtual machine communication system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120204051A1 (en) * 2009-10-07 2012-08-09 Takahiro Murakami Power saving system and power saving method
US20110142053A1 (en) * 2009-12-15 2011-06-16 Jacobus Van Der Merwe Methods and apparatus to communicatively couple virtual private networks to virtual machines within distributive computing networks
US20120173757A1 (en) * 2011-01-05 2012-07-05 International Business Machines Corporation Routing optimization for virtual machine migration between geographically remote data centers
US20150139028A1 (en) * 2013-11-18 2015-05-21 Huawei Technologies Co., Ltd. Method for controlling generation of routing information, method for generating routing information and apparatuses thereof
CN106034077A (en) * 2015-03-18 2016-10-19 华为技术有限公司 Dynamic route configuration method, device and system thereof
CN106936777A (en) * 2015-12-29 2017-07-07 中移(苏州)软件技术有限公司 Cloud computing distributed network implementation method based on OpenFlow, system
CN107147574A (en) * 2016-03-01 2017-09-08 深圳市深信服电子科技有限公司 Message forwarding method and system based on distributed virtual router
CN106789667A (en) * 2016-11-21 2017-05-31 华为技术有限公司 A kind of data forwarding method, relevant device and system
US20180302343A1 (en) * 2017-04-14 2018-10-18 Argela Yazilim ve Bilisim Teknolojileri San. ve Tic. A.S. System and method for convergence of software defined network (sdn) and network function virtualization (nfv)
CN108173695A (en) * 2017-12-29 2018-06-15 深信服网络科技(深圳)有限公司 Flow monitoring system and method in cloud environment
CN109039913A (en) * 2018-08-23 2018-12-18 郑州云海信息技术有限公司 Virtual routing device and virtual machine communication system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971667A (en) * 2019-11-05 2020-04-07 武汉瑞盈通网络技术有限公司 Method for recovering default configuration of equipment and electronic equipment
CN111092770A (en) * 2019-12-23 2020-05-01 联想(北京)有限公司 Virtual network management method and electronic equipment
CN111092770B (en) * 2019-12-23 2021-09-14 联想(北京)有限公司 Virtual network management method and electronic equipment

Also Published As

Publication number Publication date
CN110086676B (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN106656801B (en) Reorientation method, device and the Business Stream repeater system of the forward-path of Business Stream
US9338097B2 (en) Method and system for load balancing at a data network
Ejaz et al. Traffic load balancing using software defined networking (SDN) controller as virtualized network function
CN104363159B (en) A kind of opening virtual network constructing system and method based on software defined network
CN107409066B (en) System and method for automatic detection and configuration of server uplink network interfaces
CN102884763B (en) Cross-data-center virtual machine migration method, service control gateway and system
EP3522451B1 (en) Method for implementing network virtualization and related apparatus and communications system
CN107231221A (en) Job flow control method, apparatus and system between data center
CN105009521B (en) Message treatment method and gateway
CN102195803B (en) Data communication method and system
CN107819742B (en) System architecture and method for dynamically deploying network security service
CN105429811B (en) network management system and method
Bedhief et al. SDN-based architecture challenging the IoT heterogeneity
CN106453124A (en) Traffic scheduling method and device
CN108702316A (en) A kind of resource allocation methods and device of VNF
CN105791175A (en) Method and equipment for controlling transmission resources in software defined network SDN
CN108989110A (en) Construction method of VPC network model and related equipment thereof
CN106060858A (en) Method and apparatus for software defining satellite networking based on OpenFlow extended protocol
CN111049747A (en) Intelligent virtual network path planning method for large-scale container cluster
CN110086676A (en) A kind of configuration method and relevant device of distribution router
Desai et al. Edge-based optimal routing in SDN-enabled industrial Internet of Things
CN103401954B (en) The implementation method of virtual DHCP
CN112929206B (en) Method and device for configuring cloud physical machine in cloud network environment
Liu et al. A method for adaptive resource adjustment of dynamic service function chain
EP3311537B1 (en) Methods, apparatuses and computer-readable medium for scaling multiclouds in a hybrid cloud architecture

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant