Movatterモバイル変換


[0]ホーム

URL:


CN101242419B - A Fast Multicast Processing Method - Google Patents

A Fast Multicast Processing Method
Download PDF

Info

Publication number
CN101242419B
CN101242419BCN2008100855841ACN200810085584ACN101242419BCN 101242419 BCN101242419 BCN 101242419BCN 2008100855841 ACN2008100855841 ACN 2008100855841ACN 200810085584 ACN200810085584 ACN 200810085584ACN 101242419 BCN101242419 BCN 101242419B
Authority
CN
China
Prior art keywords
multicast
layer
message
router
interface
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.)
Expired - Fee Related
Application number
CN2008100855841A
Other languages
Chinese (zh)
Other versions
CN101242419A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE CorpfiledCriticalZTE Corp
Priority to CN2008100855841ApriorityCriticalpatent/CN101242419B/en
Publication of CN101242419ApublicationCriticalpatent/CN101242419A/en
Application grantedgrantedCritical
Publication of CN101242419BpublicationCriticalpatent/CN101242419B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The invention discloses a rapid multicast processing method, belonging to the multicast technology in internet communication. In the method, a multicast router inquires a three-layer multicast list, and after a certain list item is hit, the counting value of a counter for sending a multicast message is set to be the same as the number value of multicast group output interfaces in the three-layer multicast list; and the multicast router sequentially sends corresponding multicast messages carrying two-layer multicast header information to each multicast group output interface according to the three-layer multicast table, and after the multicast messages of each multicast group output interface are sent, the multicast router is informed to control the count value of a counter for sending the multicast messages to be reduced by 1, and the multicast router finishes sending the multicast messages until the count value of the counter is zero. The invention greatly reduces the load burden of the multicast router, thereby improving the working efficiency of the multicast router and saving a large amount of memory space.

Description

A kind of processing method of fast multicast
Technical field
The invention belongs to the multicasting technology in the internet communication, particularly a kind of fast multicast processing method.
Background technology
Multicast is the network technology of the single packet of the disposable transmission of a kind of permission one or more senders (multicast source) to a plurality of recipients.Multicast source sends to particular multicast group to packet, and the address that only belongs to this multicast group just can receive packet, therefore multicast can be saved the network bandwidth greatly, because no matter what destination addresses are arranged, on any link of whole network, only transmit single packet, in addition, multicast has reduced the congested possibility of backbone network appearance.Wherein, the main frame in the multicast group can be at same physical network, if when the support of multicast router is arranged, main frame can also be from different physical networks.
Realize that in the IP multicast transmission process, sender's (multicast source), recipient and lower floor's network between the two all must be supported multicast, mainly comprise following several respects:
1) switch, multicast router must be supported multicast;
2) network interface of main frame is supported multicast;
3) have a cover to be used to the igmpinternet that adds, leave, inquire about, promptly IGMP (v1, v2, v3);
4) a cover IP address assignment strategy is arranged, and the three layers of IP multicast address can be mapped to second layer MAC Address;
5) application software of support IP multicast;
6) all multicast router, TCP/IP stack, fire compartment walls between sender's (multicast source) and recipient all need be supported multicast;
7) TCP/IP of main frame realizes supporting to send and receive the IP multicast.
At present, the IP multicasting technology obtains the extensive support of hardware, software vendor, such as, the Ethernet card of new production is nearly all supported multicast; Some multicast router is not only supported DVMRP, PIM Routing Protocol, IGMP igmpinternet, and supports proprietary igmpinternet CGMP, and the Windows95 of Microsoft supports IP multicast and IGMPvl for another example, and Windows 98 also supports IGMPv2.Can adopt IP tunnel (Tunneling) technology as transition scheme for the middle multicast router of not supporting the IP multicast transmission.The applied environment that this shows the IP multicasting technology possesses substantially.
But, in present multicast realization technology, message sends to a group of recipients, these recipients use a logical address sign, and multicast router can be forwarded to a plurality of interfaces to multicast information bag copy on one's own initiative, promptly there are what interfaces need send multicast message, multicast router sends after just multicast message need being duplicated several parts, like this along with the increase of the interface quantity that sends, not only the consumption of the memory headroom of multicast router increases, and the load of multicast router also will increase, thereby reduce the disposal ability of multicast router, influence the speed of multicast.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of processing method of fast multicast, thereby reduces the operating load that multicast replication produces on the multicast router, realizes fast multicast.
In order to address the above problem, the invention provides a kind of processing method of fast multicast, in this method, three layers of multicast table of multicast router inquiry, after hitting certain bar list item, it is identical with multicast group outgoing interface number value in described three layers of multicast table that the rolling counters forward value that sends multicast message is set;
Described multicast router sends the multicast message that carryLayer 2 Multicast header corresponding with it to described each multicast group outgoing interface successively according to described three layers of multicast table, after the multicast message of each multicast group outgoing interface sends and finishes, the count value of notifying described multicast router to control the counter of described transmissionmulticast message subtracts 1, when the count value of described counter was zero, described multicast router finished to send multicast message.
Further, in the said method, comprise multicast group IP, multicast group outgoing interface number and pre-packaged good describedLayer 2 Multicast header in described three layers of multicast table at least.
Described three layers of multicast table also comprise source IP information.
Further, in the said method, described multicast router generatescorresponding Layer 2 Multicast header according to the type of described multicast group outgoing interface when generating multicast routing entry, generate described three layers of multicast table according to multicast group IP, multicast group outgoing interface number again.
Wherein, when described multicast group outgoing interface type was ether interface, describedLayer 2 Multicast header comprised that the outgoing interface of protocol type, source Media Access Control address, forwarding multicasting message incoming interface sign, forwarding multicasting message identifies and the Media Access Control address information of the multicast group outgoing interface of forwarding multicasting message.
Described multicast router hits in described three layers of multicast table behind certain bar list item, adopt segmentation chain type storage mode to storeLayer 2 Multicast header and the three layers of multicast message of multicast message described in this list item, wherein use linear storage mode to store with thecorresponding Layer 2 Multicast header of described each multicast group outgoing interface.
Further, in the said method, described multicast router discharges three layers of space that multicast message is shared in the internal memory after finishing to send multicast message.
Further, in the said method, after the multicast message of described multicast group outgoing interface sent and finishes, described interface sends multicast message by form of message to described multicast router notice to be finished.
The present invention is by the counting to multicast message, thereby each interface of having avoided transmitting all will duplicate message one time, saved owing to duplicate shared memory headroom, under a lot of situation of the interface number of transmitting, can save a large amount of memory headrooms, and replace copy operation, reduce the burden of multicast router load greatly multicast message by the reducing that adds to the multicast message counting, improve the operating efficiency of multicast router, realize that level is broadcast fast.
Description of drawings
Fig. 1 is the flow chart that the present invention realizes fast multicast;
Fig. 2 is multicast message storage mode schematic diagram in the multicast router internal memory in the technical solution of the present invention.
Embodiment
Main design of the present invention is, when multicast routing entry generates, multicast router generatescorresponding Layer 2 Multicast header according to different multicast group outgoing interfaces, theLayer 2 Multicast header of multicast message uses linear storage mode in the internal memory of multicast router, theLayer 2 Multicast header of multicast message and three layers of multicast message adopt segmentation chain type file layout, like this, after multicast router is searched multicast table and is hit certain bar list item, just can determine the number of the multicast message interface that sends, be about to send the number of multicast message and theLayer 2 Multicast header of each interface, and the rolling counters forward value of control transmission multicast message is identical with the number value of the multicast message interface of transmission, it is every like this when a forwarding interface sends a multicast message, get final product sending with the multicast message of thecorresponding Layer 2 Multicast header of this interface in the internal memory by multicast table, and each interface transmission multicast message finishes back transmission message to multicast router, the counter that control sendsmulticast message subtracts 1, when counter is 0, represent that this multicast message sends end, discharge three layers of space that multicast message is shared in the internal memory, but do not discharge theLayer 2 Multicast header, saved the copy operation of multicast router like this, improved the operating efficiency of multicast router greatly multicast message.
Below in conjunction with the drawings and the specific embodiments technical solution of the present invention is described in further detail.
A kind of fast multicast method is based on reverse path and propagates (RPF, reverse path forwarding) and generate that multicast tree proposed, and specifically is divided into following steps, as shown in Figure 1:
Step 101: after multicast packets enters multi-cast system, judge and receive whether network interface is the RPF interface, if, then be forwarded to an output network set of interfaces, source medium access control (MAC, Media Access Control) address is replaced by the output network interface mac address, sets up three layers of multicast table, as shown in table 1, otherwise abandon this bag;
Three layers of multicast table of table 1
Figure S2008100855841D00041
Figure S2008100855841D00051
In the table 1, IPSRCExpression source IP; IPGRPExpression multicast group IP; Out Int Num shows this multicast group outgoing interface number; MACSRCExpression source MAC; VidINExpression forwarding multicasting message incoming interface sign VLAN ID; VidOUT1...OUT2The multicast group outgoing interface sign VLAN ID of expression forwarding multicasting message; MACOUT1...OUT2The MAC Address of the multicast group outgoing interface of expression forwarding multicasting message.
In this step, (S, G) Dui Ying three layers of multicast table comprise IP to specify list item with the source of multicast routing protocolSRC, IPGRPAnd pre-packagedgood Layer 2 Multicast header; And with not to the transmission source mate (*, G) three of the list item correspondence layers of multicast table comprise *, IPGRPAnd pre-packagedgood Layer 2 Multicast header; Wherein theLayer 2 Multicast header is the required information of L2 encapsulation, and this information is difference along with the difference of multicast group outgoing interface type.In the present embodiment, the multicast group outgoing interface is an ether interface, and this moment, theLayer 2 Multicast header comprised protocol type, MACSRC, VidIN, VidOUT1, MACOUT1, VidOUT2, MACOUT2... VidOUTN, MACOUTNEtc. information; In other embodiments, the multicast group interface is the packet interface (POS on the synchronous optical network, Packet Over SONET/SDH) or asynchronous transfer mode interface (ATM, Asynchronous Transfer Mode) etc. the time, theLayer 2 Multicast header can comprise protocol type and the information such as control address relevant with the L2 packaging information.
Step 102, multicast router by use (S, G) or (* G), searches three layers of multicast table, matches multicast list, can determine which interface multicast message will send to, thereby determines the number and the multicast group outgoing interface information of forwarding multicasting message;
Wherein outgoing interface information comprises interface identifier and the required information of L2 encapsulation, in the present embodiment, outgoing interface information comprises interface identifier and MAC Address, multicast group outgoing interface information is according to the difference of its type and difference in other embodiments, for example, multicast group outgoing interface information also can be interface identifier, protocol type and the required information such as relevant control address of L2 encapsulation;
Step 103: multicast router judges whether to hit any multicast item, if, enter step 104, otherwise abandon multicast message, and the counter O reset of control transmission multicast message, changestep 108 then over to;
Step 104: multicast router is according to the multicast list that hits, determines the number that E-Packets and the relevant information of outgoing interface, and the count value that will send the counter of multicast message simultaneously changes to the individual numerical value Out Int Num of forwarding multicasting message;
Step 105: multicast router sends by the multicast message of thecorresponding Layer 2 Multicast header of multicast group outgoing interface of three layers of multicast table in the multicast list that hits;
Step 106: after each multicast group outgoing interface sent ENMES, interface hardware sent this interface of message informing multicast router and sends end, after multicast router receives this message, the control counter count value that sends multicast message was subtracted 1;
Step 107: multicast router judges whether send multicast message control counter count value is zero, if enterstep 108, otherwise returnstep 105;
Step 108: multicast router discharges three layers of memory headroom that multicast message is shared, finishes forwarding multicasting message.
State in realization in the process of fast multicast, because the multicast group outgoing interface has nothing in common with each other, so the L2 encapsulation of the multicast message that sends at different multicast group outgoing interfaces is different, therefore multicast router is stored in the internal memory by mode shown in Figure 2 multicast message, be about to multicast message and adopt the segmented storage, just other content of theLayer 2 Multicast header of multicast message and multicast message adopts chain type fragmented storage, adopts linear storage mode for two layers of head of different multicast group outgoing interfaces.
From the foregoing description as can be seen, the present invention is by the counting to multicast message, thereby each interface of having avoided transmitting all will duplicate message one time, saved owing to duplicate shared memory headroom, simultaneously also reduced the time that internal storage access is taken, under a lot of situation of the interface number of transmitting, can save a large amount of memory headrooms, and replace copy operation to multicast message by the reducing that adds to multicast message counting, reduce the burden of multicast router load greatly, improve the operating efficiency of multicast router, realize that level is broadcast fast.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making various corresponding changes and distortion according to the present invention, and these change and be out of shape the protection range that all should belong to the appended claim of the present invention accordingly.

Claims (8)

Translated fromChinese
1.一种快速组播的处理方法,其特征在于,1. A processing method for fast multicast, characterized in that,组播路由器查询三层组播表,命中某条表项后,设置发送组播报文的计数器计数值与所述三层组播表中的组播组出接口数目值相同;The multicast router queries the three-layer multicast table, and after hitting a certain table item, the counter count value of the multicast packet sent is set to be the same as the number of multicast group outgoing interfaces in the three-layer multicast table;所述组播路由器根据所述三层组播表依次向所述各组播组出接口发送与其相对应的携带二层组播头信息的组播报文,每一组播组出接口的组播报文发送完毕后,通知所述组播路由器控制所述发送组播报文的计数器的计数值减1,直到所述计数器的计数值为零时,所述组播路由器结束发送组播报文。The multicast router sends the corresponding multicast packets carrying layer-2 multicast header information to the multicast group outgoing interfaces in turn according to the three-layer multicast table, and the group of each multicast group outgoing interface After the broadcast message is sent, notify the multicast router to control the count value of the counter for sending the multicast message by 1, until the count value of the counter is zero, the multicast router ends sending the multicast message arts.2.如权利要求1所述的方法,其特征在于,2. The method of claim 1, wherein所述三层组播表中至少包括组播组IP、组播组出接口数以及预封装好的所述二层组播头信息。The layer-3 multicast table includes at least the multicast group IP, the number of multicast group outbound interfaces, and the pre-encapsulated layer-2 multicast header information.3.如权利要求2所述的方法,其特征在于,3. The method of claim 2, wherein所述三层组播表还包括源IP信息。The layer-3 multicast table also includes source IP information.4.如权利要求1至3任一项所述的方法,其特征在于,4. The method according to any one of claims 1 to 3, wherein所述组播路由器在生成组播路由条目时,根据所述组播组出接口的类型生成相应的二层组播头信息,再根据组播组IP、组播组出接口数生成所述三层组播表。When the multicast router generates a multicast routing entry, it generates corresponding Layer 2 multicast header information according to the type of the multicast group outgoing interface, and then generates the three-layer multicast header information according to the multicast group IP and the number of multicast group outgoing interfaces. layer multicast table.5.如权利要求4所述的方法,其特征在于,5. The method of claim 4, wherein,当所述组播组出接口类型为以太接口时,所述二层组播头信息包括协议类型、源介质访问控制地址、转发组播报文入接口标识、转发组播报文的出接口标识以及转发组播报文的组播组出接口的介质访问控制地址信息。When the type of the multicast group outgoing interface is an Ethernet interface, the layer-2 multicast header information includes the protocol type, the source media access control address, the incoming interface identifier for forwarding multicast packets, and the outgoing interface identifier for forwarding multicast packets And the media access control address information of the multicast group outbound interface that forwards the multicast message.6.如权利要求4所述的方法,其特征在于, 6. The method of claim 4, wherein,所述组播路由器命中所述三层组播表中某条表项后,将该表项中所述组播报文的二层组播头信息与三层组播报文采用分段链式存储方式进行存储, 其中与所述各组播组出接口相对应的二层组播头信息使用线性存储方式进行存储。 After the multicast router hits an entry in the layer-3 multicast table, the layer-2 multicast header information of the multicast message in the table item and the layer-3 multicast message adopt segment chain The storage method is used for storage, and the layer 2 multicast header information corresponding to the outgoing interfaces of the multicast groups is stored using a linear storage method. the7.如权利要求1所述的方法,其特征在于, 7. The method of claim 1, wherein,所述组播路由器结束发送组播报文后,释放内存中三层组播报文所占的空间。 After the multicast router finishes sending the multicast message, it releases the space occupied by the layer-3 multicast message in the memory. the8.如权利要求1所述的方法,其特征在于, 8. The method of claim 1, wherein,所述组播组出接口的组播报文发送完毕后,所述接口通过消息形式向所述组播路由器通知发送组播报文结束。 After the multicast group outgoing interface sends the multicast message, the interface notifies the multicast router of the end of sending the multicast message in the form of a message. the
CN2008100855841A2008-03-192008-03-19 A Fast Multicast Processing MethodExpired - Fee RelatedCN101242419B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2008100855841ACN101242419B (en)2008-03-192008-03-19 A Fast Multicast Processing Method

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2008100855841ACN101242419B (en)2008-03-192008-03-19 A Fast Multicast Processing Method

Publications (2)

Publication NumberPublication Date
CN101242419A CN101242419A (en)2008-08-13
CN101242419Btrue CN101242419B (en)2010-12-29

Family

ID=39933628

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2008100855841AExpired - Fee RelatedCN101242419B (en)2008-03-192008-03-19 A Fast Multicast Processing Method

Country Status (1)

CountryLink
CN (1)CN101242419B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101945040B (en)*2010-08-312013-05-29北京星网锐捷网络技术有限公司Method and device for processing message and network device
CN104219158A (en)*2014-09-032014-12-17杭州华三通信技术有限公司Message copying method and message copying device
CN106487702B (en)*2015-08-312020-03-27深圳市中兴微电子技术有限公司Multicast message two-stage copying method and device
CN109302349A (en)*2018-09-292019-02-01迈普通信技术股份有限公司A kind of message forwarding method and routing device
CN110572322B (en)*2019-08-162021-07-13苏州工业职业技术学院 A Method for Improving Multicast Forwarding Efficiency by Modifying Search Keyword
CN113572698B (en)*2021-06-292023-12-01青岛海尔科技有限公司 Test methods and devices, storage media and electronic devices for multicast group capacity
CN115242708B (en)*2022-07-212023-10-20迈普通信技术股份有限公司Multicast table item processing method and device, electronic equipment and storage medium
CN119484439A (en)*2023-07-312025-02-18深圳市中兴微电子技术有限公司 Multicast message duplication method, switching chip, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1378365A (en)*2002-05-102002-11-06北京港湾网络有限公司IP group broadcast route repeating optimizing method
CN1595879A (en)*2003-09-082005-03-16华为技术有限公司A method for increasing efficiency of multicast data forwarding in circumstance of large-capacity routing table
CN1669354A (en)*2002-09-272005-09-14诺基亚公司 Multicast data transmission
CN1878143A (en)*2006-07-172006-12-13杭州华为三康技术有限公司Multicast network deploying method and multicast network
CN1881931A (en)*2005-06-132006-12-20中兴通讯股份有限公司Multicast forwarding route aggregating method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1378365A (en)*2002-05-102002-11-06北京港湾网络有限公司IP group broadcast route repeating optimizing method
CN1669354A (en)*2002-09-272005-09-14诺基亚公司 Multicast data transmission
CN1595879A (en)*2003-09-082005-03-16华为技术有限公司A method for increasing efficiency of multicast data forwarding in circumstance of large-capacity routing table
CN1881931A (en)*2005-06-132006-12-20中兴通讯股份有限公司Multicast forwarding route aggregating method
CN1878143A (en)*2006-07-172006-12-13杭州华为三康技术有限公司Multicast network deploying method and multicast network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JP特开2005-229465A 2005.08.25
US 6,693,907 B1,2004.02.17,全文.

Also Published As

Publication numberPublication date
CN101242419A (en)2008-08-13

Similar Documents

PublicationPublication DateTitle
CN101242419B (en) A Fast Multicast Processing Method
WO2008075336A3 (en)Forwarding multicast traffic over link aggregation ports
CN102160328B (en)Central controller for coordinating multicast message transmissions in distributed virtual network switch environment
CN100442776C (en) The Method of Realizing Multicast Forwarding on Layer 3 Switch
CN101626338B (en)Method and device for realizing multiple virtual private network (VPN) examples
CN100531038C (en)System and method for implementing communication between distributed system boards
CN1194508C (en) A method for forwarding multicast packets based on Layer 2 switching equipment
CN101355519B (en)Method and apparatus for implementing share of business stream load
US20130003732A1 (en)Abstracting accepting interface to optimize parent and child entry lookup for bidirectional pim
CN101247253A (en) Multicast Transmission Method Based on Virtual Distribution Network in IP Network
CN102057623B (en)Method for obtaining terminal status
CN100486207C (en)IP multicasting precision port transmitting method in three layer exchanging
CN106375223B (en)A kind of data forwarding system and method based on SDN
CN100550849C (en)Packet transfer control method and system
US6501749B1 (en)System and method for data transmission across a link aggregation
CN101291240A (en)Multicast flow transmission method and system
CN102647359B (en)Method for implementing network bridge IGMP (internet group management protocol) Snooping based on DSA TAG (digital signature algorithm tag) and user-defined protocol stack
CN104579981B (en)A kind of multicast data packet forwarding method and apparatus
CN101296179B (en) IPv6 uses reverse path forwarding vector IPv4/6 method
CN100484055C (en)Method for implementing multicast spanning VLAN
CN100586105C (en) Message forwarding method, system and device
Zhang et al.A destination-initiated multicast routing protocol for shortest path tree constructions
US7899928B1 (en)Efficient multicast packet handling in a layer 2 network
CN1276663A (en)Multicast method for broad-band Ethermet
CN101267396A (en) Device and method for implementing multicast routing downstream interface list

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20101229

Termination date:20180319

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp