CN102970152A - Method for statically realizing Internet group management protocol (IGMP) Snooping - Google Patents

Method for statically realizing Internet group management protocol (IGMP) Snooping Download PDF

Info

Publication number
CN102970152A
CN102970152A CN201210485652XA CN201210485652A CN102970152A CN 102970152 A CN102970152 A CN 102970152A CN 201210485652X A CN201210485652X A CN 201210485652XA CN 201210485652 A CN201210485652 A CN 201210485652A CN 102970152 A CN102970152 A CN 102970152A
Authority
CN
China
Prior art keywords
list item
multicast
igmp
multicast table
ageing time
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.)
Pending
Application number
CN201210485652XA
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201210485652XA priority Critical patent/CN102970152A/en
Publication of CN102970152A publication Critical patent/CN102970152A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention provides a method for statically realizing Internet group management protocol (IGMP) Snooping. The method comprises the following steps of: constructing a multicast table with a fixed size, wherein each option comprises multicast multi-access control (MAC), source MAC, a port number, a virtual local area network (vlan) identity (ID) and aging time, wherein the primary value of the aging time is 300 seconds; when customer promise equipment (CPE) receives a message that an IGMP is added, and the existing corresponding options are searched, updating the aging time of the options to be 300 seconds if the corresponding options are not searched, adding the corresponding options into the multicast group, and setting the aging time as the primary value; when the CPE receives a message that the IGMP leaves, searching whether the corresponding options exist in the multicast table, and if the corresponding options are searched, deleting the options. By the method, the multicast group with the fixed size only occupies a fixed space, and a certain option is added into and/or deleted from the multicast table with the fixed size. Compared with the prior art, the method has the advantages that extra memory space is not occupied, and the memory space can be frequently released; and therefore, fragments of the memory can be avoided.

Description

The static method that realizes IGMP Snooping
[technical field]
The present invention relates to the network data communication technical field, relate in particular to the method for configuration multicast table in a kind of IGMP Snooping agreement.
[background technology]
IGMP Snooping is Internet Group Management Protocol Snooping(internet group management protocol snooping) abbreviation, it is the multicast tied mechanism that operates on the two-layer equipment, is used for management and control multicast group.When two-layer equipment did not move IGMP Snooping, multicast packet was broadcasted at two layers; After two-layer equipment had moved IGMP Snooping, the multicast packet of known multicast group can not be broadcasted at two layers, and at two layers by the recipient of multicast to appointment.
The two-layer equipment of operation IGMP Snooping is by analyzing the IGMP message of receiving, for port and multicast mac address are set up mapping relations, and sets up and maintenance software is transmitted and according to the forwarding-table item multicast data forwarding according to such mapping relations.List item in the software forward table has multicast mac address, source MAC, VLAN ID, port bitmap etc.
At present, some CPE(CPE:Customer Premise Equipment, be physically located at the hardware of client layer, comprise modulator-demodulator, hub, switch, router) on be to realize IGMP snooping function with software register, use dynamic approach to create and remove entries, when receiving that IGMP joins message, take software list item of the instant establishment of memory headroom of CPU, when receiving IGMP leave message, then leave out this list item, discharge simultaneously occupied memory headroom.Use this dynamic approach to create and deletion software list item, distribute continually and releasing memory, cause easily the generation of memory fragmentation.
[summary of the invention]
The technical problem that the present invention need solve is to overcome above-mentioned deficiency, and the method for a kind of static IGMPSnooping of realization is provided.
For solving above-mentioned technical problem, the present invention has designed the method for a kind of static IGMP of realization Snooping, it is characterized in that, comprises following step:
Step 1: set up the multicast table of a fixed size in the CPE internal memory, multicast table comprises N item list item, N〉5, each list item comprises multicast MAC, source MAC, port numbers, vlan ID, ageing time, the ageing time initial value is 300s;
Step 2: when CPE receives that IGMP joins message, record multicast MAC, source MAC, port numbers, vlan ID, and in multicast table, search whether have corresponding list item, if in multicast table, find existing corresponding list item, the ageing time of then upgrading this list item is 300s, if in multicast table, search less than corresponding list item, then corresponding list item is added in the multicast table, and to dispose its ageing time be initial value;
Step 3: when CPE receives IGMP leave message, record multicast MAC, source MAC, port numbers, vlan ID, and search whether have corresponding list item in multicast table, find corresponding list item, then delete this list item.
Further improve as the present invention, the method has also created a time timer, refresh multicast table every 10s, and the ageing time of each list item cut 10s, whether the ageing time of judging again each list item is 0, if the ageing time of certain list item is 0, then deletes this list item, otherwise, then keep this list item.
Further improve as the present invention, N is 512.
The present invention sets up the multicast table of a fixed size, only accounts for fixing space of internal memory, and adds in the multicast table of this fixed size and/or leave out certain list item.Compared with prior art, the outer memory headroom of occupying volume and discharge continually extra memory headroom no longer, thus avoided the generation memory fragmentation.
[description of drawings]
Fig. 1 is the schematic flow sheet of the method for the static IGMP of realization of embodiment of the invention Snooping;
Fig. 2 is the illustrative flow chart of embodiment of the invention time timer.
[embodiment]
The invention will be further described below in conjunction with drawings and embodiments.
The method that embodiments of the invention are static realizes IGMP Snooping is to operate in the Ethernet on the modulator-demodulator, and certainly, the static method of IGMP Snooping that realizes of the present invention also may operate on the network equipments such as switch, router, hub.Switch, router, hub, modulator-demodulator are referred to as again CPE.
As shown in Figure 1, present embodiment, the static method of IGMP Snooping that realizes comprises: set up the multicast table of a fixed size in the modulator-demodulator internal memory, namely take the space of a fixed size of modulator-demodulator internal memory, create the multicast table of a fixed size.Present embodiment only adds in the multicast table of this fixed size and/or leaves out list item (being the multicast forwarding list item), no longer goes to additionally to take or discharge the space of other internal memories, and it is static being equivalent to this part shared memory headroom of big or small multicast table that is fixed.
In the present embodiment, multicast table comprises 512 list items, and 512 enough modulator-demodulators of list item move IGMP Snooping agreement when multicast.Certainly, what list items the present embodiment multicast table comprises, and are relevant with its space, if when multicast table created, its space was large, the quantity of list item is then many, and its space is little, and the quantity of list item is then few, and still, the list item quantity of multicast table should be less greater than 5.
Each list item of multicast table comprises multicast MAC, source MAC, port numbers, vlan ID, ageing time.The ageing time initial value is 300s.
When modulator-demodulator is received user's IGMP message, if IGMP joins message, then record multicast MAC, source MAC, port numbers, vlan ID, and in multicast table, search whether have corresponding list item.
If in multicast table, find existing corresponding list item, illustrate that this multicast member is online, the ageing time of upgrading this list item is 300s.
If search less than corresponding list item, then corresponding list item is added in the multicast table, and to dispose its ageing time be initial value, illustrate that namely this member is new multicast member, there is not corresponding list item in the multicast table before, add fashionablely, will be added in the multicast table with its multicast MAC, source MAC, port numbers, the corresponding list item of vlan ID, generate a new list item.
When if modulator-demodulator is received IGMP leave message, record multicast MAC, source MAC, port numbers, vlan ID, and in multicast table, search whether have corresponding list item, find corresponding list item, then delete this list item.
Whether the present invention is online or disconnect in order to monitor multicast member, also created a time timer, as shown in Figure 2, refreshes multicast table every 10s, and the ageing time of each list item is cut 10s, judges whether the ageing time of each list item is 0 again.If the ageing time of certain list item is 0, illustrate that then this multicast member disconnects, do not send IGMP always and join message, its ageing time is cut 10s every 10s, is 0 until cut, and then deletes this list item.
If the ageing time of certain list item is not 0, then keep this list item.Illustrate that this multicast member is online, when multicast member joined message to modulator-demodulator transmission IGMP, the ageing time in its list item was constantly updated and is 300s.
The present invention sets up the multicast table of a fixed size, only account for fixing space of internal memory, and in the multicast table of this fixed size, add and/or leave out certain list item, the outer memory headroom of occupying volume and discharge continually extra memory headroom no longer, thus avoided the generation memory fragmentation.
Above-described only is embodiments of the present invention, should be pointed out that for the person of ordinary skill of the art at this, under the prerequisite that does not break away from the invention design, can also make improvement, but these all belongs to protection scope of the present invention.

Claims (3)

1. a static method that realizes IGMP Snooping is characterized in that, comprises following step:
Step 1: set up the multicast table of a fixed size in the CPE internal memory, multicast table comprises N item list item, N〉5, each list item comprises multicast MAC, source MAC, port numbers, vlan ID, ageing time, the ageing time initial value is 300s;
Step 2: when CPE receives that IGMP joins message, record multicast MAC, source MAC, port numbers, vlan ID, and in multicast table, search whether have corresponding list item, if in multicast table, find existing corresponding list item, the ageing time of then upgrading this list item is 300s, if in multicast table, search less than corresponding list item, then corresponding list item is added in the multicast table, and to dispose its ageing time be initial value;
Step 3: when CPE receives IGMP leave message, record multicast MAC, source MAC, port numbers, vlan ID, and search whether have corresponding list item in multicast table, find corresponding list item, then delete this list item.
2. static state according to claim 1 realizes the method for IGMP Snooping, it is characterized in that: the method has also created a time timer, refresh multicast table every 10s, and the ageing time of each list item cut 10s, whether the ageing time of judging again each list item is 0, if the ageing time of certain list item is 0, then deletes this list item, otherwise, then keep this list item.
3. static state according to claim 1 realizes the method for IGMP Snooping, and it is characterized in that: N is 512.
CN201210485652XA 2012-11-23 2012-11-23 Method for statically realizing Internet group management protocol (IGMP) Snooping Pending CN102970152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210485652XA CN102970152A (en) 2012-11-23 2012-11-23 Method for statically realizing Internet group management protocol (IGMP) Snooping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210485652XA CN102970152A (en) 2012-11-23 2012-11-23 Method for statically realizing Internet group management protocol (IGMP) Snooping

Publications (1)

Publication Number Publication Date
CN102970152A true CN102970152A (en) 2013-03-13

Family

ID=47800044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210485652XA Pending CN102970152A (en) 2012-11-23 2012-11-23 Method for statically realizing Internet group management protocol (IGMP) Snooping

Country Status (1)

Country Link
CN (1) CN102970152A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618614B (en) * 2013-11-13 2016-08-24 深圳市新格林耐特通信技术有限公司 A kind of method strengthening the study restriction of IGMP Snooping multicast

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545048A (en) * 2003-11-17 2004-11-10 中兴通讯股份有限公司 Method for implementing tree storage and access by two-dimensional table
CN1933413A (en) * 2006-09-30 2007-03-21 中兴通讯股份有限公司 Group broadcasting member management method for radio local network IP group broadcasting frame transmission
CN101226553A (en) * 2008-02-03 2008-07-23 中兴通讯股份有限公司 Method and device for storing length-various field of embedded database
CN101312400A (en) * 2007-05-25 2008-11-26 上海大亚科技有限公司 Method realizing IGMP interception function on modem device with 4 ethernet interfaces
WO2009000306A1 (en) * 2007-06-26 2008-12-31 Soporte Multivendor S.L. Method and device for managing multicast groups
CN101447998A (en) * 2008-12-25 2009-06-03 广东威创视讯科技股份有限公司 Desktop sharing method and system
CN101605040A (en) * 2008-06-12 2009-12-16 中兴通讯股份有限公司 Multicast control method under a kind of single-port and multi-user access mode and device
CN201414137Y (en) * 2009-05-06 2010-02-24 北京星网锐捷网络技术有限公司 Route list capability adjustment device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545048A (en) * 2003-11-17 2004-11-10 中兴通讯股份有限公司 Method for implementing tree storage and access by two-dimensional table
CN1933413A (en) * 2006-09-30 2007-03-21 中兴通讯股份有限公司 Group broadcasting member management method for radio local network IP group broadcasting frame transmission
CN101312400A (en) * 2007-05-25 2008-11-26 上海大亚科技有限公司 Method realizing IGMP interception function on modem device with 4 ethernet interfaces
WO2009000306A1 (en) * 2007-06-26 2008-12-31 Soporte Multivendor S.L. Method and device for managing multicast groups
CN101226553A (en) * 2008-02-03 2008-07-23 中兴通讯股份有限公司 Method and device for storing length-various field of embedded database
CN101605040A (en) * 2008-06-12 2009-12-16 中兴通讯股份有限公司 Multicast control method under a kind of single-port and multi-user access mode and device
CN101447998A (en) * 2008-12-25 2009-06-03 广东威创视讯科技股份有限公司 Desktop sharing method and system
CN201414137Y (en) * 2009-05-06 2010-02-24 北京星网锐捷网络技术有限公司 Route list capability adjustment device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618614B (en) * 2013-11-13 2016-08-24 深圳市新格林耐特通信技术有限公司 A kind of method strengthening the study restriction of IGMP Snooping multicast

Similar Documents

Publication Publication Date Title
CN102035729B (en) Multicast data forwarding method
CN104604189B (en) The efficient state issue mechanism of large enterprise
CN101616014B (en) Method for realizing cross-virtual private local area network multicast
CN105359457A (en) Multi-tier push hybrid service control architecture for large scale conferencing over information centric network, icn
CN102164084B (en) Multicast message forwarding method and equipment thereof
WO2015180040A1 (en) Flow table management method and relevant device and system
CN102347889B (en) Message forwarding method, system and device in H-VPLS (Hierarchical Virtual Private local area network service)
CN104780232B (en) A kind of resource allocation methods, controller and system
US10225091B2 (en) Method for implementing point-to-multipoint multicast, network node, and system
CN100550857C (en) Realize method, system and the access device of intercommunication of two layers of local specific service
CN112968836A (en) Cross-device aggregation link configuration method, device, equipment and readable storage medium
WO2012068854A1 (en) Method and apparatus for updating media access control (mac) address
CN102064999A (en) Method and equipment for forwarding multicast message
CN101795223B (en) Multicast security control method, system and transmission node
CN101834781A (en) Media access control address keep-alive device and method for convergence port
US10742431B2 (en) Centralized database based multicast converging
CN102025641A (en) Message filtering method and exchange equipment
CN102970152A (en) Method for statically realizing Internet group management protocol (IGMP) Snooping
CN104601463A (en) Message forwarding method and device in VXLAN (virtual extensible local area network)
CN104468348A (en) Service provider boundary routers, system and method for achieving fast VPN rerouting
CN105009512B (en) Maintenance association MA setting methods, apparatus and system
CN100450068C (en) Multicast group maintaining method
CN102136988A (en) Multicast data message transferring method and device
CN102238040A (en) Method for monitoring CE (Customer Edge router) and routing device
CN107819622A (en) MAC address management method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130313