CN1486038A - Control method for exact multicast forwarding - Google Patents

Control method for exact multicast forwarding Download PDF

Info

Publication number
CN1486038A
CN1486038A CNA031564429A CN03156442A CN1486038A CN 1486038 A CN1486038 A CN 1486038A CN A031564429 A CNA031564429 A CN A031564429A CN 03156442 A CN03156442 A CN 03156442A CN 1486038 A CN1486038 A CN 1486038A
Authority
CN
China
Prior art keywords
port
layers
multicast
source
vlan
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
CNA031564429A
Other languages
Chinese (zh)
Other versions
CN1218540C (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
BEIJIANG GANGWAN NETWORK 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 BEIJIANG GANGWAN NETWORK Co Ltd filed Critical BEIJIANG GANGWAN NETWORK Co 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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a control method for IP group broadcast precise relay, the steps include: 1. the group broadcast model sets up route between the source and the orderer, and sets up the relay table; 2. when group broadcast comes, it examines if the IP package legal or not, if legal then carries on following step; 3. searches three-layer table according to the source address and group broadcast address, if acquires the relay index then enters next step; 4. judges if the sign in three-layer valid or not, if yes, enters next step; 5. searches group broadcast relay table, examines if the source port matches with VLAN, if yes, next step; 6. searches group broadcast relay table, if source port and target port are in the same VLAN, carries on two-layer relay; if not, carries on the three-layer relay.

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 (4)

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;
(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,, 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 carry out three layers of forwarding.
2. the control method of group broadcast precise relay as claimed in claim 1 is characterized in that:
In the described 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 the described step (6), the method for carrying out two layers of forwarding is: 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; 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.
3. the control method of group broadcast precise relay as claimed in claim 2 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.
4. the control method of group broadcast precise relay as claimed in claim 3 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 true CN1486038A (en) 2004-03-31
CN1218540C 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)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008017270A1 (en) * 2006-08-01 2008-02-14 Huawei Technologies Co., Ltd. Method and device and system of ethernet supporting source specific multicast forwarding
CN100401718C (en) * 2005-02-04 2008-07-09 华为技术有限公司 Data frame group broadcasting duplicating method and system
CN100420193C (en) * 2006-05-08 2008-09-17 国家数字交换系统工程技术研究中心 Virtual identifying method for multicast forwarding table output port
WO2008154796A1 (en) * 2007-06-15 2008-12-24 Alcatel Lucent A method and an equipment for controlling the transmission of the multicast data packets in the base station and the gateway of the wimax system
CN100463447C (en) * 2005-08-31 2009-02-18 杭州华三通信技术有限公司 Switchnig equipment and method for controlling multicasting data forwarding
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
CN101119311B (en) * 2007-09-12 2010-07-14 中兴通讯股份有限公司 Method and device for controlling multicast data flow
CN101820386A (en) * 2009-01-30 2010-09-01 帕洛阿尔托研究中心公司 Be used for promoting network to transmit the method and system of grouping with the content being the center
CN101924698A (en) * 2010-07-22 2010-12-22 福建星网锐捷网络有限公司 Method, system and equipment for balancing two-layer domain load based on IP unicast route
CN1960321B (en) * 2005-10-31 2011-03-16 中兴通讯股份有限公司 Control method for implementing security of multicast
CN101345678B (en) * 2008-08-27 2011-04-06 华为技术有限公司 Multicast communication method, system and multicast communication equipment
CN101483582B (en) * 2008-01-09 2012-02-01 华为技术有限公司 Method, system and router for implementing second and third layer multicast trace route
CN101494581B (en) * 2008-01-22 2012-07-18 中兴通讯股份有限公司 Method for implementing user port double layer intercommunication in network processor
CN101819580B (en) * 2009-01-30 2013-10-30 帕洛阿尔托研究中心公司 System for forwarding packets with identifiers using exact-match lookup engine
CN103457862A (en) * 2013-09-06 2013-12-18 杭州华三通信技术有限公司 Three-layer multicast achieving method in software longitudinal stacking system and equipment
CN103634213A (en) * 2013-11-04 2014-03-12 天津汉柏信息技术有限公司 Message forwarding method
CN103746922A (en) * 2013-12-17 2014-04-23 福建星网锐捷网络有限公司 Method and device for forwarding multicast messages

Cited By (21)

* 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
WO2008017270A1 (en) * 2006-08-01 2008-02-14 Huawei Technologies Co., Ltd. Method and device and system of ethernet supporting source specific multicast forwarding
WO2008154796A1 (en) * 2007-06-15 2008-12-24 Alcatel Lucent A method and an equipment for controlling the transmission of the multicast data packets in the base station and the gateway of the wimax system
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
US8442047B2 (en) 2008-01-09 2013-05-14 Huawei Technologies Co., Ltd. Method, system, router and apparatus for implementing switching between layer-2 multicast route tracing and layer-3 multicast route tracing
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
CN101820386A (en) * 2009-01-30 2010-09-01 帕洛阿尔托研究中心公司 Be used for promoting network to transmit the method and system of grouping with the content being the center
CN101819580B (en) * 2009-01-30 2013-10-30 帕洛阿尔托研究中心公司 System for forwarding packets with identifiers using exact-match lookup engine
CN101820386B (en) * 2009-01-30 2015-06-03 帕洛阿尔托研究中心公司 Method and system for facilitating forwarding a packet in a content-centric network
CN101924698A (en) * 2010-07-22 2010-12-22 福建星网锐捷网络有限公司 Method, system and equipment for balancing two-layer domain load based on IP unicast route
CN103457862A (en) * 2013-09-06 2013-12-18 杭州华三通信技术有限公司 Three-layer multicast achieving method in software longitudinal stacking system and equipment
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
CN103634213A (en) * 2013-11-04 2014-03-12 天津汉柏信息技术有限公司 Message forwarding method
CN103746922A (en) * 2013-12-17 2014-04-23 福建星网锐捷网络有限公司 Method and device for forwarding multicast messages
CN103746922B (en) * 2013-12-17 2017-01-25 福建星网锐捷网络有限公司 Method and device for forwarding multicast messages

Also Published As

Publication number Publication date
CN1218540C (en) 2005-09-07

Similar Documents

Publication Publication Date Title
CN1218540C (en) Control method for exact multicast forwarding
US8064451B2 (en) Network address translation for multicast virtual sourcing
US8270406B2 (en) Method and apparatus for blocking forged multicast packets
CN1232081C (en) Repeating method for multi-broadcast message in network communication
US9031069B2 (en) Method, system, and apparatus for extranet networking of multicast virtual private network
CN1424833A (en) Method and apparatus for controlling multi-point transmitaion in ether metropolitan network
US20070058646A1 (en) Device and method for forwarding multicast traffic in a hybrid device
CN102215172B (en) A kind of method and system for realizing cross-virtual private local area network multicast
CN1758630A (en) Layer 2 switch
US20080107109A1 (en) Method and Apparatus for Managing Multicast Traffic in a Network at the Data Link or Level 2 Layer
CN101076972A (en) Obtaining path information related to a virtual private lan services (vpls) based network
CN1507230A (en) Method of realizing special multiple-protocol label exchanging virtual network
CN1852236A (en) Method for realizing muti-casting in BGP/MPLS VPN
CN1946040A (en) Protective method and device for multicast service
CN101043430A (en) Method for converting network address between equipments
WO2000062492A1 (en) Multicast extension to data link layer protocols
CN1764155A (en) Transmission method and edge apparatus for multicast between fields
CN109257190B (en) Multicast processing method, controller, switch and system based on SDN
CN1302642C (en) Group broadcast implementing method based on virtual local area network
US7639683B2 (en) Multicast communication method using layer 2 and 3 switches
EP4057578A1 (en) Internet group management protocol host mobility in ethernet virtual private network multicast networks
CN1710904A (en) Safeguard method and system for interconnection protocol network between networks
CN1547363A (en) Control method of multicast board-spanning forwarding
US20030163528A1 (en) Multicasting system and method for providing personalized content
CN1543132A (en) Method for implementing multicast spanning VLAN

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