CN103916314A - Message transmitting control method, related device and physical host - Google Patents

Message transmitting control method, related device and physical host Download PDF

Info

Publication number
CN103916314A
CN103916314A CN201310733898.9A CN201310733898A CN103916314A CN 103916314 A CN103916314 A CN 103916314A CN 201310733898 A CN201310733898 A CN 201310733898A CN 103916314 A CN103916314 A CN 103916314A
Authority
CN
China
Prior art keywords
message
forward process
host
open flows
network card
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
CN201310733898.9A
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.)
Hangzhou Huawei Digital Technologies Co Ltd
Original Assignee
Hangzhou Huawei Digital 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 Hangzhou Huawei Digital Technologies Co Ltd filed Critical Hangzhou Huawei Digital Technologies Co Ltd
Priority to CN201310733898.9A priority Critical patent/CN103916314A/en
Publication of CN103916314A publication Critical patent/CN103916314A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention provides a message transmitting control method, a related device and a physical host. The message transmitting control method comprises the steps that a physical network card receives a first message to be transmitted from a virtual machine, and the virtual machine is deployed on a first physical host comprising the physical network card; the physical network card searches a stream table to find out whether a stream table item matched with the first message exists; if the stream table item matched with the first message is not found, a first open stream protocol comprising the first message is sent to a Host deployed in the first physical host; when a second open stream protocol which is sent by the Host and used for responding to the first open stream protocol is received, the physical network card carries out transmitting processing on the first message based on transmitting processing rules contained in the second open stream protocol. The technical scheme of the message transmitting control method, the related device and the physical host is favorable for achieving the purpose that the physical network card carries out message transmitting control accurately under a virtual framework.

Description

Message repeating control method and relevant apparatus and physical host
Technical field
The present invention relates to field of computer technology, be specifically related to message repeating control method and relevant apparatus and physical host.
Background technology
Intel Virtualization Technology is a kind of by the uncoupling technology of bottom hardware equipment and upper strata operating system, separate, as shown in Figure 1, introduce monitor of virtual machine (VMM, Virtual Machine Monitor) directly management bottom hardware resource of layer, create the virtual machine (VM, Virtual Machine) irrelevant with bottom hardware and keep supplying layer operation system and application program use.
Intel Virtualization Technology, as one of bottom important support technology of cloud computing (Cloud Computing) platform of current popular, can improve the resource utilization of physical equipment greatly.Compared with traditional physical server, virtual machine has better isolation and encapsulation property, it can be saved in the information of whole virtual machine virtual disk mirror image (VDI, Virtual Disk Image) in, thereby can carry out easily the operations such as snapshot, backup, clone and distribution to virtual machine.
Along with the evolution of x86 processor, the Intel Virtualization Technology of central processing unit (CPU, Central Processing Unit), internal memory is more and more perfect, and expense also becomes more and more less.Based on up-to-date processor, CPU, the internal memory virtualization expense of great majority application have been less than 10%.In the virtual field of input and output (I/O, Input/Output), the virtual i/o scheme of high-performance, low delay is still a key technology challenge in virtual field.
Intelligent physical network interface card is mostly supported virtualization capability, certain function of exchange just can be realized in physical network card inside like this, switch in physical network card can be for passing through network interface card virtual functions (VF, Virtual Functions) data of entity transmission carry out routing forwarding, and this be the perception of user institute less than.Be all by opening after the I/O virtual functions of physical network card to the use of intelligent physical network interface card now, the network interface card VF equipment fictionalizing is led directly to virtual machine and used.When physical network card under virtual framework carries out message repeating at present, being difficult to carry out more accurate forwarding controls.
Summary of the invention
The embodiment of the present invention provides message repeating control method and relevant apparatus and physical host, carries out more accurately message repeating control to realize physical network card under virtual framework.
The first aspect of the embodiment of the present invention provides a kind of message repeating control method, can comprise:
Physical network card receives first message for the treatment of forward process of self virtualizing machine, and wherein, described deploying virtual machine is in comprising on the first physical host of described physical network card;
Described physical network card searches whether there is the stream list item mating with described the first message in stream table; If do not find the stream list item mating with described the first message, send to the host Host disposing in described the first physical host the first open flows protocol massages that comprises described the first message;
When receive that described Host sends for responding the second open flows protocol massages of described the first open flows protocol massages, the forward process rule of described physical network card based on comprising in described the second open flows protocol massages carried out forward process to described the first message.
In conjunction with first aspect, in the possible execution mode of the first,
Described method also comprises: if described physical network card finds the stream list item mating with described the first message in described stream table, the forward process rule recording in the stream list item based on described coupling is carried out forward process to described the first message.
In conjunction with the possible execution mode of the first of first aspect or first aspect, in the possible execution mode of the second, described method also comprises:
Described physical network card receives by physical port the second message that other physical hosts are sent; The corresponding object virtual machine in object virtual machine address that described physical network card carries to described the second message forwards described the second message, and wherein, described object deploying virtual machine is among described the first physical host;
Or,
Described physical network card receives by physical port the second message that other physical hosts are sent; Described physical network card searches whether there is the stream list item mating with described the second message in stream table; If do not find the stream list item mating with described the second message, send to described Host the 5th open flows protocol massages that comprises described the second message; When receive that described Host sends for responding the 6th open flows protocol massages of described the 5th open flows protocol massages, the forward process rule of described physical network card based on comprising in described the 6th open flows protocol massages carried out forward process to described the second message.
The second aspect of the embodiment of the present invention provides a kind of message repeating control method, can comprise:
The physical network card being included in this physical host receives by physical port the second message that other physical hosts are sent;
Described physical network card searches whether there is the stream list item mating with described the second message in stream table; When not finding the stream list item mating with described the second message, send to the host Host disposing in described physical host the 5th open flows protocol massages that comprises described the second message;
When receive that described Host sends for responding the 6th open flows protocol massages of described the 5th open flows protocol massages, the forward process rule of described physical network card based on comprising in described the 6th open flows protocol massages carried out forward process to described the second message.
In conjunction with second aspect, in the possible execution mode of the first,
Described method also comprises:
If find the stream list item mating with described the second message in described stream table, the forward process rule recording in the stream list item of described physical network card based on described coupling is carried out forward process to described the second message.
The embodiment of the present invention third aspect provides a kind of message repeating control method, comprising:
The host Host being deployed in physical host receives the first open flows protocol massages that comprises the first message that the physical network card in described physical host sends;
Described Host obtains the forward process rule for the first message described in forward process based on preset strategy;
Described Host sends the second open flows protocol massages that comprises described forward process rule to described physical network card.
In conjunction with the third aspect, in the possible execution mode of the first, describedly obtain the forward process rule for the first message described in forward process based on preset strategy, comprising:
Obtain the forward process rule for the first message described in forward process based on fuzzy matching table;
Or,
Send the 3rd open flows protocol massages that comprises described the first message to software defined network SDN controller; Receive the 4th open flows protocol massages for the forward process rule of the first message described in forward process that comprises that described SDN controller returns.
In conjunction with the possible execution mode of the first of the third aspect, in the possible execution mode of the second, before including the 3rd open flows protocol massages of described the first message to described SDN controller transmission, also comprise: the transport layer protocol that described Host sets up between described SDN controller is connected, and the 3rd open flows protocol massages that comprises described the first message is encapsulated among the first transport layer protocol message;
Wherein, describedly send to SDN controller the 3rd open flows protocol massages that includes described the first message and comprise: connect to SDN controller and send and include the first transport layer protocol message described in described the 3rd open flows protocol massages based on described transport layer protocol.
In conjunction with the possible execution mode of the second of the third aspect, in the third possible execution mode, described transport layer protocol is transmission control protocol or User Datagram Protoco (UDP).
Fourth aspect present invention provides a kind of physical network card, can comprise:
Network interface card queue and open flows switch;
Wherein, described open flows switch, the first message for the treatment of forward process sending for receive the virtual machine of residing the first physical host deploy of described physical network card by described network interface card queue is searched and whether is had the stream list item mating with described the first message in stream table; When do not find the stream list item mating with described the first message in described stream table, send to the host Host of described the first physical host deploy the first open flows protocol massages that comprises described the first message; When receive that described Host sends for responding the second open flows protocol massages of described the first open flows protocol massages, the forward process rule based on comprising in described the second open flows protocol massages is carried out forward process to described the first message.
In conjunction with fourth aspect, in the possible execution mode of the first, described open flows switch also finds at described stream table the stream list item mating with described the first message for working as, and the forward process rule recording in the stream list item based on described coupling is carried out forward process to described the first message.
In conjunction with the possible execution mode of the first of fourth aspect or fourth aspect, in the possible execution mode of the second, described physical network card also comprises physical port;
Wherein, described open flows switch also for, receive by described physical port the second message that other physical hosts are sent; The corresponding object virtual machine in object virtual machine address carrying to described the second message by described network interface card queue forwards described the second message, and wherein, described object deploying virtual machine is in described the first physical host;
Or,
Described open flows switch also for, receive by described physical port the second message that other physical hosts are sent; In stream table, search and whether have the stream list item mating with described the second message; If do not find the stream list item mating with described the second message, send to described Host the 5th open flows protocol massages that comprises described the second message; When receive that described Host sends for responding the 6th open flows protocol massages of described the 5th open flows protocol massages, the forward process rule based on comprising in described the 6th open flows protocol massages is carried out forward process to described the second message.
The embodiment of the present invention the 5th aspect provides a kind of physical network card, comprising:
Physical port and open flows switch;
Described open flows switch, for receiving the second message that other physical hosts are sent by described physical port; In stream table, search and whether have the stream list item mating with described the second message; If do not find the stream list item mating with described the second message, send to the host Host disposing in residing physical host of described physical network card the 5th open flows protocol massages that comprises described the second message; When receive that described Host sends for responding the 6th open flows protocol massages of described the 5th open flows protocol massages, the forward process rule based on comprising in described the 6th open flows protocol massages is carried out forward process to described the second message.
In conjunction with the 5th aspect, in the possible execution mode of the first, described open flows switch also finds at described stream table the stream list item mating with described the second message for working as, and the forward process rule recording in the stream list item based on described coupling is carried out forward process to described the second message.
The embodiment of the present invention the 6th aspect provides a kind of host, comprising:
Message receiving element, the first open flows protocol massages that includes the first message sending for receiving physical network card, on the physical host that described physical network card is disposed in described host;
Obtain unit, for obtain the forward process rule for the first message described in forward process based on preset strategy;
Transmitting element, for sending the second open flows protocol massages that comprises described forward process rule to described physical network card.
In conjunction with the 6th aspect, in the possible execution mode of the first,
Described acquisition unit specifically for, obtain the forward process rule for the first message described in forward process based on fuzzy matching table; Or, send the 3rd open flows protocol massages that includes described the first message to software defined network SDN controller; Receive the 4th open flows protocol massages for the forward process rule of the first message described in forward process that includes that described SDN controller returns.
In the possible execution mode of the first of the 6th aspect, in the possible execution mode of the second,
Described host also comprises: connect and set up unit, for before including the 3rd open flows protocol massages of described the first message to described SDN controller transmission, the transport layer protocol of setting up between described SDN controller is connected;
Wherein, described to SDN controller send include described the first message the 3rd open flows protocol massages aspect, described acquisition unit specifically for, after in the 3rd open flows protocol massages that comprises described the first message is encapsulated into the first transport layer protocol message, connects to SDN controller and send and include the first transport layer protocol message described in described the 3rd open flows protocol massages based on described transport layer protocol.
The embodiment of the present invention the 7th aspect provides a kind of physical host, can comprise: hardware layer, operate in the host Host on described hardware layer and operate at least one virtual machine on described Host, wherein, described hardware layer comprises physical network card;
Described physical network card, the first message for the treatment of forward process sending for receiving a virtual machine of described at least one virtual machine is searched and whether is had the stream list item mating with described the first message in stream table; If do not find the stream list item mating with described the first message in described stream table, send to described Host the first open flows protocol massages that comprises described the first message;
Wherein, described Host, described the first open flows protocol massages that includes described the first message sending for receiving described physical network card; Obtain the forward process rule for the first message described in forward process based on preset strategy; Send the second open flows protocol massages that includes described forward process rule to described physical network card;
Wherein, described physical network card also for when receive that described Host sends for responding the second open flows protocol massages of described the first open flows protocol massages, the forward process rule based on comprising in described the second open flows protocol massages is carried out forward process to described the first message.
In conjunction with the 7th aspect, in the possible execution mode of the first, obtain for aspect the forward process rule of the first message described in forward process based on preset strategy described, described Host is specifically for obtaining the forward process rule for the first message described in forward process based on fuzzy matching table; Or, send the 3rd open flows protocol massages that includes described the first message to software defined network SDN controller; Receive the 4th open flows protocol massages for the forward process rule of the first message described in forward process that includes that described SDN controller returns.
In the possible execution mode of the first of the 7th aspect or the 7th aspect, in the possible execution mode of the second, described physical network card also for, receive by physical port the second message that other physical hosts are sent; Forward described the second message to the corresponding object virtual machine in the entrained object virtual machine of described the second message address, wherein, described object virtual machine is one of them of described at least one virtual machine;
Or, described physical network card also for, receive by physical port the second message that other physical hosts are sent; In stream table, search and whether have the stream list item mating with described the second message; If do not find the stream list item mating with described the second message, send to described Host the 5th open flows protocol massages that comprises described the second message; When receive that described Host sends for responding the 6th open flows protocol massages of described the 5th open flows protocol massages, the forward process rule based on comprising in described the 6th open flows protocol massages is carried out forward process to described the second message.
Eighth aspect present invention provides a kind of physical host, can comprise: hardware layer, operate in the host Host on described hardware layer and operate at least one virtual machine on described Host, wherein, described hardware layer comprises physical network card;
Wherein, described physical network card, the second message of sending for receive other physical hosts by physical port; In stream table, search and whether have the stream list item mating with described the second message; When not finding the stream list item mating with described the second message, send to described Host the 5th open flows protocol massages that comprises described the second message;
Wherein, described Host, described the 5th open flows protocol massages that includes described the second message sending for receiving described physical network card; Obtain the forward process rule for the second message described in forward process based on preset strategy; Send the 6th open flows protocol massages that includes described forward process rule to described physical network card;
Wherein, described physical network card also for when receive that described Host sends for responding the 6th open flows protocol massages of described the 5th open flows protocol massages, the forward process rule based on comprising in described the 6th open flows protocol massages is carried out forward process to described the second message.
In conjunction with eight aspect, in the possible execution mode of the first, obtain for aspect the forward process rule of the second message described in forward process based on preset strategy described, described Host is specifically for obtaining the forward process rule for the second message described in forward process based on fuzzy matching table; Or, send the 3rd open flows protocol massages that includes described the second message to software defined network SDN controller; Receive the 4th open flows protocol massages for the forward process rule of the second message described in forward process that includes that described SDN controller returns.
Therefore, in some technical schemes of the embodiment of the present invention, physical network card receive that the virtual machine that is deployed on this physical network card the first physical host of living in sends after the first message of forward process, first in stream table, search whether there is the stream list item mating with above-mentioned the first message; If do not find the stream list item mating with above-mentioned the first message, send to the Host being deployed on the first physical host the first open flows protocol massages that comprises above-mentioned the first message; When receive that above-mentioned Host sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, the forward process rule of physical network card based on comprising in above-mentioned the second open flows protocol massages carried out forward process to above-mentioned the first message.Due in physical network card, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card and under virtual framework, forward more accurately control, if the forward process rule of carrying out based on flow control is carried out message repeating processing, be conducive to realize comparatively accurate flow control by more accurate forwarding control.And in the time lacking the forward process rule of message in physical network card, physical network card directly obtains forward process rule and without obtain forward process rule from other physical host from Host, this mechanism is conducive to greatly simplify the even hardware structure of communication protocol framework of physical network card, so just be conducive to reduce cost and the complexity of physical network card, be conducive to improve the scene versatility of physical network card.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the virtualization architecture schematic diagram that the embodiment of the present invention provides;
Fig. 2 is the another kind of virtualization architecture schematic diagram that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of a kind of message repeating control method of providing of the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the another kind of message repeating control method that provides of the embodiment of the present invention;
Fig. 5-a is the schematic flow sheet of the another kind of message repeating control method that provides of the embodiment of the present invention;
Fig. 5-b is a kind of communication system architecture schematic diagram that the embodiment of the present invention provides;
Fig. 5-c is the another kind of communication system architecture schematic diagram that the embodiment of the present invention provides;
Fig. 6 is the schematic flow sheet of the another kind of message repeating control method that provides of the embodiment of the present invention;
Fig. 7 is the schematic flow sheet of the another kind of message repeating control method that provides of the embodiment of the present invention;
Fig. 8 is the schematic flow sheet of the another kind of message repeating control method that provides of the embodiment of the present invention;
Fig. 9-a is the structural representation of a kind of physical network card of providing of the embodiment of the present invention;
Fig. 9-b is the structural representation of the another kind of physical network card that provides of the embodiment of the present invention;
Figure 10-a is the structural representation of the another kind of physical network card that provides of the embodiment of the present invention;
Figure 10-b is the structural representation of the another kind of physical network card that provides of the embodiment of the present invention;
Figure 11-a is the structural representation of a kind of host of providing of the embodiment of the present invention;
Figure 11-b is the structural representation of the another kind of host that provides of the embodiment of the present invention;
Figure 12 is the structural representation of a kind of physical host of providing of the embodiment of the present invention;
Figure 13 is the structural representation of the another kind of physical host that provides of the embodiment of the present invention;
Figure 14 is the structural representation of the another kind of physical host that provides of the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides message repeating control method and relevant apparatus and physical host, carries out more accurately message repeating control to realize physical network card under virtual framework.
In order to make those skilled in the art person understand better the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, should belong to the scope of protection of the invention.
Below be elaborated respectively.
Term " first " in specification of the present invention and claims and above-mentioned accompanying drawing, " second ", " the 3rd " " 4th " etc. (if existence) are for distinguishing similar object, and needn't be used for describing specific order or precedence.The data that should be appreciated that such use suitably can exchanged in situation, so as embodiments of the invention described herein for example can with except diagram here or describe those order enforcement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, for example, those steps or unit that process, method, system, product or the equipment that has comprised series of steps or unit is not necessarily limited to clearly list, but can comprise clearly do not list or for these processes, method, product or equipment intrinsic other step or unit.
To facilitate understanding of the present embodiment of the invention, first introduce at this several key elements that can introduce in embodiment of the present invention description;
Virtual machine VM:
Can on a physical computer, simulate one or many virtual computers by software virtual machine, and these virtual machines carry out work just as real computer, can installing operating system and application program on virtual machine, virtual machine is addressable network resource also.For the application program of moving in virtual machine, virtual machine similarly is in real computer, to carry out work.
Hardware layer:
The hardware platform of virtualized environment operation.Wherein, hardware layer can comprise multiple hardwares, the hardware layer of for example certain physical host can comprise CPU and internal memory, can also comprise network interface card, memory etc. high speed/low speed I/O (I/O, Input/Output) equipment, and there is other physical host of particular procedure function, as input and output memory management unit (IOMMU, Input/Output Memory Management Unit), wherein IOMMU can be used for the conversion of virtual machine physical address and Host physical address.
I/O virtual functions:
The I/O equipment with I/O virtual functions is starting after I/O virtual functions, can fictionalize corresponding physical function (PF, Physical Function) equipment and several virtual functions (VF, Virtual Function) equipment, wherein, the PF equipment that I/O equipment fictionalizes is mainly in charge of function, and VF equipment is mainly responsible for processing capacity.
Host (Host):
As management level, main in order to complete management and the distribution of hardware resource; For virtual machine presents virtual hardware platform; Realize scheduling and the isolation of virtual machine.
Wherein, Host may be monitor of virtual machine (VMM); In addition, VMM and 1 franchise virtual machine coordinate sometimes, and both are in conjunction with composition Host.Wherein, virtual hardware platform provides various hardware resources to each virtual machine of operation on it, as virtual cpu, internal memory, virtual disk, Microsoft Loopback Adapter etc. are provided.Virtual disk can corresponding Host a file or a logical block equipment.Virtual machine operates on the virtual hardware platform that Host is its preparation, the one or more virtual machines of the upper operation of Host.
Referring to Fig. 2, Fig. 2 is the schematic diagram of the software and hardware architecture framework of a kind of physical host of embodiment of the present invention proposition, and this architectural framework mainly comprises three levels: hardware layer, Host and VM.Wherein, hardware layer comprises the I/O equipment such as several physical network cards.Wherein, Host operate on hardware layer, at least 1 VM operates on Host.Wherein, in Fig. 2, mainly taking physical network card as the intelligent physical network interface card with I/O virtual functions is as example, in physical network card, can fictionalize corresponding several virtual functions VF equipment.Each VF equipment that physical network card fictionalizes can lead directly to different VM and use.Wherein, in physical network card, also there is open flows switch (OpenFlow Switch).
The scheme of the embodiment of the present invention is specifically implemented at the physical host based on above-mentioned framework, or can on similar framework, specifically implement.
First open flows mechanism is simply introduced below.
Open flows (OpenFlow) technology is to be proposed by Stanford University the earliest, be intended to based on transmission control protocol/Internet Interconnection agreement (TCP/IP, Transmission Control Protocol/Internet Protocol) technical conditions, with the network interconnection theory of innovation, solve all bottleneck problems that current network produces in the face of new business.Wherein, the core concept of OpenFlow technology is by the complete script package forward process by switch/router control, be converted into the self-contained process being completed respectively by OpenFlow switch (OpenFlow Switch) and software defined network (SDN, Software Defined Network) controller (Controller).
In SDN framework, SDN controller determines all messages transmission path in network.OpenFlow exchange opportunity local maintenance several with transmit not homogeneous turbulence table (Flow Table).If need the message forwarding to have the stream list item of coupling in Flow Table, the stream list item based on corresponding in Flow Table carries out forward process.If the stream list item that in Flow Table, message is corresponding, this message will be sent to controller and carries out the confirmation of transmission path, and controller transmits new stream list item to switching equipment, and OpenFlow switching equipment carries out message repeating according to the new stream list item issuing.This just means equipment in OpenFlow network can distribute deployment, centralized management, makes network become the form of software definable.OpenFlow provides 1 programmable interface, allows network user how can determine route message, how to realize load balancing or how to conduct interviews and control etc.This just makes to dispose a kind of new Routing Protocol or security algorithm in network, often only need on SDN controller, write hundreds of line codes, and its opening is conducive to accelerate fast Development and the deployment of new network application.
An embodiment of message repeating control method of the present invention, wherein, a kind of message repeating control method can comprise: physical network card receives self virtualizing machine treats the first message of forward process, and wherein, above-mentioned deploying virtual machine is on residing the first physical host of above-mentioned physical network card; Above-mentioned physical network card searches whether there is the stream list item mating with above-mentioned the first message in stream table; If do not find the stream list item mating with above-mentioned the first message, send to the host Host disposing in above-mentioned the first physical host the first open flows protocol massages that comprises above-mentioned the first message; When receive that above-mentioned Host sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, the forward process rule of above-mentioned physical network card based on comprising in above-mentioned the second open flows protocol massages carried out forward process to above-mentioned the first message.
Referring to Fig. 3, the schematic flow sheet of a kind of message repeating control method that Fig. 3 provides for one embodiment of the present of invention.As shown in Figure 3, a kind of message repeating control method that one embodiment of the present of invention provide can comprise following content:
301, physical network card receives self virtualizing machine and treats the first message of forward process.
Wherein, above-mentioned deploying virtual machine is on residing the first physical host of above-mentioned physical network card.
In some embodiments of the invention, physical network card for example can receive by network interface card queue (as network interface card VF equipment etc.) first message for the treatment of forward process (under this scene, the routed path of the first message is from outside to inside) of self virtualizing machine.
Wherein, the first message can be transport layer protocol message, network layer protocol message or Ethernet protocol message etc.
Wherein, the physical host of mentioning in various embodiments of the present invention can be PC, server, mobile terminal, panel computer, switch, router or the physical host that can carry out other type of packet sending and receiving.
302, physical network card is searched and whether is had the stream list item mating with above-mentioned the first message in stream table.
Wherein, if physical network card does not find the stream list item mating with above-mentioned the first message, physical network card can send the first open flows protocol massages that comprises above-mentioned the first message to the Host disposing in above-mentioned the first physical host.
Wherein, in physical network card, can preserve one or more stream tables.Wherein, in each stream table, one or more stream list items can be comprised, in each stream list item, forward process rule can be recorded.Wherein, if find the stream list item mating with above-mentioned the first message in stream table, the forward process rule that physical network card records in can the stream list item based on this coupling is carried out forward process to above-mentioned the first message.If physical network card does not find the stream list item mating with above-mentioned the first message in stream table, can think the forward process rule of current shortage the first message in physical network card, therefore, physical network card need to be asked to Host the forward process rule of the first message.
In some embodiments of the invention, above-mentioned Host can obtain the forward process rule for above-mentioned the first message of forward process based on preset strategy after receiving the first open flows protocol massages that comprises the first message of physical network card transmission; And can send the second open flows protocol massages that comprises above-mentioned forward process rule to above-mentioned physical network card.
For instance, Host obtains can comprising for the forward process rule of above-mentioned the first message of forward process based on preset strategy: obtain the forward process rule for above-mentioned the first message of forward process based on fuzzy matching table (fuzzy matching table can be handed down to Host by SDN controller); Or send and include the 3rd open flows protocol massages of above-mentioned the first message to SDN controller; Receive the 4th open flows protocol massages for the forward process rule of above-mentioned the first message of forward process that includes that above-mentioned SDN controller returns.Wherein, SDN controller can obtain the forward process rule for above-mentioned the first message of forward process by the strategy based on default, and SDN controller obtains not giving an example and limiting for mode the present embodiment of the forward process rule of above-mentioned the first message of forward process.
In some embodiments of the invention, Host is before including the 3rd open flows protocol massages of above-mentioned the first message to above-mentioned SDN controller transmission, the transport layer protocol that Host also can first set up between above-mentioned SDN controller is connected, the 3rd open flows protocol massages that comprises above-mentioned the first message is encapsulated among the first transport layer protocol message (wherein, Host can call protocol stack in Host the 3rd open flows protocol massages that comprises above-mentioned the first message is encapsulated among the first transport layer protocol message).Wherein, the 3rd open flows protocol massages that Host includes above-mentioned the first message to the transmission of SDN controller specifically can comprise: Host connects to SDN controller and sends and include above-mentioned the first transport layer protocol message of above-mentioned the 3rd open flows protocol massages based on above-mentioned transport layer protocol.Accordingly, Host can receive above-mentioned SDN controller and return to the second transport layer protocol message that comprises the 4th open flows protocol massages, wherein, above-mentioned the 4th open flows protocol massages includes the forward process rule for above-mentioned the first message of forward process, and Host obtains the forward process rule for above-mentioned the first message of forward process from the 4th open flows protocol massages.Be understandable that, if will for example, be integrated among Host with the mutual correlation function (protocol stack etc.) of SDN controller, be responsible for and SDN controller is correlated with alternately by Host.Physical network card directly obtains forward process rule from Host, therefore, the communication protocol framework of physical network card even hardware structure can greatly be simplified, and is so just conducive to reduce cost and the complexity of physical network card, is conducive to improve the scene versatility of physical network card.
Wherein, above-mentioned transport layer protocol for example can be transmission control protocol or User Datagram Protoco (UDP) or other transport layer protocol.
303, when receive that above-mentioned Host sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, the forward process rule of physical network card based on comprising in above-mentioned the second open flows protocol massages carried out forward process to above-mentioned the first message.
Wherein, the forward process rule based on comprising in above-mentioned the second open flows protocol massages is carried out forward process to above-mentioned the first message and can is, abandons the first message or forwards the first message to other physical host.
Further, if the above-mentioned forward process rule for above-mentioned the first message of forward process comprising in above-mentioned the second open flows protocol massages, be recorded among the first-class list item comprising in above-mentioned the second open flows protocol massages, physical network card can be inserted into first-class list item among stream table.Or, physical network card also can generate second list item according to the above-mentioned rule of the forward process for above-mentioned the first message of forward process comprising in the second open flows protocol massages, physical network card can be inserted into second list item among stream table, wherein, in second list item, record the above-mentioned forward process rule for above-mentioned the first message of forward process.
In some embodiments of the invention, above-mentioned message repeating control method also can comprise: physical network card also can receive the second message (wherein, under this scene, the routed path of the second message is from outside to inside) that other physical hosts are sent by physical port; The corresponding object virtual machine in object virtual machine address that above-mentioned physical network card carries to above-mentioned Secondary Report literary composition forwards above-mentioned the second message, and wherein, above-mentioned purpose deploying virtual machine is among above-mentioned the first physical host.
In other embodiment of the present invention, above-mentioned message repeating control method also can comprise: physical network card receives by physical port the second message that other physical hosts are sent; Above-mentioned physical network card searches whether there is the stream list item mating with above-mentioned the second message in stream table; The stream list item mating with the second message if do not find, sends to above-mentioned Host the 5th open flows protocol massages that comprises above-mentioned the second message; When receive that above-mentioned Host sends for responding the 6th open flows protocol massages of above-mentioned the 5th open flows protocol massages, the forward process rule of above-mentioned physical network card based on comprising in above-mentioned the 6th open flows protocol massages carried out forward process to above-mentioned the second message.In addition,, if above-mentioned physical network card finds the stream list item mating with above-mentioned the second message in above-mentioned stream table, the forward process rule that above-mentioned physical network card records in can the stream list item based on above-mentioned coupling is carried out forward process to above-mentioned the second message.
Wherein, the forward process rule recording in the stream list item of above-mentioned physical network card based on above-mentioned coupling is carried out forward process to above-mentioned the second message and can is specifically, abandons the second message or certain virtual machine or switching equipment on physical host forward the second message.
Wherein, the forward process rule of above-mentioned physical network card based on comprising in above-mentioned the 6th open flows protocol massages carried out forward process to above-mentioned the second message and can be specifically, abandons the second message or certain virtual machine or switching equipment on physical host forward the second message.
In some embodiments of the invention, above-mentioned Host can obtain the forward process rule for above-mentioned the second message of forward process based on preset strategy after receiving the 5th open flows protocol massages that comprises the second message of physical network card transmission; And can send the 6th open flows protocol massages that comprises above-mentioned forward process rule to above-mentioned physical network card.Wherein, Host obtains the process for the forward process rule of above-mentioned the second message of forward process based on preset strategy, be similar to the above-mentioned Host giving an example and obtain the process for the forward process rule of above-mentioned the first message of forward process based on preset strategy, no longer describe in detail herein.
Therefore, in the technical scheme that the present embodiment provides, physical network card receive that the virtual machine that is deployed on this physical network card the first physical host of living in sends after the first message of forward process, first in stream table, search whether there is the stream list item mating with above-mentioned the first message; If do not find the stream list item mating with above-mentioned the first message, send to the Host being deployed on the first physical host the first open flows protocol massages that comprises above-mentioned the first message; When receive that above-mentioned Host sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, the forward process rule of physical network card based on comprising in above-mentioned the second open flows protocol massages carried out forward process to above-mentioned the first message.Due in physical network card, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card and under virtual framework, forward more accurately control, if the forward process rule of carrying out based on flow control is carried out message repeating processing, be conducive to realize comparatively accurate flow control by more accurate forwarding control.And in the time lacking the forward process rule of message in physical network card, physical network card directly obtains forward process rule and without obtain forward process rule from other physical host from Host, the communication protocol framework that this mechanism is conducive to greatly to simplify physical network card even hardware structure (if for example physical network card needs obtain forward process rule from SND controller voluntarily, the communication protocol framework of physical network card even hardware structure just must be by the relative complex of design some for example just can complete and the function such as SND controller is mutual), so just be conducive to reduce cost and the complexity of physical network card, be conducive to improve the scene versatility of physical network card.
The embodiment of the present invention also provides another kind of message repeating control method, can comprise:
The physical network card being included in this physical host receives by physical port the second message that other physical hosts are sent; Above-mentioned physical network card searches whether there is the stream list item mating with above-mentioned the second message in stream table; When not finding the stream list item mating with above-mentioned the second message, send to the host Host disposing in above-mentioned physical host the 5th open flows protocol massages that comprises above-mentioned the second message; When receive that above-mentioned Host sends for responding the 6th open flows protocol massages of above-mentioned the 5th open flows protocol massages, the forward process rule of above-mentioned physical network card based on comprising in above-mentioned the 6th open flows protocol massages carried out forward process to above-mentioned the second message.
In addition,, if above-mentioned physical network card finds the stream list item mating with above-mentioned the second message in above-mentioned stream table, the forward process rule that above-mentioned physical network card records in can the stream list item based on above-mentioned coupling is carried out forward process to above-mentioned the second message.
Wherein, the forward process rule recording in the stream list item of above-mentioned physical network card based on above-mentioned coupling is carried out forward process to above-mentioned the second message and can is specifically, abandons the second message or certain virtual machine or switching equipment on physical host forward the second message.
Wherein, the forward process rule of above-mentioned physical network card based on comprising in above-mentioned the 6th open flows protocol massages carried out forward process to above-mentioned the second message and can be specifically, abandons the second message or certain virtual machine or switching equipment on physical host forward the second message.
In some embodiments of the invention, above-mentioned Host can obtain the forward process rule for above-mentioned the second message of forward process based on preset strategy after receiving the 5th open flows protocol massages that comprises the second message of physical network card transmission; And can send the 6th open flows protocol massages that comprises above-mentioned forward process rule to above-mentioned physical network card.Wherein, Host obtains the process for the forward process rule of above-mentioned the second message of forward process based on preset strategy, be similar to the Host that above-described embodiment gives an example and obtain the process for the forward process rule of above-mentioned the first message of forward process based on preset strategy, no longer describe in detail herein.
Therefore, in the scheme that the present embodiment provides, be included in physical network card in this physical host and receive after the second message that other physical hosts send by physical port, first in stream table, search whether there is the stream list item mating with above-mentioned the second message; The stream list item mating with the second message if do not find, sends to the Host being deployed on this physical host the 5th open flows protocol massages that comprises above-mentioned the second message; When receive that above-mentioned Host sends for responding the 6th open flows protocol massages of above-mentioned the 5th open flows protocol massages, the forward process rule of physical network card based on comprising in above-mentioned the 6th open flows protocol massages carried out forward process to above-mentioned the second message.Due in physical network card, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card and under virtual framework, forward more accurately control, if the forward process rule of carrying out based on flow control is carried out message repeating processing, be conducive to realize comparatively accurate flow control by more accurate forwarding control.And in the time lacking the forward process rule of message in physical network card, physical network card directly obtains forward process rule and without obtain forward process rule from other physical host from Host, the communication protocol framework that this mechanism is conducive to greatly to simplify physical network card even hardware structure (if for example physical network card needs obtain forward process rule from SND controller voluntarily, the communication protocol framework of physical network card even hardware structure just must be by the relative complex of design some for example just can complete and the function such as SND controller is mutual), so just be conducive to reduce cost and the complexity of physical network card, be conducive to improve the scene versatility of physical network card.
Another embodiment of message repeating control method of the present invention, wherein, another kind of message repeating control method can comprise: the host Host being deployed in physical host receives the first open flows protocol massages that comprises the first message that the physical network card in this physical host sends; Above-mentioned Host obtains the forward process rule for above-mentioned the first message of forward process based on preset strategy; Above-mentioned Host sends the second open flows protocol massages that comprises above-mentioned forward process rule to above-mentioned physical network card.
Referring to Fig. 4, the schematic flow sheet of the another kind of message repeating control method that Fig. 4 provides for an alternative embodiment of the invention.As shown in Figure 4, the another kind of message repeating control method that an alternative embodiment of the invention provides can comprise following content:
401, the host Host being deployed in physical host receives the first open flows protocol massages that comprises the first message that the physical network card in above-mentioned physical host sends.
In some embodiments of the invention, physical network card receives the first message for the treatment of forward process, can in stream table, search and whether have the stream list item mating with above-mentioned the first message; If do not find the stream list item mating with above-mentioned the first message, can send the first open flows protocol massages that comprises above-mentioned the first message to Host.Host receives the first open flows protocol massages that comprises the first message that physical network card sends, and just means that physical network card request obtains from Host the forward process rule that the first message is corresponding.
Wherein, physical network card receives treats that the first message of forward process can comprise: physical network card receives by physical port the first message that other physical hosts are sent, or physical network card acceptance division is deployed on the first message for the treatment of forward process that on residing the first physical host of above-mentioned physical network card, virtual machine sends.
402, Host obtains the forward process rule for above-mentioned the first message of forward process based on preset strategy.
For instance, Host obtains can comprising for the forward process rule of above-mentioned the first message of forward process based on preset strategy: obtain the forward process rule for above-mentioned the first message of forward process based on fuzzy matching table (fuzzy matching table can be handed down to Host by SDN controller); Or send and include the 3rd open flows protocol massages of above-mentioned the first message to SDN controller; Receive the 4th open flows protocol massages for the forward process rule of above-mentioned the first message of forward process that includes that above-mentioned SDN controller returns.Wherein, SDN controller can obtain the forward process rule for above-mentioned the first message of forward process by the strategy based on default, and SDN controller obtains not giving an example and limiting for mode the present embodiment of the forward process rule of above-mentioned the first message of forward process.
In some embodiments of the invention, Host is before including the 3rd open flows protocol massages of above-mentioned the first message to above-mentioned SDN controller transmission, the transport layer protocol that Host also can first set up between above-mentioned SDN controller is connected, the 3rd open flows protocol massages that comprises above-mentioned the first message is encapsulated among the first transport layer protocol message (wherein, Host can call protocol stack in Host the 3rd open flows protocol massages that comprises above-mentioned the first message is encapsulated among the first transport layer protocol message).Wherein, the 3rd open flows protocol massages that Host includes above-mentioned the first message to the transmission of SDN controller specifically can comprise: Host connects to SDN controller and sends and include above-mentioned the first transport layer protocol message of above-mentioned the 3rd open flows protocol massages based on above-mentioned transport layer protocol.Accordingly, Host can receive above-mentioned SDN controller and return to the second transport layer protocol message that comprises the 4th open flows protocol massages, wherein, above-mentioned the 4th open flows protocol massages includes the forward process rule for above-mentioned the first message of forward process, and Host obtains the forward process rule for above-mentioned the first message of forward process from the 4th open flows protocol massages.Be understandable that, if will for example, be integrated among Host with the mutual correlation function (protocol stack etc.) of SDN controller, be responsible for and SDN controller is correlated with alternately by Host.Physical network card directly obtains forward process rule from Host, therefore, the communication protocol framework of physical network card even hardware structure can greatly be simplified, and is so just conducive to reduce cost and the complexity of physical network card, is conducive to improve the scene versatility of physical network card.
Wherein, above-mentioned transport layer protocol for example can be transmission control protocol or User Datagram Protoco (UDP) or other transport layer protocol.
403, Host sends the second open flows protocol massages that comprises above-mentioned forward process rule to above-mentioned physical network card.
Wherein, Host obtains for after the forward process rule of forward process the first message, by the second open flows protocol massages for responding the first open flows protocol massages, sends the forward process rule for forward process the first message obtaining to physical network card.Wherein, Host can be driven to above-mentioned physical network card and be sent the second open flows protocol massages that comprises above-mentioned forward process rule by network interface card.
Further, if above-mentioned physical network card receive that above-mentioned Host sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, can the forward process rule based on comprising in above-mentioned the second open flows protocol massages carry out forward process to above-mentioned the first message.Wherein, physical network card can be driven and be received the second open flows protocol massages that comprises above-mentioned forward process rule that above-mentioned Host sends by network interface card.
Further, if the above-mentioned forward process rule for above-mentioned the first message of forward process comprising in above-mentioned the second open flows protocol massages, be recorded among the first-class list item comprising in above-mentioned the second open flows protocol massages, physical network card can be inserted into first-class list item among stream table.Or, physical network card also can generate second list item according to the above-mentioned rule of the forward process for above-mentioned the first message of forward process comprising in the second open flows protocol massages, physical network card can be inserted into second list item among stream table, wherein, in second list item, record the above-mentioned forward process rule for above-mentioned the first message of forward process.
Therefore in the technical scheme that the present embodiment provides, Host receives the first open flows protocol massages that comprises the first message that the physical network card in Same Physical main frame sends; Obtain the forward process rule for above-mentioned the first message of forward process based on preset strategy; Send the second open flows protocol massages that comprises above-mentioned forward process rule to above-mentioned physical network card, this facilitate that above-mentioned physical network card receives that above-mentioned Host sends for after responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, the forward process rule based on comprising in above-mentioned the second open flows protocol massages is carried out forward process to above-mentioned the first message.Due in physical network card, introduce can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card and under virtual framework, forward more accurately control, if the forward process rule of carrying out based on flow control is carried out message repeating processing, be conducive to realize comparatively accurate flow control by more accurate forwarding control.And in the time lacking the forward process rule of message in physical network card, physical network card directly obtains forward process rule and without obtain forward process rule from other physical host from Host, the communication protocol framework that this mechanism is conducive to greatly to simplify physical network card even hardware structure (if for example physical network card needs obtain forward process rule from SND controller voluntarily, the communication protocol framework of physical network card even hardware structure just must be by the relative complex of design some for example just can complete and the function such as SND controller is mutual), so just be conducive to reduce cost and the complexity of physical network card, be conducive to improve the scene versatility of physical network card.
For ease of better understanding and implement the such scheme of the embodiment of the present invention, be illustrated below by some object lessons.
Referring to Fig. 5-a and Fig. 5-b, wherein, the schematic flow sheet of the another kind of message repeating control method that Fig. 5-a provides for an alternative embodiment of the invention.A kind of schematic diagram that can be used for implementing the communication system architecture of message repeating control method as shown in Fig. 5-a that Fig. 5-b provides for the embodiment of the present invention.The another kind that Fig. 5-c provides for the embodiment of the present invention can be used for implementing the schematic diagram of the communication system architecture of message repeating control method as shown in Fig. 5-a.Be with the main distinction of Fig. 5-b, a kind of concrete internal logic framework of Host and physical network card for example in Fig. 5-c, Host and physical network card also can have and be different from other internal logic framework that Fig. 5-c gives an example certainly.In the present embodiment, be mainly described as example to implement message repeating control method under framework shown in Fig. 5-c.
As shown in Fig. 5-a, the another kind of message repeating control method that an alternative embodiment of the invention provides can comprise following content:
501, the OpenFlow Switch in physical network card n1, the message b1(sending by network interface card VF equipment k1 sink virtual machine VM-1 is that network interface card VF equipment k1 leads directly to the use to virtual machine VM-1).
Wherein, the message b1 in the present embodiment can be equivalent to the first message in above-described embodiment, and physical network card n1 can be equivalent to physical network card in above-described embodiment.Network interface card VF equipment k1 can be equivalent to network interface card queue in above-described embodiment.Wherein, message b1 can be transport layer protocol message, network layer protocol message or the Ethernet protocol message etc. that virtual machine VM-1 sends.
502, the OpenFlow Switch in physical network card n1 searches and whether has the stream list item mating with message b1 in stream table.
If so, perform step 503;
If not, perform step 504.
503, the OpenFlow Switch in physical network card n1 is according to the forward process rule recording in the stream list item mating with message b1 finding in stream table, and message b1 is carried out to forward process (for example dropping packets b1 or the physical port by physical network card n1 E-Packet to other physical host b1).
If 504, the OpenFlow Switch in physical network card n1 does not find the stream list item mating with above-mentioned the first message in stream table, message b1 is encapsulated among OpenFlow protocol massages bo1, and sends to Host the OpenFlow protocol massages bo1 that comprises above-mentioned message b1.
505, the agency of the SDN in Host drives (network interface card of physical network card n1 drives) by network interface card, receives the above-mentioned OpenFlow protocol massages bo1 that comprises above-mentioned message b1.SDN proxy call protocol stack is encapsulated into OpenFlow protocol massages bo1 among transport layer protocol message boc1.SDN agency can send transport layer protocol message boc1 to SDN controller by physical network card n1 or physical network card n2.Wherein, mainly with SDN agency by physical network card n2(wherein, physical network card n2 is different physical network cards from physical network card n1 below) to send above-mentioned transport layer protocol message boc1 to SDN controller be example.
506, SDN controller receives transport layer protocol message boc1, the OpenFlow protocol massages bo1 that decapsulation transport layer protocol message boc1 comprises to obtain transport layer protocol message boc1.SDN controller can obtain the forward process rule for the above-mentioned message b1 of forward process based on preset strategy.SDN controller is encapsulated into the OpenFlow protocol massages bo2 including for the forward process rule of the above-mentioned message b1 of forward process among transport layer protocol message boc2, sends transport layer protocol message boc2 to Host.
507, physical network card n2 receives above-mentioned transport layer protocol message boc2, and physical network card n2 forwards transport layer protocol message boc2 to Host.
SDN proxy call protocol stack in Host, the OpenFlow protocol massages bo2 that the above-mentioned transport layer protocol message of decapsulation boc2 comprises to obtain transport layer protocol message boc2.
508, the agency of the SDN in Host is driven to physical network card n1 and is sent OpenFlow protocol massages bo2 by network interface card.
509, the OpenFlow Switch in physical network card n1 receives OpenFlow protocol massages bo2, and forward process rule based on comprising in above-mentioned OpenFlow protocol massages bo2 is carried out forward process to above-mentioned message b1.
Further, if the above-mentioned forward process rule for the above-mentioned message b1 of forward process that above-mentioned OpenFlow protocol massages bo2 comprises, be recorded among the first-class list item comprising in above-mentioned OpenFlow protocol massages bo2, physical network card n1 can be inserted into first-class list item among stream table.Or physical network card n1 also can generate second list item according to the above-mentioned rule of the forward process for the above-mentioned message b1 of forward process comprising in OpenFlow protocol massages bo2, physical network card can be inserted into second list item among stream table, wherein, in second list item, record the above-mentioned forward process rule for the above-mentioned message b1 of forward process.
Therefore in the technical scheme that the present embodiment provides, physical network card receives after first message that carrys out self virtualizing machine of forward process, first in stream table, search whether there is the stream list item mating with above-mentioned the first message; If do not find the stream list item mating with above-mentioned the first message, send to Host the first open flows protocol massages that comprises above-mentioned the first message; Host receives the first open flows protocol massages that comprises the first message that physical network card sends; Host obtains the forward process rule for above-mentioned the first message of forward process from SDN controller; Send the second open flows protocol massages that comprises above-mentioned forward process rule to above-mentioned physical network card; If physical network card receive that above-mentioned Host sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, can the forward process rule based on comprising in above-mentioned the second open flows protocol massages carry out forward process to above-mentioned the first message.Due in physical network card, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card and under virtual framework, forward more accurately control.And in the time lacking the forward process rule of message in physical network card, physical network card directly obtains forward process rule and without obtain forward process rule from other physical host from Host, the communication protocol framework that this mechanism is conducive to greatly to simplify physical network card even hardware structure (if for example physical network card needs obtain forward process rule from SND controller voluntarily, the communication protocol framework of physical network card even hardware structure just must be by the relative complex of design some for example just can complete and the function such as SND controller is mutual), this is just conducive to reduce physical network card cost and complexity, be conducive to improve the scene versatility of physical network card.
Refer to Fig. 6, wherein, the schematic flow sheet of the another kind of message repeating control method that Fig. 6 provides for another embodiment of the present invention.Fig. 5-b a kind ofly can be used for implementing the schematic diagram of the communication system architecture of message repeating control method as shown in Figure 6 for what the embodiment of the present invention provided.The another kind that Fig. 5-c provides for the embodiment of the present invention can be used for implementing the schematic diagram of the communication system architecture of message repeating control method as shown in Figure 6.In the present embodiment, be mainly described as example to implement message repeating control method under framework shown in Fig. 5-c.
As shown in Figure 6, the another kind of message repeating control method that an alternative embodiment of the invention provides can comprise following content:
601, the OpenFlow Switch in physical network card n1, receiving by the physical port of physical network card n1 is that message b2 comes from other physical host from the message b2(that treats forward process of other physical host).
Wherein, the message b2 in the present embodiment can be equivalent to the second message in above-described embodiment, and physical network card n1 can be equivalent to physical network card in above-described embodiment.
602, the OpenFlow Switch in physical network card n1 searches and whether has the stream list item mating with message b2 in stream table.
If so, perform step 603;
If not, perform step 604.
603, the OpenFlow Switch in physical network card n1 is according to the forward process rule recording in the stream list item mating with message b2 finding in stream table, to message b2 carry out forward process (for example dropping packets b2 or by network interface card VF equipment k1 to the virtual machine VM-1 b2 that E-Packets, this sentences network interface card VF equipment k1 and leads directly to that to use to virtual machine VM-1 be example).
If 604, the OpenFlow Switch in physical network card n1 does not find the stream list item mating with above-mentioned the first message in stream table, message b2 is encapsulated among OpenFlow protocol massages bo3, and sends to Host the OpenFlow protocol massages bo3 that comprises above-mentioned message b2.
605, the agency of the SDN in Host drives (network interface card of physical network card n1 drives) by network interface card, receives the above-mentioned OpenFlow protocol massages bo3 that comprises above-mentioned message b2.SDN proxy call protocol stack is encapsulated into OpenFlow protocol massages bo3 among transport layer protocol message boc3.SDN agency can send transport layer protocol message boc3 to SDN controller by physical network card n1 or physical network card n2.Wherein, mainly with SDN agency by physical network card n2(wherein, physical network card n2 is different physical network cards from physical network card n1 below) to send above-mentioned transport layer protocol message boc3 to SDN controller be example.
606, SDN controller receives transport layer protocol message boc3, the OpenFlow protocol massages bo3 that decapsulation transport layer protocol message boc3 comprises to obtain transport layer protocol message boc3.SDN controller can obtain the forward process rule for the above-mentioned message b2 of forward process based on preset strategy.SDN controller is encapsulated into the OpenFlow protocol massages bo4 including for the forward process rule of the above-mentioned message b2 of forward process among transport layer protocol message boc4, sends transport layer protocol message boc4 to Host.
607, physical network card n2 receives above-mentioned transport layer protocol message boc4, and physical network card n2 forwards transport layer protocol message boc4 to Host.
SDN proxy call protocol stack in Host, the OpenFlow protocol massages bo4 that the above-mentioned transport layer protocol message of decapsulation boc4 comprises to obtain transport layer protocol message boc4.
608, the agency of the SDN in Host is driven to physical network card n1 and is sent OpenFlow protocol massages bo4 by network interface card.
609, the OpenFlow Switch in physical network card n1 receives OpenFlow protocol massages bo4, and forward process rule based on comprising in above-mentioned OpenFlow protocol massages bo4 is carried out forward process to above-mentioned message b2.
Further, if the above-mentioned forward process rule for the above-mentioned message b2 of forward process that above-mentioned OpenFlow protocol massages bo4 comprises, be recorded among the first-class list item comprising in above-mentioned OpenFlow protocol massages bo4, physical network card n1 can be inserted into first-class list item among stream table.Or physical network card n1 also can generate second list item according to the above-mentioned rule of the forward process for the above-mentioned message b2 of forward process comprising in OpenFlow protocol massages bo4, physical network card can be inserted into second list item among stream table, wherein, in second list item, record the above-mentioned forward process rule for the above-mentioned message b2 of forward process.
Therefore, in the technical scheme that the present embodiment provides, after physical network card receives the first message for the treatment of forward process from other physical host by physical port, first in stream table, search whether there is the stream list item mating with above-mentioned the first message; If do not find the stream list item mating with above-mentioned the first message, send to Host the first open flows protocol massages that comprises above-mentioned the first message; Host receives the first open flows protocol massages that comprises the first message that physical network card sends; Host obtains the forward process rule for above-mentioned the first message of forward process from SDN controller; Send the second open flows protocol massages that comprises above-mentioned forward process rule to above-mentioned physical network card; If physical network card receive that above-mentioned Host sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, can the forward process rule based on comprising in above-mentioned the second open flows protocol massages carry out forward process to above-mentioned the first message.Due in physical network card, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card and under virtual framework, forward more accurately control.And, in the time lacking the forward process rule of message in physical network card, physical network card directly obtains forward process rule and without obtain forward process rule from other physical host from Host, even hardware structure is (for example for the communication protocol framework that this mechanism is conducive to greatly to simplify physical network card, if physical network card needs to obtain forward process rule from SND controller voluntarily, the communication protocol framework of physical network card even hardware structure just must be by the relative complex of design some for example just can complete and the function such as SND controller is mutual), this is just conducive to reduce physical network card cost and complexity, be conducive to improve the scene versatility of physical network card.
Referring to Fig. 7, wherein, the schematic flow sheet of the another kind of message repeating control method that Fig. 7 provides for an alternative embodiment of the invention.Fig. 5-b a kind ofly can be used for implementing the schematic diagram of the communication system architecture of message repeating control method as shown in Figure 7 for what the embodiment of the present invention provided.The another kind that Fig. 5-c provides for the embodiment of the present invention can be used for implementing the schematic diagram of the communication system architecture of message repeating control method as shown in Figure 7.In the present embodiment, be mainly described as example to implement message repeating control method under framework shown in Fig. 5-c.
As shown in Figure 7, the another kind of message repeating control method that an alternative embodiment of the invention provides can comprise following content:
701, the OpenFlow Switch in physical network card n1, the message b3(sending by network interface card VF equipment k1 sink virtual machine VM-1 is that network interface card VF equipment k1 leads directly to the use to virtual machine VM-1).
Wherein, the message b3 in the present embodiment can be equivalent to the first message in above-described embodiment, and physical network card n1 can be equivalent to physical network card in above-described embodiment.Network interface card VF equipment k1 can be equivalent to network interface card queue in above-described embodiment.Wherein, message b3 can be transport layer protocol message, network layer protocol message or the Ethernet protocol message etc. that virtual machine VM-1 sends.
702, the OpenFlow Switch in physical network card n1 searches and whether has the stream list item mating with message b3 in stream table.
If so, perform step 703;
If not, perform step 704.
703, the OpenFlow Switch in physical network card n1 is according to the forward process rule recording in the stream list item mating with message b3 finding in stream table, and message b3 is carried out to forward process (for example dropping packets b3 or the physical port by physical network card n1 E-Packet to other physical host b3).
If 704, the OpenFlow Switch in physical network card n1 does not find the stream list item mating with above-mentioned the first message in stream table, message b3 is encapsulated among OpenFlow protocol massages bo5, and sends to Host the OpenFlow protocol massages bo5 that comprises above-mentioned message b3.
705, the agency of the SDN in Host drives (network interface card of physical network card n1 drives) by network interface card, receives the above-mentioned OpenFlow protocol massages bo5 that comprises above-mentioned message b3.
Whether SDN agency judges whether to exist to exist in Host and obtains the fuzzy matching table that uses for the forward process rule of the above-mentioned message b3 of forward process.
If so, perform step 706;
If not, execution step 707;
706, SDN agency obtains the forward process rule for the above-mentioned message b3 of forward process according to fuzzy matching table, jumps to step 711.
707, SDN proxy call protocol stack is encapsulated into OpenFlow protocol massages bo5 among transport layer protocol message boc5.SDN agency can send transport layer protocol message boc5 to SDN controller by physical network card n1 or physical network card n2.Wherein, mainly with SDN agency by physical network card n2(wherein, physical network card n2 is different physical network cards from physical network card n1 below) to send above-mentioned transport layer protocol message boc5 to SDN controller be example.
708, SDN controller receives transport layer protocol message boc5, the OpenFlow protocol massages bo5 that decapsulation transport layer protocol message boc5 comprises to obtain transport layer protocol message boc5.SDN controller can obtain the forward process rule for the above-mentioned message b3 of forward process based on preset strategy.SDN controller is encapsulated into the OpenFlow protocol massages bo6 including for the forward process rule of the above-mentioned message b3 of forward process among transport layer protocol message boc6, sends transport layer protocol message boc6 to Host.
709, physical network card n2 receives above-mentioned transport layer protocol message boc6, and physical network card n2 forwards transport layer protocol message boc6 to Host.
SDN proxy call protocol stack in Host, the OpenFlow protocol massages bo6 that the above-mentioned transport layer protocol message of decapsulation boc6 comprises to obtain transport layer protocol message boc6.
710, the agency of the SDN in Host is driven to physical network card n1 and is sent the OpenFlow protocol massages bo6 comprising for the forward process rule of the above-mentioned message b3 of forward process by network interface card.
711, the OpenFlow Switch in physical network card n1 receives OpenFlow protocol massages bo6, and forward process rule based on comprising in above-mentioned OpenFlow protocol massages bo6 is carried out forward process to above-mentioned message b3.
Further, if the above-mentioned forward process rule for the above-mentioned message b3 of forward process that above-mentioned OpenFlow protocol massages bo6 comprises, be recorded among the first-class list item comprising in above-mentioned OpenFlow protocol massages bo6, physical network card n1 can be inserted into first-class list item among stream table.Or physical network card n1 also can generate second list item according to the above-mentioned rule of the forward process for the above-mentioned message b3 of forward process comprising in OpenFlow protocol massages bo6, physical network card can be inserted into second list item among stream table, wherein, in second list item, record the above-mentioned forward process rule for the above-mentioned message b3 of forward process.
Therefore in the technical scheme that the present embodiment provides, physical network card receives after first message that carrys out self virtualizing machine of forward process, first in stream table, search whether there is the stream list item mating with above-mentioned the first message; If do not find the stream list item mating with above-mentioned the first message, send to Host the first open flows protocol massages that comprises above-mentioned the first message; Host obtains the forward process rule for above-mentioned the first message of forward process from SDN controller or based on fuzzy matching table; Send the second open flows protocol massages that comprises above-mentioned forward process rule to above-mentioned physical network card; If physical network card receive that above-mentioned Host sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, can the forward process rule based on comprising in above-mentioned the second open flows protocol massages carry out forward process to above-mentioned the first message.Due in physical network card, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card and under virtual framework, forward more accurately control.And, in the time lacking the forward process rule of message in physical network card, physical network card directly obtains forward process rule and without obtain forward process rule from other physical host from Host, the communication protocol framework that this mechanism is conducive to greatly to simplify physical network card even hardware structure (if for example physical network card needs obtain forward process rule from SND controller voluntarily, the communication protocol framework of physical network card even hardware structure just must be by the relative complex of design some for example just can complete and the function such as SND controller is mutual), this is just conducive to reduce physical network card cost and complexity, be conducive to improve the scene versatility of physical network card.
Referring to Fig. 8, wherein, the schematic flow sheet of the another kind of message repeating control method that Fig. 8 provides for another embodiment of the present invention.Fig. 5-b a kind ofly can be used for implementing the schematic diagram of the communication system architecture of message repeating control method as shown in Figure 8 for what the embodiment of the present invention provided.The another kind that Fig. 5-c provides for the embodiment of the present invention can be used for implementing the schematic diagram of the communication system architecture of message repeating control method as shown in Figure 8.In the present embodiment, be mainly described as example to implement message repeating control method under framework shown in Fig. 5-c.
As shown in Figure 8, the another kind of message repeating control method that an alternative embodiment of the invention provides can comprise following content:
801, the OpenFlow Switch in physical network card n1, is received and is treated that the message b4(of forward process is that message b4 comes from other physical host by the physical port of physical network card n1).
Wherein, the message b4 in the present embodiment can be equivalent to the second message in above-described embodiment, and physical network card n1 can be equivalent to physical network card in above-described embodiment.
802, the OpenFlow Switch in physical network card n1 searches and whether has the stream list item mating with message b4 in stream table.
If so, perform step 803;
If not, perform step 804.
803, the OpenFlow Switch in physical network card n1 is according to the forward process rule recording in the stream list item mating with message b4 finding in stream table, to message b4 carry out forward process (for example dropping packets b4 or by network interface card VF equipment k1 to the virtual machine VM-1 b4 that E-Packets, this sentences network interface card VF equipment k1 and leads directly to that to use to virtual machine VM-1 be example).
If 804, the OpenFlow Switch in physical network card n1 does not find the stream list item mating with above-mentioned the first message in stream table, message b4 is encapsulated among OpenFlow protocol massages bo7, and sends to Host the OpenFlow protocol massages bo7 that comprises above-mentioned message b4.
805, the agency of the SDN in Host drives (network interface card of physical network card n1 drives) by network interface card, receives the above-mentioned OpenFlow protocol massages bo7 that comprises above-mentioned message b4.
Whether SDN agency judges whether to exist to exist in Host and obtains the fuzzy matching table that uses for the forward process rule of the above-mentioned message b4 of forward process.
If so, perform step 806;
If not, execution step 807;
806, SDN agency obtains the forward process rule for the above-mentioned message b4 of forward process according to fuzzy matching table, jumps to step 711.
807, SDN proxy call protocol stack is encapsulated into OpenFlow protocol massages bo7 among transport layer protocol message boc7.SDN agency can send transport layer protocol message boc7 to SDN controller by physical network card n1 or physical network card n2.Wherein, mainly with SDN agency by physical network card n2(wherein, physical network card n2 is different physical network cards from physical network card n1 below) to send above-mentioned transport layer protocol message boc7 to SDN controller be example.
808, SDN controller receives transport layer protocol message boc7, the OpenFlow protocol massages bo7 that decapsulation transport layer protocol message boc7 comprises to obtain transport layer protocol message boc7.SDN controller can obtain the forward process rule for the above-mentioned message b4 of forward process based on preset strategy.SDN controller is encapsulated into the OpenFlow protocol massages bo8 including for the forward process rule of the above-mentioned message b4 of forward process among transport layer protocol message boc8, sends transport layer protocol message boc8 to Host.
809, physical network card n2 receives above-mentioned transport layer protocol message boc8, and physical network card n2 forwards transport layer protocol message boc8 to Host.
SDN proxy call protocol stack in Host, the OpenFlow protocol massages bo8 that the above-mentioned transport layer protocol message of decapsulation boc8 comprises to obtain transport layer protocol message boc8.
810, the agency of the SDN in Host is driven to physical network card n1 and is sent the OpenFlow protocol massages bo8 comprising for the forward process rule of the above-mentioned message b4 of forward process by network interface card.
811, the OpenFlow Switch in physical network card n1 receives OpenFlow protocol massages bo8, and forward process rule based on comprising in above-mentioned OpenFlow protocol massages bo8 is carried out forward process to above-mentioned message b4.
Further, if the above-mentioned forward process rule for the above-mentioned message b4 of forward process that above-mentioned OpenFlow protocol massages bo8 comprises, be recorded among the first-class list item comprising in above-mentioned OpenFlow protocol massages bo8, physical network card n1 can be inserted into first-class list item among stream table.Or physical network card n1 also can generate second list item according to the above-mentioned rule of the forward process for the above-mentioned message b4 of forward process comprising in OpenFlow protocol massages bo8, physical network card can be inserted into second list item among stream table, wherein, in second list item, record the above-mentioned forward process rule for the above-mentioned message b4 of forward process.
Therefore in the technical scheme that the present embodiment provides, physical network card receives after the first message of forward process by physical port, first in stream table, search whether there is the stream list item mating with above-mentioned the first message; If do not find the stream list item mating with above-mentioned the first message, send to Host the first open flows protocol massages that comprises above-mentioned the first message; Host obtains the forward process rule for above-mentioned the first message of forward process from SDN controller or based on fuzzy matching table; Send the second open flows protocol massages that comprises above-mentioned forward process rule to above-mentioned physical network card; If physical network card receive that above-mentioned Host sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, can the forward process rule based on comprising in above-mentioned the second open flows protocol massages carry out forward process to above-mentioned the first message.Due in physical network card, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card and under virtual framework, forward more accurately control.And, in the time lacking the forward process rule of message in physical network card, physical network card directly obtains forward process rule and without obtain forward process rule from other physical host from Host, the communication protocol framework that this mechanism is conducive to greatly to simplify physical network card even hardware structure (if for example physical network card needs obtain forward process rule from SND controller voluntarily, the communication protocol framework of physical network card even hardware structure just must be by the relative complex of design some for example just can complete and the function such as SND controller is mutual), this is just conducive to reduce physical network card cost and complexity, be conducive to improve the scene versatility of physical network card.
Referring to Fig. 9-a, the embodiment of the present invention provides a kind of physical network card 900, can comprise:
Network interface card queue 910 and open flows switch 920.
Wherein, open flows switch 920, the first message for the treatment of forward process sending for receive the virtual machine of residing the first physical host deploy of above-mentioned physical network card 900 by network interface card queue 910 is searched and whether is had the stream list item mating with above-mentioned the first message in stream table; When do not find the stream list item mating with above-mentioned the first message in above-mentioned stream table, send to the host Host of above-mentioned the first physical host deploy the first open flows protocol massages that comprises above-mentioned the first message; When receive that above-mentioned Host sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, the forward process rule based on comprising in above-mentioned the second open flows protocol massages is carried out forward process to above-mentioned the first message.
Further, open flows switch 920 also can be used for when find the stream list item mating with above-mentioned the first message in above-mentioned stream table, and the forward process rule recording in the stream list item based on above-mentioned coupling is carried out forward process to above-mentioned the first message.
Referring to Fig. 9-b, in some embodiments of the invention, physical network card 900 can also comprise physical port 930.Wherein, open flows switch 920 also can be used for, and receives by physical port 930 the second message that other physical hosts are sent; The corresponding object virtual machine in object virtual machine address carrying to above-mentioned Secondary Report literary composition by network interface card queue 910 forwards above-mentioned the second message, and wherein, above-mentioned purpose deploying virtual machine is in above-mentioned the first physical host.
Or,
Open flows switch 920 also can be used for, and receives by physical port 930 the second message that other physical hosts are sent; In stream table, search and whether have the stream list item mating with above-mentioned the second message; If do not find the stream list item mating with above-mentioned the second message, send to above-mentioned Host the 5th open flows protocol massages that comprises above-mentioned the second message; When receive that above-mentioned Host sends for responding the 6th open flows protocol massages of above-mentioned the 5th open flows protocol massages, the forward process rule based on comprising in above-mentioned the 6th open flows protocol massages is carried out forward process to above-mentioned the second message.
Further, open flows switch 920 also can be used for when find the stream list item mating with above-mentioned the second message in above-mentioned stream table, and the forward process rule recording in the stream list item based on above-mentioned coupling is carried out forward process to above-mentioned the second message.
Be understandable that, the method specific implementation that the function of physical network card 900 each devices in the present embodiment can be introduced according to said method embodiment, its specific implementation process can, referring to the associated description in above-described embodiment, not repeat them here.
Therefore, in the technical scheme that the present embodiment provides, after the first message for the treatment of forward process that the virtual machine of the first physical host deploy that physical network card 900 is disposed by network interface card queue reception physical network card 900 sends, first in stream table, search whether there is the stream list item mating with above-mentioned the first message; If do not find the stream list item mating with above-mentioned the first message, send and carry the first open flows protocol massages that comprises above-mentioned the first message to Host; If receive, above-mentioned Host sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, can carry out forward process to above-mentioned the first message based on carrying the forward process rule comprising in above-mentioned the second open flows protocol massages.Due in physical network card, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card and under virtual framework, forward more accurately control.And, in the time lacking the forward process rule of message in physical network card, physical network card directly obtains forward process rule and without obtain forward process rule from other physical host of miscellaneous equipment from Host, the communication protocol framework that this mechanism is conducive to greatly to simplify physical network card even hardware structure (if for example physical network card needs obtain forward process rule from SND controller voluntarily, the communication protocol framework of physical network card even hardware structure just must be by the relative complex of design some for example just can complete and the function such as SND controller is mutual), this is just conducive to reduce physical network card cost and complexity, be conducive to improve the scene versatility of physical network card.
Referring to Figure 10-a, the embodiment of the present invention provides a kind of physical network card 1000, can comprise:
Physical port 1010 and open flows switch 1020.
Open flows switch 1020, for receiving by physical port 1010 the second message that other physical hosts are sent; In stream table, search and whether have the stream list item mating with above-mentioned the second message; If do not find the stream list item mating with above-mentioned the second message, send to the host Host disposing in the first physical host of the above-mentioned physical network card subordinate of institute the 5th open flows protocol massages that comprises above-mentioned the second message; When receive that above-mentioned Host sends for responding the 6th open flows protocol massages of above-mentioned the 5th open flows protocol massages, the forward process rule based on comprising in above-mentioned the 6th open flows protocol massages is carried out forward process to above-mentioned the second message.
In some embodiments of the invention, open flows switch 1020 also can be used for when find the stream list item mating with above-mentioned the second message in above-mentioned stream table, and the forward process rule recording in the stream list item based on above-mentioned coupling is carried out forward process to above-mentioned the second message.
Referring to Figure 10-b, in some embodiments of the invention, physical network card 1000 can also comprise network interface card queue 1030.
Wherein, the forward process rule recording in the stream list item of open flows switch 1020 based on above-mentioned coupling is carried out forward process to above-mentioned the second message and can is specifically, abandons the second message or forwards the second message to other physical hosts or by network interface card queue 1030 to certain virtual machine on physical host.
Wherein, the forward process rule of above-mentioned physical network card based on comprising in above-mentioned the 6th open flows protocol massages carried out forward process to above-mentioned the second message and can be specifically, abandons the second message or forwards the second message to other physical hosts or by network interface card queue 1030 to certain virtual machine on physical host.
Be understandable that, the method specific implementation that the function of physical network card 1000 each devices in the present embodiment can be introduced according to said method embodiment, its specific implementation process can, referring to the associated description in above-described embodiment, not repeat them here.
Therefore in the technical scheme that the present embodiment provides, physical network card 1000 receives after the second message that other physical hosts send by physical port, first searches whether there is the stream list item mating with above-mentioned the second message in stream table; The stream list item mating with the second message if do not find, sends to the Host being deployed on the first physical host the 5th open flows protocol massages that comprises above-mentioned the second message; When receive that above-mentioned Host sends for responding the 6th open flows protocol massages of above-mentioned the 5th open flows protocol massages, the forward process rule of physical network card based on comprising in above-mentioned the 6th open flows protocol massages carried out forward process to above-mentioned the second message.Due in physical network card, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card and under virtual framework, forward more accurately control, if the forward process rule of carrying out based on flow control is carried out message repeating processing, be conducive to realize comparatively accurate flow control by more accurate forwarding control.And in the time lacking the forward process rule of message in physical network card, physical network card directly obtains forward process rule and without obtain forward process rule from other physical host from Host, the communication protocol framework that this mechanism is conducive to greatly to simplify physical network card even hardware structure (if for example physical network card needs obtain forward process rule from SND controller voluntarily, the communication protocol framework of physical network card even hardware structure just must be by the relative complex of design some for example just can complete and the function such as SND controller is mutual), so just be conducive to reduce cost and the complexity of physical network card, be conducive to improve the scene versatility of physical network card.
Referring to Figure 11-a, the embodiment of the present invention provides a kind of host 1100, can comprise:
Message receiving element 1110, acquisition unit 1120 and transmitting element 1130.
Wherein, message receiving element 1110, the first open flows protocol massages that includes the first message sending for receiving physical network card, wherein, on the physical host that above-mentioned physical network card is disposed in above-mentioned host;
Obtain unit 1120, for obtain the forward process rule for above-mentioned the first message of forward process based on preset strategy;
Transmitting element 1130, for sending the second open flows protocol massages that comprises above-mentioned forward process rule to above-mentioned physical network card.
In some embodiments of the invention, obtaining unit 1120 can be specifically for, obtains the forward process rule for above-mentioned the first message of forward process based on fuzzy matching table; Or, send the 3rd open flows protocol massages that includes above-mentioned the first message to software defined network SDN controller; Receive the 4th open flows protocol massages for the forward process rule of above-mentioned the first message of forward process that includes that above-mentioned SDN controller returns.
Referring to Figure 11-b, in some embodiments of the invention, host 1100 also can comprise: connect and set up unit 1140, for before including the 3rd open flows protocol massages of above-mentioned the first message to above-mentioned SDN controller transmission, the transport layer protocol of setting up between above-mentioned SDN controller is connected.
Wherein, above-mentioned to SDN controller send include above-mentioned the first message the 3rd open flows protocol massages aspect, obtaining unit 1120 can be specifically for, after in the 3rd open flows protocol massages that comprises above-mentioned the first message is encapsulated into the first transport layer protocol message, connects to SDN controller and send and include above-mentioned the first transport layer protocol message of above-mentioned the 3rd open flows protocol massages based on above-mentioned transport layer protocol.
Be understandable that, the method specific implementation that the function of the host 1100 each modules in the present embodiment can be introduced according to said method embodiment, its specific implementation process can, referring to the associated description in above-described embodiment, not repeat them here.
Therefore in the technical scheme that the present embodiment provides, Host1100 receives the first open flows protocol massages that comprises the first message that physical network card sends; Obtain the forward process rule for above-mentioned the first message of forward process based on preset strategy; Send the second open flows protocol massages that comprises above-mentioned forward process rule to above-mentioned physical network card, this facilitate that above-mentioned physical network card receives that above-mentioned Host sends for after responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, the forward process rule based on comprising in above-mentioned the second open flows protocol massages is carried out forward process to above-mentioned the first message.Due in physical network card, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card and under virtual framework, forward more accurately control.And in the time lacking the forward process rule of message in physical network card, physical network card directly obtains forward process rule and without obtain forward process rule from other physical host from Host, this mechanism is conducive to greatly simplify communication protocol framework in physical network card, and even hardware structure is (for example, if physical network card needs to obtain forward process rule from SND controller voluntarily, the communication protocol framework of physical network card even hardware structure just must be by the relative complex of design some for example just can complete and the function such as SND controller is mutual), this is just conducive to reduce physical network card cost and complexity, be conducive to improve the scene versatility of physical network card.
Referring to Figure 12, the embodiment of the present invention provides a kind of physical host 1200, can comprise, hardware layer 1210 and operate in the host 1202 on above-mentioned hardware layer 1210 and operate at least one virtual machine 1203 on above-mentioned Host, wherein, above-mentioned hardware layer 1210 comprises at least one physical network card 1211.
Physical network card 1211, the first message for the treatment of forward process sending for receiving one of them virtual machine 1203 of above-mentioned at least one virtual machine 1203 is searched and whether is had the stream list item mating with above-mentioned the first message in stream table; If do not find the stream list item mating with above-mentioned the first message in above-mentioned stream table, send to host 1202 the first open flows protocol massages that comprises above-mentioned the first message.
Wherein, host 1202, above-mentioned the first open flows protocol massages that includes above-mentioned the first message sending for receiving physical network card 1211; Obtain the forward process rule for above-mentioned the first message of forward process based on preset strategy; Send to physical network card 1211 the second open flows protocol massages that includes above-mentioned forward process rule.
Wherein, physical network card 1211 also for when receive that host 1202 sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, the forward process rule based on comprising in above-mentioned the second open flows protocol massages is carried out forward process to above-mentioned the first message.
In some embodiments of the invention, obtain for aspect the forward process rule of above-mentioned the first message of forward process based on preset strategy above-mentioned, host 1202 is specifically for obtaining the forward process rule for above-mentioned the first message of forward process based on fuzzy matching table; Or, send the 3rd open flows protocol massages that includes above-mentioned the first message to SDN controller; Receive the 4th open flows protocol massages for the forward process rule of above-mentioned the first message of forward process that includes that above-mentioned SDN controller returns.
In some embodiments of the invention, host 1202 is before including the 3rd open flows protocol massages of above-mentioned the first message to above-mentioned SDN controller transmission, and host 1202 also can be used for, and the transport layer protocol of setting up between above-mentioned SDN controller is connected.Host 1202 is encapsulated into the 3rd open flows protocol massages that comprises above-mentioned the first message among the first transport layer protocol message (wherein, host 1202 can call protocol stack in host 1202 the 3rd open flows protocol massages that comprises above-mentioned the first message is encapsulated among the first transport layer protocol message).Wherein, the 3rd open flows protocol massages that host 1202 includes above-mentioned the first message to the transmission of SDN controller specifically can comprise: host 1202 connects to SDN controller and sends and include above-mentioned the first transport layer protocol message of above-mentioned the 3rd open flows protocol massages based on above-mentioned transport layer protocol.Accordingly, host 1202 can receive above-mentioned SDN controller and return to the second transport layer protocol message that comprises the 4th open flows protocol massages, wherein, above-mentioned the 4th open flows protocol massages includes the forward process rule for above-mentioned the first message of forward process, and host 1202 obtains the forward process rule for above-mentioned the first message of forward process from the 4th open flows protocol massages.Be understandable that, if will for example, be integrated among host 1202 with the mutual correlation function (protocol stack etc.) of SDN controller, be responsible for and SDN controller is correlated with alternately by host 1202.Physical network card directly obtains forward process rule from host 1202, therefore, the communication protocol framework of physical network card even hardware structure can greatly be simplified, and is so just conducive to reduce cost and the complexity of physical network card, is conducive to improve the scene versatility of physical network card.
In some embodiments of the invention, physical network card 1211 also can be used for, and receives by physical port the second message that other physical hosts are sent; Forward above-mentioned the second message to the corresponding object virtual machine in above-mentioned Secondary Report literary composition entrained object virtual machine address, wherein, one of them that above-mentioned purpose virtual machine is above-mentioned at least one virtual machine.
Or, physical network card 1211 also for, receive by physical port the second message that other physical hosts are sent; In stream table, search and whether have the stream list item mating with above-mentioned the second message; If do not find the stream list item mating with above-mentioned the second message, send to host 1202 the 5th open flows protocol massages that comprises above-mentioned the second message; When receive that host 1202 sends for responding the 6th open flows protocol massages of above-mentioned the 5th open flows protocol massages, the forward process rule based on comprising in above-mentioned the 6th open flows protocol massages is carried out forward process to above-mentioned the second message.
Wherein, host 1202, above-mentioned the 5th open flows protocol massages that includes above-mentioned the second message sending for receiving physical network card 1211; Obtain the forward process rule for above-mentioned the second message of forward process based on preset strategy; Send to physical network card 1211 the 5th open flows protocol massages that includes above-mentioned forward process rule.
Be understandable that, the method specific implementation that the function of the physical host 1200 each function elements in the present embodiment can be introduced according to said method embodiment, its specific implementation process can, referring to the associated description in above-described embodiment, not repeat them here.
Therefore, in the scheme of the present embodiment, physical network card 1211 receive that the virtual machine that is deployed on this physical network card 1211 physical host 1200 of living in sends after the first message of forward process, first in stream table, search whether there is the stream list item mating with above-mentioned the first message; If do not find the stream list item mating with above-mentioned the first message, send to the host 1202 being deployed on physical host 1200 the first open flows protocol massages that comprises above-mentioned the first message; When receive that above-mentioned host 1202 sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, the forward process rule of physical network card 1211 based on comprising in above-mentioned the second open flows protocol massages carried out forward process to above-mentioned the first message.Due in physical network card 1211, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card 1211 and under virtual framework, forward more accurately control, if the forward process rule of carrying out based on flow control is carried out message repeating processing, be conducive to realize comparatively accurate flow control by more accurate forwarding control.And in the time lacking the forward process rule of message in physical network card 1211, physical network card 1211 directly obtains forward process rule and without obtain forward process rule from other physical host from host 1202, this mechanism is conducive to greatly simplify the even hardware structure of communication protocol framework of physical network card 1211, so just be conducive to reduce cost and the complexity of physical network card 1211, be conducive to improve the scene versatility of physical network card 1211.
Referring to Figure 13, the embodiment of the present invention provides a kind of physical host 1300, can comprise, hardware layer 1310 and operate in the host 1302 on above-mentioned hardware layer 1310 and operate at least one virtual machine 1303 on above-mentioned Host, wherein, above-mentioned hardware layer 1310 comprises at least one physical network card 1311.
Wherein, above-mentioned physical network card 1311, the second message of sending for receive other physical hosts by physical port; In stream table, search and whether have the stream list item mating with above-mentioned the second message; When not finding the stream list item mating with above-mentioned the second message, send to above-mentioned host 1302 the 5th open flows protocol massages that comprises above-mentioned the second message.
Wherein, above-mentioned host 1302, above-mentioned the 5th open flows protocol massages that includes above-mentioned the second message sending for receiving above-mentioned physical network card 1311; Obtain the forward process rule for above-mentioned the second message of forward process based on preset strategy; Send to above-mentioned physical network card 1311 the 6th open flows protocol massages that includes above-mentioned forward process rule.
Wherein, above-mentioned physical network card 1311 also for when receive that above-mentioned host 1302 sends for responding the 6th open flows protocol massages of above-mentioned the 5th open flows protocol massages, the forward process rule based on comprising in above-mentioned the 6th open flows protocol massages is carried out forward process to above-mentioned the second message.
In some embodiments of the invention, obtain for aspect the forward process rule of above-mentioned the second message of forward process based on preset strategy above-mentioned, above-mentioned host 1302 specifically for, obtain the forward process rule for above-mentioned the second message of forward process based on fuzzy matching table; Or, send the 3rd open flows protocol massages that includes above-mentioned the second message to SDN controller; Receive the 4th open flows protocol massages for the forward process rule of above-mentioned the second message of forward process that includes that above-mentioned SDN controller returns.
Be understandable that, the method specific implementation that the function of the physical host 1200 each function elements in the present embodiment can be introduced according to said method embodiment, its specific implementation process can, referring to the associated description in above-described embodiment, not repeat them here.
Therefore, in the scheme that the present embodiment provides, be included in physical network card 1311 in physical host 1300 and receive after the second message that other physical hosts send by physical port, first in stream table, search whether there is the stream list item mating with above-mentioned the second message; The stream list item mating with the second message if do not find, sends to the host 1302 being deployed on physical host 1300 the 5th open flows protocol massages that comprises above-mentioned the second message; When receive that above-mentioned host 1302 sends for responding the 6th open flows protocol massages of above-mentioned the 5th open flows protocol massages, the forward process rule of physical network card 1311 based on comprising in above-mentioned the 6th open flows protocol massages carried out forward process to above-mentioned the second message.Due in physical network card 1311, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card 1311 and under virtual framework, forward more accurately control, if the forward process rule of carrying out based on flow control is carried out message repeating processing, be conducive to realize comparatively accurate flow control by more accurate forwarding control.And, in the time lacking the forward process rule of message in physical network card 1311, physical network card 1311 directly obtains forward process rule and without obtain forward process rule from other physical host from host 1302, the communication protocol framework that this mechanism is conducive to greatly to simplify physical network card 1311 even hardware structure (if for example physical network card 1311 needs obtain forward process rule from SND controller voluntarily, the communication protocol framework of physical network card 1311 even hardware structure just must be by the relative complex of design some for example just can complete and the function such as SND controller is mutual), so just be conducive to reduce cost and the complexity of physical network card 1311, be conducive to improve the scene versatility of physical network card 1311.
Figure 14 has described the structure of a kind of physical host 1400 that the embodiment of the present invention provides, this physical host 1400 comprises: at least one processor 1401, for example CPU, at least one network interface 1404 or other user interfaces 1403, memory 1405, at least one communication bus 1402.Communication bus 1402 is for realizing the connection communication between these assemblies.This physical host 1400 optionally comprises user interface 1403, comprises display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch sensitive display screen).Memory 1405 may comprise high-speed RAM memory, also may also comprise non-unsettled memory (non-volatile memory), for example at least one magnetic disc store.Memory 1405 optionally can comprise at least one in the storage device away from aforementioned processing device 1401.Wherein, network interface 1404 comprises physical network card etc.
In some embodiments, memory 1405 has been stored following element, executable module or data structure, or their subset, or their superset: host 14051 and at least one virtual machine 14052.Wherein, be subject to processing calling of device 1401, host 14051 can have the part or all of function as host that above-described embodiment is described, and is subject to processing calling of device 1401, and virtual machine 14052 can have the part or all of function as virtual machine that above-described embodiment is described.
Be subject to processing calling of device 1401, the first message for the treatment of forward process that physical network card sends for receiving a virtual machine of above-mentioned at least one virtual machine is searched and whether is had the stream list item mating with above-mentioned the first message in stream table; If do not find the stream list item mating with above-mentioned the first message in above-mentioned stream table, send to processor 1401 the first open flows protocol massages that comprises above-mentioned the first message.
Wherein, in embodiments of the present invention, program or the instruction of storing by calling memory 1405, processor 1401 for: receive physical network card send above-mentioned the first open flows protocol massages that includes above-mentioned the first message; Obtain the forward process rule for above-mentioned the first message of forward process based on preset strategy; Send the second open flows protocol massages that includes above-mentioned forward process rule to physical network card;
Wherein, be subject to processing calling of device 1401, physical network card also for when receive that processor 1401 sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, the forward process rule based on comprising in above-mentioned the second open flows protocol massages is carried out forward process to above-mentioned the first message.
In some embodiments of the invention, obtain for aspect the forward process rule of above-mentioned the first message of forward process based on preset strategy above-mentioned, processor 1401 is specifically for obtaining the forward process rule for above-mentioned the first message of forward process based on fuzzy matching table; Or, send the 3rd open flows protocol massages that includes above-mentioned the first message to SDN controller; Receive the 4th open flows protocol massages for the forward process rule of above-mentioned the first message of forward process that includes that above-mentioned SDN controller returns.
In some embodiments of the invention, the second message that physical network card is also sent for receive other physical hosts by physical port; Forward above-mentioned the second message to the corresponding object virtual machine in above-mentioned Secondary Report literary composition entrained object virtual machine address, wherein, one of them that above-mentioned purpose virtual machine is above-mentioned at least one virtual machine.
Or physical network card is also for receiving the second message that other physical hosts are sent by external physical port; In stream table, search and whether have the stream list item mating with above-mentioned the second message; If do not find the stream list item mating with above-mentioned the second message, send to processor 1401 the 5th open flows protocol massages that comprises above-mentioned the second message; When receive that processor 1401 sends for responding the 6th open flows protocol massages of above-mentioned the 5th open flows protocol massages, the forward process rule based on comprising in above-mentioned the 6th open flows protocol massages is carried out forward process to above-mentioned the second message.
Visible, adopt after such scheme, be subject to processing calling of device 1401, physical network card receive that the virtual machine that is deployed on this physical network card physical host 1400 of living in sends after the first message of forward process, first in stream table, search whether there is the stream list item mating with above-mentioned the first message; If do not find the stream list item mating with above-mentioned the first message, send to the processor 1401 being deployed on physical host the first open flows protocol massages that comprises above-mentioned the first message; When receive that processor 1401 sends for responding the second open flows protocol massages of above-mentioned the first open flows protocol massages, the forward process rule of physical network card based on comprising in above-mentioned the second open flows protocol massages carried out forward process to above-mentioned the first message.Due in physical network card, introduced can flexible configuration stream table and the forward process rule message for the treatment of forward process carry out forward process, be conducive to like this physical network card and under virtual framework, forward more accurately control, if the forward process rule of carrying out based on flow control is carried out message repeating processing, be conducive to realize comparatively accurate flow control by more accurate forwarding control.And in the time lacking the forward process rule of message in physical network card, physical network card directly obtains forward process rule and without obtain forward process rule from other physical host from processor 1401, the communication protocol framework that this mechanism is conducive to greatly to simplify physical network card even hardware structure (if physical network card needs obtain forward process rule from SND controller voluntarily, the communication protocol framework of physical network card even hardware structure just must be by the relative complex of design some for example just can complete and the function such as SND controller is mutual), so just be conducive to reduce cost and the complexity of physical network card, and be conducive to improve the scene versatility of physical network card.
The embodiment of the present invention also provides a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can have program stored therein, and this program comprises the part or all of step of the message repeating control method of recording in said method embodiment while execution.
It should be noted that, for aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part of detailed description, can be referring to the associated description of other embodiment.
In the several embodiment that provide in the application, should be understood that disclosed device can be realized by another way.For example, device embodiment described above is only schematic, the division of for example said units, be only that a kind of logic function is divided, when actual realization, can there is other dividing mode, for example multiple unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrical or other form.
The above-mentioned unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical location, can be in a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If above-mentioned integrated unit is realized and during as production marketing independently or use, can be stored in a computer read/write memory medium using the form of SFU software functional unit.Based on such understanding, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises that some instructions are in order to make a computer equipment (can be personal computer, server or the network equipment etc.) carry out all or part of step of each embodiment said method of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CDs.
Above-mentioned above, above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (22)

1. a message repeating control method, is characterized in that, comprising:
Physical network card receives first message for the treatment of forward process of self virtualizing machine, and wherein, described deploying virtual machine is in comprising on the first physical host of described physical network card;
Described physical network card searches whether there is the stream list item mating with described the first message in stream table; If do not find the stream list item mating with described the first message, send to the host Host disposing in described the first physical host the first open flows protocol massages that comprises described the first message;
When receive that described Host sends for responding the second open flows protocol massages of described the first open flows protocol massages, the forward process rule of described physical network card based on comprising in described the second open flows protocol massages carried out forward process to described the first message.
2. method according to claim 1, is characterized in that,
Described method also comprises: if described physical network card finds the stream list item mating with described the first message in described stream table, the forward process rule recording in the stream list item based on described coupling is carried out forward process to described the first message.
3. method according to claim 1 and 2, is characterized in that,
Described method also comprises:
Described physical network card receives by physical port the second message that other physical hosts are sent; The corresponding object virtual machine in object virtual machine address that described physical network card carries to described the second message forwards described the second message, and wherein, described object deploying virtual machine is among described the first physical host;
Or,
Described physical network card receives by physical port the second message that other physical hosts are sent; Described physical network card searches whether there is the stream list item mating with described the second message in stream table; If do not find the stream list item mating with described the second message, send to described Host the 5th open flows protocol massages that comprises described the second message; When receive that described Host sends for responding the 6th open flows protocol massages of described the 5th open flows protocol massages, the forward process rule of described physical network card based on comprising in described the 6th open flows protocol massages carried out forward process to described the second message.
4. a message repeating control method, is characterized in that, comprising:
The physical network card being included in this physical host receives by physical port the second message that other physical hosts are sent;
Described physical network card searches whether there is the stream list item mating with described the second message in stream table; When not finding the stream list item mating with described the second message, send to the host Host disposing in described physical host the 5th open flows protocol massages that comprises described the second message;
When receive that described Host sends for responding the 6th open flows protocol massages of described the 5th open flows protocol massages, the forward process rule of described physical network card based on comprising in described the 6th open flows protocol massages carried out forward process to described the second message.
5. method according to claim 4, is characterized in that,
Described method also comprises:
If find the stream list item mating with described the second message in described stream table, the forward process rule recording in the stream list item of described physical network card based on described coupling is carried out forward process to described the second message.
6. a message repeating control method, is characterized in that, comprising:
The host Host being deployed in physical host receives the first open flows protocol massages that comprises the first message that the physical network card in described physical host sends;
Described Host obtains the forward process rule for the first message described in forward process based on preset strategy;
Described Host sends the second open flows protocol massages that comprises described forward process rule to described physical network card.
7. method according to claim 6, is characterized in that, describedly obtains the forward process rule for the first message described in forward process based on preset strategy, comprising:
Obtain the forward process rule for the first message described in forward process based on fuzzy matching table;
Or,
Send the 3rd open flows protocol massages that comprises described the first message to software defined network SDN controller; Receive the 4th open flows protocol massages for the forward process rule of the first message described in forward process that comprises that described SDN controller returns.
8. method according to claim 7, it is characterized in that, before including the 3rd open flows protocol massages of described the first message to described SDN controller transmission, also comprise: the transport layer protocol that described Host sets up between described SDN controller is connected, and the 3rd open flows protocol massages that comprises described the first message is encapsulated among the first transport layer protocol message;
Wherein, describedly send to SDN controller the 3rd open flows protocol massages that includes described the first message and comprise: connect to SDN controller and send and include the first transport layer protocol message described in described the 3rd open flows protocol massages based on described transport layer protocol.
9. method according to claim 8, is characterized in that, described transport layer protocol is transmission control protocol or User Datagram Protoco (UDP).
10. a physical network card, is characterized in that, comprising:
Network interface card queue and open flows switch;
Wherein, described open flows switch, the first message for the treatment of forward process sending for receive the virtual machine of residing the first physical host deploy of described physical network card by described network interface card queue is searched and whether is had the stream list item mating with described the first message in stream table; When do not find the stream list item mating with described the first message in described stream table, send to the host Host of described the first physical host deploy the first open flows protocol massages that comprises described the first message; When receive that described Host sends for responding the second open flows protocol massages of described the first open flows protocol massages, the forward process rule based on comprising in described the second open flows protocol massages is carried out forward process to described the first message.
11. physical network cards according to claim 10, it is characterized in that, described open flows switch also finds at described stream table the stream list item mating with described the first message for working as, and the forward process rule recording in the stream list item based on described coupling is carried out forward process to described the first message.
12. according to the physical network card described in claim 10 or 11, it is characterized in that,
Described physical network card also comprises physical port;
Wherein, described open flows switch also for, receive by described physical port the second message that other physical hosts are sent; The corresponding object virtual machine in object virtual machine address carrying to described the second message by described network interface card queue forwards described the second message, and wherein, described object deploying virtual machine is in described the first physical host;
Or,
Described open flows switch also for, receive by described physical port the second message that other physical hosts are sent; In stream table, search and whether have the stream list item mating with described the second message; If do not find the stream list item mating with described the second message, send to described Host the 5th open flows protocol massages that comprises described the second message; When receive that described Host sends for responding the 6th open flows protocol massages of described the 5th open flows protocol massages, the forward process rule based on comprising in described the 6th open flows protocol massages is carried out forward process to described the second message.
13. 1 kinds of physical network cards, is characterized in that, comprising:
Physical port and open flows switch;
Described open flows switch, for receiving the second message that other physical hosts are sent by described physical port; In stream table, search and whether have the stream list item mating with described the second message; If do not find the stream list item mating with described the second message, send to the host Host disposing in residing physical host of described physical network card the 5th open flows protocol massages that comprises described the second message; When receive that described Host sends for responding the 6th open flows protocol massages of described the 5th open flows protocol massages, the forward process rule based on comprising in described the 6th open flows protocol massages is carried out forward process to described the second message.
14. physical network cards according to claim 13, it is characterized in that, described open flows switch also finds at described stream table the stream list item mating with described the second message for working as, and the forward process rule recording in the stream list item based on described coupling is carried out forward process to described the second message.
15. 1 kinds of hosts, is characterized in that, comprising:
Message receiving element, the first open flows protocol massages that includes the first message sending for receiving physical network card, on the physical host that described physical network card is disposed in described host;
Obtain unit, for obtain the forward process rule for the first message described in forward process based on preset strategy;
Transmitting element, for sending the second open flows protocol massages that comprises described forward process rule to described physical network card.
16. hosts according to claim 15, is characterized in that,
Described acquisition unit specifically for, obtain the forward process rule for the first message described in forward process based on fuzzy matching table; Or, send the 3rd open flows protocol massages that includes described the first message to software defined network SDN controller; Receive the 4th open flows protocol massages for the forward process rule of the first message described in forward process that includes that described SDN controller returns.
17. hosts according to claim 16, is characterized in that,
Described host also comprises: connect and set up unit, for before including the 3rd open flows protocol massages of described the first message to described SDN controller transmission, the transport layer protocol of setting up between described SDN controller is connected;
Wherein, described to SDN controller send include described the first message the 3rd open flows protocol massages aspect, described acquisition unit specifically for, after in the 3rd open flows protocol massages that comprises described the first message is encapsulated into the first transport layer protocol message, connects to SDN controller and send and include the first transport layer protocol message described in described the 3rd open flows protocol massages based on described transport layer protocol.
18. 1 kinds of physical hosts, is characterized in that, comprising: hardware layer, operate in the host Host on described hardware layer and operate at least one virtual machine on described Host, wherein, described hardware layer comprises physical network card;
Described physical network card, the first message for the treatment of forward process sending for receiving a virtual machine of described at least one virtual machine is searched and whether is had the stream list item mating with described the first message in stream table; If do not find the stream list item mating with described the first message in described stream table, send to described Host the first open flows protocol massages that comprises described the first message;
Wherein, described Host, described the first open flows protocol massages that includes described the first message sending for receiving described physical network card; Obtain the forward process rule for the first message described in forward process based on preset strategy; Send the second open flows protocol massages that includes described forward process rule to described physical network card;
Wherein, described physical network card also for when receive that described Host sends for responding the second open flows protocol massages of described the first open flows protocol massages, the forward process rule based on comprising in described the second open flows protocol massages is carried out forward process to described the first message.
19. physical hosts according to claim 18, it is characterized in that, obtain for aspect the forward process rule of the first message described in forward process based on preset strategy described, described Host is specifically for obtaining the forward process rule for the first message described in forward process based on fuzzy matching table; Or, send the 3rd open flows protocol massages that includes described the first message to software defined network SDN controller; Receive the 4th open flows protocol massages for the forward process rule of the first message described in forward process that includes that described SDN controller returns.
20. according to the physical host described in claim 18 or 19, it is characterized in that, described physical network card also for, receive by physical port the second message that other physical hosts are sent; Forward described the second message to the corresponding object virtual machine in the entrained object virtual machine of described the second message address, wherein, described object virtual machine is one of them of described at least one virtual machine;
Or, described physical network card also for, receive by physical port the second message that other physical hosts are sent; In stream table, search and whether have the stream list item mating with described the second message; If do not find the stream list item mating with described the second message, send to described Host the 5th open flows protocol massages that comprises described the second message; When receive that described Host sends for responding the 6th open flows protocol massages of described the 5th open flows protocol massages, the forward process rule based on comprising in described the 6th open flows protocol massages is carried out forward process to described the second message.
21. 1 kinds of physical hosts, is characterized in that, comprising: hardware layer, operate in the host Host on described hardware layer and operate at least one virtual machine on described Host, wherein, described hardware layer comprises physical network card;
Wherein, described physical network card, the second message of sending for receive other physical hosts by physical port; In stream table, search and whether have the stream list item mating with described the second message; When not finding the stream list item mating with described the second message, send to described Host the 5th open flows protocol massages that comprises described the second message;
Wherein, described Host, described the 5th open flows protocol massages that includes described the second message sending for receiving described physical network card; Obtain the forward process rule for the second message described in forward process based on preset strategy; Send the 6th open flows protocol massages that includes described forward process rule to described physical network card;
Wherein, described physical network card also for when receive that described Host sends for responding the 6th open flows protocol massages of described the 5th open flows protocol massages, the forward process rule based on comprising in described the 6th open flows protocol massages is carried out forward process to described the second message.
22. physical hosts according to claim 21, it is characterized in that, obtain for aspect the forward process rule of the second message described in forward process based on preset strategy described, described Host is specifically for obtaining the forward process rule for the second message described in forward process based on fuzzy matching table; Or, send the 3rd open flows protocol massages that includes described the second message to software defined network SDN controller; Receive the 4th open flows protocol massages for the forward process rule of the second message described in forward process that includes that described SDN controller returns.
CN201310733898.9A 2013-12-26 2013-12-26 Message transmitting control method, related device and physical host Pending CN103916314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310733898.9A CN103916314A (en) 2013-12-26 2013-12-26 Message transmitting control method, related device and physical host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310733898.9A CN103916314A (en) 2013-12-26 2013-12-26 Message transmitting control method, related device and physical host

Publications (1)

Publication Number Publication Date
CN103916314A true CN103916314A (en) 2014-07-09

Family

ID=51041729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310733898.9A Pending CN103916314A (en) 2013-12-26 2013-12-26 Message transmitting control method, related device and physical host

Country Status (1)

Country Link
CN (1) CN103916314A (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486234A (en) * 2014-11-21 2015-04-01 华为技术有限公司 Method and server for uninstalling service exchanger to physical network card
CN104506408A (en) * 2014-12-31 2015-04-08 杭州华三通信技术有限公司 Data transmission method and device based on SDN
CN105227393A (en) * 2015-08-25 2016-01-06 上海斐讯数据通信技术有限公司 A kind of bidirectional forwarding detection (BFD) method
CN105245456A (en) * 2015-10-20 2016-01-13 浪潮(北京)电子信息产业有限公司 Method and system for unloading SDN virtual network function in cloud server
WO2016131422A1 (en) * 2015-02-17 2016-08-25 Hangzhou H3C Technologies Co., Ltd. Flow entry generating and packet processing based on flow entry
WO2017016162A1 (en) * 2015-07-29 2017-02-02 中国科学院沈阳自动化研究所 Method for controlling transmission security of industrial communications flow based on sdn architecture
CN107278359A (en) * 2016-11-09 2017-10-20 华为技术有限公司 The method of Message processing, main frame and system in cloud computing system
CN107483369A (en) * 2017-09-13 2017-12-15 郑州云海信息技术有限公司 A kind of message processing method and virtual switch
CN107643938A (en) * 2017-08-24 2018-01-30 中国科学院计算机网络信息中心 Data transmission method, device and storage medium
CN108243118A (en) * 2016-12-27 2018-07-03 华为技术有限公司 The method and physical host to E-Packet
CN108650154A (en) * 2018-06-29 2018-10-12 新华三技术有限公司 Flow control methods and device
CN108696434A (en) * 2017-04-11 2018-10-23 华为技术有限公司 A kind of method, apparatus and system of forwarding data packets
CN109314724A (en) * 2016-08-09 2019-02-05 华为技术有限公司 The methods, devices and systems of virtual machine access physical server in cloud computing system
CN110050447A (en) * 2017-06-30 2019-07-23 华为技术有限公司 A kind of data processing method, network interface card and server
CN110061897A (en) * 2018-01-19 2019-07-26 思锐科技股份有限公司 Data on flows acquisition methods and system in virtual network tunnel
US10491517B2 (en) 2016-11-09 2019-11-26 Huawei Technologies Co., Ltd. Packet processing method in cloud computing system, host, and system
CN110798412A (en) * 2019-10-18 2020-02-14 北京浪潮数据技术有限公司 Multicast service processing method, device, cloud platform, equipment and readable storage medium
US10581729B2 (en) 2016-08-03 2020-03-03 Huawei Technologies Co., Ltd. Network interface card, computing device, and data packet processing method
US10623310B2 (en) 2016-08-03 2020-04-14 Huawei Technologies Co., Ltd. Network interface card, computing device, and data packet processing method
CN113383531A (en) * 2019-12-25 2021-09-10 华为技术有限公司 Forwarding equipment, network card and message forwarding method
CN113438219A (en) * 2020-07-08 2021-09-24 支付宝(杭州)信息技术有限公司 Replay transaction identification method and device based on block chain all-in-one machine
US20210326887A1 (en) * 2020-07-08 2021-10-21 Alipay (Hangzhou) Information Technology Co., Ltd. Methods and apparatuses for transferring transaction based on blockchain integrated station
US11665234B2 (en) 2020-07-08 2023-05-30 Alipay (Hangzhou) Information Technology Co., Ltd. Methods and apparatuses for synchronizing data based on blockchain integrated station

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486234B (en) * 2014-11-21 2018-10-30 华为技术有限公司 A kind of method and server that service switch is unloaded to physical network card
CN104486234A (en) * 2014-11-21 2015-04-01 华为技术有限公司 Method and server for uninstalling service exchanger to physical network card
CN104506408A (en) * 2014-12-31 2015-04-08 杭州华三通信技术有限公司 Data transmission method and device based on SDN
CN104506408B (en) * 2014-12-31 2018-02-06 新华三技术有限公司 The method and device of data transfer based on SDN
WO2016131422A1 (en) * 2015-02-17 2016-08-25 Hangzhou H3C Technologies Co., Ltd. Flow entry generating and packet processing based on flow entry
WO2017016162A1 (en) * 2015-07-29 2017-02-02 中国科学院沈阳自动化研究所 Method for controlling transmission security of industrial communications flow based on sdn architecture
US10447655B2 (en) 2015-07-29 2019-10-15 Shenyang Institute Of Automation, Chinese Academy Of Sciences Method for controlling transmission security of industrial communications flow based on SDN architecture
CN105227393A (en) * 2015-08-25 2016-01-06 上海斐讯数据通信技术有限公司 A kind of bidirectional forwarding detection (BFD) method
CN105245456A (en) * 2015-10-20 2016-01-13 浪潮(北京)电子信息产业有限公司 Method and system for unloading SDN virtual network function in cloud server
CN105245456B (en) * 2015-10-20 2018-12-25 浪潮(北京)电子信息产业有限公司 A kind of method and system of the interior unloading SDN virtual network function of Cloud Server
US10623310B2 (en) 2016-08-03 2020-04-14 Huawei Technologies Co., Ltd. Network interface card, computing device, and data packet processing method
US10581729B2 (en) 2016-08-03 2020-03-03 Huawei Technologies Co., Ltd. Network interface card, computing device, and data packet processing method
CN109314724A (en) * 2016-08-09 2019-02-05 华为技术有限公司 The methods, devices and systems of virtual machine access physical server in cloud computing system
CN109314724B (en) * 2016-08-09 2021-02-09 华为技术有限公司 Method, device and system for accessing physical server by virtual machine in cloud computing system
US11418512B2 (en) 2016-08-09 2022-08-16 Huawei Technologies Co., Ltd. Method for virtual machine to access physical server in cloud computing system, apparatus, and system
US11005755B2 (en) 2016-11-09 2021-05-11 Huawei Technologies Co., Ltd. Packet processing method in cloud computing system, host, and system
CN107278359B (en) * 2016-11-09 2020-09-18 华为技术有限公司 Method, host and system for processing message in cloud computing system
US10491517B2 (en) 2016-11-09 2019-11-26 Huawei Technologies Co., Ltd. Packet processing method in cloud computing system, host, and system
CN107278359A (en) * 2016-11-09 2017-10-20 华为技术有限公司 The method of Message processing, main frame and system in cloud computing system
CN108243118A (en) * 2016-12-27 2018-07-03 华为技术有限公司 The method and physical host to E-Packet
CN108696434A (en) * 2017-04-11 2018-10-23 华为技术有限公司 A kind of method, apparatus and system of forwarding data packets
CN110050447A (en) * 2017-06-30 2019-07-23 华为技术有限公司 A kind of data processing method, network interface card and server
US11223579B2 (en) 2017-06-30 2022-01-11 Huawei Technologies Co., Ltd. Data processing method, network interface card, and server
CN107643938A (en) * 2017-08-24 2018-01-30 中国科学院计算机网络信息中心 Data transmission method, device and storage medium
CN107483369B (en) * 2017-09-13 2020-09-08 苏州浪潮智能科技有限公司 Message processing method and virtual switch
CN107483369A (en) * 2017-09-13 2017-12-15 郑州云海信息技术有限公司 A kind of message processing method and virtual switch
CN110061897A (en) * 2018-01-19 2019-07-26 思锐科技股份有限公司 Data on flows acquisition methods and system in virtual network tunnel
CN108650154B (en) * 2018-06-29 2020-11-27 新华三技术有限公司 Flow control method and device
CN108650154A (en) * 2018-06-29 2018-10-12 新华三技术有限公司 Flow control methods and device
CN110798412A (en) * 2019-10-18 2020-02-14 北京浪潮数据技术有限公司 Multicast service processing method, device, cloud platform, equipment and readable storage medium
CN113383531A (en) * 2019-12-25 2021-09-10 华为技术有限公司 Forwarding equipment, network card and message forwarding method
CN113438219A (en) * 2020-07-08 2021-09-24 支付宝(杭州)信息技术有限公司 Replay transaction identification method and device based on block chain all-in-one machine
US20210326887A1 (en) * 2020-07-08 2021-10-21 Alipay (Hangzhou) Information Technology Co., Ltd. Methods and apparatuses for transferring transaction based on blockchain integrated station
US11665234B2 (en) 2020-07-08 2023-05-30 Alipay (Hangzhou) Information Technology Co., Ltd. Methods and apparatuses for synchronizing data based on blockchain integrated station
US11783339B2 (en) 2020-07-08 2023-10-10 Alipay (Hangzhou) Information Technology Co., Ltd. Methods and apparatuses for transferring transaction based on blockchain integrated station

Similar Documents

Publication Publication Date Title
CN103916314A (en) Message transmitting control method, related device and physical host
CN102334112B (en) Method and system for virtual machine networking
CN102105865B (en) Method and system for power management in a virtual machine environment without disrupting network connectivity
CN107278362B (en) The method of Message processing, host and system in cloud computing system
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
CN104243265B (en) A kind of gateway control method, apparatus and system based on virtual machine (vm) migration
CN107278359A (en) The method of Message processing, main frame and system in cloud computing system
CN109617735B (en) Cloud computing data center system, gateway, server and message processing method
CN103346981A (en) Virtual exchange method, related device and computer system
US20120307684A1 (en) Method for providing location independent dynamic port mirroring on distributed virtual switches
US11586575B2 (en) System decoder for training accelerators
CN102845035A (en) Method of identifying destination in virtual environment
US20170019304A1 (en) Method and system for virtualizing network cards on network processing platform
CN103763173A (en) Data transmission method and computing node
CN102195803A (en) Data communication method and system
US9928206B2 (en) Dedicated LAN interface per IPMI instance on a multiple baseboard management controller (BMC) system with single physical network interface
CN103067287B (en) Forwarding and realizing under control separation architecture the method for virtual programmable router
CN105049464A (en) Technologies for accelerating network virtualization
CN106155264A (en) The computer approach of the power consumption of management storage subsystem and computer system
WO2016155023A1 (en) Network management system, device and method
CN204117142U (en) Electronic device for providing instant switching and sharing of universal serial bus electronic equipment by host
CN103763403A (en) Message flow control method, message flow control related device and computational node
CN108334421A (en) Restored using the system of WOL
CN107454132B (en) Method and device for supporting multi-tenant network transmission
Tran et al. Network Performance Benchmarking for Containerized Infrastructure in NFV environment

Legal Events

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

Application publication date: 20140709

RJ01 Rejection of invention patent application after publication