CN104348737A - Multicast message transmission method and switches - Google Patents

Multicast message transmission method and switches Download PDF

Info

Publication number
CN104348737A
CN104348737A CN201310335364.0A CN201310335364A CN104348737A CN 104348737 A CN104348737 A CN 104348737A CN 201310335364 A CN201310335364 A CN 201310335364A CN 104348737 A CN104348737 A CN 104348737A
Authority
CN
China
Prior art keywords
switch
multicast
routing information
neighbor
multicast routing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310335364.0A
Other languages
Chinese (zh)
Other versions
CN104348737B (en
Inventor
江兴烽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310335364.0A priority Critical patent/CN104348737B/en
Publication of CN104348737A publication Critical patent/CN104348737A/en
Application granted granted Critical
Publication of CN104348737B publication Critical patent/CN104348737B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a multicast message transmission method and switches. In the method, a virtual switch is arranged in a server and the virtual switch is connected with a plurality of switches in an external network through a plurality of interfaces. The method includes the following steps: a first switch receives multicast routing information of switches in neighbor switches through the virtual switch, wherein the multicast routing information of the switches at least includes multicast addresses corresponding to interfaces through which the switches are connected with the virtual switch; under a condition that a multicast address corresponding to an outcoming interface connected with the virtual switch in a multicast routing table of the first switch is identical with a multicast address of multicast routing information of at least one switch in the neighbor switches of the first switch, the first switch determines a forwarding switch in switches connected with the virtual switch according to a preset rule and determines that the multicast message of the multicast address is forwarded to the virtual switch only via the forwarding switch. The method reduces redundant traffic.

Description

A kind of transmission method of multicast message and switch
Technical field
The present invention relates to communication technical field, particularly relate to a kind of transmission method and switch of multicast message.
Background technology
A physical server can run multiple stage virtual machine (English: virtual machine, abbreviation: VM), these VM are (English: vitual switch by virtual switch, be called for short: vSwitch) realize the mutual communication between the multiple stage VM on a physical server, and VM on this physical server and the communication between the external network being connected to this physical server.In server as shown in Figure 1, VM1 and VM2 is connected respectively on vSwitch; VSwitch is (English: physical network interface card by physical network interface card; be called for short: pNIC) pNIC1, pNIC2 are connected with the multiple switches in external network; generally for guarantee reliability, vSwitch has two or more pNIC; VSwitch, when receiving the flow from VM, can select a pNIC externally forwarded according to the principle of load sharing.
In common IP multicast handling process, it is (English: Internet Group Management Protocol that server can send Internet Group Management Protocol to gateway, abbreviation: IGMP) report (English: Report), to represent interested in the message of certain multicast group, the information of the interested multicast group of this server of gateway record, after the multicast message of this multicast group arrives this gateway, namely this gateway forwards this multicast message to server.
When this IP multicast process is applied in the scene shown in above-mentioned Fig. 1, as shown in Figure 2, at VM1 and VM2 simultaneously in the interested situation of multicast group G1, VM1 and VM2 sends IGMP Report message respectively, due to the selection of the load sharing of vSwitch, the IGMP report of VM1 and VM2 may be forwarded to gateway from different pNIC respectively, and thus, gateway receives the IGMP Report message requiring to add multicast group G1 from different paths.When the multicast message of multicast group G1 arrives after gateway, gateway can respectively along above-mentioned two paths forwarding multicasting messages, finally have two identical multicast messages and enter server.When the pNIC on server is more, the repetition multicast message entering server may increase more times, and these redundant flow can affect the performance of server.
Summary of the invention
Provide a kind of transmission method and switch of multicast message in the present invention, the redundant flow entering server can be reduced, thus improve the performance of server.
In order to solve the problems of the technologies described above, the invention discloses following technical scheme:
First aspect, provides a kind of transmission method of multicast message, comprising:
Virtual switch and multiple virtual machine is provided with in server, described virtual machine is by described virtual switch and external network communication, described virtual switch is connected with the multiple switches in external network by multiple interface, and the transmission method of described multicast message comprises:
First switch receives the Multicast Routing information of each switch in the neighbor switch of described first switch by described virtual switch, and the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described virtual switch; Wherein, described first switch is a switch in described multiple switch, and the neighbor switch of described first switch is the switch be connected with described virtual switch except described first switch;
Identical with the multicast address of the Multicast Routing information of at least one switch in the neighbor switch of multicast address corresponding to the outgoing interface that described virtual switch connects and described first switch in the multicast routing table of described first switch, according to preset rules, described first switch determines that in the switch be connected with described virtual switch forwards a switch, and determine the multicast message only being forwarded described multicast address in the switch be connected with described virtual switch by described forwarding switch to described virtual switch.
In conjunction with above-mentioned first aspect, in the first possible implementation of first aspect, before or after the Multicast Routing information receiving each switch in its neighbor switch at described first switch, also comprise:
Described first switch sends the Multicast Routing information of described first switch by described virtual switch to the neighbor switch of described first switch, and the Multicast Routing information of described first switch at least comprises the multicast address corresponding to interface that described first switch is connected with described virtual switch.
In conjunction with the first possible implementation of above-mentioned first aspect, in the implementation that the second of first aspect is possible, if receive the Multicast Routing information of each switch in its neighbor switch at described first switch before, described first switch is by the Multicast Routing information of described virtual switch to described first switch of neighbor switch transmission of described first switch, then before described first switch sends the Multicast Routing information of described first switch, also comprise:
Described first switch checks the probe messages sent by the neighbor switch of described first switch whether receiving described virtual switch and forward, if so, described first switch is again by the Multicast Routing information of described virtual switch to described first switch of neighbor switch transmission of described first switch.
Second aspect, a kind of switch is provided, virtual switch and multiple virtual machine is provided with in server, described virtual machine is by described virtual switch and external network communication, described virtual switch is connected with the multiple switches in external network by multiple interface, described switch is a switch in described multiple switch, and described switch comprises:
Information receiving unit, for received described switch by described virtual switch neighbor switch in the Multicast Routing information of each switch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described virtual switch; Wherein, described switch is a switch in described multiple switch, and the neighbor switch of described switch is the switch be connected with described virtual switch except described switch;
Decision package, for identical with the multicast address of the Multicast Routing information of at least one switch in the neighbor switch of multicast address corresponding to the outgoing interface that described virtual switch connects and described switch in the multicast routing table of described switch, in the switch be connected with described virtual switch, determine that forwards a switch according to preset rules, and determine the multicast message only being forwarded described multicast address in the switch be connected with described virtual switch by described forwarding switch to described virtual switch.
In conjunction with above-mentioned second aspect, in the implementation that the first is possible, also comprise:
Information transmitting unit, for receive each switch in its neighbor switch at described information receiving unit Multicast Routing information before or after, sent the Multicast Routing information of described switch to the neighbor switch of described switch by described virtual switch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described virtual switch.
In conjunction with the first possible implementation of above-mentioned second aspect, in the implementation that the second is possible, also comprise:
Identifying unit, for working as before described switch receives the Multicast Routing information of each switch in its neighbor switch, when described information transmitting unit sends the Multicast Routing information of described switch by described virtual switch to the neighbor switch of described switch, then send the Multicast Routing information of described switch in described information transmitting unit before, check the probe messages sent by the neighbor switch of described switch whether receiving described virtual switch and forward;
Described information transmitting unit, specifically for being, when receiving the probe messages sent by the neighbor switch of described switch that described virtual switch forwards, sent the Multicast Routing information of described switch to the neighbor switch of described switch by described virtual switch when the judged result of described identifying unit.
The third aspect, a kind of transmission system of multicast message is provided, comprise server and multiple switch, wherein, virtual switch and multiple virtual machine is provided with in described server, described virtual machine is by described virtual switch and external network communication, and described virtual switch is connected with the described multiple switch in external network by multiple interface;
Described switch, for received described switch by described virtual switch neighbor switch in the Multicast Routing information of each switch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described virtual switch; Wherein, described switch is a switch in described multiple switch, and the neighbor switch of described switch is the switch be connected with described virtual switch except described switch; Identical with the multicast address of the Multicast Routing information of at least one switch in the neighbor switch of multicast address corresponding to the outgoing interface that described virtual switch connects and described switch in the multicast routing table of described switch, in the switch be connected with described virtual switch, determine that forwards a switch according to preset rules, and determine the multicast message only being forwarded described multicast address in the switch be connected with described virtual switch by described forwarding switch to described virtual switch.
In conjunction with the above-mentioned third aspect, in the implementation that the first is possible, described switch, also for before or after the Multicast Routing information receiving each switch in its neighbor switch, sent the Multicast Routing information of described switch to the neighbor switch of described switch by described virtual switch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described virtual switch.
In conjunction with the first possible implementation of the above-mentioned third aspect, in the implementation that the second is possible, also comprise:
Described switch, also for working as before the Multicast Routing information receiving each switch in its neighbor switch, when sending the Multicast Routing information of described switch by described virtual switch to the neighbor switch of described switch, send the Multicast Routing information of described switch at described switch before, check the probe messages sent by the neighbor switch of described switch whether receiving described virtual switch and forward, if, described switch sends the Multicast Routing information of described switch again to the neighbor switch of described switch by described virtual switch.
The present invention is by exchanging multicast group routing iinformation between switch, make switch can determine to be forwarded to virtual switch to the multicast message of same multicast group by a switch, achieve the obstruction to the repetition multicast message entering server, reduce the impact of redundant flow on server performance and virtual machine service availability.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, for those of ordinary skills, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of network;
Fig. 2 is a scene schematic diagram of application IP multicast process;
Fig. 3 is a kind of method flow diagram 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 the structural representation of a kind of switch of the embodiment of the present invention;
Fig. 6 is the structural representation of the another kind of switch of the embodiment of the present invention.
Embodiment
Technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art person, and enable the above-mentioned purpose of the embodiment of the present invention, feature and advantage become apparent more, below in conjunction with accompanying drawing, technical scheme in the embodiment of the present invention is described in further detail.
See Fig. 3, it is the transmission method flow chart of a kind of multicast message of the embodiment of the present invention.
As shown in Figure 1, be provided with vSwitch and multiple VM, VM by vSwitch and external network communication in server, vSwitch, by multiple interface, as pNIC, is connected with the multiple switches in external network.In the embodiment of the present invention, the transmission method of multicast message comprises:
Step 301, the first switch receives the Multicast Routing information of each switch in the neighbor switch of described first switch by described vSwitch.
This first switch is any one in the multiple switches be connected with vSwitch, and " first " is only statement conveniently herein, not refers in particular to.The neighbor switch of the first switch is the switch be connected with described vSwitch except this first switch.
Wherein, in the described neighbor switch of the first switch, the Multicast Routing information of each switch at least comprises the multicast address corresponding to interface that this switch is connected with vSwitch self.Concrete, above-mentioned each switch can select the multicast routing table item that outgoing interface is the interface be connected with vSwitch from the multicast routing table of self, then the multicast address in this multicast routing table item or this multicast routing table item is sent to the first switch as Multicast Routing information by vSwitch.
Each switch, by the process of vSwitch forwarding multicasting routing iinformation to the first switch, in a kind of possible implementation, can be realized by certain protocol massages.In this message except comprising above-mentioned Multicast Routing information, also comprise following field:
DMAC: the target MAC (Media Access Control) address of this message, the value of this dmac field can be specific Layer 2 Multicast address, such as the first Layer 2 Multicast address.After vSwitch receives message, if the value of this dmac field is the first Layer 2 Multicast address, then by switch that this message repeating is connected to other with this vSwitch.Any one switch in the multiple switches be connected with this vSwitch, does not forward the message that the target MAC (Media Access Control) address received is this first Layer 2 Multicast address.
SRC MAC: the source MAC of message.The value of this source MAC is the MAC Address of the switch sending this message.
Optionally, can also comprise in this message:
Priority: the priority sending the switch of this message.This priority is for characterizing the forwarding rank of switch forwarding multicasting message, and priority is higher, be then responsible for the probability of forwarding multicasting message by this switch larger.Can represent that priority is high with the numerical value of priority is large, can represent that priority is high with the numerical value of priority is little.
After vSwitch receives this message, when the value of described dmac field is above-mentioned first Layer 2 Multicast address, by this message repeating to the switch (not comprising the switch sending this message) be connected with this vSwitch.Thus the first switch can know the Multicast Routing information of each switch in its neighbor switch.
Step 302, identical with the multicast address of the Multicast Routing information of at least one switch in the neighbor switch of multicast address corresponding to the outgoing interface that described vSwitch connects and described first switch in the multicast routing table of described first switch, described first switch is determined one according to preset rules and is forwarded switch in the switch be connected with vSwitch, and determines the multicast message only being forwarded described multicast address in the switch be connected with described vSwitch by described forwarding switch to described vSwitch.
First switch, after the Multicast Routing information receiving the transmission of each switch, is inquired about the multicast routing table of self, is found out the multicast routing table item that interface is vSwitch, obtain the multicast address in this list item.When being in the multicast address of the multicast routing table item of the interface be connected with vSwitch with outgoing interface in self multicast routing table in the multicast address that the first switch receives, when at least two multicast address are identical, corresponding the arriving the path of vSwitch from switch and have two at least of this multicast address is described, article one, arrive vSwitch through the first switch, other path arrives vSwitch through other switch.
Message in order to avoid this multicast group transfers to vSwitch by mulitpath and causes redundant flow, this first switch can according to the rule preset, the first switch and above-mentioned have at least one switch of same multicast address determine a switch, the switch determined by this forwards the multicast message of this multicast group to vSwitch.
Optionally, if above-mentioned protocol massages comprises the priority of the switch sending this message, the first switch can be determined according to the precedence information comprised in above-mentioned protocol massages to be responsible for forwarding multicasting group message by the switch that priority is the highest.
Optionally, the first switch can, according to the SRC MAC in above-mentioned protocol massages, be determined to be responsible for forwarding multicasting group message by the switch that SRC MAC field value is large.
After the switch determining responsible forwarding multicasting group message, if the first switch is a switch in other switches in the switch be connected with vSwitch except forwarding switch, then the first switch can carry out the multicast message not forwarding described multicast address to described vSwitch by the multicast routing table arranging self.Concrete grammar can be: the multicast routing table entry deletion of the interface identifier of interface that its multicast routing table is comprised described multicast address and is connected with described vSwitch by the first switch.
The embodiment of the present invention is by exchanging multicast group routing iinformation between switch, make switch can determine to be forwarded to vSwitch to the multicast message of same multicast group by a switch, achieve the obstruction to the repetition multicast message entering server, reduce the impact of redundant flow on server performance and virtual machine service availability.
Before or after the Multicast Routing information receiving each switch in its neighbor switch at described first switch, also comprise:
First switch sends the Multicast Routing information of the first switch to the neighbor switch of the first switch by vSwitch, the Multicast Routing information of this first switch at least comprises the multicast address corresponding to interface that the first switch is connected with vSwitch.
Wherein, the method for this first switch transmission Multicast Routing information is identical with the method that each switch in its neighbor switch sends Multicast Routing information.First first switch selects the multicast address that outgoing interface corresponds to vSwitch from the multicast routing table of self, then these multicast address is forwarded to each switch of neighbor switch by vSwitch as Multicast Routing information.
First switch also can realize vSwitch by the protocol massages of said structure and forward the process of its Multicast Routing information to other switches, in this message except comprising above-mentioned Multicast Routing information, also comprises following field:
DMAC: the target MAC (Media Access Control) address of this message, the value of this dmac field can be specific Layer 2 Multicast address, such as the first Layer 2 Multicast address.After vSwitch receives message, if the value of this dmac field is the first Layer 2 Multicast address, then by switch that this message repeating is connected to other with this vSwitch.For any one switch in the multiple switches be connected with this vSwitch, do not forward the message that the target MAC (Media Access Control) address received is the first Layer 2 Multicast address.
SRC MAC: the source MAC of message.The value of this source MAC is the MAC Address of the first switch.
Also can also comprise in this message:
Priority: the priority sending the switch of this message.This priority is for characterizing the forwarding rank of switch forwarding multicasting message, and priority is higher, be then responsible for the probability of forwarding multicasting message by this switch larger.
In another embodiment of the invention, if before the first switch receives the Multicast Routing information of each switch in its neighbor switch, first first switch sends the Multicast Routing information of the first switch to the neighbor switch of the first switch by vSwitch, then send the Multicast Routing information of the first switch at the first switch before, also comprise:
First switch checks the probe messages sent by the neighbor switch of described first switch whether receiving described vSwitch and forward, if so, the first switch sends the Multicast Routing information of the first switch again to the neighbor switch of the first switch by vSwitch.
Optionally, each switch in the neighbor switch of the first switch first can send probe messages, and forwarding probe messages to other switches by vSwitch, the object of this probe messages is connected on vSwitch to make the switch receiving probe messages learn also to there are other switches.
This probe messages can comprise following field:
DMAC: the target MAC (Media Access Control) address of this message, the value of this dmac field can be specific Layer 2 Multicast address, such as the first Layer 2 Multicast address.After vSwitch receives message, if the value of this dmac field is the first Layer 2 Multicast address, then by switch that this message repeating is connected to other with this vSwitch.For any one switch in the multiple switches be connected with this vSwitch, do not forward the message that the target MAC (Media Access Control) address received is the first Layer 2 Multicast address.
SRC MAC: the source MAC of message.The value of this source MAC is the MAC Address of the switch sending this message.
If the first switch receives the transmission of other switches, probe messages can know that this first switch exists neighbor switch, then can determine when forwarding the multicast message of a certain multicast group to vSwitch, likely there is multiple switch forwards situation from same multicast message to vSwitch, also namely there is redundant flow, now, in order to determine whether the storage of redundant flow further, the first switch can continue to perform step 301 ~ 302 in previous embodiment.
If the first switch does not receive the probe messages that other switches send, then illustrate that this first switch does not exist neighbor switch, and then also just can not there is multiple switch forwards situation from same multicast message to vSwitch, also namely there is not redundant flow, now, first switch without the need to performing the step of previous embodiment, thus can save the resource taken because sending Multicast Routing information.
This embodiment forwards probe messages by vSwitch between connected switch, make each switch can know other switches be connected with vSwitch, and then again by exchanging multicast group routing table between switch, switch can be determined, and the multicast message of same multicast group is forwarded to vSwitch by a switch, achieve the obstruction to the repetition multicast message entering server, reduce the impact of redundant flow on server performance and virtual machine service availability.
Certainly, the first switch receive other switch send probe messages before or after, this first switch all sends probe messages by vSwitch to other switch, the structure of this probe messages is identical with the structure of the probe messages that aforementioned neighbor switch sends to the first switch, repeats no more herein.
Optionally, in order to prevent the error of transmission causing multicast message because of network topology change, above-mentioned probe messages and the protocol massages comprising Multicast Routing information all can periodically send, and all can perform the step of above-described embodiment at each cycle each switch.
If the Multicast Routing information of other switches that each switch receives changes, then perform corresponding operating according to the routing iinformation after change.First switch preserves its multicast routing table item deleted at internal memory.Before Multicast Routing information changes, first switch is a switch in other switches in the switch be connected with vSwitch except forwarding switch, after Multicast Routing information changes, first switch becomes forwarding switch, then the first switch by the multicast routing table item originally deleted from memory copying to the multicast routing table of hardware.
Technical scheme for a better understanding of the present invention, is described below in conjunction with instantiation.
As shown in Figure 4, two pNIC of vSwitch are connected with the GE2/0/0 outgoing interface of switch A and the GE1/0/0 of switch b respectively.
Switch A and switch b send probe messages respectively to vSwitch.The probe messages that switch A sends, after receiving two probe messages, according to DMAC wherein, is forwarded to switch b, the probe messages that switch b sends is forwarded to switch A by vSwitch.
Switch A, B can determine that after receiving the probe messages of the other side the switch be connected with vSwitch has A, B, and can determine the neighborhood of both sides.
Then, switch A, B exchange multicast group routing iinformation mutually.Switch A finds the multicast address of same multicast G2 in the multicast group routing iinformation of switch A, B, thus switch A can determine that the path of the arrival vSwitch that multicast group G2 is corresponding has two, article one, be sent to vSwitch by switch A, another is sent to vSwitch by switch b.Switch b performs the action identical with switch A, also can know aforementioned two paths.
Switch A obtains the MAC value of switch b, then compares with the MAC value of self, if the MAC value of switch A is large, then according to preset rules, is responsible for the multicast message of forwarding multicasting group G2 by switch A, and GE2/0/0 outgoing interface keeps forwarding state.Switch b performs same action, when finding that the MAC value of switch A is larger, then determines the multicast message being responsible for forwarding multicasting group G2 by switch A, is directly deleted from multicast routing table by the list item of GE1/0/0 outgoing interface corresponding for multicast group G2.
Thus the multicast message of multicast group G2 can only be sent to vSwitch by the outgoing interface GE2/0/0 of switch A, thus avoid switch b to the multicast message of multicast group G2 repeat send, decrease redundant flow.
Be more than the description to the inventive method embodiment, below the device and system that realize said method be introduced.
See Fig. 5, it is the structural representation of a kind of switch of the embodiment of the present invention.
This switch and a server have annexation, vSwitch and multiple virtual machine is provided with in this server, described virtual machine is by described vSwitch and external network communication, described vSwitch is connected with the multiple switches in external network by multiple interface, described switch is a switch in described multiple switch, and this switch comprises:
Information receiving unit 501, for received described switch by described vSwitch neighbor switch in the Multicast Routing information of each switch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described vSwitch; Wherein, described switch is a switch in described multiple switch, and the neighbor switch of described switch is the switch be connected with described vSwitch except described switch;
Decision package 502, for identical with the multicast address of the Multicast Routing information of at least one switch in the neighbor switch of multicast address corresponding to the outgoing interface that described vSwitch connects and described switch in the multicast routing table of described switch, in the switch be connected with described vSwitch, determine that forwards a switch according to preset rules, and determine the multicast message only being forwarded described multicast address in the switch be connected with described vSwitch by described forwarding switch to described vSwitch.
The embodiment of the present invention achieves the obstruction to the repetition multicast message entering server by said units, reduces the impact of redundant flow on server performance and virtual machine service availability.
In another embodiment of the invention, this switch can also comprise:
Information transmitting unit, for receive each switch in its neighbor switch at described information receiving unit Multicast Routing information before or after, sent the Multicast Routing information of described switch to the neighbor switch of described switch by described vSwitch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described vSwitch.
In another embodiment of the invention, this switch can also comprise:
Identifying unit, for working as before described switch receives the Multicast Routing information of each switch in its neighbor switch, when described information transmitting unit sends the Multicast Routing information of described switch by described vSwitch to the neighbor switch of described switch, then send the Multicast Routing information of described switch in described information transmitting unit before, check the probe messages sent by the neighbor switch of described switch whether receiving described vSwitch and forward;
Described information transmitting unit, specifically for being, when receiving the probe messages sent by the neighbor switch of described switch that described vSwitch forwards, sent the Multicast Routing information of described switch to the neighbor switch of described switch by described vSwitch when the judged result of described identifying unit.
The embodiment of the present invention additionally provides a kind of transmission system of multicast message, as shown in Figure 1, this system comprises server and multiple switch, wherein, vSwitch and multiple virtual machine is provided with in described server, described virtual machine is by described vSwitch and external network communication, and described vSwitch is connected with the described multiple switch in external network by multiple interface;
Described switch, for received described switch by described vSwitch neighbor switch in the Multicast Routing information of each switch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described vSwitch; Wherein, described switch is a switch in described multiple switch, and the neighbor switch of described switch is the switch be connected with described vSwitch except described switch; Identical with the multicast address of the Multicast Routing information of at least one switch in the neighbor switch of multicast address corresponding to the outgoing interface that described vSwitch connects and described switch in the multicast routing table of described switch, in the switch be connected with described vSwitch, determine that forwards a switch according to preset rules, and determine the multicast message only being forwarded described multicast address in the switch be connected with described vSwitch by described forwarding switch to described vSwitch.
In another embodiment, described switch, also for before or after the Multicast Routing information receiving each switch in its neighbor switch, sent the Multicast Routing information of described switch to the neighbor switch of described switch by described vSwitch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described vSwitch.
In another embodiment, described switch, also for working as before the Multicast Routing information receiving each switch in its neighbor switch, when sending the Multicast Routing information of described switch by described vSwitch to the neighbor switch of described switch, send the Multicast Routing information of described switch at described switch before, check the probe messages sent by the neighbor switch of described switch whether receiving described vSwitch and forward, if, described switch sends the Multicast Routing information of described switch again to the neighbor switch of described switch by described vSwitch.
As shown in Figure 6, the embodiment of the present invention additionally provides a kind of switch, comprises pNIC601, processor 602 and memory 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 one or more combination following: application-specific integrated circuit (ASIC) is (English: application-specific integrated circuit, abbreviation: ASIC), field programmable gate array is (English: field-programmable gate array, abbreviation: FPGA), CPLD is (English: complex programmable logic device, abbreviation: CPLD) and network processing unit (English: network processor, abridge: NP).Memory 603 can be that volatile memory is (English: volatile memory), such as random access memory is (English: random-access memory, abbreviation: RAM), or nonvolatile memory is (English: non-volatile memory), such as flash memory is (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid state hard disc (English: solid-state drive, abbreviation: SSD).PNIC601 is for realizing the physical connection of switch-to-server.PNIC601 is connected with processor 602 with memory 603.In Fig. 6, thick line is that bus is (English: bus).
Memory 603, program code stored, and by the program code transfer of storage to processor 602.Switching network chip 604, for receiving and multicast data forwarding message, stores multicast routing table in switching network chip 604.
This switch-to-server is by pNIC501 physical connection, vSwitch and multiple virtual machine is provided with in this server, described virtual machine is by described vSwitch and external network communication, described vSwitch is connected with the multiple switches in external network by multiple interface, the program command that processor 602 stores according to memory 603, perform above-mentioned embodiment illustrated in fig. 3 in operating procedure:
Received the Multicast Routing information of each switch in the neighbor switch of described switch by vSwitch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described vSwitch; Wherein, described switch is a switch in described multiple switch, and the neighbor switch of described switch is the switch be connected with described vSwitch except described switch;
Identical with the multicast address of the Multicast Routing information of at least one switch in the neighbor switch of multicast address corresponding to the outgoing interface that described vSwitch connects and described switch in the multicast routing table of described switch, in the switch be connected with vSwitch, determine one according to preset rules and forward switch, and determine the multicast message only being forwarded described multicast address in the switch be connected with described vSwitch by described forwarding switch to described vSwitch.
After forwarding switch determined by processor 602, if this switch is a switch in other switches in the switch be connected with vSwitch except forwarding switch, then processor 602 can carry out by the multicast routing table arranged in switching network chip 604 multicast message not forwarding described multicast address to described vSwitch.Concrete grammar can be: the multicast routing table entry deletion of the interface identifier of interface that the multicast routing table stored in switching network chip 604 is comprised described multicast address and is connected with described vSwitch by processor 602.
If the Multicast Routing information of some switch follow-up changes, then perform corresponding operating according to the routing iinformation after change.If the multicast routing table item of the interface identifier of interface that the multicast routing table that processor 602 stores in switching network chip 604 comprises described multicast address and is connected with described vSwitch, before Multicast Routing information changes, if processor 602 determines that this switch is a switch in other switches in the switch be connected with vSwitch except forwarding switch, the then processor 602 of this switch multicast routing table item of the interface identifier of interface deleting described multicast address and be connected with described vSwitch in the multicast routing table of switching network chip 604, but in memory 603, preserve the multicast routing table item that this is deleted.After Multicast Routing information changes, if processor 602 determines that this switch becomes forwarding switch, then the multicast routing table item originally deleted can be copied to the multicast routing table of switching network chip 604 from memory 603 by processor 602.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, the indirect coupling of device or unit or communication connection.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part 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, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: flash memory is (English: Flash memory), hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (9)

1. the transmission method of a multicast message, it is characterized in that, virtual switch and multiple virtual machine is provided with in server, described virtual machine is by described virtual switch and external network communication, described virtual switch is connected with the multiple switches in external network by multiple interface, and the transmission method of described multicast message comprises:
First switch receives the Multicast Routing information of each switch in the neighbor switch of described first switch by described virtual switch, and the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described virtual switch; Wherein, described first switch is a switch in described multiple switch, and the neighbor switch of described first switch is the switch be connected with described virtual switch except described first switch;
Identical with the multicast address of the Multicast Routing information of at least one switch in the neighbor switch of multicast address corresponding to the outgoing interface that described virtual switch connects and described first switch in the multicast routing table of described first switch, according to preset rules, described first switch determines that in the switch be connected with described virtual switch forwards a switch, and determine the multicast message only being forwarded described multicast address in the switch be connected with described virtual switch by described forwarding switch to described virtual switch.
2. method according to claim 1, is characterized in that, before or after the Multicast Routing information receiving each switch in its neighbor switch, also comprises at described first switch:
Described first switch sends the Multicast Routing information of described first switch by described virtual switch to the neighbor switch of described first switch, and the Multicast Routing information of described first switch at least comprises the multicast address corresponding to interface that described first switch is connected with described virtual switch.
3. method according to claim 2, it is characterized in that, if receive the Multicast Routing information of each switch in its neighbor switch at described first switch before, described first switch is by the Multicast Routing information of described virtual switch to described first switch of neighbor switch transmission of described first switch, then before described first switch sends the Multicast Routing information of described first switch, also comprise:
Described first switch checks the probe messages sent by the neighbor switch of described first switch whether receiving described virtual switch and forward, if so, described first switch is again by the Multicast Routing information of described virtual switch to described first switch of neighbor switch transmission of described first switch.
4. a switch, it is characterized in that, virtual switch and multiple virtual machine is provided with in server, described virtual machine is by described virtual switch and external network communication, described virtual switch is connected with the multiple switches in external network by multiple interface, described switch is a switch in described multiple switch, and described switch comprises:
Information receiving unit, for received described switch by described virtual switch neighbor switch in the Multicast Routing information of each switch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described virtual switch; Wherein, described switch is a switch in described multiple switch, and the neighbor switch of described switch is the switch be connected with described virtual switch except described switch;
Decision package, for identical with the multicast address of the Multicast Routing information of at least one switch in the neighbor switch of multicast address corresponding to the outgoing interface that described virtual switch connects and described switch in the multicast routing table of described switch, in the switch be connected with described virtual switch, determine that forwards a switch according to preset rules, and determine the multicast message only being forwarded described multicast address in the switch be connected with described virtual switch by described forwarding switch to described virtual switch.
5. switch according to claim 4, is characterized in that, also comprises:
Information transmitting unit, for receive each switch in its neighbor switch at described information receiving unit Multicast Routing information before or after, sent the Multicast Routing information of described switch to the neighbor switch of described switch by described virtual switch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described virtual switch.
6. switch according to claim 5, is characterized in that, also comprises:
Identifying unit, for working as before described switch receives the Multicast Routing information of each switch in its neighbor switch, when described information transmitting unit sends the Multicast Routing information of described switch by described virtual switch to the neighbor switch of described switch, then send the Multicast Routing information of described switch in described information transmitting unit before, check the probe messages sent by the neighbor switch of described switch whether receiving described virtual switch and forward;
Described information transmitting unit, specifically for being, when receiving the probe messages sent by the neighbor switch of described switch that described virtual switch forwards, sent the Multicast Routing information of described switch to the neighbor switch of described switch by described virtual switch when the judged result of described identifying unit.
7. the transmission system of a multicast message, it is characterized in that, comprise server and multiple switch, wherein, virtual switch and multiple virtual machine is provided with in described server, described virtual machine is by described virtual switch and external network communication, and described virtual switch is connected with the described multiple switch in external network by multiple interface;
Described switch, for received described switch by described virtual switch neighbor switch in the Multicast Routing information of each switch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described virtual switch; Wherein, described switch is a switch in described multiple switch, and the neighbor switch of described switch is the switch be connected with described virtual switch except described switch; Identical with the multicast address of the Multicast Routing information of at least one switch in the neighbor switch of multicast address corresponding to the outgoing interface that described virtual switch connects and described switch in the multicast routing table of described switch, in the switch be connected with described virtual switch, determine that forwards a switch according to preset rules, and determine the multicast message only being forwarded described multicast address in the switch be connected with described virtual switch by described forwarding switch to described virtual switch.
8. system according to claim 7, is characterized in that,
Described switch, also for before or after the Multicast Routing information receiving each switch in its neighbor switch, sent the Multicast Routing information of described switch to the neighbor switch of described switch by described virtual switch, the Multicast Routing information of described switch at least comprises the multicast address corresponding to interface that described switch is connected with described virtual switch.
9. system according to claim 8, is characterized in that,
Described switch, also for working as before the Multicast Routing information receiving each switch in its neighbor switch, when sending the Multicast Routing information of described switch by described virtual switch to the neighbor switch of described switch, send the Multicast Routing information of described switch at described switch before, check the probe messages sent by the neighbor switch of described switch whether receiving described virtual switch and forward, if, described switch sends the Multicast Routing information of described switch again to the neighbor switch of described switch by described virtual switch.
CN201310335364.0A 2013-08-02 2013-08-02 The transmission method and interchanger of a kind of multicast message Active CN104348737B (en)

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 true CN104348737A (en) 2015-02-11
CN104348737B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399973A (en) * 2019-01-03 2020-07-10 阿里巴巴集团控股有限公司 FPGA remote mounting structure, network control method and device and electronic equipment
CN111600800A (en) * 2020-04-01 2020-08-28 武汉迈威通信股份有限公司 Method and equipment for discovering cross-network-segment topology
CN115242708A (en) * 2022-07-21 2022-10-25 迈普通信技术股份有限公司 Multicast table item processing method and device, electronic equipment and storage medium
CN116033365A (en) * 2023-03-22 2023-04-28 新华三技术有限公司 Communication method, device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
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
US20100290473A1 (en) * 2009-05-15 2010-11-18 Cisco Technology, Inc. Port grouping for association with virtual interfaces

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
US20100290473A1 (en) * 2009-05-15 2010-11-18 Cisco Technology, Inc. Port grouping for association with virtual interfaces
CN101841485A (en) * 2010-05-28 2010-09-22 华为技术有限公司 Method and relevant device for sharing multicast traffic

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399973A (en) * 2019-01-03 2020-07-10 阿里巴巴集团控股有限公司 FPGA remote mounting structure, network control method and device and electronic equipment
CN111399973B (en) * 2019-01-03 2023-07-28 阿里巴巴集团控股有限公司 FPGA remote mounting structure, network management and control method and device and electronic equipment
CN111600800A (en) * 2020-04-01 2020-08-28 武汉迈威通信股份有限公司 Method and equipment for discovering cross-network-segment topology
CN115242708A (en) * 2022-07-21 2022-10-25 迈普通信技术股份有限公司 Multicast table item processing method and device, electronic equipment and storage medium
CN115242708B (en) * 2022-07-21 2023-10-20 迈普通信技术股份有限公司 Multicast table item processing method and device, electronic equipment and storage medium
CN116033365A (en) * 2023-03-22 2023-04-28 新华三技术有限公司 Communication method, device, electronic equipment and storage medium
CN116033365B (en) * 2023-03-22 2023-06-20 新华三技术有限公司 Communication method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104348737B (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN110417569B (en) Network link fault processing method and tunnel endpoint equipment
US8958285B2 (en) Network disruption prevention when virtual chassis system undergoes splits and merges
US9876698B2 (en) Interconnect congestion control in a storage grid
CN102761479B (en) Link selecting method and device
US11818038B2 (en) Initiator-based data-plane validation for segment routed, multiprotocol label switched (MPLS) networks
CN110275680B (en) Double-control double-active storage system
CN104065553B (en) Virtual network moving method and relevant device
EP2880550B1 (en) Connection mesh in mirroring asymmetric clustered multiprocessor systems
WO2014128859A1 (en) Switch and program
CN109600326B (en) Method, node and system for forwarding data or message
WO2016153506A1 (en) Fast failover recovery in software defined networks
US20190280968A1 (en) Multicasting system
CN109167700B (en) Detection method and device for Segment Routing (SR) tunnel
CN104348737A (en) Multicast message transmission method and switches
CN110995602A (en) System and method for load balancing multicast traffic
CN107547283A (en) The management method and device of distributed aggregation group
CN109952809B (en) Quaternary full mesh dimension driven network architecture
CN113489640A (en) Message forwarding method, device and gateway system
CN114640553A (en) Message processing method and device
WO2016177180A1 (en) Method and device for reporting openflow switch capability
CN104010018A (en) Method and device for synchronizing multicast groups
US9906435B2 (en) Method and apparatus for determining intermediate routing node and system
CN109981437B (en) Multi-data center intercommunication method based on VPC and related equipment
CN112187635B (en) Message forwarding method and device
US10666553B2 (en) Method for quick reconfiguration of routing in the event of a fault in a port of a switch

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