CN102299857A - Multicast message processing method, line card and communication equipment - Google Patents

Multicast message processing method, line card and communication equipment Download PDF

Info

Publication number
CN102299857A
CN102299857A CN2011102732956A CN201110273295A CN102299857A CN 102299857 A CN102299857 A CN 102299857A CN 2011102732956 A CN2011102732956 A CN 2011102732956A CN 201110273295 A CN201110273295 A CN 201110273295A CN 102299857 A CN102299857 A CN 102299857A
Authority
CN
China
Prior art keywords
message
yarn drill
ply
multicast message
indication information
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
CN2011102732956A
Other languages
Chinese (zh)
Other versions
CN102299857B (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.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201110273295.6A priority Critical patent/CN102299857B/en
Publication of CN102299857A publication Critical patent/CN102299857A/en
Application granted granted Critical
Publication of CN102299857B publication Critical patent/CN102299857B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a multicast message processing method, a line card and communication equipment. The multicast message processing method comprises that: a source line card processes a multicast message received by a communication interface to obtain a processed message, wherein the processed message carries the indication information of destination line cards of the multicast message; and the source line card transmits the processed message to the first of the destination line cards, arranged according to a given sequence, of the multicast message by a peripheral component interconnect express (PCIE) interface. Correspondingly, the destination line card receives the processed message obtained by processing the multicast message, and transmits the first of the destination line cards, arranged according to the given sequence after the destination line card, of the multicast message by the PCIE interface according to the indication information. By the scheme provided by the embodiment of the invention, the burden of the source line card is reduced, the central processing unit (CPU) utilization rate of the destination line card is increased and the overall performance of the equipment is improved in the transmission processing of the multicast message.

Description

A kind of multicast message processing method, ply-yarn drill and communication equipment
Technical field
The present invention relates to PCIE (Peripheral Component Interconnect Express, the external module interconnect standard of enhancing) the bussing technique field in the communication technical field, relate in particular to a kind of multicast message processing method, ply-yarn drill and communication equipment.
Background technology
The PCIE bus is the third generation I/O high performance bus that is used for each ply-yarn drill of connection communication equipment, is based on PCI (Peripheral Component Interconnect, external module interconnect standard) bus and grows up.Pci bus adopts shares parallel connected mode, and the same time only can have a ply-yarn drill to communicate on pci bus, if the ply-yarn drill that articulates on the pci bus increases, the actual transfer rate of each ply-yarn drill will descend, and performance can not get guaranteeing; And the PCIE bus adopts point-to-point mode connected in series, each ply-yarn drill all has oneself independently data connection, and transfer of data concurrent between each ply-yarn drill is independent of each other, thereby has guaranteed the monopoly of data transmission channel, avoid the interference of other ply-yarn drills, improved message transmission rate.
In the communication equipment that adopts the PCIE switching technology, generally comprise a main control card, several ply-yarn drills and PCIE interchanger, also the PCIE interchanger can be integrated in main control card, main control card control PCIE interchanger is realized the message forwarding to needing between each ply-yarn drill to transmit, the interface that carries out message transmissions between each ply-yarn drill is called the PCIE interface, distinguish mutually with the PCIE interface, be used in the ply-yarn drill and other communication equipments between the interface of message transmission be called communication interface.
At present, according to the difference of inner ply-yarn drill to the message processing mode, communication equipment mainly contains two types, a kind of is centralized communication equipment, and wherein main control card is provided with CPU, is used for being responsible for the message processing of a plurality of ply-yarn drills, another kind is a distributed communication equipment, except that main control card is provided with CPU, also all be provided with CPU on each ply-yarn drill, each ply-yarn drill is handled by separately CPU for the message of self and is responsible for.
Along with the fast development of network technology, distributed communication equipment uses in increasing network environment.Data exchange channel in the distributed communication equipment between each ply-yarn drill is called the backboard switching network, and in present distributed communication equipment, PCIE exchange and ether exchange are two kinds of comparatively common backboard switching technologies.
Ethernet is supported multicast address at the MAC layer, so in the distributed apparatus based on the ether exchange, the transport multicast message is fairly simple between ply-yarn drill, only the target MAC (Media Access Control) address of message need be revised as multicast address, send to the ether exchange chip then, just can this multicast message be transmitted to a plurality of purpose ply-yarn drills simultaneously by exchange chip.
Yet in the PCIE exchanged form, main employing is carried out route according to the destination address of message, and different ply-yarn drills has different PCIE base address, transmits by can finish message to different PCIE address write datas.But in this mode, do not support a message is once sent to a plurality of purpose ply-yarn drills, transmit so PCIE exchange itself can not realize the multicast message cross-line card that is similar to the ether exchange.
Be example with distributed communication equipment shown in Figure 1 below, the scheme of the device interior message transmissions that adopts the PCIE exchanged form is introduced based on the PCIE exchange.
In Fig. 1, two kinds of integrated circuit boards have been comprised in the distributed communication equipment, a kind of is the main control card that has the PCIE interchanger, also can be described as the core switching card, another kind is the ply-yarn drill that communication interface is arranged, each ply-yarn drill all has CPU separately, and be provided with quantity and do not wait or diverse communication interface, be used for carrying out message transmissions with other communication equipment, for example, ply-yarn drill 1 is provided with interface 1/0 and interface 1/1 and amounts to two communication interfaces, and each ply-yarn drill all links to each other with PCIE interchanger in the main control card by the PCIE interface, is used for carrying out between ply-yarn drill message transmissions.Because each ply-yarn drill all has message processing capability, so compare centralized communication equipment, the disposal ability of equipment complete machine is the linear superposition of the disposal ability of each ply-yarn drill, thereby has promoted complete machine performance and capacity.
Difference according to message forwarding path can be divided into the forwarding of this card and stride the card forwarding, and wherein, the message between the different communication interface on the same ply-yarn drill is transmitted and is called the forwarding of this card, and this card is transmitted the CPU participation forwarding that does not need other ply-yarn drill and handled; Message between the communication interface of different ply-yarn drills is transmitted to be called and is striden the card forwarding, and message need pass through the PCIE interchanger when striding the card forwarding, and needs the participation of the CPU of two ply-yarn drills just can finish.
For the handling process of this card forwarding unicast message, the message that receives with the interface 1/0 from ply-yarn drill 1 is an example by interface 1/1 forwarding, as shown in Figure 2, comprising:
Step S201, ply-yarn drill 1 receive message from interface 1/0, and this message is left in (message that communication device interface receives generally is responsible for message is deposited among the buffer by interface hardware among the buffer1 of this card internal memory, do not need CPU to intervene, CPU only need be by interrupting or inquiry mode goes to find whether message successfully has been stored in the internal memory gets final product).
Step S202, ply-yarn drill 1 are resolved this message, according to the destination address that carries in this message, search the interface 1/1 of the purpose interface of this message for this card.
Step S203,1 pair of this message of ply-yarn drill carry out necessary modifications (for example revise the two-layer protocol head, revise ttl value).
Step S204, ply-yarn drill 1 send message by interface 1/1, and message sends the back and discharges buffer1.
Transmit the handling process of unicast message for striding card, it is example that the message that receives with the interface 1/0 from ply-yarn drill 1 is transmitted by the interface 2/0 of ply-yarn drill 2, and ply-yarn drill 1 is the source ply-yarn drill, and ply-yarn drill 2 is the purpose ply-yarn drill, as shown in Figure 3, comprising:
Step S301, ply-yarn drill 1 receive message from interface 1/0, and this message are left among the buffer1 of ply-yarn drill 1 internal memory.
Step S302, ply-yarn drill 1 are resolved this message, and according to the destination address that carries in this message, the purpose interface of searching this message is the interface 2/0 of ply-yarn drill 2.
Step S303, ply-yarn drill 1 send to ply-yarn drill 2 to this message by inner PCIE interface, send successfully after, discharge the buffer1 of ply-yarn drill 1.
Step S304, ply-yarn drill 2 receive this message by inner PCIE interface, and this message are left among the buffer2 of ply-yarn drill 2 internal memories.
Step S305,2 pairs of these messages of ply-yarn drill carry out necessary modifications.
Step S306, ply-yarn drill 2 send message by interface 2/0, and message sends the buffer2 that the back discharges ply-yarn drill 2.
For the handling process of striding the card forwarding multicasting message, it is example that the message that receives with the interface 1/0 from ply-yarn drill 1 needs respectively the interface n/0 of the interface 3/0 of interface 2/0, ply-yarn drill 3 by ply-yarn drill 2 and ply-yarn drill n to transmit, ply-yarn drill 1 is the source ply-yarn drill, ply-yarn drill 2, ply-yarn drill 3 and ply-yarn drill n are the purpose ply-yarn drill, as shown in Figure 4, comprising:
Step S401, ply-yarn drill 1 receive message from interface 1/0, and this message are left among the buffer1 of ply-yarn drill 1 internal memory.
Step S402, ply-yarn drill 1 resolves this message, according to the destination address that carries in this message, determines that this message is a multicast message, and the purpose interface of searching this multicast message be ply-yarn drill 2 2/0, the n/0 of 3/0 and ply-yarn drill n of ply-yarn drill 3.
Step S403, ply-yarn drill 1 copy to this message among the buffer2 and buffer3 of ply-yarn drill 1 internal memory.
Step S404, ply-yarn drill 1 send to ply-yarn drill 2 with the message among the buffer1 by the PCIE interface, sending successfully, the back discharges buffer1, and the message among the buffer2 sent to ply-yarn drill 3 by the PCIE interface, sending successfully, the back discharges buffer2, and the message among the buffer3 sent to ply-yarn drill n by the PCIE interface, sending successfully, the back discharges buffer3.
Step S405, ply-yarn drill 2 receive this message by inner PCIE interface, and this message is left among the buffer4 of ply-yarn drill 2 internal memories, and this message carried out necessary modifications, and sending this message by interface 2/0 then, message sends the buffer4 that the back discharges ply-yarn drill 2.
Step S406, ply-yarn drill 3 receive this message by inner PCIE interface, and this message is left among the buffer5 of ply-yarn drill 3 internal memories, and this message carried out necessary modifications, and sending this message by interface 3/0 then, message sends the buffer5 that the back discharges ply-yarn drill 3.
Step S407, ply-yarn drill n receive this message by inner PCIE interface, and this message is left among the buffer6 of ply-yarn drill n internal memory, and this message carried out necessary modifications, and sending this message by interface n/0 then, message sends the buffer6 that the back discharges ply-yarn drill n.
According to above-mentioned handling process shown in Figure 4, stride the transmission course of card multicast message between ply-yarn drill as shown in Figure 5, multicast message is after entering ply-yarn drill 1 from interface 1/0, ply-yarn drill 1 needs this multicast message is transferred to respectively other purpose ply-yarn drill of this multicast message, if the quantity of other purpose ply-yarn drill is m, then need to carry out duplicating of m-1 message, and send m multicast message, and discharge m buffer by the PCIE interface.Duplicate and send for message each time, all need to expend the processing resource of CPU, especially message duplicates, and need expend a large amount of cpu instructions and just can finish.So when the quantity of the purpose ply-yarn drill that needs the receiving group message was big, the source ply-yarn drill duplicated and send processing owing to need carry out a large amount of messages, need a large amount of CPU to handle resource, thereby make that the burden of source ply-yarn drill is heavier and cause the decreased performance of source ply-yarn drill.And the purpose ply-yarn drill only passes through PCIE interface receiving group message, and this multicast message is transmitted by the communication interface of self, so, compare the source ply-yarn drill, the utilance of the CPU of purpose ply-yarn drill is then lower.And,, will descend because of its decreased performance causes the overall performance of equipment complete machine because the burden of source ply-yarn drill when carrying out the multicast message transmission process is heavier.
Summary of the invention
The embodiment of the invention provides a kind of multicast message processing method, ply-yarn drill, bears heavier problem in order to solve the source ply-yarn drill in distributed communication equipment that exists in the prior art when carrying out the multicast message transmission process.
The embodiment of the invention also provides a kind of multicast message processing method, ply-yarn drill, in order to solve the lower problem of cpu busy percentage when carrying out the multicast message transmission process of purpose ply-yarn drill in distributed communication equipment that exists in the prior art.
The embodiment of the invention also provides a kind of communication equipment, in order to solve the distributed communication equipment lower problem of performance when carrying out the multicast message transmission process that exists in the prior art.
The embodiment of the invention provides a kind of multicast message processing method, comprising:
The source ply-yarn drill is handled the multicast message that receives by communication interface, obtains handling the back message, carries the indication information of the purpose ply-yarn drill of described multicast message after the described processing in the message;
Described processing back message by the PCIE interface, is sent to first purpose ply-yarn drill in the purpose ply-yarn drill of arranging according to specified order of described multicast message.
The embodiment of the invention also provides a kind of multicast message processing method, comprising:
The purpose ply-yarn drill receives handles message after the processing that obtains to multicast message, carries the indication information of the purpose ply-yarn drill of described multicast message after the described processing in the message;
According to described indication information, described processing back message by the PCIE interface, is sent to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of described multicast message.
The embodiment of the invention also provides a kind of ply-yarn drill, comprising:
First processing unit is used for the multicast message that receives by communication interface is handled, and obtains handling the back message, carries the indication information of the purpose ply-yarn drill of described multicast message after the described processing in the message;
First transmitting element is used for described processing back message by the PCIE interface, sends to first purpose ply-yarn drill in the purpose ply-yarn drill of arranging according to specified order of described multicast message.
The embodiment of the invention also provides a kind of ply-yarn drill, comprising:
Receiving element is used to receive multicast message is handled message after the processing that obtains, and carries the indication information of the purpose ply-yarn drill of described multicast message after the described processing in the message;
Second transmitting element is used for according to described indication information, and described processing back message by the PCIE interface, is sent to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of described multicast message.
The embodiment of the invention also provides a kind of communication equipment, comprise: source ply-yarn drill and purpose ply-yarn drill, described source ply-yarn drill is the above-mentioned ply-yarn drill that comprises first processing unit and first transmitting element, and described purpose ply-yarn drill is the above-mentioned ply-yarn drill that comprises the receiving element and second transmitting element, wherein:
Described source ply-yarn drill is used for the multicast message that receives by communication interface is handled, and obtains handling the back message, carries the indication information of the described purpose ply-yarn drill of described multicast message after the described processing in the message; And with described processing back message by the PCIE interface, send to first purpose ply-yarn drill in the purpose ply-yarn drill of arranging according to specified order of described multicast message;
Described purpose ply-yarn drill is used to receive multicast message is handled the described processing back message that obtains, and carries the indication information of the purpose ply-yarn drill of described multicast message after the described processing in the message; And, described processing back message by the PCIE interface, is sent to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of described multicast message according to described indication information.
Beneficial effect of the present invention comprises:
In the multicast message processing method that the embodiment of the invention provides, the source ply-yarn drill is after receiving multicast message by communication interface, to handle this multicast message and obtain handling the back message, and carry the indication information of the purpose ply-yarn drill that needs this multicast message of reception in this processing back message, should handle the back message then by the PCIE interface, and send to the needs of arranging according to specified order and receive first purpose ply-yarn drill in the purpose ply-yarn drill of this multicast message.Compared to existing technology, no longer need this multicast message is sent to each purpose ply-yarn drill that needs receive this multicast message, get final product but send to a purpose ply-yarn drill, thus the processing of duplicating and sending reduced to multicast message, thus alleviated the burden when carrying out the multicast message transmission process.
In the multicast message processing method that the embodiment of the invention provides, the purpose ply-yarn drill is handled multicast message after the processing that obtains behind the message receiving, receive the indication information of the purpose ply-yarn drill of this multicast message according to the needs that carry in this processing back message, should handle the back message by the PCIE interface, and send to the needs of arranging according to specified order and receive first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of this multicast message.Compared to existing technology, the purpose ply-yarn drill has participated in the transmission process of this multicast message between each purpose ply-yarn drill, and no longer be only this multicast message to be transmitted processing from the communication interface of self, so when carrying out the multicast message transmission process, improved the utilance of its CPU.
In the communication equipment that the embodiment of the invention provides, compared to existing technology, the source ply-yarn drill no longer needs this multicast message is sent to each purpose ply-yarn drill that needs receive this multicast message, get final product but send to a purpose ply-yarn drill, accordingly, participate in the transmission process of this multicast message between each purpose ply-yarn drill by other purpose ply-yarn drill, thereby realized between source ply-yarn drill and purpose ply-yarn drill, equilibrium to the transmission process of this multicast message operation, and then avoided causing the overall performance of equipment complete machine to descend because of the decreased performance of source ply-yarn drill, promptly improved equipment machine performance when carrying out the multicast message transmission process.
Description of drawings
Fig. 1 is the structural representation based on the distributed communication equipment of PCIE exchange;
Fig. 2 is the process chart that this card is transmitted unicast message in the prior art;
Fig. 3 transmits the process chart of unicast message for striding card in the prior art;
Fig. 4 is for striding the process chart of card forwarding multicasting message in the prior art;
Fig. 5 is the transmission course schematic diagram of multicast message between ply-yarn drill when striding the card forwarding multicasting message in the prior art;
The flow chart of the multicast message processing method of the source that the is applied to ply-yarn drill that Fig. 6 provides for the embodiment of the invention;
The flow chart of the multicast message processing method that is applied to the purpose ply-yarn drill that Fig. 7 provides for the embodiment of the invention;
Fig. 8 is for striding the process chart of card forwarding multicasting message in the embodiment of the invention 1;
Fig. 9 is the field structure schematic diagram of encapsulated message in the embodiment of the invention 1;
Figure 10 is the transmission course schematic diagram of multicast message between ply-yarn drill when striding the card forwarding multicasting message in the embodiment of the invention 1;
One of structural representation of a kind of ply-yarn drill of providing in the embodiment of the invention 2 is provided Figure 11;
Figure 12 is two of the structural representation of a kind of ply-yarn drill of providing in the embodiment of the invention 2;
The structural representation of a kind of communication equipment of providing in the embodiment of the invention 2 is provided Figure 13.
Embodiment
When carrying out the multicast message transmission process in order to be given in, alleviate the burden of source ply-yarn drill, improve the cpu busy percentage of purpose ply-yarn drill, and the implementation that improves equipment complete machine performance, the embodiment of the invention provides a kind of multicast message processing method, ply-yarn drill and communication equipment, below in conjunction with Figure of description the preferred embodiments of the present invention is described, and is to be understood that, preferred embodiment described herein only is used for description and interpretation the present invention, and is not used in qualification the present invention.And under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
The embodiment of the invention provides a kind of multicast message processing method, is applied to the source ply-yarn drill in the distributed communication equipment, as shown in Figure 6, comprising:
Step S601, source ply-yarn drill are handled the multicast message that receives by communication interface, obtain handling the back message, carry the indication information of the purpose ply-yarn drill of this multicast message in this processing back message.
Step S602, should handle the back message by the PCIE interface, send to first purpose ply-yarn drill in the purpose ply-yarn drill of arranging according to specified order of this multicast message.
Accordingly, the embodiment of the invention also provides a kind of multicast message processing method, is applied to the purpose ply-yarn drill in the distributed communication equipment, as shown in Figure 7, comprising:
Step S701, purpose ply-yarn drill receive multicast message are handled message after the processing that obtains, and the indication information of the purpose ply-yarn drill of this multicast message is afterwards carried in this processings in message.
Step S702, according to this indication information, should handle the back message by the PCIE interface, send to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of this multicast message.
Below in conjunction with accompanying drawing, method provided by the invention, ply-yarn drill and communication equipment are described in detail with specific embodiment.
Embodiment 1:
In the embodiment of the invention 1, by the description to multicast message transmission process flow process between each ply-yarn drill in distributed communication equipment, the multicast message processing method that the embodiment of the invention is provided describes in detail.
With in the distributed communication equipment of structure shown in Figure 1, the message that receives from the interface 1/0 of ply-yarn drill 1 needs respectively the interface n/0 of the interface 3/0 of interface 2/0, ply-yarn drill 3 by ply-yarn drill 2 and ply-yarn drill n to transmit to be example, ply-yarn drill 1 is the source ply-yarn drill, ply-yarn drill 2, ply-yarn drill 3 and ply-yarn drill n are the purpose ply-yarn drill, provide in the embodiment of the invention 1 for the handling process of striding the card forwarding multicasting message as shown in Figure 8, specifically comprise following treatment step:
Step S801, ply-yarn drill 1 receive message from interface 1/0, and this message are left among the buffer1 of ply-yarn drill 1 internal memory; And resolve this message, determine that this message is a multicast message; And according to the destination address that carries in this multicast message, find out the purpose interface of this multicast message, thereby determine to need to receive the purpose ply-yarn drill of this multicast message, for example, the purpose interface be ply-yarn drill 2 2/0, the n/0 of 3/0 and ply-yarn drill n of ply-yarn drill 3, accordingly, then the purpose ply-yarn drill of this multicast message is ply-yarn drill 2, ply-yarn drill 3 and ply-yarn drill n.
Step S802,1 pair of this multicast message of ply-yarn drill are handled, and obtain handling the back message, and handle the indication information that carries the purpose ply-yarn drill of this multicast message in the message of back.
Concrete, processing to multicast message, can be in the reserved field of the heading of multicast message, add the indication information of the purpose ply-yarn drill of this multicast message, also can be that this multicast message is encapsulated, carry the indication information of the purpose ply-yarn drill of this multicast message in the heading of encapsulated message, be described in detail with the example that is treated to that multicast message is encapsulated below.
Be illustrated in figure 9 as the field structure schematic diagram of encapsulated message, wherein, in the heading of encapsulated message, except that the indication information that carries the purpose ply-yarn drill, can also carry the type information of the message that receives by interface 1/0, and the length information of this message.Type information specifically can comprise two kinds of unicast message and multicast messages, and the length information maximum can be 65535.
Wherein, the indication information of the purpose ply-yarn drill of this multicast message that carries specifically can comprise: the indication information corresponding respectively with each purpose ply-yarn drill of this multicast message, the i.e. corresponding indication information of each purpose ply-yarn drill.For example, corresponding indicating bit can be set respectively at each ply-yarn drill in this communication equipment, when this indicating bit is 1, represent that the corresponding ply-yarn drill of this indicating bit is the purpose ply-yarn drill, if attack in the communication equipment 32 ply-yarn drills are arranged, the field that then can use 4 bytes to amount to 32bit (bit0-bit32) is used to carry the indication information of each ply-yarn drill correspondence.
Then in this step, be specially the multicast message among the buffer1 is encapsulated, in the heading of the encapsulated message that obtains, carry the multicast type information in the type field, carry the length information of this multicast message in the length field, the indicating bit that ply-yarn drill 2, ply-yarn drill 3 and ply-yarn drill n are corresponding respectively in the indication information field is 1, and the indicating bit of other ply-yarn drill is 0.
Put in order because the indicating bit of each ply-yarn drill correspondence exists in the indication information field, put in order so each ply-yarn drill exists, corresponding, each purpose ply-yarn drill also exists and puts in order.Follow-up putting in order as appointment with putting in order from ply-yarn drill 1 to ply-yarn drill n is that example is described.
Step S803, ply-yarn drill 1 will be handled the back message by the PCIE interface, send to first purpose ply-yarn drill in the purpose ply-yarn drill of arranging according to specified order of this multicast message.
Concrete, ply-yarn drill 1 is with the encapsulated message among the buffer1, be transferred to the PCIE driver module in the ply-yarn drill 1, the PCIE driver module is resolved the heading of encapsulated message, position order from low to high (also can be an order from high to low as indicated, need be to get final product only according to specified order) each indicating bit of indication information field is discerned, identify first be 1 indicating bit after, promptly will leave encapsulated message among the buffer1 in by the PCIE interface, sending to what identify is the ply-yarn drill of this indicating bit correspondence of 1.With this multicast message is example, is about to this encapsulated message and sends to ply-yarn drill 2, and sending successfully, the back discharges buffer1.
Step S804, ply-yarn drill 2 (purpose ply-yarn drill) receive this encapsulated message by the PCIE interface, and this encapsulated message are left among the buffer2 of ply-yarn drill 2.
Step S805, ply-yarn drill 2 be according to the indication information that carries in this encapsulated message, and this encapsulated message by the PCIE interface, is sent to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of this multicast message.
Concrete characteristic manner based on the entrained information of heading of above-mentioned encapsulated message, ply-yarn drill 2 is at first resolved the heading of this encapsulated message, what determine to encapsulate in this encapsulated message according to type field wherein is multicast message, PCIE driver module by ply-yarn drill 2 is transmitted to next purpose ply-yarn drill then, specifically can adopt following dual mode:
First kind of mode: the PCIE driver module of ply-yarn drill 2, indicate the value of indicating bit corresponding in the information field to be set to 0 among the buffer2 in the heading of encapsulated message with self, position order is from low to high discerned each indicating bit of indication information field as indicated then, identify first be 1 indicating bit after, promptly the indicating bit that will leave the ply-yarn drill 2 among the buffer2 in by the PCIE interface has been set to 0 encapsulated message, sending to what identify is the ply-yarn drill of this indicating bit correspondence of 1, and the ply-yarn drill of this indicating bit correspondence is according to appointment and puts in order at first purpose ply-yarn drill of this ply-yarn drill 2 back.With this multicast message is example, is about to this encapsulated message and sends to ply-yarn drill 3.
The second way: the PCIE driver module of ply-yarn drill 2, from low to high order of position as indicated, from self corresponding indicating bit, each indicating bit to the 2 corresponding indicating bit back of ply-yarn drill in the indication information field is discerned, identify first be 1 indicating bit after, promptly will leave encapsulated message among the buffer2 in by the PCIE interface, sending to what identify is the ply-yarn drill of this indicating bit correspondence of 1, and the ply-yarn drill of this indicating bit correspondence is according to appointment and puts in order at first purpose ply-yarn drill of this ply-yarn drill 2 back.With this multicast message is example, is about to this encapsulated message and sends to ply-yarn drill 3.
Step S806, ply-yarn drill 2 are after sending to ply-yarn drill 3 with encapsulated message by the PCIE interface, also will carry out decapsulation to this encapsulated message that receives handles, obtain this multicast message, and this multicast message transmitted by the destination address corresponding communication interface with this multicast message of self, promptly transmit by interface 2/0, multicast message is transmitted successfully back release buffer2.
Transmit the processing of this multicast message in this step by interface 2/0, and by the PCIE interface encapsulated message is sent to the processing of ply-yarn drill 3 among the above-mentioned steps S805, do not have strict sequencing between the two.
Step S807, ply-yarn drill 3 (purpose ply-yarn drill) receive this encapsulated message by the PCIE interface, and this encapsulated message is left among the buffer3 of ply-yarn drill 3, adopt then with above-mentioned steps S805 and step S806 in identical message processing mode, this encapsulated message is sent to ply-yarn drill n by the PCIE interface, and this multicast message that encapsulates in this encapsulated message transmitted by interface 3/0, the detailed process flow process no longer is described in detail at this.
Step S808, ply-yarn drill n (purpose ply-yarn drill) receive this encapsulated message by the PCIE interface, and this encapsulated message is left among the buffer4 of ply-yarn drill n, determine self to be positioned at last position of above-mentioned specified order then, then cancellation can be adopted following dual mode by the transmission of PCIE interface to this encapsulated message:
First kind of mode: the PCIE driver module of ply-yarn drill n, indicate the value of indicating bit corresponding in the information field to be set to 0 among the buffer4 in the heading of encapsulated message with self, position order is from low to high discerned each indicating bit of indication information field as indicated then, unidentified go out be 1 indicating bit after, determine that promptly ply-yarn drill n is last the purpose ply-yarn drill in each the purpose ply-yarn drill that puts in order according to above-mentioned appointment, cancellation is by the transmission of PCIE interface to this encapsulated message.
The second way: the PCIE driver module of ply-yarn drill n, from low to high order of position as indicated, from self corresponding indicating bit, each indicating bit to the corresponding indicating bit of ply-yarn drill n in indication information field back is discerned, unidentified go out be 1 indicating bit after, be that ply-yarn drill n is last the purpose ply-yarn drill in each the purpose ply-yarn drill that puts in order according to above-mentioned appointment, cancellation is by the transmission of PCIE interface to this encapsulated message.
And, in this step, ply-yarn drill n also adopt with above-mentioned steps S806 in identical message processing mode, this multicast message that encapsulates in this encapsulated message is transmitted by interface n/0, the detailed process flow process no longer is described in detail at this.
Adopt the handling process of above-mentioned multicast message shown in Figure 8, stride the transmission course of card multicast message between ply-yarn drill as shown in figure 10, multicast message is after entering ply-yarn drill 1 from interface 1/0, ply-yarn drill 1 is after encapsulating this multicast message, after only will encapsulating after the encapsulation of this multicast message message send to a purpose ply-yarn drill by the PCIE interface, it is ply-yarn drill 2, by ply-yarn drill 2 this encapsulated message is sent to next purpose ply-yarn drill by the PCIE interface again, it is ply-yarn drill 3, by ply-yarn drill 3 this encapsulated message is sent to last purpose ply-yarn drill by the PCIE interface again, be ply-yarn drill n, thus realized multicast message from the source ply-yarn drill to the transmission of striding the card multicast message other each purpose ply-yarn drill.
Compared to existing technology, the source ply-yarn drill no longer needs multicast message is duplicated and repeatedly sends, thereby alleviated the burden of source ply-yarn drill, and the purpose ply-yarn drill has participated in the transmission process of multicast message between each purpose ply-yarn drill of communication equipment inside, thereby improved the cpu busy percentage of purpose ply-yarn drill, and then realized between source ply-yarn drill and purpose ply-yarn drill, equilibrium to the transmission process of this multicast message operation, and then avoided causing the overall performance of equipment complete machine to descend because of the decreased performance of source ply-yarn drill, promptly improved equipment machine performance when carrying out the multicast message transmission process.
Embodiment 2:
Based on same inventive concept, according to the multicast message processing method that the above embodiment of the present invention provides, correspondingly, the embodiment of the invention 2 also provides a kind of ply-yarn drill, and its structural representation specifically comprises as shown in figure 11:
First processing unit 1101 is used for the multicast message that receives by communication interface is handled, and obtains handling the back message, carries the indication information of the purpose ply-yarn drill of described multicast message after the described processing in the message;
First transmitting element 1102 is used for described processing back message by the PCIE interface, sends to first purpose ply-yarn drill in the purpose ply-yarn drill of arranging according to specified order of described multicast message.
The embodiment of the invention 2 also provides a kind of ply-yarn drill, and its structural representation specifically comprises as shown in figure 12:
Receiving element 1201 is used to receive multicast message is handled message after the processing that obtains, and carries the indication information of the purpose ply-yarn drill of described multicast message after the described processing in the message;
Second transmitting element 1202 is used for according to described indication information, and described processing back message by the PCIE interface, is sent to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of described multicast message.
Preferable, also comprise:
Second processing unit 1203 is used for when self being positioned at last of described specified order, cancellation by the PCIE interface to the described transmission of handling the back message.
Preferable, also comprise: second processing unit 1203;
Described indication information specifically comprises: the indication information corresponding respectively with each purpose ply-yarn drill of described multicast message;
Described second processing unit 1203 is used for from the described back message deletion indication information corresponding with self of handling, and is not carried message after the processing of the indication information corresponding with self;
Described second transmitting element 1202, specifically be used for message after the described processing of not carrying the indication information corresponding by the PCIE interface, send to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of described multicast message with self.
Preferable, also comprise:
Second processing unit 1203 is used for the described processing back message that receives is recovered to handle, and obtains described multicast message;
Described second transmitting element 1202 is used for described multicast message is transmitted by the destination address corresponding communication interface with described multicast message of self.
The embodiment of the invention 2 also provides a kind of communication equipment, its structural representation specifically comprises as shown in figure 13: source ply-yarn drill 1301 and purpose ply-yarn drill 1302, and source ply-yarn drill 1301 can be above-mentioned ply-yarn drill shown in Figure 11, purpose ply-yarn drill 1302 can be above-mentioned ply-yarn drill shown in Figure 12, wherein:
Source ply-yarn drill 1301 is used for the multicast message that receives by communication interface is handled, and obtains handling the back message, carries the indication information of the described purpose ply-yarn drill of described multicast message after the described processing in the message; And with described processing back message by the PCIE interface, send to first purpose ply-yarn drill in the purpose ply-yarn drill of arranging according to specified order of described multicast message;
Purpose ply-yarn drill 1302 is used to receive multicast message is handled the described processing back message that obtains, and carries the indication information of the purpose ply-yarn drill of described multicast message after the described processing in the message; And, described processing back message by the PCIE interface, is sent to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of described multicast message according to described indication information.
In sum, the scheme that the embodiment of the invention provides comprises: the source ply-yarn drill is handled the multicast message that receives by communication interface, obtains handling the back message, carries the indication information of the purpose ply-yarn drill of this multicast message in this processing back message; And should handle the back message by the PCIE interface, send to first purpose ply-yarn drill in the purpose ply-yarn drill of arranging according to specified order of this multicast message.Accordingly, the purpose ply-yarn drill receives multicast message is handled message after the processing that obtains; And, should handle the back message by the PCIE interface according to this indication information, send to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of this multicast message.The scheme that adopts the embodiment of the invention to provide when carrying out the multicast message transmission process, has alleviated the burden of source ply-yarn drill, has improved the cpu busy percentage of purpose ply-yarn drill, and has improved the equipment machine performance.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (11)

1. a multicast message processing method is characterized in that, comprising:
The source ply-yarn drill is handled the multicast message that receives by communication interface, obtains handling the back message, carries the indication information of the purpose ply-yarn drill of described multicast message after the described processing in the message;
Described processing back message by the PCIE interface, is sent to first purpose ply-yarn drill in the purpose ply-yarn drill of arranging according to specified order of described multicast message.
2. a multicast message processing method is characterized in that, comprising:
The purpose ply-yarn drill receives handles message after the processing that obtains to multicast message, carries the indication information of the purpose ply-yarn drill of described multicast message after the described processing in the message;
According to described indication information, described processing back message by the PCIE interface, is sent to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of described multicast message.
3. method as claimed in claim 2 is characterized in that, also comprises:
Described purpose ply-yarn drill when self being positioned at last of described specified order, cancellation by the PCIE interface to the described transmission of handling the back message.
4. method as claimed in claim 2 is characterized in that, described indication information specifically comprises: the indication information corresponding respectively with each purpose ply-yarn drill of described multicast message;
With described processing back message by the PCIE interface, send to before first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of described multicast message, also comprise:
Handle the deletion indication information corresponding the message of back from described, do not carried message after the processing of the indication information corresponding with self with self;
With described processing back message by the PCIE interface, send to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of described multicast message, be specially:
Message after the described processing of not carrying the indication information corresponding with self by the PCIE interface, is sent to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of described multicast message.
5. method as claimed in claim 2 is characterized in that, also comprises:
Described purpose ply-yarn drill recovers to handle to the described processing back message that receives, and obtains described multicast message;
Described multicast message is transmitted by the destination address corresponding communication interface with described multicast message of self.
6. a ply-yarn drill is characterized in that, comprising:
First processing unit is used for the multicast message that receives by communication interface is handled, and obtains handling the back message, carries the indication information of the purpose ply-yarn drill of described multicast message after the described processing in the message;
First transmitting element is used for described processing back message by the PCIE interface, sends to first purpose ply-yarn drill in the purpose ply-yarn drill of arranging according to specified order of described multicast message.
7. a ply-yarn drill is characterized in that, comprising:
Receiving element is used to receive multicast message is handled message after the processing that obtains, and carries the indication information of the purpose ply-yarn drill of described multicast message after the described processing in the message;
Second transmitting element is used for according to described indication information, and described processing back message by the PCIE interface, is sent to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of described multicast message.
8. ply-yarn drill as claimed in claim 7 is characterized in that, also comprises:
Second processing unit is used for when self being positioned at last of described specified order, cancellation by the PCIE interface to the described transmission of handling the back message.
9. ply-yarn drill as claimed in claim 7 is characterized in that, also comprises: second processing unit;
Described indication information specifically comprises: the indication information corresponding respectively with each purpose ply-yarn drill of described multicast message;
Described second processing unit is used for from the described back message deletion indication information corresponding with self of handling, and is not carried message after the processing of the indication information corresponding with self;
Described second transmitting element, specifically be used for message after the described processing of not carrying the indication information corresponding by the PCIE interface, send to first purpose ply-yarn drill that is positioned at self back in the purpose ply-yarn drill of arranging according to specified order of described multicast message with self.
10. ply-yarn drill as claimed in claim 7 is characterized in that, also comprises:
Second processing unit is used for the described processing back message that receives is recovered to handle, and obtains described multicast message;
Described second transmitting element is used for described multicast message is transmitted by the destination address corresponding communication interface with described multicast message of self.
11. a communication equipment is characterized in that, comprising: ply-yarn drill as claimed in claim 6 and as the arbitrary described purpose ply-yarn drill of claim 7-10.
CN201110273295.6A 2011-09-15 2011-09-15 Multicast message processing method, line card and communication equipment Expired - Fee Related CN102299857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110273295.6A CN102299857B (en) 2011-09-15 2011-09-15 Multicast message processing method, line card and communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110273295.6A CN102299857B (en) 2011-09-15 2011-09-15 Multicast message processing method, line card and communication equipment

Publications (2)

Publication Number Publication Date
CN102299857A true CN102299857A (en) 2011-12-28
CN102299857B CN102299857B (en) 2014-10-29

Family

ID=45360044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110273295.6A Expired - Fee Related CN102299857B (en) 2011-09-15 2011-09-15 Multicast message processing method, line card and communication equipment

Country Status (1)

Country Link
CN (1) CN102299857B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312614A (en) * 2013-07-02 2013-09-18 福建星网锐捷网络有限公司 Multicast message processing method, line card and communication device
CN106936722A (en) * 2015-12-31 2017-07-07 华为技术有限公司 A kind of method that network equipment and signal send
CN111030937A (en) * 2019-12-16 2020-04-17 迈普通信技术股份有限公司 Message forwarding method, device and storage medium
CN113905416A (en) * 2021-09-16 2022-01-07 锐捷网络股份有限公司 VoLTE message processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050243825A1 (en) * 2004-05-03 2005-11-03 Bitar Nabil N Methods and systems for efficient multicast across a mesh backplane
CN101123529A (en) * 2007-09-21 2008-02-13 杭州华三通信技术有限公司 Multicast implementation method, system and device based on PCIE switching network
CN101252529A (en) * 2008-03-31 2008-08-27 杭州华三通信技术有限公司 Method and apparatus for forwarding multicast message
CN101286866A (en) * 2008-05-30 2008-10-15 杭州华三通信技术有限公司 Multicast implementing method and system based on switching network of high-speed peripheral extended interface
CN101459607A (en) * 2008-12-31 2009-06-17 华为技术有限公司 Packet transmitting method and router

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050243825A1 (en) * 2004-05-03 2005-11-03 Bitar Nabil N Methods and systems for efficient multicast across a mesh backplane
CN101123529A (en) * 2007-09-21 2008-02-13 杭州华三通信技术有限公司 Multicast implementation method, system and device based on PCIE switching network
CN101252529A (en) * 2008-03-31 2008-08-27 杭州华三通信技术有限公司 Method and apparatus for forwarding multicast message
CN101286866A (en) * 2008-05-30 2008-10-15 杭州华三通信技术有限公司 Multicast implementing method and system based on switching network of high-speed peripheral extended interface
CN101459607A (en) * 2008-12-31 2009-06-17 华为技术有限公司 Packet transmitting method and router

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312614A (en) * 2013-07-02 2013-09-18 福建星网锐捷网络有限公司 Multicast message processing method, line card and communication device
CN103312614B (en) * 2013-07-02 2016-08-24 福建星网锐捷网络有限公司 A kind of multicast message processing method, line card and communication equipment
CN106936722A (en) * 2015-12-31 2017-07-07 华为技术有限公司 A kind of method that network equipment and signal send
CN106936722B (en) * 2015-12-31 2020-07-24 华为技术有限公司 Network equipment and signal sending method
CN111030937A (en) * 2019-12-16 2020-04-17 迈普通信技术股份有限公司 Message forwarding method, device and storage medium
CN113905416A (en) * 2021-09-16 2022-01-07 锐捷网络股份有限公司 VoLTE message processing method and device
CN113905416B (en) * 2021-09-16 2024-04-16 锐捷网络股份有限公司 VoLTE message processing method and device

Also Published As

Publication number Publication date
CN102299857B (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN108400880B (en) Network on chip, data transmission method and first switching node
CN100553199C (en) Method of realizing group broadcasting, system and equipment based on the PCIE switching network
CN102957616B (en) In the method and system of ASIC repeating TRILL network message
CN102685017A (en) On-chip network router based on field programmable gate array (FPGA)
CN105868134A (en) High-performance multi-port DDR (double data rate) controller and method for implementing same
CN1964285A (en) A master control device with double CPU and realization method
CN102299857A (en) Multicast message processing method, line card and communication equipment
CN105049312A (en) Industrial control ring network system and networking method thereof
JP7046983B2 (en) Packet transmission method and equipment
CN103312614A (en) Multicast message processing method, line card and communication device
CN103503413A (en) Method and device for transmitting network information
CN107566301A (en) A kind of method and device realized RapidIO exchange system bus speed and automatically configured
CN112153481B (en) Video data processing method, computer device, and storage medium
CN112817774B (en) System and method for transaction broadcasting in a network on chip
CN116303221B (en) Data transmission method of multi-core processor network-on-chip system
WO2020258917A1 (en) Data exchange chip and server
CN106209554A (en) Message forwarding method and equipment across virtual expansible LAN
CN102523152A (en) Method and device for realizing outlet control
CN1964286A (en) A master control device with double CPU
CN105550157A (en) Fractal tree structure commutation structure and method, control device and intelligent chip
CN109995678A (en) Message transmitting method and device
CN101895465B (en) Airborne network with distributed switching and information communication method under same
CN112994998A (en) Communication node, communication method, communication device and electronic equipment
US7596653B2 (en) Technique for broadcasting messages on a point-to-point interconnect
CN101083572A (en) Bearing time division multiplex data service in ethernet

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 350002 19 Building, Citrus Industrial Park, 618 Jinshan Road, Cangshan District, Fuzhou, Fujian.

Patentee after: RUIJIE NETWORKS Co.,Ltd.

Address before: 350002 19 Building, Citrus Industrial Park, 618 Jinshan Road, Cangshan District, Fuzhou, Fujian.

Patentee before: Fujian Star-net Ruijie Network Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141029

Termination date: 20210915