CN1218540C - Control method for exact multicast forwarding - Google Patents

Control method for exact multicast forwarding Download PDF

Info

Publication number
CN1218540C
CN1218540C CN 03156442 CN03156442A CN1218540C CN 1218540 C CN1218540 C CN 1218540C CN 03156442 CN03156442 CN 03156442 CN 03156442 A CN03156442 A CN 03156442A CN 1218540 C CN1218540 C CN 1218540C
Authority
CN
China
Prior art keywords
multicast
port
layers
source
forwarding
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
CN 03156442
Other languages
Chinese (zh)
Other versions
CN1486038A (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.)
Huawei Technologies Co Ltd
Original Assignee
Harbour Networks Holdings 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 Harbour Networks Holdings Ltd filed Critical Harbour Networks Holdings Ltd
Priority to CN 03156442 priority Critical patent/CN1218540C/en
Publication of CN1486038A publication Critical patent/CN1486038A/en
Application granted granted Critical
Publication of CN1218540C publication Critical patent/CN1218540C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention provides an IP control method for exact multicast forwarding, which comprises the steps that 1. establishing a multicast route between a multicast source and an orderer, and a multicast forwarding list by a multicast module; 2. testing whether an IP pack is legal when multicast data is sent in, if true, going to the next step; 3. searching a three-layer list according to a source address and a multicast address, if obtaining a multicast forwarding table index, going to the next step; 4. judging whether a multicast mark in the three-layer list is effective, if true, going to the next step; 5. searching a multicast forwarding list and testing whether a source port is matched with VLAN, if true, going to the next step; 6. searching the multicast forwarding table, and if the source port and a target port are in the same VLAN, performing the second layer forwarding; if the source port and the target port are in different VLAN, performing the third layer forwarding. The adoption of the technical scheme of the present invention realizes the accurate forwarding of multicast data by all the ports of an exchanger on the basis of a standard protocol.

Description

The control method of group broadcast precise relay
Technical field:
What the present invention relates to is a kind of control method of group broadcast precise relay of communication network, and the particularly control of broadband ethernet group broadcast precise relay belongs to the broadband network communication field.
Background technology:
Traditional IP communication has dual mode, first kind of clean culture unicast, and second kind is broadcasting broadcast.If information is sent to a plurality of main frames in the network but not All hosts, then or adopt broadcast mode, or by source host respectively many destination hosts in network send the IP bag with mode of unicast.Not only information can be sent to unwanted main frame when adopting broadcast mode to realize, and waste bandwidth, also may be because the route winding causes serious broadcast storm.When adopting mode of unicast to realize, because repeating transmission and can wasting massive band width of IP bag also increased the load of server.So traditional clean culture and broadcast communication mode can not solve single-point effectively and send the problem that multiple spot receives.
The basic thought of IP multicast is that source host only sends a piece of data.Destination address in this piece of data is a multicast group address, and all recipients in the multicast group can receive same data copy, and have only the destination host in the multicast group to receive, and other main frame can not be received in this data network.
How control data only sends to main frame, other main frame of needing can not be received, has just become a problem that urgency is to be solved.Early stage multicast mainly is used in above the router, and in recent years, switch has appearred in the development along with technology, and switch has almost comprised all functions of router, and has realized the hardware forwarding, and speed is faster.This just is multicast new problem below the application of switch has brought:
Port of router is exactly one three layer interface.Switch is divided port by VLAN (VLAN), and VLAN can join a plurality of ports.VLAN both can be three layers VLAN, also can be two layers VLAN, and port just can be three layers port, be two layers port again.Then there is not this problem in router, and concerning switch, two layers of forwarding of data and three layers of forwarding of data are the difference that essence is arranged.Transmitting multicast data must be distinguished this point.
In switch, one three layers VLAN is exactly one three layers a interface.This interface can have a plurality of ports, and traditional multicast can only be accurate to three layer interfaces, cannot be accurate to each port of three layer interfaces.Multicast packet can only be broadcasted in VLAN, has wasted the network bandwidth, has increased offered load.
When the source port of multicast and outbound port during at same VLAN, source port and outbound port belong to same three layers interface, and traditional router and switch RPF (reverse path forwarding) check not by at all can't program request.
Summary of the invention:
The method that the purpose of this invention is to provide a kind of IP of control group broadcast precise relay on the basis of standard agreement, realizes switch all of the port precise relay multicast packet.
Technical scheme of the present invention is as follows:
The control method of group broadcast precise relay, its step comprises:
The multicast module between multicast source and program request person, set up multicast path by, set up multicast forward table;
2. multicast packet arrives, and checks earlier whether the IP bag is legal; If have illegally, then abandon this packet or handle to CPU; IP bag for legal enters next step;
3. according to source address and multicast address, search three layers of table,, then can select to abandon or handle to CPU if can not find the multicast forwarding table index; If obtain the multicast forwarding table index, then enter next step;
4. judge whether multicast flags is effective in three layers of table, if invalid then can select to abandon or handle to CPU; If effectively then enter next step;
5. search multicast forward table, check that whether source port and VLAN mate, and do not abandon or handle to CPU if match then can select; If the coupling would enter next step;
6. search multicast forward table,, bag is left intact if source port and destination interface in same VLAN, then carry out two layers of forwarding; If source port and destination interface at different VLAN, then need to carry out three layers of forwarding.
The control method of described group broadcast precise relay, in step (1), the mode of setting up multicast forward table is as follows: source port and destination interface are set up Layer 2 Multicast and are transmitted at same VLAN; Source port and destination interface are set up three layers of multicast forward table at different VLAN, and it is the precise relay pattern that the corresponding ports mode of operation is set simultaneously;
Correspondingly, in step (6):
The method of carrying out two layers of forwarding is: port mode is broadcast mode (not doing the default value when being provided with), and two layers of outbound port are all ports of this VLAN; Port mode is other value, and two layers of outbound port are transmitted port for two layers of setting.Port mode is only influential to two layers of forwarding, and three layers are transmitted does not have influence.
The method of carrying out three layers of forwarding is: three layers of outbound port are transmitted port for three layers of setting.
The actual port of transmitting is two layers and transmits port and three layers of summation of transmitting port.
In the described method, consider the flux of multicast problem, described switch is supported sharing multicast traffic.If outbound port is the Trunk port, the algorithm of searching according to specific carries out traffic sharing.
Advantage of the present invention and good effect: adopt technical scheme of the present invention, realized the practical application of IP multicast on switch, realized of the efficient data transmission of IP network mid point to multiple spot, conserve network bandwidth, reduction offered load all are widely used in all many-sides such as real time data transmission, Web TV, multimedia conferencing, data copy, recreation and emulation effectively.
Description of drawings:
Fig. 1 is the flow chart of control method one specific embodiment of group broadcast precise relay of the present invention.
Embodiment:
According to technical scheme of the present invention, provide one embodiment of the present of invention below, Fig. 1 shows the flow chart of the inventive method.Concrete steps are as follows:
1. configuration media server server starts multicast services.
2. start multicast functionality at switch, configure corresponding interface.
3. program request person begins program request, sends IGMP and joins message.
4. the interface management module obtains the port numbers, VLAN ID, groove number at program request person place, notice multicast routing module.
The multicast module between multicast source and program request person, set up multicast path by, source port and destination interface are set up Layer 2 Multicast and are transmitted at same VLAN; Source port and destination interface are set up three layers of multicast forward table at different VLAN, and it is the precise relay pattern that the corresponding ports mode of operation is set simultaneously.Data are set from multicast source along RPT and are issued.
6. multicast packet arrives, and checks earlier whether the IP bag is legal: (1) is the Ip bag; (2) no option option; (3) be the IPV4 bag; (4) IP verification and correct; (5) ttl value is correct; (6) destination address belongs to D class address.If there is one not match, then belong to illegal this packet that abandons, also can select to give CPU and handle.A concrete processing mode is: system journal is gone in record, and provides alarm.
7. add multicast address according to multicast address or source address, search three layers of table, obtain the multicast forwarding table index.If do not find, then abandon this packet, also can select to give CPU and handle.
8. judge whether the multicast flags position is effective in three layers of table, if invalid then can select to abandon or handle to CPU; If effectively then enter next step.
9. search multicast forward table, check that whether source port and VLAN mate, and do not match and can select to abandon or handle to CPU.
10. search multicast forward table, whether according to current configuration, whether check need need to carry out two layers of forwarding in whole VLAN broadcasting, obtain corresponding outbound port bitmap.
If source port and destination interface in same VLAN, then carry out two layers of forwarding, bag is left intact; If source port and destination interface at different VLAN, then need to carry out three layers of forwarding, ttl value subtracts 1, replaces source MAC and purpose MAC, and again calculation check and.
The method of carrying out two layers of forwarding is: port mode is a broadcast mode, and two layers of outbound port are all ports of this VLAN; Port mode is other value, and two layers of outbound port are transmitted port for two layers of setting.
The method of carrying out three layers of forwarding is: three layers of outbound port are transmitted port for three layers of setting.
The actual port of transmitting is two layers and transmits port and three layers of summation of transmitting port.
11.,,, calculate port as source MAC, source IP, purpose MAC, purpose IP according to certain algorithm if transmit port is the Trunk port.
12. data are come out from port, arrive program request person, begin to play.
13. program request person wants to stop program request, sends IGMP leave message, the multicast module is upgraded the multicast route.
14. upgrade the outgoing interface of multicast forward table, corresponding port is changed to sky.
15. multicast packet arrives, and checks that corresponding port is empty, does not then transmit data.
16. program request stops.

Claims (3)

1. the control method of group broadcast precise relay, its step comprises:
(1) the multicast module between multicast source and program request person, set up multicast path by, set up multicast forward table in the following manner: source port and destination interface are set up Layer 2 Multicast and are transmitted at same VLAN; Source port and destination interface are set up three layers of multicast forward table at different VLAN, and it is the precise relay pattern that the corresponding ports mode of operation is set simultaneously;
(2) multicast packet arrives, and checks earlier whether the IP bag is legal; If have illegally, then abandon this packet or handle to CPU; IP bag for legal enters next step;
(3) according to source address and multicast address, search three layers of table, if can not find the multicast forwarding table index, then select to abandon or handle to CPU; If obtain the multicast forwarding table index, then enter next step;
(4) judge whether multicast flags is effective in three layers of table, if invalid then select to abandon or to handle to CPU; If effectively then enter next step;
(5), check whether source port and VLAN mate, if do not match then select to abandon or handle to CPU according to multicast forward table index search multicast forward table; If the coupling would enter next step;
(6) search multicast forward table, if source port and destination interface are in same VLAN, then carry out two layers of forwarding as follows, bag is left intact: if port mode is a broadcast mode then two layers of outbound port are all ports of this VLAN, if port mode is for other value then two layers of outbound port are transmitted ports for two layers of setting; If source port and destination interface at different VLAN, then carry out three layers of forwarding as follows: three layers of outbound port are transmitted ports for three layers of setting, and the actual port of transmitting is two layers and transmits ports and three layers of summation of transmitting ports.
2. the control method of group broadcast precise relay as claimed in claim 1 is characterized in that, the described actual port of transmitting is if the Trunk port then according to searching algorithm, calculates port and carries out traffic sharing.
3. the control method of group broadcast precise relay as claimed in claim 2 is characterized in that, described algorithm is selected from source MAC, source IP, purpose MAC or purpose IP algorithm.
CN 03156442 2003-08-29 2003-08-29 Control method for exact multicast forwarding Expired - Fee Related CN1218540C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03156442 CN1218540C (en) 2003-08-29 2003-08-29 Control method for exact multicast forwarding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03156442 CN1218540C (en) 2003-08-29 2003-08-29 Control method for exact multicast forwarding

Publications (2)

Publication Number Publication Date
CN1486038A CN1486038A (en) 2004-03-31
CN1218540C true CN1218540C (en) 2005-09-07

Family

ID=34156944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03156442 Expired - Fee Related CN1218540C (en) 2003-08-29 2003-08-29 Control method for exact multicast forwarding

Country Status (1)

Country Link
CN (1) CN1218540C (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100401718C (en) * 2005-02-04 2008-07-09 华为技术有限公司 Data frame group broadcasting duplicating method and system
CN100463447C (en) * 2005-08-31 2009-02-18 杭州华三通信技术有限公司 Switchnig equipment and method for controlling multicasting data forwarding
CN1960321B (en) * 2005-10-31 2011-03-16 中兴通讯股份有限公司 Control method for implementing security of multicast
CN100420193C (en) * 2006-05-08 2008-09-17 国家数字交换***工程技术研究中心 Virtual identifying method for multicast forwarding table output port
CN101119290B (en) * 2006-08-01 2011-06-01 华为技术有限公司 Ethernet supporting source specific multicast forwarding method and system
CN101325536A (en) * 2007-06-15 2008-12-17 上海贝尔阿尔卡特股份有限公司 Base station of WiMAX system, method and apparatus for controlling transmission of multicast data packet in gateway
CN101119311B (en) * 2007-09-12 2010-07-14 中兴通讯股份有限公司 Method and device for controlling multicast data flow
CN101483582B (en) * 2008-01-09 2012-02-01 华为技术有限公司 Method, system and router for implementing second and third layer multicast trace route
WO2009089761A1 (en) * 2008-01-09 2009-07-23 Huawei Technologies Co., Ltd. Method, system for realizing switching of multicast route tracking in second and third layers, and router
CN101494581B (en) * 2008-01-22 2012-07-18 中兴通讯股份有限公司 Method for implementing user port double layer intercommunication in network processor
CN101345678B (en) * 2008-08-27 2011-04-06 华为技术有限公司 Multicast communication method, system and multicast communication equipment
US8204060B2 (en) * 2009-01-30 2012-06-19 Palo Alto Research Center Incorporated Method and system for facilitating forwarding a packet in a content-centric network
US8243735B2 (en) * 2009-01-30 2012-08-14 Palo Alto Research Center Incorporated System for forwarding packets with hierarchically structured variable-length identifiers using an exact-match lookup engine
CN101924698B (en) * 2010-07-22 2012-12-12 福建星网锐捷网络有限公司 Method, system and equipment for balancing two-layer domain load based on IP unicast route
CN103457862B (en) * 2013-09-06 2016-05-04 杭州华三通信技术有限公司 Three layers of method of realizing group broadcasting and equipment in a kind of software vertical stack system
CN103634213B (en) * 2013-11-04 2017-04-19 天津汉柏信息技术有限公司 Message forwarding method
CN103746922B (en) * 2013-12-17 2017-01-25 福建星网锐捷网络有限公司 Method and device for forwarding multicast messages

Also Published As

Publication number Publication date
CN1486038A (en) 2004-03-31

Similar Documents

Publication Publication Date Title
CN1218540C (en) Control method for exact multicast forwarding
US8270406B2 (en) Method and apparatus for blocking forged multicast packets
CN100442776C (en) Method for realizing multicast translation in three-layer switching unit
US8064451B2 (en) Network address translation for multicast virtual sourcing
Boivie et al. Explicit multicast (Xcast) concepts and options
US9031069B2 (en) Method, system, and apparatus for extranet networking of multicast virtual private network
US20070058646A1 (en) Device and method for forwarding multicast traffic in a hybrid device
EP1388971A2 (en) Method for forwarding a multicast message in network communication
CN1758630A (en) Layer 2 switch
CN1424833A (en) Method and apparatus for controlling multi-point transmitaion in ether metropolitan network
CN102215172B (en) A kind of method and system for realizing cross-virtual private local area network multicast
CN101076972A (en) Obtaining path information related to a virtual private lan services (vpls) based network
US20080107109A1 (en) Method and Apparatus for Managing Multicast Traffic in a Network at the Data Link or Level 2 Layer
CN1852236A (en) Method for realizing muti-casting in BGP/MPLS VPN
CN1946040A (en) Protective method and device for multicast service
CN1716904A (en) Group broadcast realizing method based on multiple service transmission platform
WO2000062492A1 (en) Multicast extension to data link layer protocols
US7639683B2 (en) Multicast communication method using layer 2 and 3 switches
CN1302642C (en) Group broadcast implementing method based on virtual local area network
US20030163528A1 (en) Multicasting system and method for providing personalized content
CN1710904A (en) Safeguard method and system for interconnection protocol network between networks
CN1547363A (en) Control method of multicast board-spanning forwarding
CN100372292C (en) Method for making multicast accurate to terminal in three-layer switchboard
CN1852080A (en) Method for treating abnormal multicast business
US11323279B1 (en) Internet group management protocol host mobility in ethernet virtual private network multicast networks

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
ASS Succession or assignment of patent right

Owner name: HUAWEI TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: GANGWAN NETWORK CO., LTD.

Effective date: 20061020

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20061020

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: Huawei Technologies Co., Ltd.

Address before: 100089, No. 21 West Third Ring Road, Beijing, Haidian District, Long Ling Building, 13 floor

Patentee before: Harbour Networks Holdings Limited

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

Granted publication date: 20050907

Termination date: 20110829