CN100442776C - Method for realizing multicast translation in three-layer switching unit - Google Patents

Method for realizing multicast translation in three-layer switching unit Download PDF

Info

Publication number
CN100442776C
CN100442776C CNB2005101276490A CN200510127649A CN100442776C CN 100442776 C CN100442776 C CN 100442776C CN B2005101276490 A CNB2005101276490 A CN B2005101276490A CN 200510127649 A CN200510127649 A CN 200510127649A CN 100442776 C CN100442776 C CN 100442776C
Authority
CN
China
Prior art keywords
port
multicast
interface
igmp
tier switch
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
Application number
CNB2005101276490A
Other languages
Chinese (zh)
Other versions
CN1777149A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CNB2005101276490A priority Critical patent/CN100442776C/en
Publication of CN1777149A publication Critical patent/CN1777149A/en
Application granted granted Critical
Publication of CN100442776C publication Critical patent/CN100442776C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a method for achieving multicast forwarding in a three-layer exchanger. The present invention is characterized in that when the three-layer exchanger receives Internet group management protocol IGMP member relationship report messages sent out by a host machine which is connected with the three-layer exchanger, the attribute of a port which receives the messages is checked; if the port is not the port which is connected with a specified router of an interface network segment to which the port belongs, after the three-layer exchanger receives multicast data flows of a lower multicast group of the port, the multicast data flows are directly forwarded to the host machine through the port. The present invention can effectively economize bandwidth consumption and raise the forwarding efficiency of multicast flows.

Description

On three-tier switch, realize the method for multicast forwarding
Technical field
The present invention relates to network communications technology field, be specifically related to a kind of method that on three-tier switch, realizes multicast forwarding.
Background technology
Universal day by day along with rapid development of network and network application, on Internet (internet), multimedia service such as: Streaming Media, video conference and video request program etc. are becoming the important component part that information transmits.The mode of unicast of point-to-point transmission can not adapt to the professional transmission characteristic of this class, be that single-point sends the multiple spot reception, because being necessary for each recipient, server provides the IP of an identical content (Internet Protocol) message copy, also repeatedly transmit the message of identical content simultaneously on the network, taken ample resources.Though IP broadcast allows a main frame that an IP message is sent to the All hosts of same network, owing to not every main frame all needs these messages, thereby has wasted Internet resources.Multicast arises at the historic moment in this case, and its appearance has solved a main frame sends method from message to specific a plurality of recipients.
The IP multicast is meant the transmission of an IP message to one " host groups ", and this host groups that comprises zero or a plurality of main frames is by an independent IP address designation.The host groups address is also referred to as " multicast address ", perhaps D class address.The forwarding on the internet of IP multicastapackets is handled by the router of supporting multicast.The IP multicastapackets that main frame sends is received by the All hosts group membership in this subnet, can be forwarded to multicast message on all networks that comprise this host groups member with the multicast router that this subnet directly links to each other simultaneously.Multicast transmission can realize in data link layer (second layer) and network layer (the 3rd layer).The IP multicasting technology has solved the problem that single-point transmission multiple spot receives, multiple spot sends the multiple spot reception effectively, has realized the efficient data transmission of IP network mid point to multiple spot, effectively conserve network bandwidth, reduction offered load.
Along with developing rapidly of multicast service, require the network equipment also to want to support multicast functionality, present three-tier switch not only can be supported IGMP (IGMP), and can support PIM-SM/DM (Protocol Independent Multicast-sparse mode/dense mode), DVMRP multicast routing protocols such as (distance vector multicast routing protocols), make three-tier switch both can be deployed in the edge of network, the support of multicast service can be provided in convergence-level or core layer again.
Three-tier switch is a kind of equipment that has three layers of forwarding and two layers of function of exchange concurrently.The message that three layers of forwarding is used between VLAN (VLAN) interface is transmitted, and the message that two layers of exchange is used between the VLAN internal port is transmitted.
For example, in the typical multicast networking shown in Figure 1, router Rtr is DR (Designated Router), be responsible for to initiate the adding action of PIM agreement, usually by that router of IP address maximum in the network segment as Designated Router.Main frame S1 inserts the networking network by three-tier switch L3Sw, and port port1 and the port2 of three-tier switch L3Sw belong to vlan30.
When main frame S1 wants to add some multicast group, send IGMP member relation report message, this message is handed over switch L3Sw to receive by three layers, can be forwarded to port2 from two layers of port1 through the vlan30 of L3Sw simultaneously and be routed device Rtr reception; Because this moment, router Rtr was DR, thus according to the regulation of PIM agreement, can be responsible for initiating PIM as the router of DR and add, so when three layers hand over the multicast message that switch L3Sw receive multicast source S0 transmission after, following two kinds of situations can appear:
1, when the IP address of vlanif40 place logical links is bigger than the IP address of vlanif30 place logical links, router Rtr can send PIM from vlanif40 and join message, so the multicast path that an outgoing interface will to occur on three-tier switch L3Sw be vlanif40 is by forwarding-table item, multicast data flow can be earlier through L3Sw through link vlanif40 to Rtr, Rtr is transmitted to L3Sw with it from vlanif30 again, vlan30 through L3Sw is forwarded to port1 for two layers from port2 then, thereby passes to main frame.
2, when the IP address of vlanif40 place logical links than the IP address of vlanif30 place logical links hour, router Rtr can send PIM from vlanf30 and join message, so the multicast path that an outgoing interface will to occur on three-tier switch L3Sw be vlanif30 is by forwarding-table item, multicast data flow can be transmitted by two ports in vlan30, portion is transmitted to Rtr, and another part is transmitted to main frame.
As seen, under the general networking situation of this class: promptly main frame inserts the networking network by three-tier switch, and by this three-tier switch one has three layer interfaces and comprises the vlan of a plurality of ports and many three-layer equipments (comprising this three-tier switch) when being connected in a shared network, multicast data flow is responsible for receiving and past descending forwarding from uplink network by this three-tier switch, but the DR of this shared network is not this three-tier switch.After three-tier switch is received multicast data flow, multicast data flow need return to be transmitted to the own main frame that is connected from two layers again around a circle from other multicast routers, except being transmitted to the own main frame that is connected, also to sending a unnecessary multicast diffluence and impact other multicast routers.This dual mode all can cause the waste to the network bandwidth.
Summary of the invention
The purpose of this invention is to provide a kind of method that on three-tier switch, realizes multicast forwarding,, save bandwidth consumption effectively, improve the multicast data flow forward efficiency to overcome the shortcoming that can cause the network bandwidth waste when three-tier switch is transmitted multicast data flow in the prior art.
For this reason, the invention provides following technical scheme:
A kind of method that realizes multicast forwarding on three-tier switch may further comprise the steps:
A, when three-tier switch is received IGMP IGMP member relation report message, check the port attribute receive this message;
If this port of B is not the port that connects Designated Router on its affiliated interface network segment, then after three-tier switch is received the multicast traffic stream of multicast group under this port, multicast traffic stream is directly forwarded by this port.
Preferably, described method further comprises:
If the described port of C is not the port that connects Designated Router on its affiliated interface network segment, then three-tier switch forbids transmitting the IGMP member relation report message and the IGMP leave message of multicast group under this port.
Preferably, described method further comprises:
If the described port of D is not the port that connects Designated Router on its affiliated interface network segment, then three-tier switch sends the IGMP leave message of multicast group under a corresponding described port respectively to each port that connects three-layer equipment.
Preferably, described method also comprises:
E, when three-tier switch is received IGMP leave message, check the port attribute receive this message;
If this port of F is not the port that connects Designated Router on its affiliated interface network segment, then send at least one IGMP designated groups query message to this port.
Described step B comprises:
B1, obtain interface under the port of receiving IGMP member relation report message according to port arrangement relation;
B2, when described interface is the reverse path of the multicast forwarding list item of its corresponding multicast group when transmitting the RPF interface, the multicast traffic stream of multicast group is done two layers of forwarding under the described port that three-tier switch will be received in going into virtual LAN VLAN;
B3 otherwise, the outgoing interface of described interface as the multicast forwarding list item of its corresponding multicast group joined in the multicast forward table, the multicast traffic stream of multicast group carries out three layers of forwarding according to this multicast forward table under the described port that three-tier switch will be received.
Alternatively, before described steps A, also comprise:
In the multicast group table that three-tier switch is preserved, increase the interface attributes field.
Between described step B1 and step B2, also comprise:
If this port is not the port that connects Designated Router on its affiliated interface network segment, then in described multicast group table, increase in the corresponding list item, its interface attributes is extended this as " non-designated routers connects the IGMP interface ";
If this port is the port that connects Designated Router on its affiliated interface network segment, then in described multicast group table, increase in the corresponding list item, its interface attributes is extended this as " Designated Router connects the IGMP interface ".
Preferably, described method further comprises:
If the G three-tier switch is not received the IGMP member relation report message of multicast group under this port in the given time, then delete the corresponding list item in the described multicast group table.
A kind of method that realizes multicast forwarding on three-tier switch may further comprise the steps:
I. in the multicast group table that three-tier switch is preserved, interface attributes is set;
II. when three-tier switch is received IGMP IGMP member relation report message, check the attribute of the port of receiving this message;
If III. this port is not the port that connects Designated Router on its affiliated interface network segment, then after three-tier switch is received the multicast traffic stream of multicast group under this port, multicast traffic stream is directly forwarded by this port.
Interface attributes is provided with according to following standard in described step I:
If this port is not the port that connects Designated Router on its affiliated interface network segment, its interface attributes is " non-designated routers connects the IGMP interface ";
If this port is the port that connects Designated Router on its affiliated interface network segment, its interface attributes is " Designated Router connects the IGMP interface ".
By above technical scheme provided by the invention as can be seen, when the present invention receives the report of IGMP member relation at three-tier switch, receive that by inspection the port attribute of this message decides the pass-through mode of the multicast traffic stream of multicast group under this port.If this port is not to connect under it port of DR (Designated Router) on interface network segment, receive the multicast traffic stream of multicast group under this port when three-tier switch after, by this port multicast traffic stream is directly forwarded; Otherwise, can transmit according to existing pass-through mode.By this pass-through mode, avoided the detour process of other multicast routers of multicast data flow effectively, and the unnecessary multicast data flow that other multicast routers cause impacted, saved network bandwidth consumption, improved forward efficiency, and need not the existing standard agreement is made any modification, can not bring compatibility issue.
Description of drawings
Fig. 1 is a multicast networking schematic diagram;
Fig. 2 is the first embodiment realization flow figure of the inventive method;
Fig. 3 is IGMP report and query message schematic diagram;
Fig. 4 is the second embodiment realization flow figure of the inventive method.
Embodiment
Core of the present invention is when three-tier switch is received the report of IGMP member relation, receives that by inspection the port attribute of this message decides the pass-through mode of the multicast traffic stream of multicast group under this port.If this port is not to connect under it port of DR (Designated Router) on interface network segment, receive the multicast traffic stream of multicast group under this port when three-tier switch after, by this port multicast traffic stream directly is transmitted to main frame; Otherwise, can transmit according to existing pass-through mode.During specific implementation, can in the multicast group table that three-tier switch is preserved, increase the interface attributes field, utilize this field to indicate that three-tier switch receives that IGMP member reports that on the interface network segment that concerns report message be not DR, and this IGMP member relation report is not from the port that connects DR.After three-tier switch is received multicast data flow, for interface with this interface attributes, when this interface is the RPF interface of the corresponding multicast forwarding list item of organizing, then directly multicast data flow is done two layers of forwarding in the RPF interface, when this interface is not the RPF interface of the corresponding multicast forwarding list item of organizing, then, multicast data flow is directly sent to this interface by three layers of forwarding with the outgoing interface of this interface as the multicast forwarding list item.
The present technique field personnel know, the corresponding IP network section of each VLAN on two layers, is isolated between the VLAN, and the visit between the different IP network segment will be crossed over VLAN, use routing function between the VLAN that three layers of forwarding engine provide.The operation principle of three-tier switch is: suppose that two are used website A, the B of IP agreement to communicate by layer-3 switch, the A of dispatching station is when beginning to send, the IP address at IP address of oneself and B station relatively, judge B station whether with own in same subnet, if point of destination B and the A of dispatching station are in same subnet, then carry out two layers forwarding, if two websites are not in same subnet, will communicate by letter with point of destination B as the A of dispatching station, the A of dispatching station will send ARP (address resolution) package to three layers of Switching Module of three-tier switch.When the A of dispatching station broadcasts out an ARP request to the IP address of three layers of Switching Module, if known the MAC Address at B station in the former communication process of three layers of Switching Module, then reply the MAC Address of B to the A of dispatching station, otherwise three layers of Switching Module are asked to ARP of B station broadcasting according to routing iinformation, the B station obtains this ARP request back and replys its MAC Address to three layers of Switching Module, three layers of Switching Module are preserved this address and are replied to the A of dispatching station, and the MAC Address with the B station sends in the mac address table of two layers of switching engine simultaneously.From now on, the packet that A sends to B is just all given two layers of exchange and is handled, and information is able to exchange at a high speed.Be a so-called routing, repeatedly exchange.
One three layer interface of a three-tier switch may comprise a plurality of ports, because the corresponding IP network section of each VLAN, so has a plurality of ports in these ports and belongs to same VLAN.
Just because of this, so when three-tier switch is not DR in the multicast networking, if unnecessary bandwidth consumption can occur when flowing to coupled main frame, and can produce unnecessary multicast data flow impact to other multicast routers by this three-tier switch forwarding multicasting.For fear of this situation, in the present invention, allow three-tier switch receive multicast data flow after, directly be transmitted to the own main frame that is connected, and do not send unnecessary multicast data flow diffluence and impact other routers.
In order to make those skilled in the art person understand the present invention program better, the present invention is described in further detail below in conjunction with drawings and embodiments.
With reference to Fig. 2, Fig. 2 shows the realization flow of the inventive method, may further comprise the steps:
Step 201: after three-tier switch receives IGMP (IGMP) member relation report message, check and write down the port attribute of receiving this message.
Multicast protocol is divided into group membership between main frame-router and concerns multicast routing protocol between agreement and the router-Router.The group membership concerns that agreement comprises IGMP (Internet igmpinternet).Multicast routing protocol is divided into multicast routing protocol and multicast between fields Routing Protocol in the territory.Multicast routing protocol comprises PIM-SM (Protocol Independent Multicast-sparse mode), PIM-DM (Protocol Independent Multicast-dense mode), DVMRP agreements such as (distance vector multicast routing protocols) in the territory, and the multicast between fields Routing Protocol comprises MBGP (multicast protocol Border Gateway Protocol), MSDP agreements such as (Multicast Source Discovery Protocols).
Wherein IGMP is responsible for setting up and safeguarding group membership's relation information of the router direct connection network segment.Multicast routing protocol is used certain multicast routing algorithm structure multicast distribution tree to carry out multicast packet and is transmitted according to these multicast member relation informations that IGMP safeguards in the territory.The multicast between fields Routing Protocol is issued routing iinformation and the information about multicast source with multicast-capable between each autonomous territory, so that multicast packet is transmitted between the territory.
Multicast router uses the IGMP message to write down to link to each other with this router the situation of change of group membership in the network.Service regeulations are as follows:
1) when first process adds a group, for IGMP member relation report message of main frame transmission of IGMP v1.If a plurality of processes of a main frame add same group, only send an IGMP member relation report message.This report is sent on the same interface at process adding group place.Main frame for IGMPv2 can send IGMP leave message.
When 2) process was left a group, main frame did not send IGMP member relation report message, even if last process in the group is left.Main frame know in the group of determining, no longer included the group membership after, in the igmp querying of receiving subsequently, just no longer send report message.
3) whether multicast router can send IGMP group-specific query message and understand and also have any main frame to include the process that belongs to multicast group after receiving IGMP leave message.Multicast router must send an IGMP group-specific query message to each interface.Because router wishes that main frame all beams back a report to each multicast group that its adds, so the group address in the IGMP group-specific query message is set to this multicast group address.
4) main frame responds an igmp querying by sending IGMP member relation report message, all will beam back IGMP member relation report message to each group that at least also comprises a process.
Use these inquiries and report message, multicast router keeps a table to each interface, at least also comprises the multicast group of a main frame in the table on the record interface.When router was received the multicast traffic stream that will transmit, it only was forwarded to this data flow and has on the interface that belongs to that group main frame.
Fig. 3 shows two IGMP messages, and one is the member relation report message that main frame sends, and another is the group-specific query message that router sends.This router requires each multicast group of each its adding of main frame explanation on that interface.
When main frame passes through three-tier switch incoming multicast group network, send IGMP member relation report message to three-tier switch, and this three-tier switch is not DR (Designated Router) on the interface network segment of receiving IGMP member relation report message.If processing according to prior art, then three-tier switch does not need to check that whether this message is from the port that connects DR, but directly transmit the IGMP member relation report message of receiving to DR, sending PIM by DR to three-tier switch joins message, three-tier switch is according to receiving that the interface that PIM joins message sets up multicast path by forwarding-table item, after three-tier switch is received multicast data flow, carry out the forwarding of multicast data flow according to the multicast routing table item of setting up.And in the methods of the invention, impact for fear of producing unnecessary multicast data flow to the waste of the network bandwidth and to other multicast routers, when three-tier switch is received IGMP member relation report message, check the port attribute of receiving this message.Whether transmit the IGMP member relation report message of receiving according to the attribute decision of this port then to DR, and set up corresponding multicast path by forwarding-table item, after making three-tier switch receive corresponding multicast data flow, directly forward, and can not send unnecessary multicast diffluence and impact other routers.
Step 202: judge whether this port is the port that connects Designated Router on its affiliated interface network segment.
If then enter step 203: receive the multicast traffic stream of multicast group under this port when three-tier switch after, carry out normal forwarding process.Then, enter step 205.
Such as, can set up an interface attributes tabulation, in this table, comprise information such as port numbers, port attribute.When three-tier switch is received IGMP member relation report message, port attribute information is filled up in this list item according to check result.When three-tier switch is received multicast data flow, according to this port attribute with and the multicast group table of preserving, the information in the multicast forwarding list item, set up corresponding forwarding-table item (may be two layers of forwarding, also may be three layers of forwarding), finish the forwarding of multicast traffic stream.
Otherwise, enter step 204: receive the multicast traffic stream of multicast group under this port when three-tier switch after, multicast traffic stream is directly forwarded by this port.
According to existing protocol, three-tier switch need be transmitted to DR again with it after receiving the IGMP member relation report message of main frame transmission.
Receiving the port of IGMP member relation report message when three-tier switch is not when connecting under it on interface network segment the port of Designated Router, receive this IGMP member relation report message again in order to prevent other routers, then three-tier switch need be tackled the IGMP member relation report message and the IGMP leave message of its corresponding multicast group, that is to say, after three-tier switch is received the IGMP member relation report message and IGMP leave message that this port is sent, no longer these messages are carried out two layers of forwarding.Simultaneously, because there has been IGMP member relation report message to be transmitted to other three-layer equipments, also need to send the IGMP leave message of a corresponding multicast group toward the port that connects three-layer equipment through two layers.Connect three-layer equipment if any a plurality of ports, then each port all needs to send the IGMP leave message of a corresponding multicast group.
Step 205: when three-tier switch receives IGMP leave message, the port attribute of this message of inspection record.
Step 206: judge whether this port is the port that connects Designated Router on its affiliated interface network segment.
If then enter step 207: carry out normal forwarding process.Usually, be responsible for the forwarding of multicast traffic stream by DR.
Otherwise, enter step 208: send at least one IGMP designated groups query message to this port.
Step 209: if do not receive the IGMP member relation report message of multicast group under this port in the given time, then this port of deletion record and corresponding attribute information thereof; Otherwise, do not delete this port and corresponding attribute information.
Usually, preserve the multicast group table in three-tier switch, in this table, three-tier switch is recorded in the multicast group in the IGMP member relation report message of receiving under the port of certain VLAN, to show this port whether necessity of transmitting certain multicast group is arranged.
In the multicast group table, comprise under port numbers in the VLANif interface (VLAN three layer interfaces), this VLAN, this port information such as multicast group.
In the present invention, can be the IGMP-NonDR interface with the interface definition that meets the following conditions also:
If three-tier switch is not DR on the interface network segment of receiving IGMP member relation report message, and this IGMP member relation report message is not from the port that connects DR.Then the VLANif interface under this port is the IGMP-NonDR interface.
In the multicast group table, increase IGMP-NonDR interface attributes field.When three-tier switch when interface is received IGMP member relation report message from main frame, judge at first whether this interface satisfies the condition of IGMP-NonDR interface, if do not satisfy, then in the multicast group table, add in the corresponding list item, IGMP-NonDR interface attributes field is extended this as "No"; If satisfy, then in the multicast group table, add in the corresponding list item, IGMP-NonDR interface attributes field is extended this as "Yes".
Receive the multicast traffic stream of multicast group under this port when three-tier switch after, according to the pass-through mode of the decision of the IGMP-NonDR interface attributes in the corresponding list item in the multicast group table to multicast traffic stream.
With reference to Fig. 4, Fig. 4 shows the realization flow of second embodiment of the inventive method, may further comprise the steps:
Step 401: in the multicast group table, increase the IGMP-NonDR interface attributes.
For example, shown in the following table 1:
Table 1:
The vlanif interface The IGMP-NonDR interface attributes Port numbers in this vlan Multicast group under this port
30 Be Port1 225.1.1.1
... ... ... ...
In this table, this interface of vlanif30 belongs to the IGMP-NonDR interface, and this multicast group of 225.1.1.1 is arranged under the port port1 of vlan.Illustrate that main frame that this port connects once sent the member relation report of 225.1.1.1.
Step 402: after three-tier switch is received IGMP member relation report message, in the multicast group table, add corresponding list item, and check to receive the port of IGMP member relation report message, fill in IGMP-NonDR interface attributes in the multicast group list item according to check result.
For example, in the networking mode shown in Figure 1, L3Sw receives the IGMP member relation report message of 226.1.1.1 multicast group from the port port2 of interface vlanif30, but port2 is connecting DR, so this interface does not satisfy the condition of IGMP-NonDR interface, then in the multicast group table, add list item:
The vlanif interface The IGMP-NonDR interface attributes Port numbers in this vlan Multicast group under this port
30 Not Port2 226.1.1.1
Three-tier switch is received the IGMP member relation report message of multicast group 224.1.1.1 from the port port1 of interface vlanif30, because port1 does not connect DR, so vlanif30 satisfies the condition of IGMP-NonDR interface.It is as follows then to add list item in the multicast group table:
The vlanif interface The IGMP-NonDR interface attributes Port numbers in this vlan Multicast group under this port
30 Be Port1 224.1.1.1
Step 403: when the IGMP-NonDR interface attributes in the multicast group table did not satisfy the IGMP-NonDR interface condition, three-tier switch was transmitted after receiving the multicast data flow of multicast group under this port normally.
Step 404: when the IGMP-NonDR interface attributes in the multicast group table satisfies the IGMP-NonDR interface condition, check whether this interface is RPF (reverse path forwarding) interface of the multicast forwarding list item of corresponding group.
The present technique field personnel know, in three-tier switch, in order correctly multicast traffic stream to be transmitted, need set up corresponding multicast forwarding list item, and this list item generally includes: information such as multicast data flow source address, group address, RPF interface, outgoing interface.
RPF is the basis of transmitting multicast data process in the multicast routing protocol, its working mechanism is when multicast information passes through active tree, the multicast source address of the multicast packet that the multicast router inspection arrives, with determine this multicast packet the interface of process whether in active branch, if, then rpf check success, multicast packet is forwarded; If the rpf check failure then abandons this multicast packet.Wherein, the RPF interface is equivalent to the incoming interface of multicast routing table item.After three-tier switch is received multicast traffic stream, search corresponding list item, multicast traffic stream is forwarded to by three layers receives under the outgoing interface in the port that IGMP joins message.
If this interface is the RPF interface of the multicast forwarding list item of corresponding group, then enter step 405: multicast traffic stream is done two layers of forwarding in going into VLAN.
If this interface is not the RPF interface of the multicast forwarding list item of corresponding group, then enter step 406: with the outgoing interface of this interface as the multicast forwarding list item.When carrying out the multicast traffic stream forwarding, according to the multicast group table it is forwarded in the port of receiving IGMP member relation report message under this outgoing interface again.
Equally, for IGMP member relation report message and IGMP leave message,, need three-tier switch no longer these messages to be carried out two layers of forwarding in order to guarantee no longer to allow other routers receive these messages from the IGMP-NonDR interface.
Be step 407: tackle the IGMP member relation report message and the IGMP leave message of this multicast group, simultaneously, send the IGMP leave message of a corresponding multicast group toward the port that connects three-layer equipment.
For example, this interface just is that (for example, the RPF interface of (1.1.1.1,224.1.1.1)) then joins port port1 in the port list of two-layer retransmitting table item of vlan30, and this moment, multicast data flow was forwarded to port1 from port2 for the multicast forwarding list item of corresponding group; If this interface is not the RPF interface, then with it as the multicast forwarding list item of correspondence group (1.1.1.1 for example, 224.1.1.1) outgoing interface add, multicast data flow will directly be transmitted to main frame by the port port1 of vlan30 like this, and can not duplicate forwarding by other ports.Tackle IGMP member relation report message simultaneously, these messages can not forwarded from port2 from the 224.1.1.1 of main frame; In addition, need to send the IGMP leave message of multicast group 224.1.1.1 toward port2.
Step 408: when three-tier switch is received IGMP leave message, search the multicast group table.
Step 409: judge whether the group that main frame will leave is present under the corresponding port of corresponding interface in the multicast group table.
If there is no, then enter step 410: do not handle.
If exist, then enter step 411: judge further whether this VLAN interface attribute is IGMP-NonDR.
If not, then enter step 412: handle according to existing normal flow.Usually, be responsible for transmitting IGMP leave message by DR to other routers.
If then enter step 413: send a plurality of IGMP designated groups query messages to this port, need add this multicast group whether to also have main frame in the network of inquiring about this port connection.
Step 414: the wait scheduled time is confiscated the IGMP member relation report message under this multicast group, the corresponding list item of deletion from the multicast group table.
For example: three-tier switch is received the IGMP leave message of 224.1.1.1 from the port port1 of vlan30, need to send several IGMP designated groups query messages toward port port1, confiscate the IGMP member relation report message of 224.1.1.1 within a certain period of time, then this list item is deleted from the multicast group table.If receive, then keep this list item.
As seen, utilize the present invention, in the network shown in fig. 1, three-tier switch can be controlled multicast data flow and directly be forwarded on the coupled main frame.
Below with reference to network shown in Figure 1, further specify difference with the prior art of the present invention.
If have a multicast forwarding list item (1.1.1.1,224.1.1.1), its incoming interface is vlanif10, this moment, L3Sw received IGMP member relation report (224.1.1.1) from main frame from the port port1 of vlan30.
Use existing technology, because Rtr is DR, so need be responsible for forwarding multicasting stream by DR, the report of IGMP member relation is forwarded to port2 for two layers from port1, after Rtr receives the report of IGMP member relation, send PIM to L3Sw and join message, so the problem that above-mentioned prior art exists will occur:
If the network segment address of a vlanif40 is bigger than the address of vlanif30, then send PIM joins message from the vlanif40 interface toward L3Sw, LWSw then joins the multicast forwarding list item with vlanif40 as outgoing interface, and (1.1.1.1 goes in outgoing interface tabulation 224.1.1.1).So L3Sw is transmitted to Rtr with multicast data flow from vlanif40, Rtr is transmitted to L3Sw with multicast data flow from vlanif30 again, is transmitted to port1 for two layers from the port2 of the vlan30 of L3Sw.
If the network segment address of b vlanif30 is bigger than the address of vlanif40, then send PIM joins message from the vlanif30 interface toward L3Sw, LWSw then joins the multicast forwarding list item with vlanif30 as outgoing interface, and (1.1.1.1 goes in outgoing interface tabulation 224.1.1.1).So L3Sw is transmitted to Rtr with multicast data flow from the port port2 of vlanif30, also can be transmitted to main frame from the port1 of vlan30.
Utilize the present invention program, L3Sw finds that vlanif30 is the IGMP-NonDR interface, so tackled the report of IGMP member relation, oneself directly joins the multicast forwarding list item as outgoing interface, and (1.1.1.1 goes in outgoing interface tabulation 224.1.1.1).So L3Sw is transmitted to main frame with multicast data flow from the port port1 of vlanif30.Rtr then can not receive unnecessary multicast data flow.
Processing for message among the present invention is identical with standard agreement, therefore also can not bring compatibility issue, can conveniently realize.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.

Claims (10)

1, a kind of method that realizes multicast forwarding on three-tier switch is characterized in that, may further comprise the steps:
A, when three-tier switch is received IGMP IGMP member relation report message, check the port attribute receive this message;
If this port of B is not the port that connects Designated Router on its affiliated interface network segment, then after three-tier switch is received the multicast traffic stream of multicast group under this port, multicast traffic stream is directly forwarded by this port.
2, method according to claim 1 is characterized in that, described method further comprises:
If the described port of C is not the port that connects Designated Router on its affiliated interface network segment, then three-tier switch forbids transmitting the IGMP member relation report message and the IGMP leave message of multicast group under this port.
3, method according to claim 2 is characterized in that, described method further comprises:
If the described port of D is not the port that connects Designated Router on its affiliated interface network segment, then three-tier switch sends the IGMP leave message that a correspondence is received multicast group under the port of IGMP member relation report message respectively to each port that connects three-layer equipment.
4, method according to claim 1 is characterized in that, described method also comprises:
E, when three-tier switch is received IGMP leave message, check the port attribute receive this message;
If this port of F is not the port that connects Designated Router on its affiliated interface network segment, then send at least one IGMP designated groups query message to this port.
5, according to each described method of claim 1 to 4, it is characterized in that described step B comprises:
B1, obtain interface under the port of receiving IGMP member relation report message according to port arrangement relation;
B2, when described interface is the reverse path of the multicast forwarding list item of its corresponding multicast group when transmitting the RPF interface, the multicast traffic stream of multicast group is done two layers of forwarding under the described port that three-tier switch will be received in going into virtual LAN VLAN;
B3 otherwise, the outgoing interface of described interface as the multicast forwarding list item of its corresponding multicast group joined in the multicast forward table, the multicast traffic stream of multicast group carries out three layers of forwarding according to this multicast forward table under the described port that three-tier switch will be received.
6, method according to claim 5 is characterized in that, also comprises before described steps A:
In the multicast group table that three-tier switch is preserved, increase the interface attributes field.
7, method according to claim 6 is characterized in that, also comprises between described step B1 and step B2:
If this port is not the port that connects Designated Router on its affiliated interface network segment, then in described multicast group table, increase in the corresponding list item, its interface attributes is extended this as " non-designated routers connects the IGMP interface ";
If this port is the port that connects Designated Router on its affiliated interface network segment, then in described multicast group table, increase in the corresponding list item, its interface attributes is extended this as " Designated Router connects the IGMP interface ".
8, method according to claim 6 is characterized in that, described method further comprises:
If the G three-tier switch is not received the IGMP member relation report message of multicast group under this port in the given time, then delete the corresponding list item in the described multicast group table.
9, method according to claim 1 is characterized in that, and is further comprising the steps of before the described method:
I. in the multicast group table that three-tier switch is preserved, interface attributes is set.
10, method according to claim 9 is characterized in that, interface attributes is provided with according to following standard in described step I:
If this port is not the port that connects Designated Router on its affiliated interface network segment, its interface attributes is " non-designated routers connects the IGMP interface ";
If this port is the port that connects Designated Router on its affiliated interface network segment, its interface attributes is " Designated Router connects the IGMP interface ".
CNB2005101276490A 2005-12-06 2005-12-06 Method for realizing multicast translation in three-layer switching unit Active CN100442776C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101276490A CN100442776C (en) 2005-12-06 2005-12-06 Method for realizing multicast translation in three-layer switching unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101276490A CN100442776C (en) 2005-12-06 2005-12-06 Method for realizing multicast translation in three-layer switching unit

Publications (2)

Publication Number Publication Date
CN1777149A CN1777149A (en) 2006-05-24
CN100442776C true CN100442776C (en) 2008-12-10

Family

ID=36766461

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101276490A Active CN100442776C (en) 2005-12-06 2005-12-06 Method for realizing multicast translation in three-layer switching unit

Country Status (1)

Country Link
CN (1) CN100442776C (en)

Families Citing this family (42)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889396B (en) * 2006-07-13 2010-06-23 中兴通讯股份有限公司 Apparatus, System and method for realizing optical monitoring channel information transmission
CN100433665C (en) * 2006-11-07 2008-11-12 华为技术有限公司 Internet group management protocol listening method and switch
CN101459596B (en) * 2007-12-14 2012-07-04 华为技术有限公司 Method, system and equipment for multicast data transmission
CN101291240B (en) * 2008-06-19 2010-08-25 杭州华三通信技术有限公司 Multicast flow transmission method and system
CN101360062B (en) * 2008-09-17 2011-05-11 中兴通讯股份有限公司 Method and system implementing service of multi-point to multi-point Ethernet with root node
CN101388788B (en) * 2008-10-29 2011-03-30 杭州华三通信技术有限公司 Double layer multicast management method, system and double layer switch
CN101436945B (en) * 2008-12-25 2012-05-23 中兴通讯股份有限公司 Method, system and apparatus for protecting multicast business fault
CN102082720B (en) * 2009-12-01 2013-04-03 杭州华三通信技术有限公司 Method and device for forwarding multicast flow
US9270486B2 (en) 2010-06-07 2016-02-23 Brocade Communications Systems, Inc. Name services for virtual cluster switching
US8867552B2 (en) 2010-05-03 2014-10-21 Brocade Communications Systems, Inc. Virtual cluster switching
US9716672B2 (en) 2010-05-28 2017-07-25 Brocade Communications Systems, Inc. Distributed configuration management for virtual cluster switching
US9769016B2 (en) 2010-06-07 2017-09-19 Brocade Communications Systems, Inc. Advanced link tracking for virtual cluster switching
US9807031B2 (en) 2010-07-16 2017-10-31 Brocade Communications Systems, Inc. System and method for network configuration
CN102255808B (en) * 2011-07-08 2014-04-23 福建星网锐捷网络有限公司 Congestion notification method, device, system and network equipment
US9450870B2 (en) 2011-11-10 2016-09-20 Brocade Communications Systems, Inc. System and method for flow management in software-defined networks
US9154416B2 (en) 2012-03-22 2015-10-06 Brocade Communications Systems, Inc. Overlay tunnel in a fabric switch
US9374301B2 (en) 2012-05-18 2016-06-21 Brocade Communications Systems, Inc. Network feedback in software-defined networks
US10277464B2 (en) 2012-05-22 2019-04-30 Arris Enterprises Llc Client auto-configuration in a multi-switch link aggregation
CN102739532A (en) * 2012-06-21 2012-10-17 上海斐讯数据通信技术有限公司 Method for preventing flooding of three-layer multicast data stream
US9602430B2 (en) * 2012-08-21 2017-03-21 Brocade Communications Systems, Inc. Global VLANs for fabric switches
US9401872B2 (en) 2012-11-16 2016-07-26 Brocade Communications Systems, Inc. Virtual link aggregations across multiple fabric switches
US9548926B2 (en) 2013-01-11 2017-01-17 Brocade Communications Systems, Inc. Multicast traffic load balancing over virtual link aggregation
US9565099B2 (en) 2013-03-01 2017-02-07 Brocade Communications Systems, Inc. Spanning tree in fabric switches
US9401818B2 (en) 2013-03-15 2016-07-26 Brocade Communications Systems, Inc. Scalable gateways for a fabric switch
US9806949B2 (en) 2013-09-06 2017-10-31 Brocade Communications Systems, Inc. Transparent interconnection of Ethernet fabric switches
US9912612B2 (en) 2013-10-28 2018-03-06 Brocade Communications Systems LLC Extended ethernet fabric switches
US9548873B2 (en) 2014-02-10 2017-01-17 Brocade Communications Systems, Inc. Virtual extensible LAN tunnel keepalives
US10581758B2 (en) 2014-03-19 2020-03-03 Avago Technologies International Sales Pte. Limited Distributed hot standby links for vLAG
US10476698B2 (en) 2014-03-20 2019-11-12 Avago Technologies International Sales Pte. Limited Redundent virtual link aggregation group
US10063473B2 (en) 2014-04-30 2018-08-28 Brocade Communications Systems LLC Method and system for facilitating switch virtualization in a network of interconnected switches
US9800471B2 (en) 2014-05-13 2017-10-24 Brocade Communications Systems, Inc. Network extension groups of global VLANs in a fabric switch
US10616108B2 (en) 2014-07-29 2020-04-07 Avago Technologies International Sales Pte. Limited Scalable MAC address virtualization
US9807007B2 (en) 2014-08-11 2017-10-31 Brocade Communications Systems, Inc. Progressive MAC address learning
US9942097B2 (en) 2015-01-05 2018-04-10 Brocade Communications Systems LLC Power management in a network of interconnected switches
US10038592B2 (en) 2015-03-17 2018-07-31 Brocade Communications Systems LLC Identifier assignment to a new switch in a switch group
US10579406B2 (en) 2015-04-08 2020-03-03 Avago Technologies International Sales Pte. Limited Dynamic orchestration of overlay tunnels
US10439929B2 (en) 2015-07-31 2019-10-08 Avago Technologies International Sales Pte. Limited Graceful recovery of a multicast-enabled switch
US10171303B2 (en) 2015-09-16 2019-01-01 Avago Technologies International Sales Pte. Limited IP-based interconnection of switches with a logical chassis
US9912614B2 (en) 2015-12-07 2018-03-06 Brocade Communications Systems LLC Interconnection of switches based on hierarchical overlay tunneling
US10237090B2 (en) 2016-10-28 2019-03-19 Avago Technologies International Sales Pte. Limited Rule-based network identifier mapping
CN111600800B (en) * 2020-04-01 2022-06-28 武汉迈威通信股份有限公司 Method and device for discovering cross-network-segment topology
CN112152943B (en) * 2020-09-07 2022-06-14 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Method and system for controlling executive body based on mimic switch processor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115385A (en) * 1998-03-11 2000-09-05 Cisco Technology, Inc. Method and system for subnetting in a switched IP network
CN1484406A (en) * 2003-08-11 2004-03-24 北京港湾网络有限公司 Method for making multicast accurate to terminal in three-layer switchboard
CN1635743A (en) * 2003-12-31 2005-07-06 华为技术有限公司 Method for logging-out invalid IGMP multicast port on router

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115385A (en) * 1998-03-11 2000-09-05 Cisco Technology, Inc. Method and system for subnetting in a switched IP network
CN1484406A (en) * 2003-08-11 2004-03-24 北京港湾网络有限公司 Method for making multicast accurate to terminal in three-layer switchboard
CN1635743A (en) * 2003-12-31 2005-07-06 华为技术有限公司 Method for logging-out invalid IGMP multicast port on router

Also Published As

Publication number Publication date
CN1777149A (en) 2006-05-24

Similar Documents

Publication Publication Date Title
CN100442776C (en) Method for realizing multicast translation in three-layer switching unit
US7924837B1 (en) IP multicast in VLAN environment
EP2622805B1 (en) Method for pruning a multicast branch, protocol independent multicast router, and layer-2 exchange
US6654371B1 (en) Method and apparatus for forwarding multicast data by relaying IGMP group membership
CN102035729B (en) Multicast data forwarding method
EP1869848B1 (en) Building multipoint-to-multipoint label switch paths
US8094602B2 (en) Methods and apparatus for managing multicast groups
CN100433730C (en) Method and system of multicast and video-on-demand
CN101291240B (en) Multicast flow transmission method and system
CN103117935B (en) Be applied to multicast data forwarding method and the device of multi-home networking
US20100046516A1 (en) Methods and Devices for Managing Multicast Traffic
CN1988507B (en) Method, system and router for repeating multicast data
CN100477635C (en) Transmission method and edge apparatus for multicast between fields
WO2007054006A1 (en) A base station of wideband wireless access system and a method for realizing group-broadcast service
CN101610200B (en) Switching method and device of multicast routing
CN100484055C (en) Method for implementing multicast spanning VLAN
CN103716169A (en) Point-to-multipoint multicast realization method, network nodes and system
CN101345641B (en) Multicast access equipment and method
CN101247541B (en) Method for implementing multimedia multicast service of mobile communications network
CN101388788B (en) Double layer multicast management method, system and double layer switch
CN102624604B (en) Multicast control method, routing equipment and multicast system
CN100421410C (en) Method for realizing mobile communication network multimedia enhancement service
US20040243741A1 (en) Method for transmitting data by using x-cast mode
CN102843303B (en) Multicast message processing method in PIM and device
US11018886B1 (en) Methods and apparatus for selectively filtering an IP multicast data stream for selected group members of a multicast group

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.