Background technology
Clean culture, broadcasting and multicast are three kinds of common form of IP bag transmission in the computer network.So-called multicast is that single-point sends the form that multiple spot receives, and the sender can send the IP bag to the multicast group address of a reservation, and the recipient who adds this multicast group just can receive and alleviate the load of network and sender's burden so greatly by the IP bag of multicast.
Protocol Independent Multicast-Sparse Mode (Protocol Independent Multicast-SparseMode is called for short PIM-SM) agreement is one of multicasting technology Routing Protocol commonly used.Fig. 1 comprises multicast source 10 and a plurality of multicast recipient 20 for adopting the multicast network configuration diagram of PIM-SM agreement, and multicast recipient 20 is user's personal computer (PC) normally.Wherein, one or more multicast recipients 20 can connect a Designated Router (Designated Router is called for short DR), and the DR that connects multicast recipient 20 can be designated as recipient DR (Receiver DR is called for short RDR) 30 again.Can comprise a plurality of RDR30 in the multicast network, each RDR30 is connected to congruent point (RendezvousPoint, be called for short RP) 40, send adding (join) message by RDR30 to RP40 and carry out grafting, thereby form a multicast share tree (RPT) that is connecting RP40 and multicast recipient 20.In one or more DR that multicast source 10 is connected, determine that a DR is as sender DR (Sender DR is called for short SDR) 50.Multicast source 10 may directly connect a plurality of PIM routers, determines that a P IM router is as SDR50 but only can elect usually.The SDR50 that determines can register to RP40, RP40 can send to SDR50 and add (Join) message subsequently, thereby set up the shortest path tree (SPT) between SDR50 and the RP40, after this, SDR50 just is forwarded to RP40 by SPT with multicast data flow and no longer is encapsulated in the logon message and sent.
When carrying out the transmission of multicast data flow, multicast source 10 sends to SDR50 with multicast data flow earlier; SDR50 can be sent to multicast data flow on the RP40; RP40 is transmitted to RDR30 with multicast data flow along the RPT that has created, and then sends to multicast recipient 20.
Yet, by RPT forwarding multicasting stream may not be path from multicast source to multicast recipient optimum, thereby so RDR can send to join message to the direct-connected router of multicast source according to certain strategy and form a shortest path tree (SPT) that is connecting direct-connected router in source and RDR.May have a plurality of SPT in the PIM-SM network, multicast data flow is forwarded to the multicast recipient along these SPT.The root of these SPT all is the PIM router that directly links to each other with multicast source, be called the direct-connected equipment in source, the direct-connected equipment in these sources is owing to be the root of SPT, there is not upstream neighbor, do not join message so can not send again, other RDR is the direct-connected equipment in right and wrong source then, can periodically send to join message to safeguard SPT and RPT.
A plurality of PIM routers and/or PC generally realize interconnection by switch.Two layers of port that switch connects each equipment can be divided into one or more VLANs (Virtual Local AreaNetwork is called for short VLAN), belong to different three-layer networks.Based on above-mentioned technology, multicasting technology is divided into three layers of multicasting technology and Layer 2 Multicast technology again.
Three layers of multicasting technology are a kind of multicasts of striding different three-layer networks, generally at router or have on the switch of routing function and realize.Its typical behavior is that the multicast data flow that will receive from a three-layer network sends to the three-layer network of some other this multicast data flow of needs and goes, the PIM-SM agreement is exactly a kind of three layers of multicasting technology, and the shortcoming of three layers of multicasting technology is that multicast data flow is broadcasted in three-layer network.The Layer 2 Multicast technology refers to carry out two layers of port precise relay of multicast data flow in same three-layer network, its typical behavior is that multicast data flow is not broadcasted in specific purpose VLAN, but sends to the particular port set among the purpose VLAN.
Fig. 2 connects P IM router and/or PC for the structural representation of existing a kind of switch, this switch.With structure shown in Figure 2 is example, this switch comprises nine ports, be respectively three ports that belong to a VLAN61, be designated as F1/1, F1/2 and F1/3, belong to three ports of the 2nd VLAN62, be designated as F2/1, F2/2 and F2/3, and three ports that belong to the 3rd VLAN63, be designated as F3/1, F3/2 and F3/3.As shown in Figure 2, five users of U1~U5 are connected on five ports, and U1 and U2 user attaching are in a VLAN61, and U3 and U4 user attaching are in the 2nd VLAN62, and the U5 user attaching is in the 3rd VLAN63.Suppose that multicast data flow sent by the U1 user as multicast source, from the input of F1/1 port, U2~U5 is the multicast recipient.If this switch is only supported three layers of multicasting technology, then owing to the demand that user's receiving group stream is all arranged in three VLAN, therefore multicast data flow can be broadcasted in three VLAN, do not need F1/2, F2/3, F3/1 and the F3/2 port of multicast data flow will receive multicast data flow yet, cause waste of network resources.If this switch is also supported the Layer 2 Multicast technology, just can guarantee that multicast data flow is forwarded to and only is forwarded to two layers of port that connect the multicast recipient, i.e. F1/3, F2/1, F2/2 and F3/3 port in each VLAN.
Support the equipment of Layer 2 Multicast technology can in each VLAN, safeguard a two-layer retransmitting table, be used to instruct the two layer precise relay of multicast data flow in this VLAN.The structure that Layer 2 Multicast is transmitted is as shown in table 1:
Table 1
Wherein, S represents multicast source address, and G represents multicast group address, and V represents the VLAN sign, and OPORT-LIST represents multicast outlet tabulation, when being uncertain as if a certain parameter, can represent all with *.Practical significance every in the table 1 is: for multicast source address is S, and multicast group address is G, and VLAN is designated the multicast data flow of V, should be forwarded to multicast and export on the port that is indicated of tabulating.Switch safeguards that by safeguarding multicast outlet tabulation two layers of multicast data flow are transmitted rule.
On switch, can adopt internet group management protocol snooping (Internet GroupManagement Protocol Snooping at present, be called for short IGMP Snooping) technology, need to determine the port of receiving group stream to add in the multicast outlet tabulation of multicast forward table by spying upon the multicast protocol message that transmits between three-layer equipment and the multicast recipient.The IGMP technology of spying upon can be distinguished the route connectivity port and the member port that is connected the multicast recipient that connects the PIM router by spying upon.
The defective that IGMP spies upon technology is: each PIM router that acquiescence connects other PIM routers and PC all needs multicast data flow, therefore each route connectivity port can receive any group multicast data flow, but in fact not all three-layer equipment all has the reception demand to the data flow of these multicast group.This causes switch to transfer unnecessary multicast data flow from the route connectivity port, has wasted the bandwidth of self, and upstream device receives this multicast data flow, need handle this, has increased the weight of the burden of CPU.
For remedying the defective that IGMP spies upon technology, prior art has also proposed PIM and has spied upon (PIMSnooping) technology, join message by the PIM that transmits between the three-layer equipment of spying upon operation PIM agreement and need to determine the route connectivity port of receiving group stream, and this port is added in the multicast outlet tabulation of multicast forward table.
But, in realizing research process of the present invention, the inventor finds that there is following defective in the existing PIM technology of spying upon: in the PIM-SM protocol network, the direct-connected equipment in source joins message owing to need not to send, even spy upon technology so dispose PIM, also can't spy upon out the port that connection needs the router of multicast data flow at the VLAN that comprises multicast source.In the prior art, in comprising the VLAN of multicast source, adopt the forms of broadcasting to send multicast data flow usually, be difficult to realize the precise relay of two layers of port.
Summary of the invention
The embodiment of the invention provides a kind of method, apparatus and system that realize two layers of forwarding of multicast data flow, with in comprising the VLAN of multicast source, realizes the port precise relay multicast data flow that multicast data flow is existed the routing device of the demand of obtaining to being connected with.
The embodiment of the invention provides a kind of method that realizes two layers of forwarding of multicast data flow, comprising:
Routing device obtains multicast flow acquisition request;
When described routing device recognizes multicast source address and self address when belonging to the same network segment according to described multicast flow acquisition request, generation joins message, and the described Upstream neighbor address that joins message is set to the address of described routing device self;
Described routing device sends described joining message according to described multicast source address, so that the switching equipment between described routing device and the multicast source can be recorded in the multicast outlet tabulation of transmitting this locality receiving the described port that joins message by spying upon.
The embodiment of the invention also provides a kind of routing device, comprising:
The acquisition request module is used to obtain multicast flow acquisition request;
The message generation module, be used for when the address that recognizes multicast source address and described routing device according to described multicast flow acquisition request belongs to the same network segment, generation joins message, and the described Upstream neighbor address that joins message is set to the address of described routing device;
The message sending module, be used for sending described joining message according to described multicast source address, so that the switching equipment between described routing device and the multicast source can be recorded in the multicast outlet tabulation of transmitting this locality receiving the described port that joins message by spying upon.
The embodiment of the invention also provides a kind of system that realizes two layers of forwarding of multicast data flow, comprises interconnective routing device and switching equipment, and described switching equipment also links to each other with at least one multicast source, wherein:
Described routing device comprises:
The acquisition request module is used to obtain multicast flow acquisition request;
The message generation module, be used for when the address that recognizes multicast source address and described routing device according to described multicast flow acquisition request belongs to the same network segment, generation joins message, and the described Upstream neighbor address that joins message is set to the address of described routing device;
The message sending module is used for sending described joining message according to described multicast source address,
Described switching equipment comprises:
The PIM port is spied upon module, is used to spy upon joining message of receiving, and will receive the described port that joins message and be recorded in the multicast outlet tabulation of transmitting this locality;
The multicast data flow forwarding module is used for mating in described transmitting when when described multicast source receives multicast data flow, according to the outlet of the multicast in transmitting tabulation multicast data flow is transmitted from corresponding port.
In the technical scheme of the embodiment of the invention, when specified multicast source address and routing device address belong to the same network segment in the multicast flow acquisition request that routing device receives, this routing device is equivalent to the direct-connected equipment in source, specially join message and send by making the direct-connected equipment in source when receiving multicast flow acquisition request, construct one, make switching equipment can spy upon the port of the routing device that is connected with the multicast flow acquisition demand, thereby will receive this port that joins message as remaining multicast outlet the carrying out record of forwarding multicasting stream.Therefore this machine address that this special Upstream neighbor address that joins message is exactly this direct-connected equipment in source can or not produced other the wasting of resources by other device processes.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Embodiment one
The flow chart of the method for two layers of forwarding of realization multicast data flow that Fig. 3 provides for the embodiment of the invention one, this method comprises the steps:
Step 200, routing device obtain multicast flow acquisition request;
Step 300, when routing device recognizes multicast source address and self address when belonging to the same network segment according to multicast flow acquisition request, generation joins message, and this Upstream neighbor address that joins message is set to the address of this routing device self; The address of routing device and multicast source address belong to the same network segment and mean that promptly this routing device is the direct-connected equipment in source, for example, multicast source address is 192.168.1.1, the address of this routing device is 192.168.1.2, two addresses have only in the network segment at end the address inconsistent, promptly belong to the same network segment.
Step 400, this routing device send according to this multicast source address and join message, so that the switching equipment between routing device and the multicast source can be recorded in the multicast outlet tabulation of transmitting switching equipment this locality receiving this port that joins message by spying upon.
On the basis of technique scheme, when switching equipment when self the multicast source that port connected receives multicast data flow, in transmitting, mate, according to the outlet of the multicast in transmitting tabulation multicast data flow is transmitted from corresponding port.
In the present embodiment, routing device and switching equipment can be the physics separate equipment, i.e. independently router and switch, perhaps, routing device and switching equipment also can be the three-tier switch that physically integrates, it has the function of routing device and the function of switching equipment concurrently, routing device sends to switching equipment and joins message, can be to send from three layers routing device functional module switching equipment functional module to two layers, by the two-layer switching equipment functional module carry out spy upon, function that multicast data flow is transmitted.The notion of routing device and switching equipment is equally applicable to following each embodiment.
Annexation with switching equipment shown in Figure 4 is that example describes, and this switching equipment comprises six ports, and promptly F1/1, F1/2, F1/3, F1/4, F1/5 and F1/6 port belong to same VLAN.The F1/1 port connects multicast source S, and then this VLAN is the VLAN that comprises multicast source; F1/2, F1/4 are connected the PIM router with the F1/6 port, i.e. R1, R2 and R3; F1/3 is connected PC with F1/5, i.e. PC1 and PC2.The course of work that this switching equipment carries out the multicast data flow forwarding is as follows:
At first, election SDR, concrete election algorithm can be provided with as the case may be, for example this switching equipment can be intercepted " PIM Hello " message that each PIM router sends, thereby the PIM router of election IP address numerical value maximum is SDR, and can know the port that this SDR connects by " PIM Hello " message, thereby can create a forwarding-table item, as shown in table 2:
Table 2
Wherein, V100 is the sign of this VLAN, and the multicast outlet is the F1/6 port.R3 is as the SDR in this VLAN, PIM-SM protocol requirement R3 must be encapsulated as the multicast data flow of any multicast source logon message and send on the RP, so SDR has demand to any multicast data flow, therefore switching equipment all is forwarded to any multicast data flow on the SDR according to rule, and this function is called DR and floods.
When R2 receives upstream device, be the PIM router that connected of R2 downstream or PC when the joining message of its transmission, under joining message errorless situation, this all can correspondingly create (a S, G) forwarding-table item of state, receive the port numbers that joins message comprising R2, represent that this port needs the multicast data flow of multicast group G.When R2 recognizes this multicast source address S in joining message and self address when belonging to the same network segment, wherein R2 gets access to join message and just is equivalent to get access to multicast flow acquisition request.Because this joins message is the request that other equipment need obtain multicast data flow from R2, then R2 has also just possessed the demand of obtaining corresponding multicast data flow.The direct-connected routing device in source is received joins message may be joining message of sending of the routing device in its downstream, also may be that the IGMP that PC sent in its downstream joins message.
After R2 gets access to multicast flow acquisition request, construct special joining message, this Upstream neighbor address that joins message of R2 is set to the address of R2 self, because the address that this source address that joins message is R2, so this special Upstream neighbor address that joins message is identical with source address, make that the upstream neighbor of R2 is exactly R2 itself.Need to prove, if joining message of receiving of R2 is wrong, then be equivalent to not get access to multicast flow acquisition request, (therefore S, the G) forwarding-table item of state can not construct special joining message yet can not create one.
R2 sends this according to multicast source address and joins message, the multicast outlet that it is multicast source that the switching equipment that then connects multicast source can be spied upon out this F1/4 port that joins message of reception, and then the F1/4 port is added in the multicast outlet tabulation of multicast forward table, also write down the multicast group address G of this multicast data flow correspondence simultaneously, transmitting of this moment is as shown in table 3:
Table 3
* |
* |
V100 |
F1/6 |
S |
G |
V100 |
F1/4,F1/6 |
When switching equipment is transmitted this multicast data flow, just multicast data flow can be sent to R2 from the F1/4 port, and issue R3, realize that multicast data flow is accurately to the port forwarding that is connected with the routing device that demand is arranged from the F1/6 port.
The port that switching equipment is spied upon the back that joins message to be needed will join message toward other is usually transmitted, and then present embodiment can also comprise the steps:
Joining message that switching equipment will receive transmitted from the port of self;
Recognize the address of the Upstream neighbor address that joins message and this machine when inconsistent when receiving other routing devices that join message or personal computer, abandon handling and join message, and receive these other switching equipment that join message by spying upon, be recorded in the multicast outlet tabulation of transmitting this locality receiving this port that joins message.
If there are many switching equipment to link to each other between each PIM routing device and multicast source, so every switching equipment can both receive that this joins message, thereby correctly adds forwarding-table item.For the PIM router that is connected on other ports, because this Upstream neighbor address that joins message is R2 rather than the address of oneself, so other PIM routers can not receive processing, this joins message can not influence the behavior of normal PIM-SM agreement.That is: join message to send in the switching equipment foundation of spying upon can be provided, but can be not processed when sending to other equipment, thereby can not waste resource.
Embodiment two
The flow chart of the method for two layers of forwarding of realization multicast data flow that Fig. 5 provides for the embodiment of the invention two, present embodiment can further also be disposed IGMP and spy upon technology based on embodiment one on switching equipment, and present embodiment comprises the steps:
Step 100, switching equipment are carried out IGMP to self port and are spied upon, and when receiving IGMP report (Report) message, the port that will receive IGMP report (Report) message is recorded in during the multicast outlet tabulates;
Step 200, routing device obtain multicast flow acquisition request;
Step 300, when routing device recognizes multicast source address and self address when belonging to the same network segment according to multicast flow acquisition request, generation joins message, and this Upstream neighbor address that joins message is set to the address of this routing device self;
Step 400, this routing device send according to this multicast source address and join message;
Switching equipment between step 500, routing device and the multicast source is by spying upon, be recorded in the multicast outlet tabulation of transmitting this locality receiving this port that joins message, with convenient switching equipment when self the multicast source that port was connected receives multicast data flow, in transmitting, mate, multicast data flow is transmitted from corresponding port according to the outlet of the multicast in transmitting tabulation.
In the present embodiment, combining IGMP spies upon with PIM and spies upon technology.For the switching equipment that has enabled the IGMP snoop protocol, when receiving source address, certain port is not the general group polling message of IGMP of 0.0.0.0 or " Hello " message of PIM agreement, just this port is considered as the route connectivity port; When receiving the adding message of certain multicast group G, just this port is considered as the member port of this multicast group G at certain port.After startup I GMP spies upon technology in VLAN, multicast data flow will can not broadcasted in VLAN.For the member port that belongs to multicast group G in the VLAN, switching equipment can mail to the multicast data flow of the multicast group G that receives the member port of multicast group G in same VLAN; For the route connectivity port of VLAN, switching equipment can mail to each route connectivity port with the multicast data flow of any multicast group of receiving in same VLAN.And when IGMP spies upon technology and PIM and spies upon technology synergy work, the IGMP technology will no longer be recorded in the route connectivity port in the outlet tabulation of forwarding-table item and transmit any multicast data flow
The IGMP technology of spying upon can be spied upon IGMP's messages such as " Report/Leave ", generates that a series of (*, G, V) forwarding-table item, record connect multicast recipient's port in multicast outlet tabulation.The PIM technology of spying upon can be spied upon PIM's " Hello " message and be elected SDR, generates that (*, *, V) forwarding-table item, record connect the port of SDR in multicast outlet tabulation.Simultaneously, the PIM technology of spying upon also can spy upon and comprise (*, G) and (S, G) joining message of parameter, generates a series of (*, G, V) and (S, G, V) forwarding-table item, record connect the port of the direct-connected routing device in source beyond the SDR in the multicast outlet is tabulated.
In concrete the application, IGMP spies upon and spies upon the performed flow process of spying upon with PIM is order in no particular order, realize that IGMP spies upon two Layer 2 Multicast agreement control modules of spying upon with PIM all to two-layer retransmitting table administration module announcement list item information separately, on software, generate the two-layer retransmitting table item of multicast by the two-layer retransmitting table administration module, and the forwarding behavior in the two-layer retransmitting table item is set to exchange chip.
Still described to give an actual example among the embodiment one, when also being deployed with IGMP on this switching equipment when spying upon technology, if PC1 need obtain multicast data flow, then PC1 can send report (Report) message of I GMP, switching equipment can be created following two-layer retransmitting table item by spying upon the IGMP report message, and is as shown in table 4:
Table 4
If switching equipment elects R3 as SDR again according to the scheme of embodiment one, and receive joining message of R2 transmission, then the forwarding-table item of Xing Chenging is as shown in table 5:
Table 5
* |
* |
V100 |
F1/6 |
* |
G |
V100 |
F1/3,F1/6 |
S |
G |
V100 |
F1/3,F1/4,F1/6 |
When switching equipment is created forwarding-table item at every turn, can (V) outlet in the forwarding-table item copies in the multicast outlet tabulation of certain other forwarding-table item of VLAN for *, * with existing.(V100) the F1/4 port in the forwarding-table item is that PIM spies upon the outlet that joins message and add for S, G, the F1/6 port floods from DR, and (V100) outlet of forwarding-table item is inherited for *, * in establishment, and the F1/3 port is from (V100) forwarding-table item is inherited for *, G.Like this, multicast data flow (the S that sends from multicast source S, when G) arriving switching equipment, switching equipment just can be according to (the S in the multicast data flow, G) information and the VLAN that receives this multicast data flow message identify to search and transmit, and according to the outlet of the multicast in transmitting tabulation multicast data flow are forwarded on the corresponding ports.
In the above-mentioned example, (S G) can be forwarded to SDR and carry out registration process multicast data flow, and also can be forwarded to R2 and propagate on the SPT that with R2 is root, and also can be forwarded to simultaneously has on the PC1 of demand multicast data flow.And do not have the R1 of demand and PC2 can not receive multicast data flow to multicast data flow.
The foregoing description combines IGMP and spies upon with improved PIM and spy upon technology, can either spy upon multicast group member port by the IGMP technology of spying upon, can spy upon the route connectivity port that multicast data flow is had demand by the PIM technology of spying upon again, realize the multicast data flow precise relay in comprising the VLAN of multicast source.
If switching equipment can't find corresponding forwarding-table item, can also further this multicast data flow message be offered three layers of multicast module, handle this forwarding of data behavior by three layers of multicast protocol.
Various embodiments of the present invention can be brought following effect:
1, the technical scheme that provides by various embodiments of the present invention, multicast network for operation PIM-SM agreement, in comprising the VLAN of multicast source, the multicast data flow that makes multicast source send can be by precise relay to the physical port with demand, there is not the direct-connected equipment in source of demand can not receive multicast data flow to multicast data flow, avoid multicast data flow on all ports, to flood, saved the resource of these equipment effectively.
2, it is more flexible to make that PIM spies upon the deployment of technology
Conventional PIM spies upon technology and generally can not dispose in containing the VLAN of multicast source, because can't spy upon the direct-connected equipment in the source that joins message that do not send, does not send multicast data flow in the route connectivity port, and this can cause multicast data flow normally not transmit.Like this, (network manager just can not dispose PIM and spy upon in this VLAN for S, multicast source G), and this causes other, and (S, multicast data flow G) floods in this VLAN, has wasted the resource of bandwidth and equipment as long as comprised certain in the VLAN.Adopt technical scheme of the present invention, PIM spies upon and can be configured in arbitrarily in the middle of the VLAN, makes any multicast data flow can both carry out accurate two layers of forwarding, has strengthened the flexibility that PIM spies upon deployment greatly.
3, forwarding-table item fully dynamically generates, and has avoided the loaded down with trivial details of static configuration
It all is to obtain by dynamic learning that multicast data flow is had the port of demand, the route connectivity port of having avoided static appointment to transmit, and shortcoming flexibility, and dispose loaded down with trivial details defective.
Embodiment three
The structural representation of the routing device that Fig. 6 provides for the embodiment of the invention three.This routing device comprises: acquisition request module 1, message generation module 2 and message sending module 3.Wherein, acquisition request module 1 is used to obtain multicast flow acquisition request; Message generation module 2 is used for when the address that recognizes multicast source address and routing device according to multicast flow acquisition request belongs to the same network segment, and generation joins message, and the Upstream neighbor address that joins message is set to the address of routing device; Message sending module 3 is used for joining message according to the multicast source address transmission, so that the switching equipment between routing device and the multicast source can be by spying upon, the port that reception is joined message is recorded in the multicast outlet tabulation of transmitting this locality.
The routing device that the embodiment of the invention provided can be carried out the method that the arbitrary embodiment of the present invention is provided, and possesses corresponding functional modules.In the technical scheme of the embodiment of the invention, when specified multicast source address and routing device address belong to the same network segment in the multicast flow acquisition request that routing device receives, this routing device is equivalent to the direct-connected equipment in source, specially join message and send by making the direct-connected equipment in source when receiving multicast flow acquisition request, construct one, make switching equipment can spy upon the port of the routing device that is connected with the multicast flow acquisition demand, thereby will receive this port that joins message as remaining multicast outlet the carrying out record of forwarding multicasting stream.Therefore this machine address that this special Upstream neighbor address that joins message is exactly this direct-connected equipment in source can or not produced other the wasting of resources by other device processes.
Embodiment four
The structural representation of the system of two layers of forwarding of realization multicast data flow that Fig. 7 provides for the embodiment of the invention four, this system comprises interconnective routing device 70 and switching equipment 80, switching equipment 80 also links to each other with at least one multicast source 10, wherein, routing device 70 comprises: acquisition request module 71, message generation module 72 and message sending module 73.Wherein, acquisition request module 71 is used to obtain multicast flow acquisition request; Message generation module 72 is used for when the address that recognizes multicast source address and routing device 70 according to multicast flow acquisition request belongs to the same network segment, and generation joins message, and the Upstream neighbor address that joins message is set to the address of routing device 70; Message sending module 73 is used for joining message according to the multicast source address transmission.Switching equipment 80 comprises: the PIM port is spied upon module 81 and multicast data flow forwarding module 82.Wherein, the PIM port is spied upon module 81 and is used to spy upon joining message of receiving, and the port that reception joins message is recorded in the multicast outlet tabulation of transmitting this locality; Multicast data flow forwarding module 82 is used for mating in transmitting when when multicast source 10 receives multicast data flow, according to the outlet of the multicast in transmitting tabulation multicast data flow is transmitted from corresponding port.
The system of two layers of forwarding of realization multicast data flow that the embodiment of the invention provided can carry out the method that the arbitrary embodiment of the present invention is provided, and possesses corresponding functional modules.In the technical scheme of the embodiment of the invention, routing device is equivalent to the direct-connected equipment in source, specially join message and send by making the direct-connected equipment in source when receiving multicast flow acquisition request, construct one, make switching equipment can spy upon the port of the routing device that is connected with the multicast flow acquisition demand, thereby will receive this port that joins message as remaining multicast outlet the carrying out record of forwarding multicasting stream.
On the basis of technique scheme, switching equipment 80 can also comprise: IGMP spies upon module 83, being used for port to switching equipment 80 carries out IGMP and spies upon, when receiving IGMP report (Report) message, the port that will receive IGMP report (Report) message is recorded in the multicast outlet tabulation.
The foregoing description combines IGMP and spies upon with improved PIM and spy upon technology, can either spy upon multicast group member port by the IGMP technology of spying upon, can spy upon the route connectivity port that multicast data flow is had demand by the PIM technology of spying upon again, realize the multicast data flow precise relay in comprising the VLAN of multicast source.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.