CN109412978A - A kind of unicast method, virtual switch, SDN controller and storage medium - Google Patents

A kind of unicast method, virtual switch, SDN controller and storage medium Download PDF

Info

Publication number
CN109412978A
CN109412978A CN201811206326.4A CN201811206326A CN109412978A CN 109412978 A CN109412978 A CN 109412978A CN 201811206326 A CN201811206326 A CN 201811206326A CN 109412978 A CN109412978 A CN 109412978A
Authority
CN
China
Prior art keywords
unicast
virtual machine
virtual switch
sdn controller
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811206326.4A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811206326.4A priority Critical patent/CN109412978A/en
Publication of CN109412978A publication Critical patent/CN109412978A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects
    • 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

Abstract

The invention discloses a kind of unicast method, virtual switch, SDN controller and storage medium, unicast method includes: that SDN controller receives the unitcast request that the first virtual switch is sent;Unicast destination virtual machine is obtained according to the unitcast request;Unicast forwarding rule is generated according to the unicast destination virtual machine;The unicast forwarding rule is sent to the second virtual switch, so that second virtual switch sends unicast message to the unicast destination virtual machine.

Description

A kind of unicast method, virtual switch, SDN controller and storage medium
Technical field
The present invention relates to virtualization network technique field, espespecially a kind of unicast method, virtual switch, SDN controller and Storage medium.
Background technique
In traditional network environment, when non-technical personnel uses unicast related application, entire net often will cause The unicast flooding of network environment even results in the paralysis of whole network environment.Traditional solution includes: that host interface uses Storm-control order controls the unicast of all past outgoings of source host, the agingtime adjustment of MAC and ARP table, converges Trunk mouthfuls of vlan prunings on interchanger configure on the two all layer interfaces of convergence switch The methods of switchportblockunicast.
But the existing method complexity for preventing unknown unicast from flooding is high, stability is low, to network hardware condition depended Property is big, can not effectively take precautions against unknown unicast and flood.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of unicast method, virtual switch, SDN controller and Storage medium can effectively take precautions against unknown unicast and flood.
In order to reach the object of the invention, in a first aspect, being applied to virtual switch the present invention provides a kind of unicast method Machine, which comprises
Receive the unitcast request that unicast source virtual machine is sent;
The unitcast request is sent to software defined network SDN controller, so that the SDN controller is in virtualization net Unicast service is realized in network.
Second aspect, the present invention provides a kind of unicast methods, are applied to SDN controller, which comprises
The unitcast request of the first virtual switch transmission is received, first virtual switch is to connect with unicast source virtual machine The virtual switch connect;
Unicast destination virtual machine is obtained according to the unitcast request;
Unicast forwarding rule is generated according to the unicast destination virtual machine;
The unicast forwarding rule is sent to the second virtual switch, so that second virtual switch is to the list It broadcasts target virtual machine and sends unicast message, second virtual switch is the virtual friendship connecting with the unicast destination virtual machine It changes planes.
Optionally, described that unicast forwarding rule is generated according to unicast destination virtual machine, comprising: based on unicast source virtual machine and The network topology of unicast destination virtual machine, and unicast forwarding rule is generated according to preset algorithm.
Optionally, the unicast forwarding rule, comprising: OpenFlow flow table.
The third aspect, the present invention provides a kind of virtual switch, the virtual switch includes receiving unit and transmission Unit, in which:
The receiving unit, for receiving the unitcast request of unicast source virtual machine transmission;
The transmission unit, for the received unitcast request of the receiving unit to be sent to SDN controller, so as to The SDN controller realizes unicast service in virtualization network.
Fourth aspect, the present invention provides a kind of SDN controller, the SDN controller includes receiving unit, obtains list Member, generation unit and transmission unit, in which:
The receiving unit, for receiving the unitcast request of the first virtual switch transmission, first virtual switch For the virtual switch being connect with unicast source virtual machine;
The acquiring unit, it is virtual for obtaining unicast destination according to the received unitcast request of the receiving unit Machine;
The generation unit, the unicast destination virtual machine for being obtained according to the acquiring unit generate unicast forwarding Rule;
The transmission unit, the unicast forwarding rule for generating the generation unit are sent to the second virtual friendship It changes planes, so that second virtual switch sends unicast message, second virtual switch to the unicast destination virtual machine Machine is the virtual switch connecting with the unicast destination virtual machine.
Optionally, the generation unit is specifically used for: the network based on unicast source virtual machine and unicast destination virtual machine is opened up It flutters, and generates unicast forwarding rule according to preset algorithm.
Optionally, the unicast forwarding rule, comprising: OpenFlow flow table.
5th aspect, the present invention provides a kind of servers, comprising: one or more processors;Memory, for storing One or more programs, when one or more of programs are executed by one or more of processors so that it is one or Multiple processors realize unicast method as described in any one of the above embodiments.
6th aspect, the present invention provides a kind of storage mediums, are stored thereon with computer program, and the program is by processor Unicast method as described in any one of the above embodiments is realized when execution.
The embodiment of the present invention proposes a kind of unicast method, virtual switch, SDN controller and storage medium, passes through SDN Controller receives the unitcast request that the first virtual switch is sent;Unicast destination virtual machine is obtained according to the unitcast request;Root Unicast forwarding rule is generated according to the unicast destination virtual machine;The unicast forwarding rule is sent to the second virtual switch, So that second virtual switch sends unicast message to the unicast destination virtual machine.In this way, reducing unicast method Complexity improves stability, can effectively take precautions against unknown unicast and flood.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow diagram for the unicast method applied to virtual switch that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram of the unicast method provided by Embodiment 2 of the present invention applied to SDN controller;
Fig. 3 is the flow diagram for the unicast method that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram for the virtual switch that the embodiment of the present invention four provides;
Fig. 5 is the structural schematic diagram for the SDN controller that the embodiment of the present invention five provides;
Fig. 6 is the structural schematic diagram for the server that the embodiment of the present invention six provides.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
The present invention relates to virtualization network design fields, and in particular to a kind of to prevent unknown unicast using software defined network The implementation method to flood.
In traditional network environment, when non-technical personnel uses unicast related application, entire net often will cause The unicast flooding of network environment even results in the paralysis of entire corporate network environment.Analysis reason is mainly the UDP packet ratio of this unicast It is larger, and be to continue high speed to send, cause destination host to ram dead.But UDP packet is because of connectionless concept, unicast source according to It can so continue to send, due to the MAC Address aging on switches of destination host after a period of time, but ARP also unaged (one As in the case of MACagingtime < ARPagingtime).After causing this unicast traffic to reach interchanger, ARP table can be passed through Corresponding MAC Address is found, but corresponding interface is not present in MAC table again, then interchanger default can be by these this unicasts UDP flow amount goes to flood to the total interface of interchanger, forms unknown unicast and floods.For this problem, traditional solution master Have following several:
1, host interface uses storm-control order: but this order is merely able to control source host unicast and goes outward Hair at this time the interchanger where source host and can not differentiate unknown unicast or normal unicast, so all unicasts are all It can disinthibite, normal flow also will receive influence.
2, trunk mouthfuls of vlan prunings on convergence switch: it can only limit to flood only to influence using this method and possess mesh Host VLAN access switch, but can all have in the virtualization epoch, on essentially all of access switch all Vlan information, which can not also use in all environment.
3, the agingtime adjustment of MAC, ARP table: adjustment ARPagingtime is less than or equal to MACagingtime to keep away Exempt from flooding for unknown unicast, value is set as how many suitable, if other problems can be caused, whether not different hardware vendors Together, program needs are tested and assessed in specific environment.
4, configure switchportblockunicast on the two all layer interfaces of convergence switch: which is really It can be prevented from unknown unicast to flood presence, but in certain exploitation test environment be sometimes depositing of needing unknown unicast to flood , while which is equally limited by different hardware manufacturer, at the same it is specifically used in also will cause certain networks sometimes not just It often, therefore is not preferable solution yet.
Unknown unicast floods in order to prevent, and the embodiment of the present invention proposes a kind of new unicast method.Currently, cloud computing, The theories such as virtualization and technology are constantly mature, and cloud computing production environment deployment scale constantly increases, software defined network (SDN, SoftwareDefineNetwork) as it is a kind of virtualize network implementation, have outstanding network performance, stability, Flexibility and programmable features.The unicast method that the embodiment of the present invention proposes is based on SDN controller come real in virtualization network It is existing, it describes in detail below to the embodiment of the present invention.
Embodiment one
Fig. 1 is the flow diagram for the unicast method that the embodiment of the present invention one provides, and this method is applied to and unicast source void The virtual switch of quasi- machine connection, method the following steps are included:
Step 101: virtual switch receives the unitcast request that unicast source virtual machine is sent;
Step 102: unitcast request is sent to SDN controller by virtual switch, so that SDN controller is in virtualization network Middle realization unicast service.
In a specific embodiment of the present invention, SDN controller is a kind of control based on OpenFlow agreement in cloud platform Device, possess entire cloud platform network topology and all virtual machine informations, for preventing unknown unicast from flooding, realize unicast industry Business.
It should be noted that software defined network (SDN, SoftwareDefineNetwork) is net in a kind of cloud computing Mainstream technology used by network virtualizes has outstanding network performance, stability, flexibility and programmable features.
You need to add is that OpenFlow has done completely new planning to traditional network, OpenFlow interchanger will be originally complete The message repeating process controlled by switch/router is converted by OpenFlow interchanger and control server Lai common complete At to realize the separation of data forwarding and route test.
The unicast method that the embodiment of the present invention proposes, using the SND controller in virtual platform, by using OpenFlow flow table controls unicast message forwarding, makes control and forward separating, simply, efficiently message can be instructed to forward, will Control plane and forwarding surface decouple.In this way, not only reduce hardware resource cost, it is thus also avoided that network environment hardware is complicated Property, hardware is inconsistent etc. leads to the problem of, effectively taking precautions against unknown unicast floods, and avoids going to protect again after going wrong, and is promoted The security row and stability for virtualizing network, provide safe, quick, stable virtualization network service.
Embodiment two
Fig. 2 is the flow diagram of unicast method provided by Embodiment 2 of the present invention, and this method is applied to SDN controller, Method the following steps are included:
Step 201:SDN controller receive the first virtual switch send unitcast request, the first virtual switch be with The virtual switch of unicast source virtual machine connection;
In a specific embodiment of the present invention, SDN controller is a kind of control based on OpenFlow agreement in cloud platform Device, possess entire cloud platform network topology and all virtual machine informations, be capable of providing the basic networks pipe such as routing, flow control Reason service, for realizing unicast service in virtualization network.
Step 202:SDN controller obtains unicast destination virtual machine according to unitcast request;
Step 203:SDN controller generates unicast forwarding rule according to unicast destination virtual machine;
Illustratively, step 203 specifically includes: SDN controller is based on unicast source virtual machine and unicast destination virtual machine Network topology, and unicast forwarding rule is generated according to preset algorithm.
Illustratively, unicast forwarding rule includes OpenFlow flow table.
It should be noted that forwarding of the OpenFlow flow table for unicast message controls.By using OpenFlow flow table Unicast message forwarding is controlled, makes control and forward separating, simply, efficiently message can be instructed to forward, meets cloud computing basis Architecture design theory, control plane and forwarding surface decouple, and improve the flexibility of design, not only reduce hardware resource cost, avoid Hardware is inconsistent to be led to the problem of, can be with rapid deployment, change and upgrading, and provides safe, quick, stable virtualization Network service.
In practical application, SDN controller can control OpenFlow interchanger by the interface operation provided in advance In flow table, thus achieve the purpose that control data forwarding.
Unicast forwarding rule is sent to the second virtual switch by step 204:SDN controller, so as to the second virtual switch Machine sends unicast message to unicast destination virtual machine, and the second virtual switch is the virtual switch connecting with unicast destination virtual machine Machine.
It is understood that the second virtual switch is the virtual switch where unicast destination virtual machine.Second is virtual Interchanger sends unicast message to unicast destination virtual machine, so that the available unicast message of target virtual machine, realizes virtual net Unicast service in network environment.
It should be noted that the forwarding control of unicast message is controlled by SDN controller, virtual switch only needs According to unicast forwarding rule, such as be forwarded according to OpenFlow flow table, UDP message will not be flooded to interchanger its His port.
Furthermore it is also possible to ram exception of waiting indefinitely when there is virtual machine by the UDP flow amount situation of monitoring virtual machine Microsoft Loopback Adapter When situation, system manager or setting virtual machine can be notified the strategies such as to restart, migrates and restoring, to improve and be entirely The safety of system, stability.So, by designing reasonable virtual machine traffic monitoring and virtual machine abnormality processing strategy, The unicast services of high efficient and reliable are provided, the performance and stability of virtualization network service are improved.
In conclusion unicast method provided in an embodiment of the present invention is special based on virtualization network compared with traditional approach The control and forward separating theory that point and OpenFlow agreement propose, is directly sent unitcast request by virtual switch To SDN controller, so that SDN controller generates unicast flow table, and using OpenFlow flow table control message forwarding, unicast is realized Function.In this way, unicast feature is realized by SDN mode, so that the unitcast request message that message is issued from virtual machine is directly by SDN Controller interception, i.e., message will not flood into network again, to ensure that safe, quick, stable network service;It mentions The high stability of virtualization network function;Effectively reduce the expense of unicast routing protocol;Avoid different physical equipment factories The inconsistency of quotient.
Embodiment three
Fig. 3 is the flow diagram for the unicast method that the embodiment of the present invention three provides.As shown in figure 3, unicast method can be with The following steps are included:
Step 301: unicast source virtual machine generates unitcast request according to the unicast service of carrying;
Step 302: unitcast request is sent to the first virtual switch by unicast source virtual machine;
Step 303: unitcast request is sent to SDN controller by the first virtual switch;
In a specific embodiment of the present invention, SDN controller is a kind of control based on OpenFlow agreement in cloud platform Device, possess entire cloud platform network topology and all virtual machine informations, for virtualization network in realize unicast service.
It should be noted that software defined network (SDN, SoftwareDefineNetwork) is net in a kind of cloud computing Mainstream technology used by network virtualizes has outstanding network performance, stability, flexibility and programmable features.
Step 304:SDN controller obtains unicast destination virtual machine according to unitcast request;
Network topology of the step 305:SDN controller based on unicast source virtual machine and unicast destination virtual machine, and according to pre- Imputation method generates OpenFlow flow table;
It should be noted that forwarding of the OpenFlow flow table for unicast message controls, while virtual machine traffic monitoring is done, Abnormality processing strategy is set in abnormal cases.By designing reasonable OpenFlow flow table, the list of high efficient and reliable can be realized Service is broadcast, and then promotes the performance and stability of virtualization network service.
OpenFlow flow table is sent to the second virtual switch by step 306:SDN controller;
Wherein, the second virtual switch is the virtual switch where unicast destination virtual machine corresponding with OpenFlow flow table Machine.
Step 307: the second virtual switch sends unicast message to unicast destination virtual machine;
Step 308: unicast destination virtual machine obtains unicast message, realizes the unicast service in virtual network environment.
It should be noted that setting virtual machine traffic monitoring, monitoring objective virtual machine Microsoft Loopback Adapter UDP net can also be passed through Network flow.Virtual machine traffic abnormality processing strategy is set, when Microsoft Loopback Adapter UDP network flow exceeds given threshold, according to plan Abnormality processing slightly is carried out to virtual machine, to restore unicast service.
In practical applications, by using OpenFlow flow table control unicast message forwarding, make control and forward separating, it can With it is simple, efficiently message is instructed to forward, meet cloud computing architecture design concept, control plane and forwarding surface are decoupled, improved The flexibility of design, not only reduces hardware resource cost, avoids the problem that the inconsistent generation of hardware, can with rapid deployment, Change and upgrading, and provide safe, quick, stable virtualization network service.
Example IV
Fig. 4 is the structural schematic diagram for the virtual switch that the embodiment of the present invention four provides, as shown in figure 4, virtual switch Including receiving unit 401 and transmission unit 402, in which:
Receiving unit 401, for receiving the unitcast request of unicast source virtual machine transmission;
Transmission unit 402, for the received unitcast request of receiving unit 401 to be sent to SDN controller, so as to SDN control Device processed realizes unicast service in virtualization network.
In a specific embodiment of the present invention, SDN controller is a kind of control based on OpenFlow agreement in cloud platform Device, possess entire cloud platform network topology and all virtual machine informations, for virtualization network in realize unicast service.
It should be noted that software defined network (SDN, Software Define Network) is in a kind of cloud computing Mainstream technology used by network virtualization has outstanding network performance, stability, flexibility and programmable features.
That is, OpenFlow has done completely new planning to traditional network, OpenFlow interchanger will be originally completely by handing over Change planes/router control message repeating process, be converted by OpenFlow interchanger and control server and complete jointly, from And realize the separation of data forwarding and route test.
The virtual switch that the embodiment of the present invention proposes, using the SND controller in virtual platform, by using OpenFlow flow table controls unicast message forwarding, makes control and forward separating, simply, efficiently message can be instructed to forward, will Control plane and forwarding surface decouple.In this way, not only reduce hardware resource cost, it is thus also avoided that network environment hardware is complicated Property, hardware is inconsistent etc. leads to the problem of, effectively taking precautions against unknown unicast floods, and avoids going to protect again after going wrong, and is promoted The security row and stability for virtualizing network, provide safe, quick, stable virtualization network service.
Embodiment five
Fig. 5 is the structural schematic diagram for the SDN controller that the embodiment of the present invention five provides, as shown in figure 5, SDN controller packet Include receiving unit 501, acquiring unit 502, generation unit 503 and transmission unit 504, in which:
Receiving unit 501, for receiving the unitcast request of the first virtual switch transmission, the first virtual switch is and list Broadcast the virtual switch of source virtual machine connection;
Acquiring unit 502, for obtaining unicast destination virtual machine according to the received unitcast request of receiving unit 501,
Generation unit 503, the unicast destination virtual machine for being obtained according to acquiring unit 502 generate unicast forwarding rule;
Transmission unit 504, the unicast forwarding rule for generating generation unit 503 are sent to the second virtual switch, So that the second virtual switch sends unicast message to unicast destination virtual machine, the second virtual switch is virtual with unicast destination The virtual switch of machine connection.
Illustratively, generation unit 503 is specifically used for: the network based on unicast source virtual machine and unicast destination virtual machine is opened up It flutters, and generates unicast forwarding rule according to preset algorithm.
Illustratively, unicast forwarding rule, comprising: OpenFlow flow table.
It should be noted that forwarding of the OpenFlow flow table for unicast message controls.It is reasonable by designing OpenFlow flow table can be realized the unicast services of high efficient and reliable, and then promote the performance and stability of virtualization network service.
In practical application, SDN controller can control OpenFlow interchanger by the interface operation provided in advance In flow table, thus achieve the purpose that control data forwarding.
In conclusion SDN controller provided in an embodiment of the present invention is special based on virtualization network compared with traditional approach The control and forward separating theory that point and OpenFlow agreement propose, is directly sent unitcast request by virtual switch To SDN controller, so that SDN controller generates unicast flow table, and using OpenFlow flow table control message forwarding, unicast is realized Function.In this way, unicast feature is realized by SDN mode, so that the unitcast request message that message is issued from virtual machine is directly by SDN Controller interception, i.e., message will not flood into network again, to ensure that safe, quick, stable network service;It mentions The high stability of virtualization network function;Effectively reduce the expense of unicast routing protocol;Avoid different physical equipment factories The inconsistency of quotient.
Embodiment six
Fig. 6 is the structural schematic diagram for the server that the embodiment of the present invention six provides.Fig. 6, which is shown, to be suitable for being used to realizing this hair The block diagram of the exemplary servers of bright embodiment.The server 12 that Fig. 6 is shown is only an example, should not be to of the invention real The function and use scope for applying example bring any restrictions.
The server includes: one or more processors;Memory, for storing one or more programs, when one or Multiple programs are executed by one or more processors, so that one or more processors are realized such as the list in above-mentioned any embodiment Broadcasting method.
As shown in fig. 6, server 12 is showed in the form of universal computing device.The component of server 12 may include but not Be limited to: one or more processor or processing unit 16, system storage 28 connect different system components (including system Memory 28 and processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Server 12 typically comprises a variety of computer system readable media.These media can be and any can be serviced The usable medium that device 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Server 12 may further include other removable/nonremovable , volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing not removable Dynamic, non-volatile magnetic media (Fig. 6 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 6, can provide Disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to removable anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected by one or more data media interfaces with bus 18.Memory 28 may include at least one program product, The program product has one group of (for example, at least one) program module, these program modules are configured to perform each implementation of the invention The function of example.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 include but is not limited to operating system, one or more application program, other program modules and It may include the realization of network environment in program data, each of these examples or certain combination.Program module 42 is usual Execute the function and/or method in embodiment described in the invention.
Server 12 can also be logical with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.) Letter, can also be enabled a user to one or more equipment interact with the server 12 communicate, and/or with make the server The 12 any equipment (such as network interface card, modem etc.) that can be communicated with one or more of the other calculating equipment communicate. This communication can be carried out by input/output (I/O) interface 22.Also, server 12 can also pass through network adapter 20 With one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication. As shown, network adapter 20 is communicated by bus 18 with other modules of server 12.It should be understood that although not showing in figure Out, can in conjunction with server 12 use other hardware and/or software module, including but not limited to: microcode, device driver, Redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and Data processing, such as realize unicast method provided by the embodiment of the present invention.
Embodiment seven
The embodiment of the present invention six provides a kind of computer storage medium.It is stored thereon with computer program, the program quilt It realizes when processor executes such as the unicast method in above-mentioned any embodiment.
The computer readable storage medium of the embodiment of the present invention, can be using one or more computer-readable media Any combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer Readable storage medium storing program for executing for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, dress It sets or device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium wraps It includes: there is the electrical connection of one or more conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable Storage medium can be it is any include or storage program tangible medium, the program can be commanded execution system, device or Device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, programming language include object oriented program language-such as Java, Smalltalk, C++, are also wrapped Include conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete Ground executes on the user computer, partly executes on the user computer, executing as an independent software package, partially existing Part executes on the remote computer or executes on a remote computer or server completely on subscriber computer.It is being related to In the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or wide area Net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as utilize ISP To be connected by internet).
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method or computer program product. Therefore, the form of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention.And And it wherein includes the computer-usable storage medium of computer usable program code that the present invention, which can be used in one or more, The form for the computer program product implemented on (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.

Claims (10)

1. a kind of unicast method, which is characterized in that the method is applied to virtual switch, which comprises
Receive the unitcast request that unicast source virtual machine is sent;
The unitcast request is sent to software defined network SDN controller, so that the SDN controller is in virtualization network Realize unicast service.
2. a kind of unicast method, which is characterized in that the method is applied to SDN controller, which comprises
The unitcast request of the first virtual switch transmission is received, first virtual switch is to connect with unicast source virtual machine Virtual switch;
Unicast destination virtual machine is obtained according to the unitcast request;
Unicast forwarding rule is generated according to the unicast destination virtual machine;
The unicast forwarding rule is sent to the second virtual switch, so that second virtual switch is to the unicast mesh It marks virtual machine and sends unicast message, second virtual switch is the virtual switch connecting with the unicast destination virtual machine Machine.
3. according to the method described in claim 2, it is characterized in that, described generate unicast forwarding rule according to unicast destination virtual machine Then, comprising:
Network topology based on unicast source virtual machine and unicast destination virtual machine, and unicast forwarding rule are generated according to preset algorithm Then.
4. according to the method described in claim 2, it is characterized in that, the unicast forwarding is regular, comprising:
OpenFlow flow table.
5. a kind of virtual switch, which is characterized in that the virtual switch includes receiving unit and transmission unit, in which:
The receiving unit, for receiving the unitcast request of unicast source virtual machine transmission;
The transmission unit, for the received unitcast request of the receiving unit to be sent to SDN controller, so as to described SDN controller realizes unicast service in virtualization network.
6. a kind of SDN controller, which is characterized in that the SDN controller include receiving unit, acquiring unit, generation unit and Transmission unit, in which:
The receiving unit, for receive the first virtual switch transmission unitcast request, first virtual switch be with The virtual switch of unicast source virtual machine connection;
The acquiring unit, for obtaining unicast destination virtual machine according to the received unitcast request of the receiving unit;
The generation unit, the unicast destination virtual machine for being obtained according to the acquiring unit generate unicast forwarding rule Then;
The transmission unit, the unicast forwarding rule for generating the generation unit are sent to the second virtual switch Machine, so that second virtual switch sends unicast message, second virtual switch to the unicast destination virtual machine For the virtual switch being connect with the unicast destination virtual machine.
7. SDN controller according to claim 6, which is characterized in that the generation unit is specifically used for:
Network topology based on unicast source virtual machine and unicast destination virtual machine, and unicast forwarding rule are generated according to preset algorithm Then.
8. SDN controller according to claim 6, which is characterized in that the unicast forwarding rule, comprising:
OpenFlow flow table.
9. a kind of server characterized by comprising
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now unicast method according to any one of claims 1 to 4.
10. a kind of storage medium, is stored thereon with computer program, which is characterized in that the realization when program is executed by processor Unicast method according to any one of claims 1 to 4.
CN201811206326.4A 2018-10-17 2018-10-17 A kind of unicast method, virtual switch, SDN controller and storage medium Pending CN109412978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811206326.4A CN109412978A (en) 2018-10-17 2018-10-17 A kind of unicast method, virtual switch, SDN controller and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811206326.4A CN109412978A (en) 2018-10-17 2018-10-17 A kind of unicast method, virtual switch, SDN controller and storage medium

Publications (1)

Publication Number Publication Date
CN109412978A true CN109412978A (en) 2019-03-01

Family

ID=65468249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811206326.4A Pending CN109412978A (en) 2018-10-17 2018-10-17 A kind of unicast method, virtual switch, SDN controller and storage medium

Country Status (1)

Country Link
CN (1) CN109412978A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857416A (en) * 2012-09-18 2013-01-02 中兴通讯股份有限公司 Method for implementing virtual network and virtual network
CN105162704A (en) * 2015-09-28 2015-12-16 杭州数梦工场科技有限公司 Multicast replication method and device in Overlay network
US20160337231A1 (en) * 2013-08-07 2016-11-17 International Business Machines Corporation Software defined network (sdn) switch clusters having layer-3 distributed router functionality
CN106411750A (en) * 2015-08-03 2017-02-15 华为技术有限公司 Data distribution method and system thereof
CN108111324A (en) * 2017-12-19 2018-06-01 刘昱 A kind of multicast control method based on SDN network, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857416A (en) * 2012-09-18 2013-01-02 中兴通讯股份有限公司 Method for implementing virtual network and virtual network
US20160337231A1 (en) * 2013-08-07 2016-11-17 International Business Machines Corporation Software defined network (sdn) switch clusters having layer-3 distributed router functionality
CN106411750A (en) * 2015-08-03 2017-02-15 华为技术有限公司 Data distribution method and system thereof
CN105162704A (en) * 2015-09-28 2015-12-16 杭州数梦工场科技有限公司 Multicast replication method and device in Overlay network
CN108111324A (en) * 2017-12-19 2018-06-01 刘昱 A kind of multicast control method based on SDN network, device and storage medium

Similar Documents

Publication Publication Date Title
US10320674B2 (en) Independent network interfaces for virtual network environments
JP6498230B2 (en) Flexible HDD / SSD storage support system and method
US9413554B2 (en) Virtual network overlays
CN117614890A (en) Loop prevention in virtual L2 networks
CN109716717A (en) From software-defined network controller management virtual port channel switching equipment peer-to-peer
US9106529B2 (en) Virtual network configuration and management
US20120320918A1 (en) Bridge port between hardware lan and virtual switch
CN107547439B (en) Network flow control method and computing node
US9537798B1 (en) Ethernet link aggregation with shared physical ports
JP2015534320A (en) System and method for providing policy-based data center network automation
US9614789B2 (en) Supporting multiple virtual switches on a single host
CN116762060A (en) Internet Group Management Protocol (IGMP) for layer 2 networks in virtualized cloud environments
CN104954276B (en) System and method for load balancing multicast traffic
CN113726637B (en) Network traffic transparent transmission method and device based on cloud platform and storage medium
CN112671578A (en) SRIOV virtual network configuration method and related device
CN109150624A (en) A kind of bare machine management method, device, server and storage medium based on SDN
RU2602333C2 (en) Network system, packet processing method and storage medium
US9542200B2 (en) Dynamic port naming in a chassis
CN109379292A (en) A kind of method of multicasting, virtual switch, SDN controller and storage medium
WO2016173196A1 (en) Method and apparatus for learning address mapping relationship
CN109412978A (en) A kind of unicast method, virtual switch, SDN controller and storage medium
US20180091425A1 (en) Monitoring network addresses and managing data transfer
US20140047083A1 (en) Administration information generation method, administration information generation program, and administration information generation device
US9219655B1 (en) Systems and methods for discovering network topologies
Wang et al. Circuit‐based logical layer 2 bridging in software‐defined data center networking

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190301

RJ01 Rejection of invention patent application after publication