CN104348737B - The transmission method and interchanger of a kind of multicast message - Google Patents
The transmission method and interchanger of a kind of multicast message Download PDFInfo
- Publication number
- CN104348737B CN104348737B CN201310335364.0A CN201310335364A CN104348737B CN 104348737 B CN104348737 B CN 104348737B CN 201310335364 A CN201310335364 A CN 201310335364A CN 104348737 B CN104348737 B CN 104348737B
- Authority
- CN
- China
- Prior art keywords
- interchanger
- switch
- multicast
- virtual switch
- routing information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a kind of transmission method of multicast message and interchanger.In this method, virtual switch is provided with server, virtual switch is connected by multiple interfaces with the multiple switch in external network, and this method includes:First interchanger receives the Multicast Routing information of each interchanger in neighbor switch by virtual switch, and the Multicast Routing information of the interchanger comprises at least the multicast address corresponding to the interface that interchanger is connected with virtual switch;In the multicast routing table of the first interchanger in the neighbor switch of corresponding with the outgoing interface of virtual switch connection multicast address and the first interchanger in the case of the multicast address identical of the Multicast Routing information of at least one interchanger, first interchanger determines a forwarding interchanger according to preset rules in the interchanger being connected with virtual switch, and determines only to forward the multicast message of the multicast address from forwarding interchanger to virtual switch.It the method reduce redundant flow.
Description
Technical field
The present invention relates to communication technical field, more particularly to the transmission method and interchanger of a kind of multicast message.
Background technology
More virtual machines can be run on one physical server(English:Virtual machine, abbreviation:VM), these
VM passes through virtual switch(English:Vitual switch, referred to as:vSwitch)To realize more on a physical server
It is logical between VM on communicating between VM, and the physical server and the external network for being connected to the physical server
Letter.In server as shown in Figure 1, VM1 and VM2 are connected respectively on vSwitch;VSwitch passes through physical network interface card
(English:Physical network interface card, referred to as:pNIC)It is multiple in pNIC1, pNIC2 and external network
Interchanger connects, and generally for reliability is ensured, vSwitch has two or more pNIC;VSwitch is receiving
From VM flow when, the forwarding of pNIC external network can be selected according to the principle of load sharing.
In common IP multicasts handling process, server can send Internet Group Management Protocol to gateway(English:
Internet Group Management Protocol, abbreviation:IGMP)Report(English:Report), to represent to some group
Broadcast group message it is interested, gateway records the information of server multicast group interested, when the multicast message of the multicast group arrives
Up to after the gateway, the gateway forwards the multicast message to server.
When IP multicasts processing is applied in the scene shown in above-mentioned Fig. 1, as shown in Fig. 2 simultaneously right in VM1 and VM2
In the case that multicast group G1 is interested, VM1 and VM2 send IGMP Report messages respectively, due to vSwitch load sharing
Selection, VM1 and VM2 IGMP report may be forwarded to gateway from different pNIC respectively, and thus, gateway is from different
Path receives the IGMP Report messages for requiring to add multicast group G1.After multicast group G1 multicast message reaches gateway, gateway
It can finally have the same multicast message of two-phase respectively along above-mentioned two paths forwarding multicasting message and enter server.Work as server
On pNIC it is more when, the repetition multicast message into server may increase more times, and these redundant flows can influence to take
The performance of business device.
The content of the invention
The transmission method and interchanger of a kind of multicast message are provided in the present invention, the redundancy into server can be reduced
Flow, so as to improve the performance of server.
In order to solve the above-mentioned technical problem, the invention discloses following technical scheme:
First aspect, there is provided a kind of transmission method of multicast message, including:
Virtual switch and multiple virtual machines are provided with server, the virtual machine is by the virtual switch and outside
Portion's network service, the virtual switch are connected by multiple interfaces with the multiple switch in external network, the multicast report
The transmission method of text includes:
Each interchanger in the neighbor switch that first interchanger passes through virtual switch reception first interchanger
Multicast Routing information, the Multicast Routing information of the interchanger is connected including at least the interchanger with the virtual switch
Interface corresponding to multicast address;Wherein, first interchanger is an interchanger in the multiple interchanger, described
The neighbor switch of first interchanger is the interchanger being connected in addition to first interchanger with the virtual switch;
Multicast corresponding to the outgoing interface being connected in the multicast routing table of first interchanger with the virtual switch
Address is identical with the multicast address of the Multicast Routing information of at least one interchanger in the neighbor switch of first interchanger
In the case of, first interchanger determines that one turns according to preset rules in the interchanger being connected with the virtual switch
Send out interchanger, and determine in interchanger be connected with the virtual switch only from it is described forwarding interchanger to it is described virtually
Interchanger forwards the multicast message of the multicast address.
With reference to above-mentioned in a first aspect, in the first possible implementation of first aspect, in first interchanger
Before or after the Multicast Routing information for receiving each interchanger in its neighbor switch, in addition to:
First interchanger passes through described in the virtual switch to the neighbor switch transmission of first interchanger
The Multicast Routing information of first interchanger, the Multicast Routing information of first interchanger comprise at least first interchanger with
Multicast address corresponding to the interface of the virtual switch connection.
With reference to the first possible implementation of above-mentioned first aspect, in second of possible realization side of first aspect
In formula, if before first interchanger receives the Multicast Routing information of each interchanger in its neighbor switch, described first
Interchanger sends the multicast of first interchanger by the virtual switch to the neighbor switch of first interchanger
Routing iinformation, then before the Multicast Routing information that first interchanger sends first interchanger, in addition to:
First interchanger checks whether to receive the neighbour by first interchanger of the virtual switch forwarding
The probe messages of interchanger transmission are occupied, if so, first interchanger is exchanged by the virtual switch to described first again
The neighbor switch of machine sends the Multicast Routing information of first interchanger.
Second aspect, there is provided a kind of interchanger, virtual switch and multiple virtual machines are provided with server, it is described virtual
Machine passes through more in multiple interfaces and external network by the virtual switch and external network communication, the virtual switch
Individual interchanger connection, the interchanger is an interchanger in the multiple interchanger, and the interchanger includes:
Information receiving unit, for respectively being exchanged in the neighbor switch by the virtual switch reception interchanger
The Multicast Routing information of machine, the Multicast Routing information of the interchanger comprise at least the interchanger and connected with the virtual switch
The multicast address corresponding to interface connect;Wherein, the interchanger is an interchanger in the multiple interchanger, the friendship
The neighbor switch changed planes is the interchanger being connected in addition to the interchanger with the virtual switch;
Decision package, for the outgoing interface institute being connected in the multicast routing table of the interchanger with the virtual switch
Corresponding multicast address and the multicast address of the Multicast Routing information of at least one interchanger in the neighbor switch of the interchanger
In the case of identical, a forwarding interchanger is determined in the interchanger being connected with the virtual switch according to preset rules,
And determine only from the forwarding interchanger to the virtual switch to be turned in the interchanger being connected with the virtual switch
The multicast message for sending out multicast address described.
With reference to above-mentioned second aspect, in the first possible implementation, in addition to:
Information transmitting unit, for receiving the multicast path of each interchanger in its neighbor switch in described information receiving unit
Before or after information, the group of the interchanger is sent to the neighbor switch of the interchanger by the virtual switch
Routing iinformation is broadcast, the Multicast Routing information of the interchanger connects including at least the interchanger with what the virtual switch was connected
Multicast address corresponding to mouthful.
With reference to the first possible implementation of above-mentioned second aspect, in second of possible implementation, also wrap
Include:
Identifying unit, for when the interchanger receive each interchanger in its neighbor switch Multicast Routing information it
Before, described information transmitting element sends the interchanger by the virtual switch to the neighbor switch of the interchanger
During Multicast Routing information, then before the Multicast Routing information that described information transmitting element sends the interchanger, check whether
Receive the probe messages that the neighbor switch by the interchanger of the virtual switch forwarding is sent;
Described information transmitting element, specifically for being to receive the virtual switch when the judged result of the identifying unit
During the probe messages that the neighbor switch by the interchanger of machine forwarding is sent, by the virtual switch to the exchange
The neighbor switch of machine sends the Multicast Routing information of the interchanger.
The third aspect, there is provided a kind of Transmission system of multicast message, including server and multiple switch, wherein, it is described
Virtual switch and multiple virtual machines are provided with server, the virtual machine is led to by the virtual switch with external network
Letter, the virtual switch are connected by multiple interfaces with the multiple interchanger in external network;
The interchanger, for each interchanger in the neighbor switch by the virtual switch reception interchanger
Multicast Routing information, the Multicast Routing information of the interchanger is connected including at least the interchanger with the virtual switch
Interface corresponding to multicast address;Wherein, the interchanger is an interchanger in the multiple interchanger, the exchange
The neighbor switch of machine is the interchanger being connected in addition to the interchanger with the virtual switch;In the group of the interchanger
Broadcast the neighbor switch of multicast address corresponding to the outgoing interface being connected in routing table with the virtual switch and the interchanger
In at least one interchanger Multicast Routing information multicast address identical in the case of, according to preset rules with it is described virtual
A forwarding interchanger is determined in the connected interchanger of interchanger, and is determined in the interchanger being connected with the virtual switch
In the multicast message of the multicast address is only forwarded from the forwarding interchanger to the virtual switch.
With reference to the above-mentioned third aspect, in the first possible implementation, the interchanger, it is additionally operable to receiving its neighbour
Before or after the Multicast Routing information for occupying each interchanger in interchanger, the neighbour by the virtual switch to the interchanger
The Multicast Routing information that interchanger sends the interchanger is occupied, the Multicast Routing information of the interchanger comprises at least the exchange
The multicast address corresponding to interface that machine is connected with the virtual switch.
With reference to the first possible implementation of the above-mentioned third aspect, in second of possible implementation, also wrap
Include:
The interchanger, it is additionally operable to work as before the Multicast Routing information of each interchanger in receiving its neighbor switch, leads to
When crossing the Multicast Routing information of the neighbor switch transmission interchanger of the virtual switch to the interchanger, described
Before interchanger sends the Multicast Routing information of the interchanger, check whether to receive the virtual switch forwarding by institute
The probe messages that the neighbor switch of interchanger is sent are stated, if so, the interchanger is again by the virtual switch to described
The neighbor switch of interchanger sends the Multicast Routing information of the interchanger.
The present invention is by exchanging multicast group routing iinformation between interchanger so that interchanger can be determined to same multicast group
Multicast message virtual switch is forwarded to by an interchanger, realize to enter server repetition multicast message resistance
Plug, reduces influence of the redundant flow to server performance and virtual machine service availability.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of network;
Fig. 2 is the schematic diagram of a scenario handled using IP multicasts;
Fig. 3 is a kind of method flow diagram for controlling redundant flow in the embodiment of the present invention;
Fig. 4 is a kind of application scenarios schematic diagram of the inventive method embodiment;
Fig. 5 is a kind of structural representation of interchanger of the embodiment of the present invention;
Fig. 6 is the structural representation of another kind interchanger of the embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make of the invention real
Apply the above-mentioned purpose of example, feature and advantage can be more obvious understandable, below in conjunction with the accompanying drawings to technical side in the embodiment of the present invention
Case is described in further detail.
Referring to Fig. 3, for a kind of transmission method flow chart of multicast message of the embodiment of the present invention.
As shown in figure 1, be provided with vSwitch and multiple VM in server, VM by vSwitch and external network communication,
VSwitch is connected by multiple interfaces, such as pNIC with the multiple switch in external network.In the embodiment of the present invention, multicast report
The transmission method of text includes:
Step 301, the first interchanger is received in the neighbor switch of first interchanger by the vSwitch and respectively handed over
The Multicast Routing information changed planes.
First interchanger is any one in the multiple switch being connected with vSwitch, and " first " is only to state herein
It is convenient, not refer in particular to.The neighbor switch of first interchanger is the friendship being connected in addition to first interchanger with the vSwitch
Change planes.
Wherein, the Multicast Routing information of each interchanger comprises at least the exchange in the neighbor switch of the first interchanger
The multicast address corresponding to interface that machine itself is connected with vSwitch.Specifically, above-mentioned each interchanger can be from the multicast of itself
The multicast routing table item that outgoing interface is the interface being connected with vSwitch is selected in routing table, then by the multicast routing table item
Or the multicast address in the multicast routing table item is sent to the first interchanger as Multicast Routing information by vSwitch.
Process of each interchanger by vSwitch forwarding multicastings routing iinformation to the first interchanger, in a kind of possible reality
In existing mode, it can be realized by certain protocol massages.In the message in addition to comprising above-mentioned Multicast Routing information, in addition to
Lower field:
DMAC:The target MAC (Media Access Control) address of the message, the value of the dmac field can be specific Layer 2 Multicast address, such as the
One Layer 2 Multicast address., should if the value of the dmac field is the first Layer 2 Multicast address after vSwitch receives message
Message is forwarded to other interchangers being connected with the vSwitch.Any one in the multiple switch being connected with the vSwitch
Interchanger, the message that the target MAC (Media Access Control) address received is the first Layer 2 Multicast address is not forwarded.
SRC MAC:The source MAC of message.The value of the source MAC is the MAC Address for the interchanger for sending the message.
Optionally, can also include in the message:
Priority:Send the priority of the interchanger of the message.The priority is used to characterize interchanger forwarding multicasting report
The forwarding rank of text, priority is higher, then the probability for being responsible for forwarding multicasting message by the interchanger is bigger.Priority can be used
Numerical value is big to represent that priority is high, can represent priority height with the numerical value of priority is small.
After vSwitch receives the message, in the situation that the value of the dmac field is above-mentioned first Layer 2 Multicast address
Under, the message is forwarded to the interchanger being connected with the vSwitch(Not comprising the interchanger for sending the message).So as to first
Interchanger can know the Multicast Routing information of each interchanger in its neighbor switch.
Step 302, corresponding to the outgoing interface being connected in the multicast routing table of first interchanger with the vSwitch
Multicast address and the multicast address of the Multicast Routing information of at least one interchanger in the neighbor switch of first interchanger
In the case of identical, first interchanger determines a forwarding according to preset rules in the interchanger being connected with vSwitch
Interchanger, and determine only from the forwarding interchanger to the vSwitch to be turned in the interchanger being connected with the vSwitch
The multicast message for sending out multicast address described.
First interchanger inquires about the multicast routing table of itself after the Multicast Routing information that each interchanger is sent is received,
The multicast routing table item that outgoing interface is vSwitch is searched, obtains the multicast address in the list item.Received when the first interchanger
In multicast address with multicast that outgoing interface in itself multicast routing table is the multicast routing table item of interface being connected with vSwitch
In location, when at least two multicast address are identical, illustrate to reach vSwitch path at least from interchanger corresponding to the multicast address
There are two, an interchanger of process first reaches vSwitch, and other paths reach vSwitch by other interchangers.
Redundant flow is caused in order to avoid the message of the multicast group is transmitted to vSwitch by mulitpath, first exchange
Machine can be according to rule set in advance, in the first interchanger and above-mentioned at least one interchanger with same multicast address
An interchanger is determined, the multicast message of the multicast group is forwarded from the interchanger that this is determined to vSwitch.
Optionally, if above-mentioned protocol massages include sending the priority of the interchanger of the message, the first interchanger can
To be determined to be responsible for forwarding multicasting group report by the interchanger of highest priority according to the precedence information included in above-mentioned protocol massages
Text.
Optionally, the first interchanger can be according to the SRC MAC in above-mentioned protocol massages, it is determined that by SRC MAC field values
Big interchanger is responsible for forwarding multicasting group message.
After determining to be responsible for the interchanger of forwarding multicasting group message, if the first interchanger is connected with vSwitch
An interchanger in other interchangers in interchanger in addition to forwarding interchanger, then the first interchanger can be by setting certainly
The multicast routing table of body not forward the multicast message of the multicast address to the vSwitch.Specific method can be:First
Its multicast routing table is included the multicast address and group with the interface identifier of the vSwitch interfaces being connected by interchanger
Broadcast route table items deletion.
The embodiment of the present invention is by exchanging multicast group routing iinformation between interchanger so that interchanger can be determined to same
The multicast message of multicast group is forwarded to vSwitch by an interchanger, realizes to the repetition multicast message into server
Obstruction, reduces influence of the redundant flow to server performance and virtual machine service availability.
Before or after first interchanger receives the Multicast Routing information of each interchanger in its neighbor switch, also
Including:
First interchanger sends the Multicast Routing of the first interchanger by vSwitch to the neighbor switch of the first interchanger
Information, the Multicast Routing information of first interchanger are comprised at least corresponding to the interface that the first interchanger is connected with vSwitch
Multicast address.
Wherein, first interchanger sends the method for Multicast Routing information and each interchanger transmission group in its neighbor switch
The method for broadcasting routing iinformation is identical.First interchanger is selected outgoing interface from the multicast routing table of itself first and corresponded to
VSwitch multicast address, these multicast address are then forwarded to neighbours by vSwitch as Multicast Routing information and exchanged
Each interchanger of machine.
First interchanger can also realize that vSwitch forwards its Multicast Routing information by the protocol massages of said structure
To the process of other interchangers, in the message in addition to comprising above-mentioned Multicast Routing information, in addition to following field:
DMAC:The target MAC (Media Access Control) address of the message, the value of the dmac field can be specific Layer 2 Multicast address, such as the
One Layer 2 Multicast address., should if the value of the dmac field is the first Layer 2 Multicast address after vSwitch receives message
Message is forwarded to other interchangers being connected with the vSwitch.For any in the multiple switch that is connected with the vSwitch
One interchanger, the message that the target MAC (Media Access Control) address received is the first Layer 2 Multicast address is not forwarded.
SRC MAC:The source MAC of message.The value of the source MAC is the MAC Address of the first interchanger.
It can also also include in the message:
Priority:Send the priority of the interchanger of the message.The priority is used to characterize interchanger forwarding multicasting report
The forwarding rank of text, priority is higher, then the probability for being responsible for forwarding multicasting message by the interchanger is bigger.
In another embodiment of the invention, if the first interchanger receives the multicast path of each interchanger in its neighbor switch
Before information, the first interchanger sends the first interchanger by vSwitch to the neighbor switch of the first interchanger first
Multicast Routing information, then before the Multicast Routing information that the first interchanger sends the first interchanger, in addition to:
First interchanger checks whether to receive the neighbor switch by first interchanger of the vSwitch forwardings
The probe messages of transmission, handed over if so, the first interchanger sends first by vSwitch to the neighbor switch of the first interchanger again
The Multicast Routing information changed planes.
Optionally, each interchanger in the neighbor switch of the first interchanger can first send probe messages, and pass through
VSwitch forwards probe messages, and to other interchangers, the purpose of the probe messages is in order that receiving the exchange of probe messages
Machine is learnt and is also connected in the presence of other interchangers on vSwitch.
The probe messages can include following field:
DMAC:The target MAC (Media Access Control) address of the message, the value of the dmac field can be specific Layer 2 Multicast address, such as the
One Layer 2 Multicast address., should if the value of the dmac field is the first Layer 2 Multicast address after vSwitch receives message
Message is forwarded to other interchangers being connected with the vSwitch.For any in the multiple switch that is connected with the vSwitch
One interchanger, the message that the target MAC (Media Access Control) address received is the first Layer 2 Multicast address is not forwarded.
SRC MAC:The source MAC of message.The value of the source MAC is the MAC Address for the interchanger for sending the message.
If the first interchanger receives the transmission of other interchangers, probe messages would know that first interchanger has neighbours
Interchanger, it can then determine when forwarding the multicast message of a certain multicast group to vSwitch, it is possible to multiple switch be present
The situation of same multicast message is forwarded to vSwitch, namely redundant flow be present, it is now, superfluous in order to further determine whether
The storage of residual current amount, the first interchanger can continue executing with step 301~302 in previous embodiment.
If the first interchanger is not received by the probe messages of other interchangers transmission, illustrate that first interchanger is not deposited
In neighbor switch, and then also it is impossible to that multiple switch forwards same multicast message to vSwitch be present, namely
In the absence of redundant flow, now, the step of the first interchanger need not perform previous embodiment, so as to save because sending multicast
Routing iinformation and the resource taken.
The embodiment forwards probe messages by vSwitch between connected interchanger so that each interchanger can
To know other interchangers being connected with vSwitch, and then again by exchanging multicast group routing table between interchanger so that exchange
Machine can determine that the multicast message of same multicast group is forwarded to vSwitch by an interchanger, realize to entering server
The obstruction of multicast message is repeated, reduces influence of the redundant flow to server performance and virtual machine service availability.
Certainly, before or after the probe messages that the first interchanger receives that other interchangers are sent, first interchanger
Probe messages can be sent to other interchangers by vSwitch, the structure of the probe messages and foregoing neighbor switch are to the
The structure for the probe messages that one interchanger is sent is identical, and here is omitted.
Optionally, in order to prevent the error of transmission for causing multicast message because of network topology change, above-mentioned probe messages and
Protocol massages comprising Multicast Routing information can periodically be sent, on each cycle each interchanger can perform
The step of stating embodiment.
If the Multicast Routing information for other interchangers that each interchanger receives changes, according to the road after change
Corresponding operating is performed by information.First interchanger preserves the multicast routing table item of its deletion in internal memory.In Multicast Routing information
Before changing, the first interchanger is other interchangers in addition to forwarding interchanger in the interchanger being connected with vSwitch
In an interchanger, after Multicast Routing information changes, the first interchanger turn into forwarding interchanger, then first exchange
Machine by the multicast routing table item deleted originally from memory copying into the multicast routing table of hardware.
In order to be better understood from technical scheme, illustrated below in conjunction with instantiation.
As shown in figure 4, vSwitch two pNIC respectively with the GE2/0/0 outgoing interfaces of switch A and switch b
GE1/0/0 is connected.
Switch A and switch b send probe messages to vSwitch respectively.VSwitch is receiving two probe messages
Afterwards, according to DMAC therein, the probe messages that switch A is sent are forwarded to switch b, the detection report that switch b is sent
Text is forwarded to switch A.
Switch A, B can determine that the interchanger being connected with vSwitch has A, B after the probe messages of other side are received, and
It can determine that the neighborhood of both sides.
Then, switch A, B are exchanged with each other multicast group routing iinformation.Multicast group of the switch A in switch A, B route letter
Same multicast G2 multicast address is found in breath, so as to which switch A can determine that the road of arrival vSwitch corresponding to multicast group G2
Footpath has two, and one is sent to vSwitch by switch A, and another is sent to vSwitch by switch b.Switch b performs
Acted with switch A identical, also would know that foregoing two path.
Switch A obtains the MAC value of switch b, and then the MAC value with itself compares, if the MAC value of switch A is big,
Then according to preset rules, it is responsible for forwarding multicasting group G2 multicast message by switch A, GE2/0/0 outgoing interfaces keep forwarding state.
Switch b performs same action, it is found that when the MAC value of switch A is bigger, it is determined that be responsible for forwarding multicasting group G2 by switch A
Multicast message, the list item of GE1/0/0 outgoing interfaces corresponding to multicast group G2 is directly deleted from multicast routing table.
It can only be sent so as to multicast group G2 multicast message by the outgoing interface GE2/0/0 of switch A to vSwitch, from
And avoid repetition of the switch b to multicast group G2 multicast message and send, reduce redundant flow.
Above is the description to the inventive method embodiment, below to realizing that the device and system of the above method are situated between
Continue.
It is a kind of structural representation of interchanger of the embodiment of the present invention referring to Fig. 5.
The interchanger and a server have annexation, and vSwitch and multiple virtual machines, institute are provided with the server
State virtual machine and pass through more in multiple interfaces and external network by the vSwitch and external network communication, the vSwitch
Individual interchanger connection, the interchanger is an interchanger in the multiple interchanger, and the interchanger includes:
Information receiving unit 501, for respectively being exchanged in the neighbor switch by the vSwitch receptions interchanger
The Multicast Routing information of machine, the Multicast Routing information of the interchanger are connected including at least the interchanger with the vSwitch
Interface corresponding to multicast address;Wherein, the interchanger is an interchanger in the multiple interchanger, the exchange
The neighbor switch of machine is the interchanger being connected in addition to the interchanger with the vSwitch;
Decision package 502, for the outgoing interface institute being connected in the multicast routing table of the interchanger with the vSwitch
Corresponding multicast address and the multicast address of the Multicast Routing information of at least one interchanger in the neighbor switch of the interchanger
In the case of identical, a forwarding interchanger is determined in the interchanger being connected with the vSwitch according to preset rules, and
It is determined that only forward the multicast to the vSwitch from the forwarding interchanger in the interchanger being connected with the vSwitch
The multicast message of address.
The embodiment of the present invention realizes the obstruction of the repetition multicast message to entering server by said units, reduces
Influence of the redundant flow to server performance and virtual machine service availability.
In another embodiment of the invention, the interchanger can also include:
Information transmitting unit, for receiving the multicast path of each interchanger in its neighbor switch in described information receiving unit
Before or after information, the multicast of the interchanger is sent to the neighbor switch of the interchanger by the vSwitch
Routing iinformation, the Multicast Routing information of the interchanger comprise at least the interface institute that the interchanger is connected with the vSwitch
Corresponding multicast address.
In another embodiment of the invention, the interchanger can also include:
Identifying unit, for when the interchanger receive each interchanger in its neighbor switch Multicast Routing information it
Before, described information transmitting element sends the group of the interchanger by the vSwitch to the neighbor switch of the interchanger
When broadcasting routing iinformation, then before the Multicast Routing information that described information transmitting element sends the interchanger, check whether to connect
Receive the probe messages that the neighbor switch by the interchanger of the vSwitch forwardings is sent;
Described information transmitting element, specifically for being to receive the vSwitch when the judged result of the identifying unit
During the probe messages that the neighbor switch by the interchanger of forwarding is sent, by the vSwitch to the interchanger
Neighbor switch sends the Multicast Routing information of the interchanger.
The embodiment of the present invention additionally provides a kind of Transmission system of multicast message, as shown in figure 1, the system includes server
And multiple switch, wherein, vSwitch and multiple virtual machines are provided with the server, the virtual machine passes through described
VSwitch and external network communication, the vSwitch are connected by the multiple interchanger in multiple interfaces and external network
Connect;
The interchanger, for each interchanger in the neighbor switch by the vSwitch receptions interchanger
Multicast Routing information, the Multicast Routing information of the interchanger connect including at least the interchanger with what the vSwitch was connected
Multicast address corresponding to mouthful;Wherein, the interchanger is an interchanger in the multiple interchanger, the interchanger
Neighbor switch is the interchanger being connected in addition to the interchanger with the vSwitch;In the Multicast Routing of the interchanger
Multicast address corresponding to the outgoing interface being connected in table with the vSwitch with it is at least one in the neighbor switch of the interchanger
In the case of the multicast address identical of the Multicast Routing information of interchanger, it is being connected according to preset rules with the vSwitch
A forwarding interchanger is determined in interchanger, and is determined in the interchanger being connected with the vSwitch only by the forwarding
Interchanger forwards the multicast message of the multicast address to the vSwitch.
In another embodiment, the interchanger, it is additionally operable to the multicast path of each interchanger in its neighbor switch is received
Before or after information, the multicast of the interchanger is sent to the neighbor switch of the interchanger by the vSwitch
Routing iinformation, the Multicast Routing information of the interchanger comprise at least the interface institute that the interchanger is connected with the vSwitch
Corresponding multicast address.
In another embodiment, the interchanger, it is additionally operable to when the multicast of each interchanger in its neighbor switch is received
Before routing iinformation, the Multicast Routing of the interchanger is sent to the neighbor switch of the interchanger by the vSwitch
During information, before the Multicast Routing information that the interchanger sends the interchanger, check whether to receive the vSwitch
The probe messages that the neighbor switch by the interchanger of forwarding is sent, if so, the interchanger passes through the vSwitch again
The Multicast Routing information of the interchanger is sent to the neighbor switch of the interchanger.
As shown in fig. 6, the embodiment of the present invention additionally provides a kind of interchanger, including pNIC601, processor 602 and storage
Device 603 and switching network chip 604(English:Switched fabric circuit, referred to as fabric circuit).
Wherein, processor 602 can be central processing unit(English:Central processing unit, abbreviation:
CPU).Above-mentioned switching network chip 604 is hardware chip, can be the combination of one or more of:Application specific integrated circuit(English
Text:Application-specific integrated circuit, abbreviation:ASIC), field programmable gate array(English
Text:Field-programmable gate array, abbreviation:FPGA), CPLD(English:complex
Programmable logic device, abbreviation:CPLD)And network processing unit(English:Network processor, abbreviation:
NP).Memory 603 can be volatile memory(English:volatile memory), such as random access memory(English
Text:Random-access memory, abbreviation:RAM), or nonvolatile memory(English:non-volatile
memory), such as flash memory(English:flash memory), hard disk(English:Hard disk drive, abbreviation:HDD)
Or solid state hard disc(English:Solid-state drive, abbreviation:SSD).PNIC601 is used for the thing for realizing switch-to-server
Reason connection.PNIC601 is connected with memory 603 with processor 602.Thick line is bus in Fig. 6(English:bus).
Memory 603, store program codes, and the program code of storage is transferred to processor 602.Switching network chip
604 are used to receive simultaneously multicast data forwarding message, and multicast routing table is stored with switching network chip 604.
The switch-to-server is provided with vSwitch and multiple virtual by pNIC501 physical connections in the server
Machine, the virtual machine pass through multiple interfaces and external network by the vSwitch and external network communication, the vSwitch
In multiple switch connection, the programmed instruction that processor 602 stores according to memory 603, perform above-mentioned embodiment illustrated in fig. 3
In operating procedure:
The Multicast Routing information of each interchanger in the neighbor switch of the interchanger, the friendship are received by vSwitch
The Multicast Routing information changed planes comprises at least the multicast address corresponding to the interface that the interchanger is connected with the vSwitch;
Wherein, the interchanger is an interchanger in the multiple interchanger, and the neighbor switch of the interchanger is except described
The interchanger being connected outside interchanger with the vSwitch;
Multicast address corresponding to the outgoing interface being connected in the multicast routing table of the interchanger with the vSwitch and institute
In the case of the multicast address identical for stating the Multicast Routing information of at least one interchanger in the neighbor switch of interchanger, according to
Preset rules determine a forwarding interchanger in the interchanger being connected with vSwitch, and determine to connect with the vSwitch
The multicast message of the multicast address is only forwarded in the interchanger connect from the forwarding interchanger to the vSwitch.
After processor 602 is determined to forward interchanger, if the interchanger is removed in the interchanger being connected with vSwitch
An interchanger in other interchangers outside forwarding interchanger, then processor 602 can be by setting switching network chip 604
In multicast routing table not forward the multicast message of the multicast address to the vSwitch.Specific method can be:Processing
The multicast routing table stored in switching network chip 604 is included the multicast address and is connected with the vSwitch by device 602
The multicast routing table entry deletion of the interface identifier of interface.
If the Multicast Routing information of follow-up some interchangers changes, phase is performed according to the routing iinformation after change
It should operate.If the multicast routing table that processor 602 stores in switching network chip 604 include the multicast address and with it is described
The multicast routing table item of the interface identifier of the interface of vSwitch connections, before Multicast Routing information changes, if processor
602 determine that the interchanger is one in other interchangers in the interchanger being connected with vSwitch in addition to forwarding interchanger
Interchanger, then the processor 602 of the interchanger deleted in the multicast routing table of switching network chip 604 multicast address and with
The multicast routing table item of the interface identifier of the interface of the vSwitch connections, but the deleted group is preserved in memory 603
Broadcast route table items.After Multicast Routing information changes, if processor 602 determines that the interchanger turns into forwarding interchanger,
Then the multicast routing table item deleted originally can be copied to the multicast path of switching network chip 604 by processor 602 from memory 603
By in table.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing
Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or
The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit
Close or communicate to connect.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment(Can be
People's computer, server, or network equipment etc.)Or processor(processor)Perform side described in each embodiment of the present invention
The all or part of step of method.And foregoing storage medium includes:Flash memory(English:Flash memory), hard disk, only
Read memory(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc
Or CD etc. is various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.
Claims (9)
1. a kind of transmission method of multicast message, virtual switch and multiple virtual machines, the virtual machine are provided with server
By the virtual switch and external network communication, the virtual switch by multiple interfaces with it is multiple in external network
Interchanger connects, it is characterised in that the transmission method of the multicast message includes:
The group of each interchanger in the neighbor switch that first interchanger passes through virtual switch reception first interchanger
Routing iinformation is broadcast, the Multicast Routing information of the interchanger connects including at least the interchanger with what the virtual switch was connected
Multicast address corresponding to mouthful;Wherein, first interchanger is an interchanger in the multiple interchanger, described first
The neighbor switch of interchanger is the interchanger being connected in addition to first interchanger with the virtual switch;
Multicast address corresponding to the outgoing interface being connected in the multicast routing table of first interchanger with the virtual switch
With the multicast address identical feelings of the Multicast Routing information of at least one interchanger in the neighbor switch of first interchanger
Under condition, first interchanger determines that a forwarding is handed over according to preset rules in the interchanger being connected with the virtual switch
Change planes, and determine only to forward interchanger to the virtual switch from described in the interchanger being connected with the virtual switch
Machine forwards the multicast message of the multicast address.
2. according to the method for claim 1, it is characterised in that each in first interchanger receives its neighbor switch
Before or after the Multicast Routing information of interchanger, in addition to:
First interchanger sends described first by the virtual switch to the neighbor switch of first interchanger
The Multicast Routing information of interchanger, the Multicast Routing information of first interchanger comprise at least first interchanger with it is described
Multicast address corresponding to the interface of virtual switch connection.
3. according to the method for claim 2, it is characterised in that if in first interchanger receives its neighbor switch
Before the Multicast Routing information of each interchanger, first interchanger is by the virtual switch to first interchanger
Neighbor switch sends the Multicast Routing information of first interchanger, then sending described first in first interchanger exchanges
Before the Multicast Routing information of machine, in addition to:
First interchanger checks whether that the neighbours by first interchanger for receiving the virtual switch forwarding hand over
Change planes the probe messages of transmission, if so, first interchanger is again by the virtual switch to first interchanger
Neighbor switch sends the Multicast Routing information of first interchanger.
4. a kind of interchanger, virtual switch and multiple virtual machines are provided with server, the virtual machine passes through described virtual
Interchanger and external network communication, the virtual switch are connected by multiple interfaces with the multiple switch in external network,
The interchanger is an interchanger in the multiple interchanger, it is characterised in that the interchanger includes:
Information receiving unit, for each interchanger in the neighbor switch by the virtual switch reception interchanger
Multicast Routing information, the Multicast Routing information of the interchanger comprise at least what the interchanger was connected with the virtual switch
Multicast address corresponding to interface;Wherein, the interchanger is an interchanger in the multiple interchanger, the interchanger
Neighbor switch be the interchanger that is connected in addition to the interchanger with the virtual switch;
Decision package, for corresponding to the outgoing interface that is connected in the multicast routing table of the interchanger with the virtual switch
Multicast address is identical with the multicast address of the Multicast Routing information of at least one interchanger in the neighbor switch of the interchanger
In the case of, a forwarding interchanger is determined in the interchanger being connected with the virtual switch according to preset rules, and
It is determined that only forward institute to the virtual switch from the forwarding interchanger in the interchanger being connected with the virtual switch
State the multicast message of multicast address.
5. interchanger according to claim 4, it is characterised in that also include:
Information transmitting unit, the Multicast Routing for receiving each interchanger in its neighbor switch in described information receiving unit are believed
Before or after breath, the multicast path of the interchanger is sent to the neighbor switch of the interchanger by the virtual switch
By information, the Multicast Routing information of the interchanger comprises at least the interface institute that the interchanger is connected with the virtual switch
Corresponding multicast address.
6. interchanger according to claim 5, it is characterised in that also include:
Identifying unit, for working as before the interchanger receives the Multicast Routing information of each interchanger in its neighbor switch,
Described information transmitting element sends the group of the interchanger by the virtual switch to the neighbor switch of the interchanger
When broadcasting routing iinformation, then before the Multicast Routing information that described information transmitting element sends the interchanger, check whether to connect
Receive the probe messages that the neighbor switch by the interchanger of the virtual switch forwarding is sent;
Described information transmitting element, turn specifically for the judged result when the identifying unit to receive the virtual switch
During the probe messages that the neighbor switch by the interchanger of hair is sent, by the virtual switch to the interchanger
Neighbor switch sends the Multicast Routing information of the interchanger.
7. a kind of Transmission system of multicast message, including server and multiple switch, wherein, it is provided with void in the server
Intend interchanger and multiple virtual machines, the virtual machine pass through the virtual switch and external network communication, the virtual switch
Machine is connected by multiple interfaces with the multiple interchanger in external network, it is characterised in that
The interchanger, the group for each interchanger in the neighbor switch by the virtual switch reception interchanger
Routing iinformation is broadcast, the Multicast Routing information of the interchanger connects including at least the interchanger with what the virtual switch was connected
Multicast address corresponding to mouthful;Wherein, the interchanger is an interchanger in the multiple interchanger, the interchanger
Neighbor switch is the interchanger being connected in addition to the interchanger with the virtual switch;In the multicast path of the interchanger
In the neighbor switch of multicast address and the interchanger as corresponding to the outgoing interface being connected in table with the virtual switch extremely
In the case of the multicast address identical of the Multicast Routing information of a few interchanger, according to preset rules with the virtual switch
A forwarding interchanger is determined in the connected interchanger of machine, and is determined in the interchanger being connected with the virtual switch only
The multicast message of the multicast address is forwarded from the forwarding interchanger to the virtual switch.
8. system according to claim 7, it is characterised in that
The interchanger, it is additionally operable to before or after the Multicast Routing information of each interchanger in receiving its neighbor switch, leads to
Cross the Multicast Routing information that the virtual switch sends the interchanger to the neighbor switch of the interchanger, the exchange
The Multicast Routing information of machine comprises at least the multicast address corresponding to the interface that the interchanger is connected with the virtual switch.
9. system according to claim 8, it is characterised in that
The interchanger, it is additionally operable to work as before the Multicast Routing information of each interchanger in receiving its neighbor switch, passes through institute
When stating the Multicast Routing information of the neighbor switch transmission interchanger of the virtual switch to the interchanger, in the exchange
Before machine sends the Multicast Routing information of the interchanger, check whether to receive the virtual switch forwarding by the friendship
The probe messages that the neighbor switch changed planes is sent, if so, the interchanger is again by the virtual switch to the exchange
The neighbor switch of machine sends the Multicast Routing information of the interchanger.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310335364.0A CN104348737B (en) | 2013-08-02 | 2013-08-02 | The transmission method and interchanger of a kind of multicast message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310335364.0A CN104348737B (en) | 2013-08-02 | 2013-08-02 | The transmission method and interchanger of a kind of multicast message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104348737A CN104348737A (en) | 2015-02-11 |
CN104348737B true CN104348737B (en) | 2018-01-23 |
Family
ID=52503573
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310335364.0A Active CN104348737B (en) | 2013-08-02 | 2013-08-02 | The transmission method and interchanger of a kind of multicast message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104348737B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111399973B (en) * | 2019-01-03 | 2023-07-28 | 阿里巴巴集团控股有限公司 | FPGA remote mounting structure, network management and control method and device and electronic equipment |
CN111600800B (en) * | 2020-04-01 | 2022-06-28 | 武汉迈威通信股份有限公司 | Method and device for discovering cross-network-segment topology |
CN115242708B (en) * | 2022-07-21 | 2023-10-20 | 迈普通信技术股份有限公司 | Multicast table item processing method and device, electronic equipment and storage medium |
CN116033365B (en) * | 2023-03-22 | 2023-06-20 | 新华三技术有限公司 | Communication method, device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7209435B1 (en) * | 2002-04-16 | 2007-04-24 | Foundry Networks, Inc. | System and method for providing network route redundancy across Layer 2 devices |
CN101232510A (en) * | 2008-02-28 | 2008-07-30 | 中兴通讯股份有限公司 | Method and system for implementing multi-network port device multicast |
CN101841485A (en) * | 2010-05-28 | 2010-09-22 | 华为技术有限公司 | Method and relevant device for sharing multicast traffic |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8472443B2 (en) * | 2009-05-15 | 2013-06-25 | Cisco Technology | Port grouping for association with virtual interfaces |
-
2013
- 2013-08-02 CN CN201310335364.0A patent/CN104348737B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7209435B1 (en) * | 2002-04-16 | 2007-04-24 | Foundry Networks, Inc. | System and method for providing network route redundancy across Layer 2 devices |
CN101232510A (en) * | 2008-02-28 | 2008-07-30 | 中兴通讯股份有限公司 | Method and system for implementing multi-network port device multicast |
CN101841485A (en) * | 2010-05-28 | 2010-09-22 | 华为技术有限公司 | Method and relevant device for sharing multicast traffic |
Also Published As
Publication number | Publication date |
---|---|
CN104348737A (en) | 2015-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112470436B (en) | Systems, methods, and computer-readable media for providing multi-cloud connectivity | |
TWI543566B (en) | Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof | |
US9083645B2 (en) | Systems and methods providing reverse path forwarding compliance for a multihoming virtual routing bridge | |
US9294396B2 (en) | Port extender | |
CN102959910B (en) | The notice of change controller for being configured the packets forwarding of network element by communication channel | |
US9614759B2 (en) | Systems and methods for providing anycast MAC addressing in an information handling system | |
US20170063604A1 (en) | Method and apparatus for sve redundancy | |
CN104717081B (en) | The implementation method and device of a kind of gateway function | |
CN110166356A (en) | Send the method and the network equipment of message | |
CN102761479B (en) | Link selecting method and device | |
CN105939257A (en) | Update of mac routes in EVPN single-active topology | |
CN103067277B (en) | Set up and control the method for passage, forwarding unit and control equipment | |
TW201225586A (en) | Computer system and communication method in the computer system | |
WO2015167479A1 (en) | Efficient routing in software defined networks | |
EP2880550B1 (en) | Connection mesh in mirroring asymmetric clustered multiprocessor systems | |
CN108322338B (en) | Broadcast suppression method and VTEP device | |
JP7092813B2 (en) | Packet transmission method and equipment | |
CN106936609B (en) | Method for controlling forwarding equipment cluster in software defined network and controller | |
CN104348737B (en) | The transmission method and interchanger of a kind of multicast message | |
US10742545B2 (en) | Multicasting system | |
CN105634942A (en) | Method and switch for forwarding message | |
CN105162704A (en) | Multicast replication method and device in Overlay network | |
CN103780419B (en) | A kind of distributed aggregated link group business switch method and device | |
CN106130920A (en) | A kind of message forwarding method and device | |
CN105052092A (en) | Path optimization in multi-node virtual switch with orphan ports |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |