CN101557342A - Forwarding method of multicast messages and router - Google Patents

Forwarding method of multicast messages and router Download PDF

Info

Publication number
CN101557342A
CN101557342A CNA2009100846372A CN200910084637A CN101557342A CN 101557342 A CN101557342 A CN 101557342A CN A2009100846372 A CNA2009100846372 A CN A2009100846372A CN 200910084637 A CN200910084637 A CN 200910084637A CN 101557342 A CN101557342 A CN 101557342A
Authority
CN
China
Prior art keywords
routing table
multicast
interface
message
hardware
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
CNA2009100846372A
Other languages
Chinese (zh)
Other versions
CN101557342B (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 CN2009100846372A priority Critical patent/CN101557342B/en
Publication of CN101557342A publication Critical patent/CN101557342A/en
Application granted granted Critical
Publication of CN101557342B publication Critical patent/CN101557342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a forwarding method of multicast messages and a router, wherein the method is applied in the router comprising a software processing device corresponding to a software wide area network interface and a hardware processing device corresponding to a hardware exchange interface; a connecting channel is arranged between the software processing device and the hardware processing device; the method comprises the following steps: any of the software processing device and the hardware processing device receives the multicast messages on a corresponding interface thereof; the multicast messages are transmitted to the other one of the software processing device and the hardware processing device by the connecting channel; the other one device receives the multicast messages, determines an outgoing interface forwarding the multicast messages and forwards the received multicast messages according to the self corresponding interface included in the determined outgoing interface. The invention can realize forwarding of multicast messages by utilizing combination of the software wide area network interface and the hardware exchange interface in the same router.

Description

The retransmission method of multicast message and routing device
Technical field
The present invention relates to the network communications technology, particularly the retransmission method of multicast message and routing device.
Background technology
In the network communications technology, the multicast mode is used widely owing to plurality of advantages such as having the offered load of reduction.Under the multicast mode,, multicast message can be transferred in the multicast group (multicast group) by using specific multicast address.Particularly, when information transmitter sends datagram (under the multicast mode to one group of user, this data message can be described as multicast message, below this data message unification is called multicast message) time, it needn't send multicast message to each user, only need multicast message is sent in the specific multicast, all usefulness that join in this multicast can be received this part multicast message per family.Like this,, only need to send a multicast message and can make this multicast message arrive all reception users, greatly reduce the load of network and the burden of information transmitter information transmitter.
Referring to Fig. 1, Fig. 1 is the forwarding schematic diagram of multicast message in the prior art.In Fig. 1, router has been preserved multicast routing table, and wherein, multicast routing table is made up of a plurality of multicast routing table items, has all write down the incoming interface information of receiving group message, the information such as outgoing interface information of forwarding multicasting message in each multicast routing table item.As shown in Figure 1, if information transmitter (source) need send multicast message to user A (User A) and user C (User C), then this information transmitter is carried at self the multicast source address and the multicast address of user A and user's multicast that C adds to send to router B in the multicast message that will send.Therefore, when multicast message arrives router B, router B, particularly, the CPU on the router B finds corresponding multicast routing table item according to the multicast message that receives entrained multicast source address and multicast address; Afterwards, the outgoing interface duplicated multicast message in the multicast routing table item that this finds so, has been finished by the outgoing interface forwarding multicasting message.Usually, interface on the router is the Wide Area Network interface by software processes, be called for short the software Wide Area Network interface, therefore, the incoming interface of multicast message correspondence and outgoing interface all are the software Wide Area Network interface, because the software Wide Area Network interface is by software processes, therefore, the speed of service of this software Wide Area Network interface is slow.
For solving the slow problem of the speed of service of software Wide Area Network interface on the router, prior art has proposed to utilize three-tier switch to realize the forwarding of multicast message; Wherein, the interface on the three-tier switch is the Fabric Interface of being handled by exchange chip, abbreviates the hardware-switch interface as.Wherein, the speed of service of this hardware-switch interface is faster than the speed of service of the software Wide Area Network interface on the router; But,, like this, will cause the hardware-switch interface on the three-tier switch that the service quality that becomes more meticulous complicated business such as (QoS) can't be provided because the hardware-switch interface on the three-tier switch is the interface by hardware handles.
As seen, in the retransmission method of the realization multicast message that provides in the prior art, a kind of is that to utilize router all be the forwarding of carrying out multicast message on the software Wide Area Network interface at incoming interface and outgoing interface; But,, like this, will reduce the speed of this software Wide Area Network interface forwarding multicasting message because the software Wide Area Network interface is by software processes; Another kind is that to utilize three-tier switch all be the forwarding of carrying out multicast message on the hardware-switch interface at incoming interface and outgoing interface, but, because the hardware-switch interface is by hardware handles, like this, will limit the hardware-switch interface complicated business such as QoS that become more meticulous can't be provided, therefore, merely utilize the software Wide Area Network interface on the router, the forwarding that perhaps merely utilizes hardware-switch interface on the three-tier switch to carry out multicast message can not be satisfied current demand; A kind of good method makes exactly and promptly comprises software Wide Area Network interface and hardware-switch interface in the same routing device, makes software Wide Area Network interface and hardware-switch interface combination the carrying out forwarding of multicast message in this routing device.Yet, still do not have a kind of software Wide Area Network interface on the same equipment and hardware-switch interface of utilizing in the prior art in conjunction with the retransmission method that carries out multicast message.
Summary of the invention
The invention discloses the retransmission method and the routing device of multicast message, so that realize utilizing software Wide Area Network interface and hardware-switch interface combination the carrying out forwarding of multicast message in the same routing device.
A kind of retransmission method of multicast message, this method is applied to comprise the routing device of the hardware handles device of the software processing device of corresponding software Wide Area Network interface and corresponding hardware-switch interface, and, between software processing device and hardware handles device, interface channel is set; This method comprises:
Steps A, any one device in software processing device and the hardware handles device receives multicast message on its corresponding interface, send described multicast message to another device in software processing device and the hardware handles device by described interface channel;
Multicast message among the step B, this another device receiving step A determines to transmit the outgoing interface of this multicast message, transmits the multicast message of this reception according to the interface of self correspondence that comprises in this outgoing interface of determining.
A kind of routing device, this routing device comprise software processing device and hardware handles device; Wherein, the corresponding software Wide Area Network interface of described software processing device, the corresponding hardware-switch interface of described hardware handles device; And, be provided with interface channel between described software processing device and the hardware handles device;
Any one device in described software processing device and the hardware handles device receives multicast message on its corresponding interface, send described multicast message to another device in software processing device and the hardware handles device by described interface channel;
This another device receives described multicast message, and determines to transmit the outgoing interface of this multicast message, transmits the multicast message of this reception according to the interface of self correspondence that comprises in this outgoing interface of determining.
In sum, the retransmission method of the multicast message that the embodiment of the invention provides and routing device, wherein, this method can be applicable to comprise the routing device of the hardware handles device of the software processing device of corresponding software Wide Area Network interface and corresponding hardware-switch interface, and, between software processing device and hardware handles device, interface channel is being set; This method comprises: any one device in software processing device and the hardware handles device receives multicast message on its corresponding interface, send described multicast message to another device in software processing device and the hardware handles device by described interface channel; This another device determine to be transmitted the outgoing interface of this multicast message, transmits the multicast message of this reception according to the interface of self correspondence that comprises in this outgoing interface of determining.Such as, software processing device receives multicast message on its corresponding software Wide Area Network interface, then determine to transmit the outgoing interface of this multicast message, if comprise hardware handles device corresponding hardware Fabric Interface in the outgoing interface, then software processing device sends described multicast message to the hardware handles device by described interface channel, so, the hardware handles device determines to transmit the outgoing interface of this multicast message, so, the hardware handles device is transmitted the multicast message of this reception by the outgoing interface of determining, wherein, this outgoing interface of determining comprises one or more hardware-switch interfaces.So, realized utilizing same software Wide Area Network interface and hardware-switch interface combination the carrying out forwarding of multicast message on the routing device.
Further, than prior art, because the present invention is when forwarding multicasting message, it is not place one's entire reliance upon software Wide Area Network interface or hardware-switch interface, but utilize software Wide Area Network interface and the combination of hardware-switch interface, and like this, the complicated business such as QoS of both can having realized becoming more meticulous, and support abundant wide area network characteristic, can improve the speed of service that interface E-Packets again.
Description of drawings
Fig. 1 is the forwarding schematic diagram of multicast message in the prior art;
The basic flow sheet that Fig. 2 provides for the embodiment of the invention;
The detail flowchart of the method that Fig. 3 provides for the embodiment of the invention;
First schematic diagram that Fig. 4 transmits for the multicast message that the embodiment of the invention provides;
Second schematic diagram that Fig. 5 transmits for the multicast message that the embodiment of the invention provides;
Another detail flowchart of the method that Fig. 6 provides for the embodiment of the invention;
The 3rd schematic diagram that Fig. 7 transmits for the multicast message that the embodiment of the invention provides;
The structure drawing of device that Fig. 8 provides for the embodiment of the invention.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the drawings and specific embodiments.
In the embodiment of the invention, owing to will utilize in the same routing device software Wide Area Network interface and hardware-switch interface in conjunction with the forwarding that realizes multicast message, therefore, two processing unit need be set, i.e. software processing device and hardware handles device in the routing device that the embodiment of the invention provides; Wherein, the corresponding software Wide Area Network interface of software processing device; Specifically can be CPU, perhaps other software services, the embodiment of the invention does not specifically limit; And the corresponding hardware-switch interface of hardware handles device specifically can be three layers of exchange chip or is other hardware units, and the embodiment of the invention does not specifically limit.And,, also need between software processing device and hardware handles device, interface channel is set for guaranteeing between software processing device and the hardware handles device can the transparent transmission message.So, the embodiment of the invention provides utilize software Wide Area Network interface and hardware-switch interface in the same routing device specifically can be referring to shown in Figure 2 in conjunction with the flow process of carrying out the forwarding of multicast message.
Referring to Fig. 2, the basic flow sheet that Fig. 2 provides for the embodiment of the invention.As shown in Figure 2, this flow process can may further comprise the steps:
Step 201, any one device in software processing device and the hardware handles device receives multicast message on its corresponding interface.
Here, step 201 specifically can be: software processing device receives multicast message on its corresponding software Wide Area Network interface; Perhaps the hardware handles device receives multicast message on its corresponding hardware Fabric Interface.
For ease of describing, present embodiment receives multicast message with software processing device on its corresponding software Wide Area Network interface be example.
Step 202 sends the multicast message of reception to another device in software processing device and the hardware handles device by interface channel.
Here, the interface channel of interface channel between software processing device and hardware handles device, being provided with.If step 201 is: software processing device receives multicast message on its corresponding software Wide Area Network interface, then step 202 is: software processing device sends the multicast message of reception to the hardware handles device by interface channel; Need to prove, software processing device sends the multicast message of reception to before the hardware handles device by interface channel, can further comprise: whether having comprised the hardware-switch interface in the outgoing interface of this multicast message of software processing device judgement forwarding (can be referring to shown in Figure 3 as for how to judge, here repeat no more), such as, the outgoing interface of transmitting this multicast message is software Wide Area Network interface and hardware-switch interface, then determines to have comprised the hardware-switch interface in the interface; So, software processing device copies to each software Wide Area Network interface with multicast message, so that by each software Wide Area Network interface forwarding multicasting message; And continue to carry out by interface channel and send the multicast message that receives to the hardware handles device, so that make the hardware handles device by self correspondence, and be that the hardware-switch interface of transmitting in this multicast message outgoing interface is transmitted this multicast message; Otherwise, judge in the outgoing interface of transmitting this multicast message when software processing device and only to comprise each software Wide Area Network interface, then software processing device only copies to multicast message each software Wide Area Network interface, so that by each software Wide Area Network interface forwarding multicasting message, and execution in step 202 not, this and prior art are similar, and the embodiment of the invention does not describe in detail.
Certainly, if step 201 is: the hardware handles device receives multicast message on its corresponding hardware Fabric Interface, then step 202 is: the multicast message that the hardware handles device send to receive by interface channel is to software processing device, and processing procedure is the same, repeats no more here.
Step 203, the multicast message that this another device receiving step 202 sends determines to transmit the outgoing interface of this multicast message, transmits the multicast message of this reception according to the interface of self correspondence that comprises in this outgoing interface of determining.
Here, if being software processing device, step 202 sends the multicast message of reception to the hardware handles device by interface channel; Then this step 203 can be: hardware handles device receiving group message, determine to transmit the outgoing interface of this multicast message, and transmit the multicast message of this reception according to self the corresponding hardware Fabric Interface that comprises in this outgoing interface of determining; Certainly, if being the hardware handles device, step 202 sends the multicast message of reception to software processing device by interface channel; Then this step 203 can be: software processing device receiving group message, determine to transmit the outgoing interface of this multicast message, and transmit the multicast message of this reception according to the software Wide Area Network interface of self correspondence that comprises in this outgoing interface of determining.
That so, has realized that the embodiment of the invention provides utilizes software Wide Area Network interface on the same equipment and hardware-switch interface in conjunction with the forwarding operation that realizes multicast message.
More than be that the method that the embodiment of the invention provides has been carried out simple description, the method that the embodiment of the invention is provided is described in detail below.
Referring to Fig. 3, the detail flowchart of the method that Fig. 3 provides for the embodiment of the invention.In the present embodiment, be CPU with the software processing device, its corresponding software Wide Area Network interface is used for the multicast message on the process software Wide Area Network interface; The hardware handles device is three layers of exchange chip, its corresponding hardware-switch interface, and the multicast message that is used on the processing hardware Fabric Interface is an example; And,, can between CPU and three layers of exchange chip, interface channel be set for guaranteeing the transmission of multicast message between CPU and three layers of exchange chip; If software Wide Area Network interface and hardware-switch interface are arranged on the same veneer in the routing device, as shown in Figure 3, this flow process can may further comprise the steps:
Step 301, the multicast routing table that brush is corresponding is down given CPU and three layers of exchange chip respectively.
Here, step 301 mainly is the multicast message that receives on CPU and three layers of its corresponding interface of exchange chip subsequent treatment, wherein, for ease of describing, can play brush to abbreviate the software multicast routing table as for the multicast routing table of CPU; Abbreviate the hardware multicast routing table as for the multicast routing table of three layers of exchange chip with brushing down.So, CPU and three layers of exchange chip receive down brush to behind the multicast routing table of self, store this multicast routing table.
Particularly, the operation of step 301 mainly comprises:
Step 3011 is set up multicast routing table.
Here, step 3011 is specially on control plane and sets up multicast routing table according to multicast routing protocol, and particularly, the operation of setting up multicast routing table can be similar with prior art, repeats no more here.
Preferably, the multicast routing table that step 3011 is set up by a plurality of (S, G) the multicast routing table item is formed, wherein, (S, G) expression is by the routing iinformation of multicast source address S to multicast address G; Be incorporated into interface message (incoming interface) and outgoing interface information (out-going interface) etc. in each multicast routing table item.
Step 3012, according to the multicast routing table of setting up in the step 3011, brush is given the software multicast routing table of CPU and is needed to brush down the hardware multicast routing table of giving three layers of exchange chip under need determining respectively.
Need to prove that determining in the step 3012 needs to brush down the complete multicast routing table that the software multicast routing table of giving CPU is specially step 3011 foundation; So, step 3012 is specially to brush under the multicast routing table (software multicast routing table) that will set up in the step 3011 gives datum plane, so that CPU stores the software multicast routing table of this reception on datum plane.
And the interface message that brush comprises for the hardware multicast routing table of three layers of exchange chip under the needing software Wide Area Network interface information corresponding with CPU has nothing to do, it need be determined according to the multicast routing table of setting up in the step 3011, specifically can determine, may further comprise the steps according to the interface message in each multicast routing table item in the multicast routing table of setting up in the step 3011:
Steps A, each multicast routing table item in the multicast routing table of setting up at step 3011 (abbreviating current multicast routing table as) is (for ease of describing, this multicast routing table item is called current multicast routing table item), whether the incoming interface information of judging current multicast routing table item is software Wide Area Network interface information, if, execution in step B; Otherwise, when this incoming interface information is the hardware-switch interface message, execution in step D.
Here, if the form of current multicast routing table item be:
incoming?interface:eth0/1
out-going?interface:
|----Pos?1/0
|----vlan?3
-----vlan?4。
Wherein, eth0/1 and Pos 1/0 are software Wide Area Network interface information; Vlan 3 and vlan 4 are the hardware-switch interface message, so, determine that then the incoming interface information in the current multicast routing table item is software Wide Area Network interface information, execution in step B.
Step B judges whether the outgoing interface information of current multicast routing table item comprises the hardware-switch interface message, if, execution in step C; Otherwise, the current multicast routing table item of deletion in current multicast routing table.
Here, because three layers of corresponding hardware-switch interface of exchange chip, be used for the multicast message on the processing hardware Fabric Interface, therefore, interface message in the multicast routing table item of its storage is relevant with the hardware-switch interface message, therefore, if incoming interface information in the current multicast routing table item and outgoing interface information then can be deleted current multicast routing table item when all being software Wide Area Network interface information in current multicast routing table.
Here, the outgoing interface information of judging current multicast routing table item comprises the hardware-switch interface message and specifically can be: the outgoing interface information of current multicast routing table item only comprises the hardware-switch interface message; The outgoing interface information of perhaps current multicast routing table item comprises software Wide Area Network interface information and hardware-switch interface message.Such as, if current multicast routing table item is as noted above, promptly incoming interface information is eth0/1 information, and outgoing interface information is Pos 1/0, vlan 3 and vlan 4, then determine in the outgoing interface information of current multicast routing table item and comprise the hardware-switch interface message, execution in step C.
Step C, the incoming interface information in the current multicast routing table item upgraded in current multicast routing table is the interface message of the interface channel correspondence that is provided with between CPU and the three layers of exchange chip.So, the multicast routing table item after this renewal is defined as the multicast routing table item that brush comprises for the hardware multicast routing table of three layers of exchange chip under the needs.
Here, if the outgoing interface information of current multicast routing table item only comprises the hardware-switch interface message, then keep the outgoing interface information in the current multicast routing table item constant; If the outgoing interface information in the current multicast routing table item also comprises software Wide Area Network interface information, be that outgoing interface information in the current multicast routing table item comprises software Wide Area Network interface information and hardware-switch interface message, then step C further comprises: delete the software Wide Area Network interface information that the outgoing interface information of this current multicast routing table item in the current multicast routing table comprises.Such as, if above-mentioned incoming interface information is eth0/1, outgoing interface information is Pos 1/0, vlan 3 and vlan 4, the form of expression after then this multicast routing table item upgrades in this step is:
The interface message of the interface channel correspondence that is provided with between incoming interface:CPU and the three layers of exchange chip;
out-going?interface:
|----vlan?3
-----vlan?4。
So, realized the renewal operation of current multicast routing table item.
Step D judges whether the outgoing interface information in the current multicast routing table item comprises software Wide Area Network interface information, if, execution in step E; Otherwise, in current multicast routing table, keep this current multicast routing table item.
Here, the outgoing interface information that step D judges in the current multicast routing table item comprises software Wide Area Network interface information, represents that then the outgoing interface information in the current multicast routing table item is software Wide Area Network interface information and hardware-switch interface message; Perhaps be software Wide Area Network interface information.Here, if the form of current multicast routing table item be:
incoming?interface:vlan?3
out-going?interface:
|----Pos?1/0
|----vlan?4
-----vlan?5。
Wherein, Pos 1/0 is a software Wide Area Network interface information; Vlan 3, vlan 4 and vlan 5 are the hardware-switch interface message, determine that then the incoming interface information in the current multicast routing table item is the hardware-switch interface message, and outgoing interface information comprises software Wide Area Network interface information and hardware-switch interface message.So, execution in step E.
The outgoing interface information of judging in the current multicast routing table item does not comprise software Wide Area Network interface information, represent that then the outgoing interface information in the current multicast routing table item is the hardware-switch interface message, because three layers of corresponding hardware-switch interface of exchange chip, therefore, keep this current multicast routing table item, promptly determine the multicast routing table item that this current multicast routing table item comprises for the hardware multicast routing table of three layers of exchange chip for brush under needing.If the form of current multicast routing table item is:
incoming?interface:vlan?3
out-going?interface:
|----vlan?4
-----vlan?5。
Wherein, vlan 3, vlan 4 and vlan 5 are the hardware-switch interface message, determine that then incoming interface information and outgoing interface information in the current multicast routing table item all are the hardware-switch interface message, then keep this current multicast routing table item in current multicast routing table.
Step e is deleted the software Wide Area Network interface information that the outgoing interface information of current multicast routing table item comprises, and the interface message of the interface channel correspondence that sets in advance between CPU and the three layers of exchange chip is added in the outgoing interface information in the multicast routing table item.
Such as, if above-mentioned incoming interface information is vlan 3, outgoing interface information is Pos 1/0, vlan 4 and vlan 5, the form of expression after then this multicast routing table item upgrades in this step is:
incoming?interface:vlan?3;
out-going?interface:
|----vlan?4
-----vlan?5
The interface message of the interface channel correspondence that is provided with between----CPU and the three layers of exchange chip.
So, realized the renewal operation of current multicast routing table item.The multicast routing table item that needing to be defined as brush down to comprise to the hardware multicast routing table of three layers of exchange chip the multicast routing table item after upgrading.
The hardware multicast routing table that step F, the multicast routing table that current multicast routing table is obtained to the operational processes shown in the step e through steps A needing to be defined as brush down to give three layers of exchange chip.So, realized being used for being stored in definite operation of the hardware multicast routing table of three layers of exchange chip to F by steps A.
Step 3013 is given CPU with brush under the software multicast routing table of determining, and gives three layers of exchange chip with brushing under the hardware multicast routing table of determining synchronously.
So, realized the operation that the multicast routing table that brush is corresponding is down respectively given CPU and three layers of exchange chip by above-mentioned steps.
Step 302, when a multicast message arrived the software Wide Area Network interface, CPU determined the multicast routing table item of the multicast message correspondence of current reception.
Here, the multicast message of current reception has carried multicast source address information and multicast address information, therefore, the multicast source address information that can carry according to the multicast message of current reception of CPU and multicast address information are determined corresponding multicast routing table item in the multicast routing table of self storage.
Step 303, each the outgoing interface information in the multicast routing table item that poll step 302 is determined, if the current outgoing interface information that is polled to is software Wide Area Network interface information, then execution in step 304; If the current outgoing interface information that is polled to is the hardware-switch interface message, then execution in step 305.
Usually, the information of the incoming interface in the information of the incoming interface of actual reception multicast message and the corresponding multicast routing table item of this multicast message is identical.For the information of the incoming interface in the information of the incoming interface of further determining the actual reception multicast message and the corresponding multicast routing table item of this multicast message whether consistent, before step 303, further whether the incoming interface information in the multicast routing table item determined of determining step 302 is the information of software Wide Area Network interface, when judged result when being, carry out above-mentioned steps 303; Otherwise, but process ends; Perhaps can trigger CPU and rebulid route table items on chain of command, the embodiment of the invention does not limit.
Here, the outgoing interface information in the multicast routing table item determined of poll step 302 specifically can be the outgoing interface information in the multicast routing table item of determining such as order up and down poll step 302 successively according to preset order.
Step 304 is duplicated the multicast message of current reception and is given the software Wide Area Network interface of above-mentioned software Wide Area Network interface information correspondence.Finish the flow process of current software Wide Area Network interface forwarding multicasting message.
Step 305 judges whether the current outgoing interface information that is polled to is that first comprises the outgoing interface information of hardware-switch interface message in the definite multicast routing table item of step 302, if, execution in step 306; Otherwise, ignore this hardware-switch interface message.
Step 306 sends the multicast message of current reception to three layers of exchange chip by the interface channel that is provided with between CPU and three layers of exchange chip.Afterwards, execution in step 307.
Here, the interface channel that passes through to be provided with between CPU and three layers of exchange chip in the above-mentioned steps 306 sends the multicast message of current reception to three layers of exchange chip, so that these three layers of exchange chips are by corresponding hardware Fabric Interface forwarding multicasting message (wherein, specifically how to transmit this multicast message can referring to step 307 to step 308).If the current outgoing interface information that is polled to not is for first comprises the outgoing interface information of hardware-switch interface message in the definite multicast routing table item of step 302, because when CPU has been polled to the outgoing interface information that comprises the hardware-switch interface message for the first time in the multicast routing table item that step 302 is determined, send the multicast message of current reception to three layers of exchange chip by the interface channel that between CPU and three layers of exchange chip, is provided with; For avoiding three layers of exchange chip to repeat to transmit operation, can ignore this hardware-switch interface message, finish forwarding process.
Step 307, three layers of exchange chip are determined the multicast routing table item of the multicast message correspondence of current reception.
Here, because the multicast message of current reception has carried multicast source address information and multicast address information, therefore, three layers of multicast source address information and multicast address information definite corresponding multicast routing table item in the multicast routing table of self storing that exchange chip can carry according to the multicast message of current reception.
Step 308, three layers of exchange chip obtain all outgoing interface information in the multicast routing table item that step 307 is determined.
Here, three layers of exchange chip obtain all outgoing interface information and specifically can be the hardware-switch interface message in the multicast routing table item that step 307 is determined.
Step 309, the multicast message that duplicates current reception are given the interface of the outgoing interface information correspondence that step 308 obtains.Finish the flow process of current hardware-switch interface forwarding multicasting message.
So, can realize being undertaken the forwarding operation of multicast message by the combination of software Wide Area Network interface in the same routing device and hardware-switch interface.
Particularly, shown in Figure 3 clearer for making, first schematic diagram that can transmit with reference to multicast message shown in Figure 4.Wherein, software Wide Area Network interface and hardware-switch interface are arranged on the same veneer, and then as shown in Figure 4, idiographic flow is: 1., if receiving group message on the software Wide Area Network interface, then CPU determines the multicast routing table item of this multicast message correspondence in the multicast routing table of self storing; 2., CPU determines the multicast routing table item of this multicast message correspondence, the outgoing interface information that this multicast routing table item of determining of poll comprises, if comprise hardware-switch interface message and software Wide Area Network interface information in the current outgoing interface information that is polled to, duplicated multicast message then sends to the multicast message that duplicates the software Wide Area Network interface of software Wide Area Network interface information correspondence; And judge whether the current outgoing interface information that is polled to is that first comprises the outgoing interface information of hardware-switch interface message in this multicast routing table item of determining, if execution in step is 3.; Otherwise, ignore this hardware-switch interface message; 3., CPU sends the multicast message of current reception to three layers of exchange chip by the interface channel that is provided with between CPU and three layers of exchange chip, three layers of exchange chip are finished the multicast routing table item of the multicast message correspondence of determining current reception automatically, and transmit the multicast message of current reception by the hardware-switch interface message corresponding hardware Fabric Interface in this multicast routing table item.
Need to prove that above-mentioned Fig. 3 and Fig. 4 are that being arranged on the same veneer in the routing device with all software Wide Area Network interface and hardware-switch interface is that example is described.Present embodiment also can be applicable to all software Wide Area Network interface and the hardware-switch interface is not on the same veneer that is arranged in the routing device, referring to Fig. 5, second schematic diagram that Fig. 5 transmits for the multicast message that the embodiment of the invention provides, as shown in Figure 5, idiographic flow can comprise: 1., plate 1 pairing software Wide Area Network interface receives multicast message, and then the CPU1 on the plate 1 determines the multicast routing table item of this multicast message correspondence; 2., if the outgoing interface information that comprises in the multicast routing table item of determining is the hardware-switch interface message on the plate 2, then send this multicast message to the CPU2 on the plate 2 by passage between plate default between plate 1 and the plate 2; 3., CPU2 determines the multicast routing table item of this multicast message correspondence, the outgoing interface information that this multicast routing table item of determining of poll comprises, if comprise the hardware-switch interface message in the current outgoing interface information that is polled to, judge then whether the current outgoing interface information that is polled to is that first comprises the outgoing interface information of hardware-switch interface message in this multicast routing table item of determining, if, send multicast message to three layers of exchange chip by the interface channel that between CPU2 and three layers of exchange chip, is provided with, three layers of exchange chip are finished the multicast routing table item of the multicast message correspondence of determining current reception automatically, and the information corresponding hardware Fabric Interface forwarding multicasting message that passes through the hardware-switch interface in this multicast routing table item.
Need to prove that also Fig. 3 is that at first to receive multicast message on the software Wide Area Network interface with routing device be example, routing device also can be applicable at first receive multicast message on the hardware-switch interface in the present embodiment, specifically can be referring to flow process shown in Figure 6.
Referring to Fig. 6, another detail flowchart of the method that Fig. 6 provides for the embodiment of the invention.In the present embodiment, be CPU with the software processing device, its corresponding software Wide Area Network interface is used for the multicast message on the process software Wide Area Network interface; The hardware handles device is three layers of exchange chip, and its corresponding hardware-switch interface is used for the multicast message on the processing hardware Fabric Interface; And,, can between CPU and three layers of exchange chip, interface channel be set for guaranteeing between CPU and three layers of exchange chip, to carry out the transmission of multicast message; Then as shown in Figure 6, this flow process can may further comprise the steps:
Step 601 is similar with step 301 shown in Figure 3.
Step 602, when a multicast message arrived the hardware-switch interface, three layers of exchange chip were determined the multicast routing table item of the multicast message correspondence of current reception.
Here, the multicast message of current reception has carried multicast source address information and multicast address information, therefore, three layers of multicast source address information and multicast address information definite corresponding multicast routing table item in the multicast routing table of self storing that exchange chip can carry according to the multicast message of current reception.
Step 603 is obtained all outgoing interface information in the multicast routing table item that step 602 is determined.
For ease of describing, present embodiment is that the interface message and the more than one hardware-switch interface message of the interface channel correspondence that is provided with between CPU and the three layers of exchange chip is example with the outgoing interface information of obtaining.
Step 604, the multicast message that duplicates current reception are given the interface of the outgoing interface information correspondence that step 603 obtains.
If the outgoing interface information of obtaining in the step 603 is the interface message and the more than one hardware-switch interface message of the interface channel correspondence that sets in advance between CPU and the three layers of exchange chip, then step 604 specifically can be: the multicast message that duplicates current reception is given the interface of the interface channel correspondence that sets in advance between CPU and the three layers of exchange chip, and each hardware-switch interface message corresponding hardware Fabric Interface respectively.
Here, because multicast message is duplicated interface to the interface channel correspondence that sets in advance between CPU and the three layers of exchange chip, so, CPU can receive the multicast message that sends from three layers of exchange chip.
Step 605, CPU determines the multicast routing table item of the multicast message correspondence of current reception.
Here, the multicast message of current reception has carried multicast source address information and multicast address information, therefore, the multicast source address information that can carry according to the multicast message of current reception of CPU and multicast address information are determined corresponding multicast routing table item in the multicast routing table of self storage.
Step 606, whether the incoming interface information in the multicast routing table item that determining step 605 is determined is the information of hardware-switch interface, if, execution in step 607; Otherwise, process ends.
Usually, the information of the incoming interface in the incoming interface information of routing device actual reception multicast message and the corresponding multicast routing table item of this multicast message is identical, if situation inequality occurs, but present embodiment process ends, also can trigger CPU and on chain of command, rebulid route table items, concrete condition needs concrete analysis, and the embodiment of the invention does not limit.
Step 607 is obtained all outgoing interface information in the multicast routing table item that step 605 is determined.
Here, for ease of describing, present embodiment is that more than one software Wide Area Network interface information and more than one hardware-switch interface message are example with outgoing interface information.
Step 608 is duplicated the multicast message of current reception and is given the software Wide Area Network interface of the software Wide Area Network interface information correspondence that comprises in the outgoing interface information of obtaining in the step 607.Finish the flow process of current software Wide Area Network interface forwarding multicasting message.
Here, because the incoming interface information of multicast message is the hardware-switch interface message, so, three layers of exchange chip have been transmitted the multicast message that receives on this multicast message corresponding hardware Fabric Interface, therefore, just can omit CPU sends to the multicast message that receives by the interface channel that is provided with three layers of exchange chip between CPU and three layers of exchange chip operation in this step 608.
So, can realize operating in conjunction with the forwarding of carrying out multicast message by software Wide Area Network interface in the same routing device and hardware-switch interface.
Particularly, for making flow process shown in Figure 6 clearer, can be with reference to the 3rd schematic diagram of multicast message forwarding shown in Figure 7.As shown in Figure 7, idiographic flow is: 1., receiving group message on the hardware-switch interface, then three layers of exchange chip finished the multicast routing table item of the multicast message correspondence of determining current reception automatically, if the outgoing interface information that comprises of this multicast routing table item be specially the hardware-switch interface message and, the interface message of the interface channel correspondence that is provided with between CPU and the three layers of exchange chip, then by each hardware-switch interface message, and the corresponding respectively interface forwarding multicasting message of interface message of the interface channel correspondence that is provided with between CPU and the three layers of exchange chip; 2., after CPU receives the multicast message that sends from three layers of exchange chip, determine the multicast routing table item of this multicast message correspondence; If the incoming interface information that comprises in the multicast routing table item of determining is the hardware-switch interface message, then the CPU software Wide Area Network interface of only being responsible for the software Wide Area Network interface information correspondence that comprises to outgoing interface information in this multicast routing table item duplicates the multicast message of current reception.
Need to prove, above-mentioned is in conjunction with the forwarding that realizes multicast message with software Wide Area Network interface and hardware-switch interface, present embodiment also can be applicable to only realize the forwarding of multicast message on software Wide Area Network interface or hardware-switch interface, specifically can handle accordingly, repeat no more here according to multicast source address information in the multicast message and multicast address information.
More than the method that provides for the embodiment of the invention describe, the device that the embodiment of the invention is provided is described below.
Referring to Fig. 8, the structure drawing of device that Fig. 8 provides for the embodiment of the invention.As shown in Figure 8, this routing device can comprise: software processing device 801 and hardware handles device 802.
Wherein, software processing device 801 corresponding software Wide Area Network interface; Hardware handles device 802 corresponding hardware-switch interfaces; And, be provided with interface channel between software processing device 801 and the hardware handles device 802.
Software processing device 801 and hardware handles device 802 any one device among both receives multicast message on its corresponding interface, send described multicast message to another device in software processing device and the hardware handles device by described interface channel.This another device receives described multicast message, and determines to transmit the outgoing interface of this multicast message, transmits the multicast message of this reception according to the interface of self correspondence that comprises in this outgoing interface of determining.
Preferably, as shown in Figure 8, this routing device further comprises: brush unit 803 under the routing table.
Here, brush unit 803 can be arranged on the software processing device 801 under the routing table, perhaps is independent of software processing device 801, and the embodiment of the invention does not specifically limit.It is example that Fig. 8 is independent of software processing device 801 with brush unit under the routing table 803.
Brush unit 803 is used to set up multicast routing table under the routing table, and according to described multicast routing table, need to determine down brush to give the software multicast routing table of software processing device respectively and needs down brush to the hardware multicast routing table of hardware handles device; Brush to hardware handles device 802 brushing under definite software multicast routing table under the hardware multicast routing table of giving software processing device 801 and will determine.
Wherein, as shown in Figure 8, brush unit 803 can comprise under this routing table: routing table is set up subelement 8031, software routing table and is determined that subelement 8032, hardware routing table determine brush unit 8034 under subelement 8033 and the routing table.
Wherein, routing table is set up subelement 8031 and is used to set up multicast routing table.
Software routing table determines that subelement 8032 is used for that routing table is set up multicast routing table that subelement 8031 sets up and is defined as brushing needs under software multicast routing table to software processing device 801.
Hardware routing table determines that subelement 8033 can comprise: first judge module 80331, second judge module 80332, the 3rd judge module 80333, update module 80334, determination module 80335.
Wherein, first judge module 80331 is used for setting up at routing table each multicast routing table item of the multicast routing table of subelement 8031 foundation, judges whether the incoming interface information of this multicast routing table item is software Wide Area Network interface information;
Second judge module 80332 is used in the judged result that receives first judge module 80331 judging whether the outgoing interface information in this multicast routing table item comprises the hardware-switch interface message when being;
The 3rd judge module 80333 is used for judging whether the outgoing interface information in this multicast routing table item comprises software Wide Area Network interface information when the judged result that receives first judge module 80331 is the hardware-switch interface message for this incoming interface information;
Update module 80334 is used in the judged result that receives second judge module 80332 when being, is the interface message of described interface channel correspondence with the incoming interface information updating in this multicast routing table item; For not the time, delete this multicast routing table item in the judged result that receives second judge module 80332; And in the judged result that receives the 3rd judge module 80333 when being, delete the software Wide Area Network interface information that comprises in the outgoing interface information of this multicast routing table item, and the interface message of adding described interface channel correspondence is in the outgoing interface information of this multicast routing table item.
Determination module 80335 is used for that routing table is set up the routing table that obtains after multicast routing table that subelement 8031 sets up is handled through update module 80334 and is defined as brushing under needs hardware multicast routing table to hardware handles device 802;
So, brush unit 8034 is used for software routing table is determined that software multicast routing table and determination module 80335 definite hardware multicast routing tables that subelement 8032 is determined send to software processing device 801 and hardware handles device 802 respectively under the routing table.
Preferably, as shown in Figure 8, software processing device 801 can comprise: first memory cell 8011, first acquiring unit 8012 and first retransmission unit 8013.
Wherein, first memory cell 8011 is used to store the software multicast routing table of 8034 times brushes of brush unit under the routing table; Wherein, this software multicast routing table comprises a plurality of multicast routing table items, and the incoming interface information in each multicast routing table item is software Wide Area Network interface information; Outgoing interface information is software Wide Area Network interface information, and/or the hardware-switch interface message.
First poll units 8012 is used for determining at first memory cell, 8011 saved software multicast routing tables the multicast routing table item of the multicast message correspondence of current reception, and the outgoing interface information that comprises of this multicast routing table item of poll.
First retransmission unit 8013 is used for transmitting described current multicast message according to the outgoing interface information that first poll units 8012 is polled to.
As shown in Figure 8, hardware handles device 802 comprises: second memory cell 8021, second acquisition unit 8022 and second retransmission unit 8023.
Wherein, second memory cell 8021 is used to store the hardware multicast routing table of 8034 times brushes of brush unit under the routing table, wherein, described hardware multicast routing table comprises a plurality of multicast routing table items, incoming interface information in each multicast routing table item is the interface message of described interface channel correspondence, perhaps is the hardware-switch interface message; Outgoing interface information is the hardware-switch interface message, and/or the interface message of described interface channel correspondence.
Second acquisition unit 8022 is used for determining in the hardware multicast routing table of second memory cell, 8021 storages the multicast routing table item of the multicast message of reception; And obtain the outgoing interface information that this multicast routing table item comprises.
Second retransmission unit 8023 is used for the outgoing interface forwarding multicasting message of the outgoing interface information correspondence obtained according to second acquisition unit 8022.
As shown in Figure 8, in the present embodiment, if any one device is software processing device 801, another device is hardware handles device 802, so, software processing device 801 receives multicast message at the software lan interfaces, sends described multicast message to hardware handles device 802 by interface channel.Then as shown in Figure 8, software processing device 801 also comprises: the first software judging unit 8014.
The first software judging unit 8014 is used for judging whether first poll units, the 8012 current outgoing interface information that are polled to are the hardware-switch interface message, if, judge that whether the current outgoing interface information that is polled to be that first comprises the outgoing interface information of hardware-switch interface message in the multicast routing table item determined of first poll units 8012, if send first forwarding and be notified to first retransmission unit 8013; Otherwise, ignore the hardware-switch interface message that the outgoing interface information that is polled to before deserving comprises.
First retransmission unit 8013 sends multicast message to described hardware handles device by interface channel after the first forwarding notice that receives 8014 transmissions of the first software judging unit; In the judged result that receives the first software judging unit 8014 is that first poll units, the 8012 current outgoing interface information that are polled to are when being software Wide Area Network interface information, then duplicate described multicast message and give each software Wide Area Network interface of each software Wide Area Network interface information correspondence, by each software Wide Area Network interface forwarding multicasting message.
As shown in Figure 8, in the present embodiment, if any one device is the hardware handles device, another device is software processing device; So, the interface message that comprises described interface channel correspondence in the outgoing interface information that second acquisition unit 8022 obtains; Like this, second retransmission unit 8023 sends described multicast message to software processing device by described interface channel.
Preferably, as shown in Figure 8, software processing device 801 also comprises: the second software judging unit 8015.
Wherein, first poll units 8012 also is used for obtaining incoming interface information at the multicast routing table item of determining; And obtain outgoing interface information in definite multicast routing table item;
The second software judging unit 8015 judges whether the incoming interface information that first poll units 8012 is obtained is the hardware-switch interface message; If the outgoing interface information that gets access in first poll units 8012 comprises software Wide Area Network interface information and hardware-switch interface message, when perhaps comprising software Wide Area Network interface information, send second forwarding and be notified to first retransmission unit 8013.
First retransmission unit 8013 receives described second and transmits notice, the interface of the software Wide Area Network interface information correspondence in the outgoing interface information that first poll units 8012 is got access to is defined as transmitting the outgoing interface of this multicast message, by this outgoing interface forwarding multicasting message of determining.
Preferably, the routing device that provides in the present embodiment can be arranged in three-tier switch or the router, and present embodiment does not specifically limit.
Preferably, in the present embodiment, software processing device can be CPU; The hardware handles device is three layers of exchange chip.
In sum, the retransmission method of the multicast message that the embodiment of the invention provides and routing device, wherein, this method can be applicable to comprise the routing device of the hardware handles device of the software processing device of corresponding software Wide Area Network interface and corresponding hardware-switch interface, and, between software processing device and hardware handles device, interface channel is set; This method comprises: any one device in software processing device and the hardware handles device receives multicast message on its corresponding interface, send described multicast message to another device in software processing device and the hardware handles device by described interface channel; This another device determine to be transmitted the outgoing interface of this multicast message, transmits the multicast message of this reception according to the interface of self correspondence that comprises in this outgoing interface of determining.So, realized on same routing device, utilizing software Wide Area Network interface and hardware-switch interface in conjunction with carrying out the forwarding of multicast message.
Such as, software processing device receives multicast message on its corresponding software Wide Area Network interface, then determine to transmit the outgoing interface of this multicast message, if comprise hardware handles device corresponding hardware Fabric Interface in the outgoing interface, then software processing device sends described multicast message to the hardware handles device by described interface channel, so, the hardware handles device determines to transmit the outgoing interface of this multicast message, so, the hardware handles device is transmitted the multicast message of this reception by the outgoing interface of determining, wherein, this outgoing interface of determining comprises one or more hardware-switch interfaces.So, realized utilizing same software Wide Area Network interface and hardware-switch interface combination the carrying out forwarding of multicast message on the routing device.
Further, than prior art, because the present invention is when reception and forwarding multicasting message, it is not place one's entire reliance upon software Wide Area Network interface or hardware-switch interface, but utilize software Wide Area Network interface and the combination of hardware-switch interface, like this, both can satisfy complicated business and abundant wide area network characteristics such as the QoS that becomes more meticulous, and can improve the speed of service that interface E-Packets again.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (17)

1, a kind of retransmission method of multicast message, it is characterized in that, this method is applied to comprise the routing device of the hardware handles device of the software processing device of corresponding software Wide Area Network interface and corresponding hardware-switch interface, and, between software processing device and hardware handles device, interface channel is set; This method comprises:
Steps A, any one device in software processing device and the hardware handles device receives multicast message on its corresponding interface, send described multicast message to another device in software processing device and the hardware handles device by described interface channel;
Multicast message among the step B, this another device receiving step A determines to transmit the outgoing interface of this multicast message, transmits the multicast message of this reception according to the interface of self correspondence that comprises in this outgoing interface of determining.
2, retransmission method according to claim 1 is characterized in that, this method further comprises:
A0, the multicast routing table that brush is corresponding is down given software processing device and the storage of hardware handles device respectively;
Determine among the described step B that the outgoing interface of transmitting this multicast message comprises: step B1, the multicast routing table item of definite multicast message correspondence that receives in the multicast routing table of self storing; Step B2 obtains outgoing interface information in this multicast routing table item of determining; Step B3 is defined as the interface of this outgoing interface information correspondence of obtaining to transmit the outgoing interface of this multicast message.
3, retransmission method according to claim 2 is characterized in that, described steps A 0 comprises:
A sets up multicast routing table;
B according to the multicast routing table among the step a, determine to need down brush to give the software multicast routing table of software processing device respectively and needs down brush to the hardware multicast routing table of hardware handles device;
C brushes to the hardware handles device brushing under definite software multicast routing table under the hardware multicast routing table of giving software processing device and will determine.
4, retransmission method according to claim 3 is characterized in that, the needs of determining among described step b brush are down given the multicast routing table of the software multicast routing table of software processing device for step a foundation;
The software multicast routing table that the needs of determining among the described step b are brushed to the hardware handles device down comprises:
Step b1 at each the multicast routing table item in the multicast routing table of step a foundation, judges whether the incoming interface information of this multicast routing table item is software Wide Area Network interface information, if, execution in step b2; Otherwise, when this incoming interface information is the hardware-switch interface message, execution in step b3;
Step b2 judges whether the outgoing interface information in this multicast routing table item comprises the hardware-switch interface message, if be the interface message of described interface channel correspondence with the incoming interface information updating in this multicast routing table item; Otherwise, delete this multicast routing table item;
Step b3, judge whether the outgoing interface information in this multicast routing table item comprises software Wide Area Network interface information, if, then delete the software Wide Area Network interface information that comprises in the outgoing interface information of this multicast routing table item, and the interface message of adding described interface channel correspondence is in the outgoing interface information of this multicast routing table item;
Step b4, the multicast routing table that step a is set up needing to be defined as down brush to the hardware multicast routing table of hardware handles device through described step b1 to the routing table that obtains after step b3 handles.
5, retransmission method according to claim 4 is characterized in that, if the judged result among the step b2 is when being, described step b2 further comprises: whether the outgoing interface information of judging this multicast routing table item also comprises software Wide Area Network interface information; If delete the software Wide Area Network interface information that this outgoing interface information comprises.
According to the arbitrary described retransmission method of claim 2 to 5, it is characterized in that 6, if any one device is software processing device in the steps A, the interface that receives multicast message is the software Wide Area Network interface; Described another device is the hardware handles device;
Sending described multicast message by interface channel in the described steps A comprises to another device in software processing device and the hardware handles device: software processing device is determined the multicast routing table item of the multicast message correspondence of current reception in the multicast routing table of self storing; Outgoing interface information in the multicast routing table item that poll should be determined; Judge whether the current outgoing interface information that is polled to is the hardware-switch interface message, if then send described multicast message to the hardware handles device by interface channel.
7, retransmission method according to claim 6, it is characterized in that, when judging the current outgoing interface information that is polled to and be the hardware-switch interface message, judge then whether the current outgoing interface information that is polled to is that first comprises the outgoing interface information of hardware-switch interface message in described definite multicast routing table item, if then carry out by interface channel and send of the operation of described multicast message to the hardware handles device; Otherwise, ignore the hardware-switch interface message that comprises in the current outgoing interface information that is polled to.
8, retransmission method according to claim 7, it is characterized in that, when judging the current outgoing interface information that is polled to and be software Wide Area Network interface information, then further comprise: the multicast message that duplicates current reception is given the software Wide Area Network interface of the software Wide Area Network interface information correspondence in the current outgoing interface information that is polled to.
According to the described retransmission method of claim 2 to 5, it is characterized in that 9, if any one device is the hardware handles device in the steps A, the interface that receives multicast message is the hardware-switch interface; Another device among the described step B is software processing device;
Sending multicast message by interface channel in the described steps A comprises to another device: the hardware handles device is determined the multicast routing table item of the multicast message correspondence of reception in the multicast routing table of self storing; In this multicast routing table item of determining, obtain outgoing interface information; Wherein, this outgoing interface information of obtaining comprises the interface message of described interface channel correspondence; Interface by the interface channel correspondence sends multicast message to software processing device.
10, method according to claim 9 is characterized in that, described step B2 further comprises: obtain incoming interface information in the multicast routing table item that step B1 determines; Described step B3 comprises: judge whether the incoming interface information of obtaining is the hardware-switch interface message, if, if the outgoing interface information that step B2 obtains comprises software Wide Area Network interface information and hardware-switch interface message, perhaps only comprise software Wide Area Network interface information, then the software Wide Area Network interface of the software Wide Area Network interface information correspondence obtained is defined as transmitting the outgoing interface of this multicast message.
11, a kind of routing device is characterized in that, this routing device comprises software processing device and hardware handles device; Wherein, the corresponding software Wide Area Network interface of described software processing device, the corresponding hardware-switch interface of described hardware handles device; And, be provided with interface channel between described software processing device and the hardware handles device;
Any one device in described software processing device and the hardware handles device receives multicast message on its corresponding interface, send described multicast message to another device in software processing device and the hardware handles device by described interface channel;
This another device receives described multicast message, and determines to transmit the outgoing interface of this multicast message, transmits the multicast message of this reception according to the interface of self correspondence that comprises in this outgoing interface of determining.
12, routing device according to claim 11 is characterized in that, this routing device further comprises: brush unit under the routing table; Wherein,
Brush unit is used to set up multicast routing table under the described routing table, and according to described multicast routing table, need to determine down brush to give the software multicast routing table of software processing device respectively and needs down brush to the hardware multicast routing table of hardware handles device; Brush to the hardware handles device brushing under definite software multicast routing table under the hardware multicast routing table of giving software processing device and will determine.
13, routing device according to claim 12 is characterized in that, brush unit comprises under the described routing table: routing table is set up unit, software routing table and is determined that subelement, hardware routing table determine brush unit under subelement and the routing table; Wherein,
Described routing table is set up subelement and is used to set up multicast routing table;
Described software routing table determines that subelement is used for that described routing table is set up multicast routing table that subelement sets up and is defined as brushing needs under software multicast routing table to software processing device;
Described hardware routing table determines that subelement comprises:
First judge module is used for setting up at described routing table each multicast routing table item of the multicast routing table that subelement sets up, judges whether the incoming interface information of this multicast routing table item is software Wide Area Network interface information;
Second judge module is used in the judged result that receives described first judge module judging whether the outgoing interface information in this multicast routing table item comprises the hardware-switch interface message when being;
The 3rd judge module is used for judging whether the outgoing interface information in this multicast routing table item comprises software Wide Area Network interface information when the judged result that receives described first judge module is the hardware-switch interface message for this incoming interface information;
Update module is used in the judged result that receives described second judge module when being, is the interface message of described interface channel correspondence with the incoming interface information updating in this multicast routing table item; For not the time, delete this multicast routing table item in the judged result that receives described second judge module; And in the judged result that receives described the 3rd judge module when being, delete the software Wide Area Network interface information that comprises in the outgoing interface information of this multicast routing table item, and the interface message of adding described interface channel correspondence is in the outgoing interface information of this multicast routing table item;
Determination module is used for that described routing table is set up the routing table that obtains after multicast routing table that subelement sets up is handled through described update module and is defined as brushing under needs hardware multicast routing table to the hardware handles device;
Brush unit is used for software routing table is determined that software multicast routing table and hardware multicast routing table that subelement and determination module are determined send to software processing device and hardware handles device respectively under the described routing table.
14, routing device according to claim 13 is characterized in that, described software processing device comprises: first memory cell, first poll units and first retransmission unit; Wherein,
Described first memory cell is used to store the software multicast routing table that brush unit is brushed down under the described routing table; Wherein, this software multicast routing table comprises a plurality of multicast routing table items, and the incoming interface information in each multicast routing table item is software Wide Area Network interface information; Outgoing interface information is software Wide Area Network interface information, and/or the hardware-switch interface message;
Described first poll units is used for determining at the software multicast routing table of described first cell stores multicast routing table item of the multicast message correspondence of current reception, and the outgoing interface information that comprises of this multicast routing table item of poll;
Described first retransmission unit is used for the outgoing interface information forwarding multicasting message that is polled to according to described first poll units.
According to claim 13 or 14 described routing devices, it is characterized in that 15, described hardware handles device comprises: second memory cell, second acquisition unit and second retransmission unit; Wherein,
Described second memory cell is used to store the hardware multicast routing table that brush unit is brushed down under the described routing table, wherein, described hardware multicast routing table comprises a plurality of multicast routing table items, incoming interface information in each multicast routing table item is the interface message of described interface channel correspondence, perhaps is the hardware-switch interface message; Outgoing interface information is the hardware-switch interface message, and/or the interface message of described interface channel correspondence;
Described second acquisition unit is used for determining in the hardware multicast routing table of described second cell stores multicast routing table item of the multicast message of reception; And obtain the outgoing interface information that this multicast routing table item comprises;
Described second retransmission unit is used for the outgoing interface forwarding multicasting message of the outgoing interface information correspondence obtained according to described second acquisition unit.
16, routing device according to claim 14 is characterized in that, if described any one device is software processing device, described another device is the hardware handles device, and then described software processing device also comprises: the first software judging unit; Wherein,
The described first software judging unit is used to judge whether the current outgoing interface information that is polled to of described first poll units is the hardware-switch interface message, if, judge whether the current outgoing interface information that is polled to is that first comprises the outgoing interface information of hardware-switch interface message in described definite multicast routing table item, if send first forwarding and be notified to described first retransmission unit; Otherwise,, then ignore the hardware-switch interface message that the outgoing interface information that is polled to before deserving comprises if the current outgoing interface information that is polled to not is for first comprises the outgoing interface information of hardware-switch interface message in described definite multicast routing table item;
Described first retransmission unit sends multicast message to described hardware handles device by interface channel after receiving the first forwarding notice of described first software judging unit transmission; In the judged result that receives the described first software judging unit is that the current outgoing interface information that is polled to is when being software Wide Area Network interface information, then duplicate described multicast message and give each software Wide Area Network interface of each software Wide Area Network interface information correspondence, by each software Wide Area Network interface forwarding multicasting message.
17, routing device according to claim 15 is characterized in that, if any one device is the hardware handles device, another device is software processing device; The interface message that comprises described interface channel correspondence in the outgoing interface information that then described second acquisition unit obtains;
Described software processing device also comprises: the second software judging unit; Wherein,
Described first poll units also is used for obtaining incoming interface information at the multicast routing table item of determining; And obtain outgoing interface information in definite multicast routing table item;
Whether the incoming interface information that described first poll units of the described second software judgment unit judges is obtained is the hardware-switch interface message; If, comprise software Wide Area Network interface information and hardware-switch interface message in the current outgoing interface information that is polled to of described first poll units, when perhaps comprising software Wide Area Network interface information, send second forwarding and be notified to described first retransmission unit;
Described first retransmission unit receives described second and transmits notice, the interface of the software Wide Area Network interface information correspondence in the outgoing interface information that described first poll units is got access to is defined as transmitting the outgoing interface of this multicast message, by this outgoing interface forwarding multicasting message of determining.
CN2009100846372A 2009-05-18 2009-05-18 Forwarding method of multicast messages and router Active CN101557342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100846372A CN101557342B (en) 2009-05-18 2009-05-18 Forwarding method of multicast messages and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100846372A CN101557342B (en) 2009-05-18 2009-05-18 Forwarding method of multicast messages and router

Publications (2)

Publication Number Publication Date
CN101557342A true CN101557342A (en) 2009-10-14
CN101557342B CN101557342B (en) 2011-03-30

Family

ID=41175292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100846372A Active CN101557342B (en) 2009-05-18 2009-05-18 Forwarding method of multicast messages and router

Country Status (1)

Country Link
CN (1) CN101557342B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595248A (en) * 2012-01-18 2012-07-18 杭州华三通信技术有限公司 Multicast forwarding table item maintaining method and protocol independent multicast router
CN107707515A (en) * 2017-02-15 2018-02-16 贵州白山云科技有限公司 A kind of method and device that Intelligent Hybrid acceleration is carried out to different safety class resource
CN108011828A (en) * 2017-12-07 2018-05-08 北京东土军悦科技有限公司 A kind of multicast switching method, device, core layer switch and storage medium
CN108400939A (en) * 2018-03-02 2018-08-14 赛特斯信息科技股份有限公司 The system and method for accelerating multicast replication is realized in NFV
CN110398918A (en) * 2019-07-12 2019-11-01 中国电信集团工会上海市委员会 A kind of multicast flow control system of home gateway
CN110855568A (en) * 2019-11-22 2020-02-28 迈普通信技术股份有限公司 Message forwarding method and system
CN113132262A (en) * 2020-01-15 2021-07-16 阿里巴巴集团控股有限公司 Data stream processing and classifying method, device and system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595248B (en) * 2012-01-18 2014-02-26 杭州华三通信技术有限公司 Multicast forwarding table item maintaining method and protocol independent multicast router
CN102595248A (en) * 2012-01-18 2012-07-18 杭州华三通信技术有限公司 Multicast forwarding table item maintaining method and protocol independent multicast router
WO2018149317A1 (en) * 2017-02-15 2018-08-23 贵州白山云科技有限公司 Method of performing smart hybrid acceleration on resources, device, medium, and apparatus
CN107707515A (en) * 2017-02-15 2018-02-16 贵州白山云科技有限公司 A kind of method and device that Intelligent Hybrid acceleration is carried out to different safety class resource
CN107707515B (en) * 2017-02-15 2018-06-08 贵州白山云科技有限公司 A kind of method and device that Intelligent Hybrid acceleration is carried out to different safety class resource
US11258801B2 (en) 2017-02-15 2022-02-22 Guizhou Baishancloud Technology Co., Ltd. Method of performing smart hybrid acceleration on resources, device, medium and apparatus
CN108011828A (en) * 2017-12-07 2018-05-08 北京东土军悦科技有限公司 A kind of multicast switching method, device, core layer switch and storage medium
CN108011828B (en) * 2017-12-07 2020-09-11 北京东土军悦科技有限公司 Multicast switching method, device, core layer switch and storage medium
CN108400939B (en) * 2018-03-02 2020-08-07 赛特斯信息科技股份有限公司 System and method for realizing accelerated multicast replication in NFV (network File System)
CN108400939A (en) * 2018-03-02 2018-08-14 赛特斯信息科技股份有限公司 The system and method for accelerating multicast replication is realized in NFV
CN110398918A (en) * 2019-07-12 2019-11-01 中国电信集团工会上海市委员会 A kind of multicast flow control system of home gateway
CN110855568A (en) * 2019-11-22 2020-02-28 迈普通信技术股份有限公司 Message forwarding method and system
CN113132262A (en) * 2020-01-15 2021-07-16 阿里巴巴集团控股有限公司 Data stream processing and classifying method, device and system
CN113132262B (en) * 2020-01-15 2024-05-03 阿里巴巴集团控股有限公司 Data stream processing and classifying method, device and system

Also Published As

Publication number Publication date
CN101557342B (en) 2011-03-30

Similar Documents

Publication Publication Date Title
CN101557342B (en) Forwarding method of multicast messages and router
EP1677464B1 (en) Packet distribution control method
US7751394B2 (en) Multicast packet relay device adapted for virtual router
CN102160328B (en) Central controller for coordinating multicast message transmissions in distributed virtual network switch environment
CN102215052B (en) Bluetooth radio and the management for integrating with communication network are applied
CN102457386B (en) Multicast message transmission method in bidirectional PIM (Personal Information Management) of communication equipment and communication equipment
CN101471885A (en) Virtual multicast routing for a cluster having state synchronization
CN101404620B (en) Method for creating routing list item and switching equipment
CN101247253A (en) Multi-cast transmission method based on virtual distribution network in IP network
CN104980355B (en) A kind of source controllable multicast data transmission system under SDN environment
CN101317406A (en) Method, device and system for Ethernet supporting source specific multicast forwarding
CN105763385A (en) Flow scheduling method and apparatus
CN101651609A (en) Method and device for realizing multicast load sharing
CN102801623A (en) Multi-access data transmitting method and device
CN101964719B (en) Based on the data processing method of master control board switching, line card and master control borad
CN101176315B (en) Packet relay method and home agent
CN105871992A (en) Cloud access system and method based on wireless communication module
CN107659930A (en) A kind of AP connection control methods and device
JP3782272B2 (en) Multicast system, management server, computer-readable recording medium recording multicast group management program
WO2007094308A1 (en) Wireless data communication system
CN100450068C (en) Multicast group maintaining method
CN101232510A (en) Method and system for implementing multi-network port device multicast
García et al. A new transparent bridge protocol for lan internetworking using topologies with active loops
CN102368735B (en) Virtual private LAN service (VPLS) message processing method and equipment thereof
CN1937848B (en) Wireless roaming user multicast realizing method and access controller

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.