CN103297344A - Distributed data communicating system and multicast message transmitting method thereof - Google Patents
Distributed data communicating system and multicast message transmitting method thereof Download PDFInfo
- Publication number
- CN103297344A CN103297344A CN2012100452546A CN201210045254A CN103297344A CN 103297344 A CN103297344 A CN 103297344A CN 2012100452546 A CN2012100452546 A CN 2012100452546A CN 201210045254 A CN201210045254 A CN 201210045254A CN 103297344 A CN103297344 A CN 103297344A
- Authority
- CN
- China
- Prior art keywords
- ply
- yarn drill
- combination
- multicast
- address
- 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a distributed data communicating system and a multicast message transmitting method of the distributed data communicating system. The distributed data communicating system comprises a master control card, a switching matrix and line cards. A static multicast table which records the correspondence rules between line card combinations and second-layer addresses is arranged on the switching matrix, and the same correspondence rules, the multicast transmitting table and the correspondence relations between interfaces and the line cards are also arranged on the line cards. After receiving an external multicast message, the line cards inquire a corresponding transmitting interface combination recorded in the multicast transmitting table, determine a corresponding line card combination and then determine a corresponding second-layer address, the second-layer address is packaged to the multicast message and then the multicast message is sent to the switching matrix. The switching matrix transmits the multicast message to a corresponding line card according to the corresponding line card combination obtained through the query of the second-layer address, and the corresponding line card sends the multicast message through the interface of the line card after receiving the multicast message from the switching matrix. By the utilization of the distributed data communicating system and the multicast message transmitting method of the distributed data communicating system, high multicast transmitting performance of the distributed data communicating system can be realized at a low cost.
Description
Technical field
The present invention relates to data communication technology field, relate in particular to a kind of distributed data communication system and method for forwarding multicast message thereof.
Background technology
A remarkable inferior position of the centralized data communications equipment of tradition is, central processing unit (CPU) needs processing controls message and data message simultaneously, though will controlling function to a certain extent, separates with data processing function multi-core CPU, but the complete machine transfer capability is subject to cpu performance, makes the many recipients' of some big flows business be difficult to carry out.
The distributed data communication equipment independently becomes control appliance and data equipment with control plane physically with datum plane, has improved control performance and data forwarding performance simultaneously, and the complete machine transfer capability follows the quantity of data equipment to be directly proportional.For the distributed data communication equipment that a plurality of retransmission units are arranged, can support more forwarding interface, stronger transfer capability is fit to carry out the many recipients' of big flow multicast service very much.
Fig. 1 is a kind of composition schematic diagram of distributed data communication system.Referring to Fig. 1, the distributed data communication system generally comprises: be used for the ply-yarn drill (being called for short LPU) that data are transmitted, be used for the main control card (being called for short MPU) of protocol processes, and the switch fabric card (being called for short SFU) that is used between main control card and ply-yarn drill, transmits between ply-yarn drill and ply-yarn drill.The described switch fabric card switching card that is otherwise known as wherein has exchange chip, is used for transmitting data.Described ply-yarn drill, main control card and switch fabric card are inserted on the backboard 101 of system, and the circuit by backboard carries out alternately.
In the distributed data communication system, forwarding for multicast message, have a kind of method of routine to be at present: ply-yarn drill is given switch fabric card after receiving multicast message, by switch fabric card this multicast message is broadcast to each ply-yarn drill, each ply-yarn drill judges according to the configuration information of self whether this ply-yarn drill can receive the multicast message of described switch fabric card broadcasting again, if can receive then receive, otherwise abandon this multicast message.The shortcoming of this conventional method is switching matrix calorie requirement broadcasting packet, causes the switch fabric card inundation easily.
Number be 200810210584 in Chinese patent application, publication number is that CN101355509, name are called the retransmission method that discloses another kind of multicast message in the patent application document of " a kind of method of saving multicast forwarding bandwidth of distributed network equipment ".This method is when multi-thread card multicast forwarding, multicast message is sent to switch fabric card, and safeguard (S at switch fabric card, G, V) transmit rule list, the ply-yarn drill that the recipient is arranged that this forwardings rule list has recorded the multicast message correspondence makes up, thus make switch fabric card only with transmitting multicast data to the ply-yarn drill that the recipient is arranged, avoid conventional switch fabric card inundation, save bandwidth.
But, this scheme is owing to will safeguard dynamically forwarding rule list at switch fabric card, therefore needing increases this dynamic forwarding capability on the software of switch fabric card, and the forwarding of switch fabric card belongs to hardware and transmits, the scale of transmitting regular list item is restricted according to hardware specification, therefore the multicast list quantity of complete machine support is subjected to the scale restriction of the forwarding rule list item of switch fabric card, then needs to use the hardware-switch chip of high standard as the multicast list quantity that will support complete machine, and cost is very high.Recorded in the switch fabric card in addition that (forwarding rule list V) this means that exchange chip need support multicast IP to transmit, and the cost of this exchange chip is also very high for S, G.If use the exchange chip of conventional support L2 address (MAC Address) multicast forwarding, though cost has reduced, because 32 to 1 relation of IP address and MAC Address, and MAC forwarding nonrecognition source address, can cause transmitting inaccurate, forwarding performance is poor.At last, this scheme has taken more bandwidth resources owing to also need to control message interaction between switch fabric card and the ply-yarn drill.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of distributed data communication system and method for forwarding multicast message thereof, with lower cost, realizes the higher multicast forwarding performance of distributed data communication system.
Technical scheme of the present invention is achieved in that
A kind of distributed data communication system comprises switch fabric card, control card main control card and ply-yarn drill,
Described switch fabric card is used for: the static multicast table is set, the rule of correspondence of each ply-yarn drill combination of record and L2 address in this static multicast table; Behind the multicast message of receiving from ply-yarn drill, inquire about described static multicast table according to L2 address wherein and obtain corresponding ply-yarn drill combination, described multicast message is transmitted to ply-yarn drill in this ply-yarn drill combination;
Described control card main control card is used for calculating multicast forward table, and the forwarding interface combination of record multicast message correspondence arranges described multicast forward table to intrasystem each ply-yarn drill in the described multicast forward table;
The rule of correspondence of the combination of the corresponding relation of described multicast forward table, interface and ply-yarn drill and each ply-yarn drill and L2 address is set in the described ply-yarn drill, and this rule of correspondence is identical with the rule of correspondence in the static multicast table described in the switching matrix switch fabric card; Described ply-yarn drill also is used for:
After receiving the multicast message from external equipment, inquire about the forwarding interface combination that described multicast forward table obtains this multicast message correspondence, inquire about described forwarding interface again and obtain corresponding ply-yarn drill combination with the corresponding relation of ply-yarn drill; According to this ply-yarn drill combination, obtain corresponding L2 address according to described ply-yarn drill combination with the rule of correspondence of L2 address; Encapsulate described multicast message according to this L2 address, and send to the switching matrix switch fabric card;
After receiving the multicast message from the switching matrix switch fabric card, the inquiry multicast forward table, obtain the forwarding interface combination of this multicast message correspondence, select to belong in this forwarding interface combination the interface of this ply-yarn drill, the interface of described multicast message by this this ply-yarn drill is sent.
Preferably, the described rule of correspondence is: characterize described ply-yarn drill combination with the ply-yarn drill bitmap in the described L2 address, the corresponding corresponding ply-yarn drill of each bit in this ply-yarn drill bitmap utilizes the value of bit to represent whether comprise corresponding ply-yarn drill.
Preferably, the described rule of correspondence is a kind of fixing mapping relations, has recorded the numerical value of the L2 address of every kind of ply-yarn drill combination difference correspondence in the native system in these fixing mapping relations.
Preferably, described ply-yarn drill is further used for: after receiving multicast message and obtain corresponding forwarding interface combination from external equipment, if comprise the interface of this ply-yarn drill in this forwarding interface combination, the interface of described multicast message by this this ply-yarn drill is sent; And determine that further the ply-yarn drill that only contains non-ply-yarn drill makes up, and obtain the corresponding L2 address of ply-yarn drill combination that this contains non-ply-yarn drill according to the described rule of correspondence more afterwards, encapsulate described multicast message according to this L2 address, and send to the switching matrix switch fabric card.
A kind of method for forwarding multicast message of distributed data communication system comprises:
The static multicast table is set, the rule of correspondence of each ply-yarn drill combination of record and L2 address in this static multicast table in the switching matrix switch fabric card;
The corresponding relation of multicast forward table and interface and ply-yarn drill is set, the forwarding interface combination of record multicast message correspondence in the described multicast forward table in ply-yarn drill; And the rule of correspondence of the combination of each ply-yarn drill and L2 address is set in ply-yarn drill, this rule of correspondence is identical with the rule of correspondence in the described static multicast table;
Ply-yarn drill is received behind the multicast message of external equipment, inquires about the forwarding interface combination that described multicast forward table obtains this multicast message correspondence, inquires about described forwarding interface again and obtains the corresponding ply-yarn drill combination of this forwarding interface combination with the corresponding relation of ply-yarn drill; According to this ply-yarn drill combination, obtain corresponding L2 address according to described ply-yarn drill combination with the rule of correspondence of L2 address; Encapsulate described multicast message according to this L2 address, and send to the switching matrix switch fabric card;
After the switching matrix switch fabric card is received described multicast message from ply-yarn drill, inquire about described static multicast table according to L2 address wherein and obtain corresponding ply-yarn drill combination, described multicast message is transmitted to ply-yarn drill in this ply-yarn drill combination;
After ply-yarn drill is received multicast message from the switching matrix switch fabric card, the inquiry multicast forward table obtains the forwarding interface combination of this multicast message correspondence, select to belong in this forwarding interface combination the interface of this ply-yarn drill, the interface of described multicast message by this this ply-yarn drill is sent.
Preferably, the described rule of correspondence is: characterize described ply-yarn drill combination with the ply-yarn drill bitmap in the described L2 address, the corresponding corresponding ply-yarn drill of each bit in this ply-yarn drill bitmap utilizes the value of bit to represent whether comprise corresponding ply-yarn drill.
Preferably, the described rule of correspondence is a kind of fixing mapping relations, has recorded the numerical value of the L2 address of every kind of ply-yarn drill combination difference correspondence in the native system in these fixing mapping relations.
Described each ply-yarn drill combination of preferably, recording in the static multicast table of described switching matrix switch fabric card is specially the port combination of each ply-yarn drill; After described switching matrix switching matrix is stuck in the described multicast message of receiving from ply-yarn drill, according to L2 address wherein, obtain the port combination of corresponding ply-yarn drill according to the described rule of correspondence of described static multicast table, by each port in this port combination described multicast message is transmitted to corresponding ply-yarn drill.
Preferably, described ply-yarn drill if comprise the interface of this ply-yarn drill in this forwarding interface combination, sends the interface of described multicast message by this this ply-yarn drill after receiving multicast message and obtain corresponding forwarding interface combination from external equipment; And further determine the ply-yarn drill that only contains non-ply-yarn drill and make up, obtain the corresponding L2 address of ply-yarn drill combination that this contains non-ply-yarn drill according to the described rule of correspondence more afterwards, encapsulate described multicast message according to this L2 address, and send to the switching matrix switch fabric card.
Preferably, the concrete mode of the forwarding interface combination of record multicast message correspondence is in the described multicast forward table: the forwarding interface combination of the source IP address of record multicast message, purpose IP address, VPN (virtual private network) route forwarding table sign VRFID value and this multicast message correspondence;
Described ply-yarn drill is received behind the multicast message of external equipment or switching matrix switch fabric card, inquiring about the concrete mode that described multicast forward table obtains the forwarding interface combination of this multicast message correspondence is: source IP address, purpose IP address and the VRFID value of determining the multicast message received, be the described multicast forward table of keyword query with determined source IP address, purpose IP address and VRFID value, obtain corresponding forwarding interface combination.
Compared with prior art, because the present invention only need arrange the L2 address of some on switch fabric card be the static multicast table of keyword, the exchange chip of L2 address (MAC Address) multicast forwarding of conventional support just can be supported the present invention, therefore relative prior art, the present invention is less demanding to exchange chip, realizes that cost is low; And the present invention has simplified the maintenance information of the forwarding rule list on the switch fabric card, as long as the list item scale of the static multicast table of the present invention on switch fabric card can reach the number of combinations of ply-yarn drill in the system, be easy to safeguard, treating capacity is little, the multicast forward table quantity of complete machine support is not restricted, under situation cheaply, improved the forwarding performance of distributed data communication system.
Because the present invention is arranged on described static multicast table on the switch fabric card when initialization, in the process of multicast forwarding, do not need to control message interaction between switch fabric card and the ply-yarn drill, therefore reduce control message interaction between switch fabric card and ply-yarn drill with respect to prior art, saved bandwidth resources.
In addition, because switch fabric card be not to broadcast described multicast message to all ply-yarn drills, so the present invention can also be avoided multicast packet at the inundation of backboard according to described static multicast table forwarding multicasting message targetedly described in the present invention.
Description of drawings
Fig. 1 is a kind of composition schematic diagram of distributed data communication system;
Fig. 2 moves towards schematic diagram for composition and the multicast message forwarding of distributed data communication system of the present invention;
Fig. 3 is a kind of flow chart of the method for forwarding multicast message of distributed data communication system of the present invention;
Fig. 4 is the schematic diagram of each bit value of a kind of L2 address of the present invention.
Embodiment
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
Fig. 2 moves towards schematic diagram for composition and the multicast message forwarding of distributed data communication system of the present invention; Referring to Fig. 2, distributed data communication system of the present invention comprises the ply-yarn drill of transmitting for data (LPU), the main control card (MPU) that is used for protocol processes, and the switch fabric card (SFU) that is used between main control card and ply-yarn drill, transmits between ply-yarn drill and ply-yarn drill, described ply-yarn drill, main control card and switch fabric card are inserted on the backboard 101 of system, and the circuit by backboard carries out alternately.
The common function of described main control card, switch fabric card and ply-yarn drill is identical with prior art.The difference of the present invention and prior art is described emphatically below.
In the distributed data communication system, described ply-yarn drill is received message from three directions, the one, and the message of receiving from the main control card of native system, the 2nd, the message of receiving from the switch fabric card of native system, the 3rd, the message of receiving from external equipment.Multicast message for distributed system is transmitted, and ply-yarn drill is normally received multicast message from the native system switch fabric card, or receives multicast message from the external equipment of native system.The forwarding trend of multicast message of the present invention as shown in Figure 2, after ply-yarn drill receives multicast message from external equipment, if only transmitted by this ply-yarn drill then transmit this multicast message from the interface of this ply-yarn drill, transmitted by non-ply-yarn drill if desired and then multicast message is reported switch fabric card, switch fabric card is transmitted to other ply-yarn drill of this multicast message correspondence again, and corresponding ply-yarn drill utilizes the interface of this ply-yarn drill to transmit this multicast message after described switch fabric card is received multicast message.
Switch fabric card of the present invention is used for: the static multicast table is set, and the rule of correspondence of the combination of each ply-yarn drill and L2 address in the minute book system in this static multicast table, described L2 address is specially media access control layer (MAC) address; Behind the described multicast message of receiving from ply-yarn drill, be that the described static multicast table of keyword query obtains corresponding ply-yarn drill combination with wherein L2 address, described multicast message is transmitted to ply-yarn drill in this ply-yarn drill combination.
Described main control card is used for calculating multicast forward table, and the forwarding interface combination of record multicast message correspondence arranges described multicast forward table to intrasystem each ply-yarn drill in the described multicast forward table.
The rule of correspondence of each ply-yarn drill combination and L2 address in the corresponding relation of described multicast forward table, interface and ply-yarn drill and the native system is set in the described ply-yarn drill, and this rule of correspondence is identical with the rule of correspondence in the table of static multicast described in the switch fabric card; Described ply-yarn drill also is used for:
After described ply-yarn drill is received multicast message from external equipment, inquire about the forwarding interface combination that described multicast forward table obtains this multicast message correspondence, inquire about described forwarding interface again and obtain the corresponding ply-yarn drill of this forwarding interface combination with the corresponding relation of ply-yarn drill and make up; According to this ply-yarn drill combination, obtain corresponding L2 address according to described ply-yarn drill combination with the rule of correspondence of L2 address; Encapsulate described multicast message according to this L2 address, and send to switch fabric card;
After described ply-yarn drill is received multicast message from switch fabric card, the inquiry multicast forward table, obtain the forwarding interface combination of this multicast message correspondence, select to belong in this forwarding interface combination the interface of this ply-yarn drill, the interface of described multicast message by this this ply-yarn drill is sent.
Fig. 3 is a kind of flow chart of the method for forwarding multicast message of distributed data communication system of the present invention.Referring to Fig. 3, this method comprises:
Step 301, in advance the static multicast table is set in switch fabric card, the rule of correspondence of each ply-yarn drill combination and L2 address in the minute book system in this static multicast table.
Generally speaking, can when the switching matrix card initialization, carry out this step 301, namely when initialization, write 2
n-1 static multicast list item, wherein n represents the quantity of ply-yarn drill in the native system, 2
nThe number of combinations of the-1st, n bracing cable card, each static multicast list item have recorded one group of ply-yarn drill combination, the corresponding L2 address of each group ply-yarn drill combination.When this static multicast table of inquiry, be that the ply-yarn drill combination that obtains correspondence inquired about in keyword with the L2 address.
Among a kind of embodiment, each ply-yarn drill combination is specifically as follows with the rule of correspondence of L2 address in the described native system: characterize described ply-yarn drill combination with the ply-yarn drill bitmap in described L2 address, the corresponding corresponding ply-yarn drill in each bit (bit) position in this ply-yarn drill bitmap utilizes the value of bit position to represent whether comprise corresponding ply-yarn drill.That is to say, recorded the bitmap of the ply-yarn drill of forwarding multicasting message in this L2 address.
For example, Figure 4 shows that the schematic diagram of each bit position value of a kind of L2 address.Referring to Fig. 4, in this embodiment, definition for this L2 address, requiring a bit is 1, expression is used for multicast forwarding, and last n bit of this L2 address arranges according to the ply-yarn drill bitmap, described n represents the quantity of the ply-yarn drill in the native system, the corresponding corresponding ply-yarn drill in each bit position in this last n bit, if being the corresponding ply-yarn drill of 1 expression, the value of bit position is included in the corresponding ply-yarn drill combination, if the value of bit position is 0 then represents that corresponding ply-yarn drill is not included in the corresponding ply-yarn drill combination that vice versa.Utilize the ply-yarn drill bitmap of n bit, can represent 2
n-a kind of ply-yarn drill combination.For example, 4 bracing cable cards are arranged in the tentation data communication system herein, then as shown in Figure 4, last 4 bits of the L2 address during described static multicast is transmitted adopt the bitmap of 4 bracing cable cards to represent, 15 kinds of combinations (not containing complete zero) can be arranged.Want forwarding multicasting message as bitmap 0101 expression ply-yarn drill 2 and ply-yarn drill 4.As for other bit positions except described first bit and last n position bit in the described L2 address, can arrange voluntarily to arrange, as long as guarantee when the ply-yarn drill package group is reported literary composition, bit value is consistent gets final product for these of the value of filling in these bit positions of L2 address (as the 2nd among Fig. 4 to the 5th reciprocal) and the L2 address that arranges at switch fabric card.
Described each ply-yarn drill combination of recording in the static multicast table of described switch fabric card specifically also can be the port combination of each ply-yarn drill, for example the corresponding ply-yarn drill 1 of last 4 positions difference of the described L2 address of Fig. 4 is to the port of ply-yarn drill 4, the port of bitmap 0101 expression ply-yarn drill 2 and the port of ply-yarn drill 4 are wanted forwarding multicasting message, add the port (as port 2 and port 4) that connects ply-yarn drill 2 and ply-yarn drill 4 at the forwarding port of transmitting.After described switching matrix is stuck in the described multicast message of receiving from ply-yarn drill, according to L2 address wherein, obtain the port combination (as the combination of port 2 and port 4) of corresponding ply-yarn drill according to the described rule of correspondence of described static multicast table, by each port in this port combination (as port 2 and port 4) with as described in multicast message be transmitted to corresponding ply-yarn drill (as ply-yarn drill 2 and ply-yarn drill 4).
In another kind of embodiment, each ply-yarn drill combination also can use the ply-yarn drill bitmap in the above-mentioned L2 address to characterize with the rule of correspondence of L2 address in the described native system, but record a kind of fixing mapping relations, recorded the numerical value of the L2 address of every kind of ply-yarn drill combination difference correspondence in the native system in these mapping relations.For example a corresponding n ply-yarn drill has 2
nPly-yarn drill combination, correspondence 2 respectively in-1
n-1 L2 address, these are 2 years old
n-1 L2 address will comprise a bit position that is used for the expression multicast, first bit position for example, the particular content of other bit positions can stipulate as required, as long as this 2
n-1 L2 address is different getting final product each other.And the mapping relations that the L2 address that arranges in the mapping relations of this L2 address that arranges in the static multicast table described in the described switch fabric card and ply-yarn drill combination and the ply-yarn drill and ply-yarn drill make up are identical.
Step 302, this method also need to arrange in advance the corresponding relation of multicast forward table and interface and ply-yarn drill in ply-yarn drill, the forwarding interface combination of record multicast message correspondence in the described multicast forward table; And the rule of correspondence of each ply-yarn drill combination and L2 address is set in ply-yarn drill in the native system, this rule of correspondence is identical with the rule of correspondence in the table of static multicast described in the switch fabric card.
For example, if each ply-yarn drill combination of recording in the static multicast table in the described switch fabric card characterizes described ply-yarn drill combination with the rule of correspondence of L2 address with the ply-yarn drill bitmap in the L2 address, then each ply-yarn drill combination also characterizes identical ply-yarn drill combination with the identical ply-yarn drill bitmap in the L2 address with the rule of correspondence of L2 address in the native system that arranges in the described ply-yarn drill.As characterize the combination of ply-yarn drill 2 and ply-yarn drill 4 at the bitmap of ply-yarn drill described in the switch fabric card 0101, then identical ply-yarn drill bitmap 0101 also characterizes the combination of ply-yarn drill 2 and ply-yarn drill 4 in ply-yarn drill.
If each ply-yarn drill combination of recording in the static multicast table in the described switch fabric card characterizes with a kind of fixing mapping relations with the rule of correspondence of L2 address, then each ply-yarn drill combination also characterizes with identical mapping relations with the rule of correspondence of L2 address in the native system that arranges in the described ply-yarn drill.As in the combination that characterizes ply-yarn drill 2 and ply-yarn drill 4 described in the switch fabric card with L2 address 10001111, then also characterize the combination of ply-yarn drill 2 and ply-yarn drill 4 with identical L2 address 10001111 at ply-yarn drill.
The combination of the forwarding interface of the multicast message correspondence that the described multicast forward table of ply-yarn drill wherein records is calculated according to configuration and multicast protocol in advance by main control card, and this multicast forward table issued is set in each ply-yarn drill.
Each bar record of described multicast forward table specifically comprises: the forwarding interface combination of the source IP address of multicast message, purpose IP address, VPN (virtual private network) (VPN) route forwarding table sign (VRFID) value and this multicast message correspondence, for example the forwarding interface of a certain multicast message is combined as interface 11, interface 15, interface 24.
Certainly do not have strict sequencing between the above-mentioned steps 301 and 302, vice versa.
Received that with hypothesis ply-yarn drill 1 from the flow process after the multicast message of external equipment be that example goes on to say the present invention below, certainly, any one ply-yarn drill all can be carried out the following flow process of example that is after receiving from the multicast message of external equipment.
Step 303, receive to come behind the multicast message of external equipment when ply-yarn drill 1, source IP address, purpose IP address and the VRFID value of definite multicast message of receiving, be the described multicast forward table of keyword query with determined source IP address, purpose IP address and VRFID value, obtain corresponding forwarding interface combination.If in described multicast forward table, do not inquire corresponding record, then turn over or abandon this multicast message according to predetermined strategy.
Step 304, the described forwarding interface of ply-yarn drill 1 inquiry make up corresponding ply-yarn drill combination with the forwarding interface that the corresponding relation of ply-yarn drill obtains step 303.
For example, suppose that the interface that ply-yarn drill 1 contains corresponds to interface 1~interface 10, the interface that ply-yarn drill 2 contains corresponds to interface 11~interface 20, and the interface that ply-yarn drill 3 contains corresponds to interface 21~interface 30, and the interface that ply-yarn drill 4 contains corresponds to interface 31~interface 40; If described forwarding interface is combined as interface 11, interface 15 and interface 34, then its corresponding ply-yarn drill is combined as ply-yarn drill 2 and ply-yarn drill 4.
At another kind more specifically among the embodiment, step 304 also can specifically comprise the steps 341 to step 346:
The corresponding relation of the described forwarding interface of step 341, ply-yarn drill 1 inquiry and ply-yarn drill judges whether described forwarding interface contains the interface of non-ply-yarn drill in making up, if execution in step 342 then; Otherwise jump to step 345.
Step 342, ply-yarn drill 1 judge in the combination of described forwarding interface whether contain the interface of this ply-yarn drill, if having then the interface of described multicast message by this this ply-yarn drill is sent, and with interface deletion from described forwarding interface combination of this this ply-yarn drill, jump to step 343; Otherwise leap to step 343.
Step 343, ply-yarn drill 1 judge in the described forwarding interface combination whether contain interface that can not determine the ownership ply-yarn drill, if have then this interface needed otherwise processed, its concrete details of handling is not in this paper narrates scope, need in the present invention this interface of can not determine the ownership ply-yarn drill is deleted from described forwarding interface combination, jump to step 344 afterwards; Otherwise leap to step 344.
Step 344, ply-yarn drill 1 are determined the ply-yarn drill combination that described forwarding interface combination is corresponding, that is to say in this ply-yarn drill combination only to contain non-ply-yarn drill (as the ply-yarn drill of confirmable non-ply-yarn drill 1), jump to step 305.
For example according to the forwarding interface of above-mentioned hypothesis and the corresponding relation of ply-yarn drill, if described forwarding interface is combined as interface 3, interface 11, interface 15 and interface 34, then receive that from external equipment the ply-yarn drill 1 of multicast message transmits multicast message at the interface 3 of this locality, and with interface 3 deletion from the forwarding interface combination, the ply-yarn drill of the correspondence that finally obtains is combined as ply-yarn drill 2 and ply-yarn drill 4.
Step 345, ply-yarn drill 1 judge in the combination of described forwarding interface whether contain the interface of this ply-yarn drill, if having then the interface of described multicast message by this this ply-yarn drill is sent, jump to step 346; Otherwise leap to step 346.
Step 346, ply-yarn drill 1 judge in the combination of described forwarding interface whether contain interface that can not determine the ownership ply-yarn drill, if having then this interface is needed otherwise processed, it specifically handles details not in this paper narrates scope, afterwards process ends; Otherwise abandon described multicast message, process ends.
Step 305, ply-yarn drill 1 make up according to determined ply-yarn drill, obtain corresponding L2 address according to described ply-yarn drill combination with the rule of correspondence of L2 address; Encapsulate described multicast message according to this L2 address, and send to switch fabric card.
The ply-yarn drill combination that arranges in the ply-yarn drill is identical with the rule of correspondence of L2 address with the ply-yarn drill combination that arranges in the table of static multicast described in the switch fabric card with the rule of correspondence of L2 address.Suppose that current definite ply-yarn drill is combined as ply-yarn drill 2 and ply-yarn drill 4, and described each ply-yarn drill combination characterizes described ply-yarn drill combination with the rule of correspondence of L2 address with the ply-yarn drill bitmap in the L2 address, the L2 address of the correspondence that then obtains as shown in Figure 4, its bit is 1, expression is used for multicast forwarding, last four bit line card bitmaps are 0101, and expression ply-yarn drill 2 and ply-yarn drill 4 need to transmit this multicast message.All the other bit positions can arrange to arrange voluntarily, as long as guarantee when the ply-yarn drill package group is reported literary composition, bit value is consistent gets final product for these of the value of filling in these bit positions of L2 address (as the 2nd among Fig. 4 to the 5th reciprocal) and the L2 address that arranges at switch fabric card.
After obtaining described L2 address, this L2 address is encapsulated in the described multicast message, this multicast message is sent to switch fabric card.L2 address in the described multicast message is equivalent to the purpose L2 address of this multicast message.
After step 306, switch fabric card are received described multicast message from ply-yarn drill, according to L2 address wherein, obtain corresponding ply-yarn drill combination according to the described rule of correspondence of described static multicast table, described multicast message is transmitted to ply-yarn drill in this ply-yarn drill combination.
Concrete, after switch fabric card was received message from ply-yarn drill, a bit position of reading L2 address wherein was 1, then is judged to be multicast message, carries out follow-up multicast processing.Namely read this multicast message L2 address last four, its bitmap is 0101, can judge that corresponding ply-yarn drill is combined as ply-yarn drill 2 and ply-yarn drill 4, and the port by ply-yarn drill 2 and ply-yarn drill 4 is transmitted to corresponding ply-yarn drill 2 and ply-yarn drill 4 with described multicast message then.
Described each ply-yarn drill combination of recording in the static multicast table of described switch fabric card specifically also can be the port combination of each ply-yarn drill, for example the corresponding ply-yarn drill 1 of last 4 positions difference of the described L2 address of Fig. 4 is to the port of ply-yarn drill 4, the port of bitmap 0101 expression ply-yarn drill 2 and the port of ply-yarn drill 4 are wanted forwarding multicasting message, add the port (as port 2 and port 4) that connects ply-yarn drill 2 and ply-yarn drill 4 at the forwarding port of transmitting.Therefore switch fabric card can be directly according to last four of L2 address, obtain the port combination (as the combination of port 2 and port 4) of corresponding ply-yarn drill, by each port in this port combination (as port 2 and port 4) with as described in multicast message be transmitted to corresponding ply-yarn drill (as ply-yarn drill 2 and ply-yarn drill 4).
After step 307, ply-yarn drill (for example ply-yarn drill 2 and ply-yarn drill 4) are received the multicast message from switch fabric card, source IP address, purpose IP address and the VRFID value of definite multicast message of receiving, be the described multicast forward table of keyword query with determined source IP address, purpose IP address and VRFID value, obtain corresponding forwarding interface combination, select to belong in this forwarding interface combination the interface of this ply-yarn drill, the interface of described multicast message by this this ply-yarn drill is sent.If in described multicast forward table, do not inquire corresponding record, then turn over or abandon this multicast message according to predetermined strategy.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.
Claims (10)
1. a distributed data communication system comprises switch fabric card, main control card and ply-yarn drill, it is characterized in that,
Described switch fabric card is used for: the static multicast table is set, the rule of correspondence of each ply-yarn drill combination of record and L2 address in this static multicast table; Behind the multicast message of receiving from ply-yarn drill, inquire about described static multicast table according to L2 address wherein and obtain corresponding ply-yarn drill combination, described multicast message is transmitted to ply-yarn drill in this ply-yarn drill combination;
Described main control card is used for calculating multicast forward table, and the forwarding interface combination of record multicast message correspondence arranges described multicast forward table to intrasystem each ply-yarn drill in the described multicast forward table;
The rule of correspondence of the combination of the corresponding relation of described multicast forward table, interface and ply-yarn drill and each ply-yarn drill and L2 address is set in the described ply-yarn drill, and this rule of correspondence is identical with the rule of correspondence in the table of static multicast described in the switch fabric card; Described ply-yarn drill also is used for:
After receiving the multicast message from external equipment, inquire about the forwarding interface combination that described multicast forward table obtains this multicast message correspondence, inquire about described forwarding interface again and obtain corresponding ply-yarn drill combination with the corresponding relation of ply-yarn drill; According to this ply-yarn drill combination, obtain corresponding L2 address according to described ply-yarn drill combination with the rule of correspondence of L2 address; Encapsulate described multicast message according to this L2 address, and send to switch fabric card;
After receiving the multicast message from switch fabric card, the inquiry multicast forward table obtains the forwarding interface combination of this multicast message correspondence, selects to belong in this forwarding interface combination the interface of this ply-yarn drill, and the interface of described multicast message by this this ply-yarn drill is sent.
2. system according to claim 1, it is characterized in that, the described rule of correspondence is: characterize described ply-yarn drill combination with the ply-yarn drill bitmap in the described L2 address, the corresponding corresponding ply-yarn drill of each bit in this ply-yarn drill bitmap utilizes the value of bit to represent whether comprise corresponding ply-yarn drill.
3. system according to claim 1 is characterized in that, the described rule of correspondence is a kind of fixing mapping relations, has recorded the numerical value of the L2 address of every kind of ply-yarn drill combination difference correspondence in the native system in these fixing mapping relations.
4. system according to claim 1, it is characterized in that, described ply-yarn drill is further used for: after receiving multicast message and obtain corresponding forwarding interface combination from external equipment, if comprise the interface of this ply-yarn drill in this forwarding interface combination, the interface of described multicast message by this this ply-yarn drill is sent; And determine that further the ply-yarn drill that only contains non-ply-yarn drill makes up, and obtain the corresponding L2 address of ply-yarn drill combination that this contains non-ply-yarn drill according to the described rule of correspondence more afterwards, encapsulate described multicast message according to this L2 address, and send to switch fabric card.
5. the method for forwarding multicast message of a distributed data communication system is characterized in that, comprising:
The static multicast table is set, the rule of correspondence of each ply-yarn drill combination of record and L2 address in this static multicast table in switch fabric card;
The corresponding relation of multicast forward table and interface and ply-yarn drill is set, the forwarding interface combination of record multicast message correspondence in the described multicast forward table in ply-yarn drill; And the rule of correspondence of the combination of each ply-yarn drill and L2 address is set in ply-yarn drill, this rule of correspondence is identical with the rule of correspondence in the described static multicast table;
Ply-yarn drill is received behind the multicast message of external equipment, inquires about the forwarding interface combination that described multicast forward table obtains this multicast message correspondence, inquires about described forwarding interface again and obtains the corresponding ply-yarn drill combination of this forwarding interface combination with the corresponding relation of ply-yarn drill; According to this ply-yarn drill combination, obtain corresponding L2 address according to described ply-yarn drill combination with the rule of correspondence of L2 address; Encapsulate described multicast message according to this L2 address, and send to switch fabric card;
After switch fabric card is received described multicast message from ply-yarn drill, inquire about described static multicast table according to L2 address wherein and obtain corresponding ply-yarn drill combination, described multicast message is transmitted to ply-yarn drill in this ply-yarn drill combination;
After ply-yarn drill was received multicast message from switch fabric card, the inquiry multicast forward table obtained the forwarding interface combination of this multicast message correspondence, selected to belong in this forwarding interface combination the interface of this ply-yarn drill, and the interface of described multicast message by this this ply-yarn drill is sent.
6. method according to claim 5, it is characterized in that, the described rule of correspondence is: characterize described ply-yarn drill combination with the ply-yarn drill bitmap in the described L2 address, the corresponding corresponding ply-yarn drill of each bit in this ply-yarn drill bitmap utilizes the value of bit to represent whether comprise corresponding ply-yarn drill.
7. method according to claim 5 is characterized in that, the described rule of correspondence is a kind of fixing mapping relations, has recorded the numerical value of the L2 address of every kind of ply-yarn drill combination difference correspondence in the native system in these fixing mapping relations.
8. method according to claim 5 is characterized in that, described each ply-yarn drill combination of recording in the static multicast table of described switch fabric card is specially the port combination of each ply-yarn drill; After described switching matrix is stuck in the described multicast message of receiving from ply-yarn drill, according to L2 address wherein, obtain the port combination of corresponding ply-yarn drill according to the described rule of correspondence of described static multicast table, by each port in this port combination described multicast message is transmitted to corresponding ply-yarn drill.
9. method according to claim 5, it is characterized in that, described ply-yarn drill if comprise the interface of this ply-yarn drill in this forwarding interface combination, sends the interface of described multicast message by this this ply-yarn drill after receiving multicast message and obtain corresponding forwarding interface combination from external equipment; And further determine the ply-yarn drill combination that only contains non-ply-yarn drill, and obtain the corresponding L2 address of ply-yarn drill combination that this contains non-ply-yarn drill according to the described rule of correspondence more afterwards, encapsulate described multicast message according to this L2 address, and send to switch fabric card.
10. method according to claim 5 is characterized in that,
The concrete mode of the forwarding interface combination of record multicast message correspondence is in the described multicast forward table: the forwarding interface combination of the source IP address of record multicast message, purpose IP address, VPN (virtual private network) route forwarding table sign VRFID value and this multicast message correspondence;
Described ply-yarn drill is received behind the multicast message of external equipment or switch fabric card, inquiring about the concrete mode that described multicast forward table obtains the forwarding interface combination of this multicast message correspondence is: source IP address, purpose IP address and the VRFID value of determining the multicast message received, be the described multicast forward table of keyword query with determined source IP address, purpose IP address and VRFID value, obtain corresponding forwarding interface combination.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210045254.6A CN103297344B (en) | 2012-02-27 | 2012-02-27 | Distributed data communication system and method for forwarding multicast message thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210045254.6A CN103297344B (en) | 2012-02-27 | 2012-02-27 | Distributed data communication system and method for forwarding multicast message thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103297344A true CN103297344A (en) | 2013-09-11 |
CN103297344B CN103297344B (en) | 2016-04-20 |
Family
ID=49097684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210045254.6A Active CN103297344B (en) | 2012-02-27 | 2012-02-27 | Distributed data communication system and method for forwarding multicast message thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103297344B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103532857A (en) * | 2013-10-28 | 2014-01-22 | 北京锐安科技有限公司 | Method and device for data forwarding |
CN103561134A (en) * | 2013-11-19 | 2014-02-05 | 迈普通信技术股份有限公司 | Message transmitting method and system |
CN104852858A (en) * | 2015-03-24 | 2015-08-19 | 杭州华三通信技术有限公司 | Traffic forwarding method and equipment |
CN105429823A (en) * | 2015-12-17 | 2016-03-23 | 迈普通信技术股份有限公司 | Method and device for detecting multicast traffic in distributed communication equipment |
CN109286564A (en) * | 2017-07-20 | 2019-01-29 | 迈普通信技术股份有限公司 | A kind of message forwarding method and device |
CN112769693A (en) * | 2020-12-24 | 2021-05-07 | 杭州迪普信息技术有限公司 | Method and device for maintaining multicast group |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101291294A (en) * | 2008-06-06 | 2008-10-22 | 杭州华三通信技术有限公司 | Biprimary controlled switching apparatus, method and device for distributing retransmitting list |
CN101296186A (en) * | 2008-06-13 | 2008-10-29 | 杭州华三通信技术有限公司 | Routing switching device, method and switching cable fastener plate |
CN102045332A (en) * | 2009-10-26 | 2011-05-04 | 杭州华三通信技术有限公司 | Method for processing control message in intelligent resilient framework and line card boards |
-
2012
- 2012-02-27 CN CN201210045254.6A patent/CN103297344B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101291294A (en) * | 2008-06-06 | 2008-10-22 | 杭州华三通信技术有限公司 | Biprimary controlled switching apparatus, method and device for distributing retransmitting list |
CN101296186A (en) * | 2008-06-13 | 2008-10-29 | 杭州华三通信技术有限公司 | Routing switching device, method and switching cable fastener plate |
CN102045332A (en) * | 2009-10-26 | 2011-05-04 | 杭州华三通信技术有限公司 | Method for processing control message in intelligent resilient framework and line card boards |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103532857A (en) * | 2013-10-28 | 2014-01-22 | 北京锐安科技有限公司 | Method and device for data forwarding |
CN103532857B (en) * | 2013-10-28 | 2016-09-14 | 北京锐安科技有限公司 | The method and device that a kind of data forward |
CN103561134A (en) * | 2013-11-19 | 2014-02-05 | 迈普通信技术股份有限公司 | Message transmitting method and system |
CN103561134B (en) * | 2013-11-19 | 2017-02-15 | 迈普通信技术股份有限公司 | Message transmitting method and system |
CN104852858A (en) * | 2015-03-24 | 2015-08-19 | 杭州华三通信技术有限公司 | Traffic forwarding method and equipment |
CN104852858B (en) * | 2015-03-24 | 2018-11-27 | 新华三技术有限公司 | A kind of flow forwarding method and equipment |
CN105429823A (en) * | 2015-12-17 | 2016-03-23 | 迈普通信技术股份有限公司 | Method and device for detecting multicast traffic in distributed communication equipment |
CN105429823B (en) * | 2015-12-17 | 2018-06-01 | 迈普通信技术股份有限公司 | Flux of multicast detection method and device in distributed communication equipment |
CN109286564A (en) * | 2017-07-20 | 2019-01-29 | 迈普通信技术股份有限公司 | A kind of message forwarding method and device |
CN109286564B (en) * | 2017-07-20 | 2022-06-07 | 迈普通信技术股份有限公司 | Message forwarding method and device |
CN112769693A (en) * | 2020-12-24 | 2021-05-07 | 杭州迪普信息技术有限公司 | Method and device for maintaining multicast group |
Also Published As
Publication number | Publication date |
---|---|
CN103297344B (en) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8718061B2 (en) | Data center network system and packet forwarding method thereof | |
CN103297344B (en) | Distributed data communication system and method for forwarding multicast message thereof | |
EP3070887B1 (en) | Communication method, device and system for virtual extensible local area network | |
CN103795636B (en) | Multicast processing method, device and system | |
CN101442493B (en) | Method for distributing IP message, cluster system and load equalizer | |
US7826450B2 (en) | Multicast/broadcast extension to a point-to-point unicast-only packet switch system | |
JP5239966B2 (en) | Relay device, tenant management program | |
CN102801715A (en) | Method for virtual machine migration in network, gateway and system | |
CN103095546A (en) | Method, device and data center network for processing messages | |
US10382391B2 (en) | Systems and methods for managing network address information | |
CN108600074A (en) | The retransmission method and device of multicast data message | |
CN104580505A (en) | Tenant isolating method and system | |
CN102629947A (en) | Network communication apparatus, network communication method, and program | |
CN107852344B (en) | Storage network element discovery method and device | |
CN100414936C (en) | Method for balancing load between multi network cards of network file system server | |
CN106850268B (en) | device and method for realizing linear protection switching | |
CN106713130A (en) | Routing table updating method, EVPN control equipment and EVPN system | |
US7505476B2 (en) | Packet transfer path control apparatus and control program therefor | |
CN109286564B (en) | Message forwarding method and device | |
CN108011802B (en) | Message sending method and two-layer and three-layer network equipment | |
CN101924698B (en) | Method, system and equipment for balancing two-layer domain load based on IP unicast route | |
CN101808037A (en) | Method and device for traffic management in switch network | |
CN101115001B (en) | Host computer of ADSL router and PVC dynamic binding method | |
CN103905392B (en) | DynamicHost sets protocol DHCP server selection method, apparatus and system | |
CN106489252A (en) | A kind of data transmission method and device |
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 |