WO2012041104A1 - Method, system and modem for implementing internet group management protocol snooping - Google Patents

Method, system and modem for implementing internet group management protocol snooping Download PDF

Info

Publication number
WO2012041104A1
WO2012041104A1 PCT/CN2011/076741 CN2011076741W WO2012041104A1 WO 2012041104 A1 WO2012041104 A1 WO 2012041104A1 CN 2011076741 W CN2011076741 W CN 2011076741W WO 2012041104 A1 WO2012041104 A1 WO 2012041104A1
Authority
WO
WIPO (PCT)
Prior art keywords
modem
area network
local area
message
network device
Prior art date
Application number
PCT/CN2011/076741
Other languages
French (fr)
Chinese (zh)
Inventor
唐剑波
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012041104A1 publication Critical patent/WO2012041104A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers

Definitions

  • the present invention relates to the field of communications, and in particular to a method and system for implementing Internet Group Management Protocol Snooping (IGMP Snooping). modem.
  • IGMP Snooping of a general modem is to communicate between a local area network (LAN) user and a WAN port uplink device of a wide area network (WAN).
  • the IGMP 4 message maintains a forwarding table of the correspondence between the multicast address and each port on the LAN side. After receiving the multicast data packet, it searches the table according to the multicast address to determine which LAN ports should forward the multicast packet to.
  • the main process of IGMPv2 messages is as follows.
  • IGMP report response to pc (computer;), stb (set top box), etc. from a LAN port, (using multicast address, LAN port, source mac), look up whether the multicast mac table is already The forwarding entry exists. If it exists, the aging time is updated. If it does not exist, the multicast forwarding address is received by the multicast address, the LAN port number of the report packet, the MAC address of the device that sends the report packet, and the aging time.
  • Directly All LAN ports are forwarded; in addition, when the aging time of an entry is decremented to 0, the entry is deleted.
  • the modem can forward the IGMP Leave message to the WAN port. If the first port leaves, the modem forwards the IGMP leave message to the WAN port, causing the uplink device to stop sending the corresponding multicast A to the modem's WAN port.
  • the IGMP report 4 from any LAN port can be received by other LAN devices.
  • the modem itself does not actively send IGMP query 4 messages, only the 4 bar received from the WAN port. 4 ⁇ text is transmitted to all LAN ports.
  • the inventors have found that some set-top boxes in the related technologies have the following characteristics for multicast processing, for example: typical networking mode is shown in Figure 1, and set-top boxes A and B are added to multicast 239.1.1.1, multicast mac There are two entries a and b in the forwarding table.
  • the uplink device periodically sends IGMP query messages.
  • the device immediately sends a query message, and the modem forwards the query message to all LAN ports.
  • Both A and B receive the query packet, and the set-top box A first returns the report 4 message.
  • the modem After receiving the report message from A, the modem will forward it on the LAN port (in most cases, the multicast message is forwarded from LAN to LAN. Both have hardware implementations, do not need to go through the protocol stack), B will not return to report 4 after receiving the report 4 message from A, that is to say, for the query message sent by the uplink device, the modem On the LAN side, only one set-top box will respond to the report 4 message.
  • the set-top box B If the set-top box B receives the return message from the A back and switches the channel to 239.1.1.2 within a certain time range, the set-top box B will only send to join the 239.1.1.2. Report 4 ⁇ , will not send The leaving 239.1.1.1 leave packet, modem can not delete the multicast forwarding entry b, but creates a new entry c, the STB to switch the channel B forwards the multicast case shown in FIG.
  • the uplink device sends two multicast streams 239.1.1.1 and 239.1.1.2, the set-top box A reads the program 239.1.1.1, and the set-top box B looks at the program 239.1.1.2.
  • the _ set-top box A switches the channel to 239.1.1.3, the set-top box A first sends a leave 4 message leaving 239.1.1.1, and then sends a report message to join 239.1.1.3. After the modem receives the leave packet, it deletes the entry a. Because there is an entry b of 239.1.1.1, the modem cannot. After the packet is forwarded out on the WAN port, the modem will create an entry d according to the report packet sent by A. Since the uplink device has not received the leave message leaving 239.1.1.1, it has to send 239.1.1.1.
  • the multicast stream after A switches the channel, as shown in Figure 3, the uplink device sends three multicasts 3 ⁇ 4 ⁇ 239.1.1.1, 239.1.1.2, 239.1.1.3, 4 ⁇ obviously 239.1.1.1 is redundant, which leads to The waste of bandwidth is more serious. If the uplink device restricts two multicast streams, since there are already two multicast streams 239.1.1.1 and 239.1.1.2, 239.1.1.3 added later cannot be sent down. Set-top box A is due to If you do not receive 239.1.1.3, it will be black, although the time of the black screen is not Over the device sends query packets with intermittent time, but this is still a user wants to see.
  • the main object of the present invention is to provide an implementation method and system for monitoring an Internet group management protocol, and a modem to solve the problem. The above question.
  • an implementation method of Internet Group Management Protocol snooping is provided.
  • the method for implementing the Internet Group Management Protocol listening includes: the modem receives the leaving message from the local area network device; the modem queries the multicast table; and the modem queries the multicast table to have multiple entries in the multicast table. And saving the leaving message; the modem sending the query message to the local area network device; and, if the modem does not receive the response from the local area network device, sending the leaving message to the uplink device.
  • the modem saves the leaving message including: the modem creates a linked list; and the modem uses the linked list to save the leaving message.
  • the implementation method of the Internet group management protocol monitoring further comprises: the modem creates an identifier variable, and the identifier variable is used to identify whether the linked list is empty; wherein, when the modem receives the response from the local area network device and the identifier variable is true The modem deletes the corresponding node in the linked list.
  • the method for implementing the Internet Group Management Protocol monitoring further comprises: the modem determining whether the linked list is empty; and if the linked list is empty, the modem sets the identification variable to false.
  • the method further includes: the modem deleting the node in the linked list corresponding to the leaving message.
  • the timing starts, wherein the modem sends the leaving message to the uplink device if the response from the local area network device is not received within the first set time.
  • an implementation system of Internet Group Management Protocol snooping is provided.
  • the system includes an uplink device, a modem, and a local area network device, wherein: a local area network device, configured to send a leave message; a modem, set to receive a leave message, query
  • the multicast table saves the leaving message and sends the query message to the local area network device when the multicast in the multicast table has multiple entries, and if the response from the local area network device is not received, The leaving message is sent to the uplink device; the uplink device is set to receive the leaving message.
  • the local area network device includes a set top box and a computer.
  • the modem includes: a receiving module configured to receive a leaving message from the local area network device; a query module configured to query the multicast table; and a saving module configured to query the multicast in the multicast table to have multiple entries And storing the leaving message; the first sending module is configured to send the query message to the local area network device; and, the second sending module is configured to send the leaving message if the response from the local area network device is not received To the uplink device.
  • the modem further comprises: a creating module, configured to create a linked list, wherein the linked list is used to save the leaving message; and the deleting module is set to, in response to receiving the response from the local area network device, corresponding to the linked list The node is deleted.
  • the modem receives the leaving message from the local area network device, queries the multicast table, and saves the leaving message and sends the query to the local area network device when the multicast in the multicast table has multiple entries. And, in the case that the response from the LAN device is not received, the leaving message is sent to the uplink device, which solves the problem that the LAN device often has a black screen because it does not receive a certain channel, thereby preventing the LAN device from being The black show effect is not received when a channel is not received.
  • FIG. 1 is a schematic diagram of a set-top box A and B according to the related art joining multicast 239.1.1.1
  • FIG. 2 is a schematic diagram of the set-top box B switching to 239.1.1.2 according to the related art.
  • FIG. 4 is a schematic diagram of an implementation system of the Internet Group Management Protocol listening according to the embodiment of the present invention
  • the implementation system of the Internet Group Management Protocol monitoring includes an uplink device 10, a modem 20, and a station i or a network device 30.
  • the local area network device 30 is configured to send and leave a message;
  • the modem 20 is configured to receive the leaving message, query the multicast table, and save the leaving message if the multicast in the multicast table has multiple entries, and
  • the Query message is sent to the local area network device, and if the response from the local area network device is not received, the leaving message is sent to the uplink device, and the uplink device 10 is configured to receive the leaving message.
  • FIG. 5 is a flowchart of a method for implementing Internet group management protocol monitoring according to an embodiment of the present invention.
  • the method includes: Step S502: The modem receives an leaving message from a local area network device. For example, the modem receives a Leave message from the LAN device via the LAN port. Step 4 gathers S 504, and the modem queries the multicast table. For example, after receiving a leave packet from a port, the modem checks the multicast mac table according to the multicast address in the leave. Step S506, the modem saves and leaves the message when it queries that the multicast in the multicast table has multiple entries.
  • the modem can save the message in the following manner: First, the modem creates a linked list; and the modem uses the linked list to save the leaving message. Step S508, the modem sends a query message to the local area network device. Step S510, the modem sends the leaving message to the uplink device without receiving the response from the local area network device. If the multicast has multiple entries, send a specific multicast query message to the corresponding LAN port (LAN device), start the timer, and cache the received Leave message; otherwise, leave the Leave message on the WAN port. Forward.
  • the cached leave packet is directly discarded; otherwise, all entries of the multicast are deleted, and the cached leave 4 ⁇ The text is forwarded on the WAN port.
  • the modem receives the leave 4 ⁇ of 239.1.1.1, starts to query the multicast mac table, and finds that the multicast has a and b. If there are entries, the leave 4 ⁇ text will be cached, and the query 4 ⁇ of 239.1.1.1 will be sent to the LAN port.
  • the modem Since there is no set-top box watching this program at this time, of course, the modem will not receive any response, then a and b will be All are deleted, and the previously cached leave packet is forwarded to the WAN port, so that the uplink device does not send the multicast stream of 239.1.1.1 downward after receiving the leave message, thus solving the same multicast.
  • the set-top box that left before did not send a leave packet and the black screen caused a waste of bandwidth.
  • the invention only makes the modem actively send the query package when the set top box is watching the same program, and has almost no influence on the system performance.
  • the method of the present invention can solve the problem caused by not sending a leave message in a specific case when some set top boxes play the same multicast group on the modem.
  • the method further includes: the modem creates an identifier variable, and the identifier variable is used to identify whether the linked list is empty, wherein if the linked list is empty, the identifier variable is false, and if the linked list is not empty, the identifier variable is true;
  • the modem receives a response from the LAN device and, if the identification variable is true, the modem deletes the corresponding node in the linked list.
  • the above method may further comprise: the modem determining whether the linked list is empty; and in case the linked list is empty, the modem sets the identification variable to false.
  • the method may further include: the modem deleting the node in the linked list corresponding to the leaving message.
  • the modem starts timing after transmitting the query message to the local area network device, wherein the modem sends the leaving message to the uplink device if the modem does not receive the response from the local area network device at the first set time.
  • the foregoing method may include the following steps: Step 1: First, the query message sent by the uplink device is cached with a variable Cquery, so that when a specific query query message needs to be sent to the LAN port, only the cached query needs to be cached. The package can modify the destination multicast address and CRC check.
  • Step 2 Create a linked list, a timer, and an identification variable. Whenever a LAN-side leave packet is received, the multicast mac table is queried. If the multicast has multiple entries, the specific port is sent to the LAN port. Multicast query 4 ⁇ ,, and create a linked list node, used to cache the timeout time of the leave 4 que and query and the corresponding multicast address.
  • Step 3 As long as there is a node in the linked list, the value of the identification variable is set to true (true), the timer will start, and when the timer expires, the list is traversed, the timeout time of each node is decremented by 1, and the timeout is determined to be 0.
  • Step 4 After receiving the report packet from the LAN port, if the identifier variable is true, the traversal of the linked list according to the multicast address is found, the node is deleted, and the linked list is determined to be empty. If it is empty, the identifier variable is set to False, turns off the timer. From the above description, it can be seen that the present invention can prevent a local area network device from appearing a black screen because a certain channel is not received.
  • FIG. ⁇ is a schematic diagram of a modem in accordance with an embodiment of the present invention.
  • the modem includes a receiving module 802, a query module 804, a saving module 806, a first sending module 808, and a second sending module 810.
  • the receiving module 802 is configured to receive the leaving message from the local area network device; the querying module 804 is configured to query the multicast table; and the saving module 806 is configured to query the multicast in the multicast table to have multiple entries. And storing the leaving message; the first sending module 808 is configured to send the query message to the local area network device; and the second sending module 810 is configured to send the leaving message if the response from the local area network device is not received To the uplink device.
  • Figure 8 is a schematic illustration of a preferred embodiment of a modem in accordance with the present invention.
  • the modem of this embodiment further includes: a creating module 812, configured to create a linked list, wherein the linked list is used to save the leaving message; and the deleting module 814 is configured to receive the device from the local area network In the case of a response, the corresponding node in the linked list is deleted.
  • a creating module 812 configured to create a linked list, wherein the linked list is used to save the leaving message
  • the deleting module 814 is configured to receive the device from the local area network In the case of a response, the corresponding node in the linked list is deleted.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Abstract

The present invention discloses a method, a system and a modem for implementing Internet Group Management Protocol (IGMP) snooping. The method for implementing IGMP snooping includes: the modem receives a leave packet from a Local Area Network (LAN) device, searches a multicast table, stores the leave packet when it is retrieved that the multicast in the multicast table includes multiple entries, transmits a query packet to the LAN device, and transmits the leave packet to an upstream device on the condition that no response is received from the LAN device. With the present invention, the black screen caused by the LAN device failing to receive a certain channel can be prevented.

Description

因特网组管理协议监听的实现方法及系统、 调制解调器 技术领域 本发明涉及通信领域,具体而言,涉及一种因特网组管理协议监听( Internet Group Management Protocol Snooping, 简称为 IGMP Snooping ) 的实现方法及 系统、 调制解调器。 背景技术 目前,一般 Modem(调制解调器)的 IGMP Snooping是靠侦听局域网( Local Area Network, 简称为 LAN ) 侧用户与广 i或网 (Wide Area Network, 简称为 WAN )的 WAN口上联设备之间通信的 IGMP 4艮文, 维护一张组播地址和 LAN 侧各个端口的对应关系的转发表, 在收到组播数据包后, 根据组播地址查找该 表来决定应该向哪些 LAN 口转发组播包, 对 IGMPv2报文的主要流程如下所 述。 当从某个 LAN端口收到 pc (计算机;), stb (机顶盒)等发出的 IGMP report (回应) 4艮文时, (以组播地址, LAN端口, 源 mac ) 查找组播 mac表是否已 经存在该转发条目, 如果存在则更新老化时间, 如果不存在则由组播地址, 收 到该 report报文的 LAN端口号, 发送该 report包的设备源 mac, 老化时间等创 建对应的转发条目, 添加到组播 mac表中, 并向 WAN口转发该报文; 当从某 个 LAN端口收到 IGMP leave 4艮文(离开 4艮文)时, 则同样(以组播地址, LAN 端口, 源 mac ) 查找组播 mac表是否已经存在该转发条目, 存在则从组播 mac 表中删除该条目, 并仅以组播地址查找是否还存其他的条目, 如果存在说明还 有其他的 LAN口需要该组播, 则将 IGMP leave包丢掉不再向 WAN口转发, 如果不存在该组播的其他条目, 则向 WAN口转发 IGMP leave报文; 当收到从 WAN口下来的 IGMP query报文后, 直接向所有的 LAN口转发; 另外当某个 条目的老化时间递减为 0的时候, 将该条目删除。 从上面 IGMP snooping的基本处理过程可以看出, 如果在组播 mac表中存 在着同一个组播 A的两个条目, 也就是 LAN侧有两个端口加入了相同的组播 组 A时, 只有当最后一个端口离开该组播组时, modem才能将 IGMP leave报 文向 WAN口转发。 如果第一个端口离开时, modem就 4巴 IGMP leave 4艮文向 WAN口转发, 会导致上联设备停止向 modem的 WAN口发送对应的组播 A的 报文, 那么另外一个还需要该组播的端口也无法收到组播 A的报文。 另外还可 以看出, 从任何一个 LAN口过来的 IGMP report 4艮文都可以被其他 LAN口的 设备收到, modem本身不主动发送 IGMP query 4艮文, 只是 4巴从 WAN口收到 的 query 4艮文透传给所有的 LAN口。 在实际应用中, 发明人发现相关技术中有些机顶盒对组播的处理方式有以 下特点,举例如下:典型的组网方式如图 1 ,机顶盒 A和 B都加入组播 239.1.1.1 , 组播 mac转发表中存在 a和 b两个条目, 上联设备定时地发送 IGMP query报 文, 在某个时刻上联设备刚好发了 query 4艮文, modem 将 query 4艮文在所有 LAN口转发, 机顶盒 A和 B都收到了 query包, 机顶盒 A先回了 report 4艮文, modem在收到 A回的 report报文后, 会在 LAN口转发(多数情况下这种多播 报文在 LAN到 LAN转发都是有硬件实现, 不需要经过协议栈), B在收到 A 回的 report 4艮文后,就不再回 report 4艮文,也就是说对于上联设备发下来的 query 艮文, modem的 LAN侧只会有一台机顶盒回应 report 4艮文, 如果机顶盒 B在 收到了 A回的 report报文后在一定的时间范围内切换频道到 239.1.1.2,机顶盒 B仅仅会发送要加入 239.1.1.2的 report 4艮文, 不会发送离开 239.1.1.1的 leave 报文, modem也不会删除相应的组播转发条目 b, 但会创建一个新的条目 c, 上述机顶盒 B切换频道后组播转发情况如图 2所示。 上联设备下发两条组播流 239.1.1.1和 239.1.1.2 ,机顶盒 A看节目 239.1.1.1 , 机顶盒 B看节目 239.1.1.2, 这时候^ _定机顶盒 A又切换频道到 239.1.1.3 , 机 顶盒 A首先发送一个离开 239.1.1.1的 leave 4艮文, 然后发送一个加入 239.1.1.3 的 report报文, modem收到 leave包后删除条目 a, 因为还存在 239.1.1.1的条 目 b, 所以 modem不能 4巴 leave包在 WAN口转发出去, modem还会才艮据 A发 送的 report报文建立条目 d,上联设备由于一直没有收到离开 239.1.1.1的 leave 报文, 还得往下发送 239.1.1.1的组播流, A切换频道后如图 3所示, 上联设备 向下发送三条组播 ¾ϊ 239.1.1.1 , 239.1.1.2, 239.1.1.3 , 4艮明显 239.1.1.1是多余 的, 就导致了带宽的浪费, 更加严重的如果上联设备对组播流限制两条, 由于 已经有 239.1.1.1和 239.1.1.2两条组播流, 后来加入的 239.1.1.3就无法往下发 送, 机顶盒 A由于收不到 239.1.1.3就会黑屏, 虽然黑屏的时间不会超过上联 设备发送 query包的间歇时间, 但这个对用户来说是依然是不愿看到的。 另夕卜, 当 pc或者机顶盒非正常关机、 掉电、 拨网线的情况下, 都不会发 leave报文, 都有可能出现以上故障。 针对相关技术中局域网设备往往因为接收不到某个频道而出现黑屏的问 题, 目前尚未提出有效的解决方案。 发明内容 针对局域网设备往往因为接收不到某个频道而出现黑屏的问题而提出本 发明, 为此, 本发明的主要目的在于提供一种因特网组管理协议监听的实现方 法及系统、 调制解调器, 以解决上述问题。 为了实现上述目的, 居本发明的一个方面, 提供了一种因特网组管理协 议监听的实现方法。 才艮据本发明的因特网组管理协议监听的实现方法包括: 调制解调器接收来 自局域网设备的离开报文; 调制解调器查询组播表; 调制解调器在查询到组播 表中的组播有多个条目的情况下, 保存离开报文; 调制解调器向局域网设备发 送查询报文; 以及, 调制解调器在未接收到来自局域网设备的回应的情况下, 将离开报文发送至上联设备。 优选地, 调制解调器保存离开报文包括: 调制解调器创建链表; 以及调制 解调器利用链表对离开报文进行保存。 优选地, 该因特网组管理协议监听的实现方法还包括: 调制解调器创建标 识变量, 标识变量用于标识链表是否为空; 其中, 在调制解调器接收到来自局 域网设备的回应并且在标识变量为真的情况下, 调制解调器将链表中对应的节 点删除。 优选地, 该因特网组管理协议监听的实现方法还包括: 调制解调器判断链 表是否为空; 以及在链表为空的情况下, 调制解调器将标识变量设置为假。 优选地, 在调制解调器将离开 4艮文发送至上联设备之后, 该方法还包括: 调制解调器将链表中与离开报文对应的节点删除。 优选地, 调制解调器向局域网设备发送查询 4艮文之后, 开始计时, 其中, 调制解调器在第一设定时间未接收到来自局域网设备的回应的情况下, 将离开 文发送至上联设备。 为了实现上述目的, 居本发明的另一方面, 提供了一种因特网组管理协 议监听的实现系统。 该系统包括上联设备、 调制解调器和局域网设备, 其中: 局域网设备, 设置为发送离开报文; 调制解调器, 设置为接收离开报文, 查询 组播表, 在查询到组播表中的组播有多个条目的情况下, 保存离开报文, 以及 向局域网设备发送查询报文, 并在未接收到来自局域网设备的回应的情况下, 将离开报文发送至上联设备; 上联设备, 设置为接收离开报文。 优选地, 局域网设备包括机顶盒和计算机。 为了实现上述目的, 根据本发明的另一方面, 提供了一种调制解调器。 该 调制解调器包括: 接收模块, 设置为接收来自局域网设备的离开报文; 查询模 块, 设置为查询组播表; 保存模块, 设置为在查询到组播表中的组播有多个条 目的情况下, 保存离开 4艮文; 第一发送模块, 设置为向局域网设备发送查询 4艮 文; 以及, 第二发送模块,设置为在未接收到来自局域网设备的回应的情况下, 将离开报文发送至上联设备。 优选地, 该调制解调器还包括: 创建模块, 设置为创建链表, 其中, 链表 用于对离开报文进行保存; 以及删除模块, 设置为在接收到来自局域网设备的 回应的情况下, 将链表中对应的节点删除。 通过本发明, 釆用调制解调器接收来自局域网设备的离开报文, 查询组播 表, 在查询到组播表中的组播有多个条目的情况下, 保存离开报文, 向局域网 设备发送查询报文, 以及在未接收到来自局域网设备的回应的情况下, 将离开 报文发送至上联设备, 解决了局域网设备往往因为接收不到某个频道而出现黑 屏的问题, 进而达到了防止局域网设备因为接收不到某个频道而出现黑展的效 果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不 当限定。 在附图中: 图 1是根据相关技术的机顶盒 A和 B都加入组播 239.1.1.1的示意图; 图 2是根据相关技术的机顶盒 B切换到 239.1.1.2后的示意图 图 3是根据相关技术的机顶盒 A切换到 239.1.1.3后的示意图; 图 4是 居本发明实施例的因特网组管理协议监听的实现系统的示意图; 图 5是 居本发明实施例的因特网组管理协议监听的实现方法的流程图; 图 6是根据本发明实施例的机顶盒 A切换到 239.1.1.3后的示意图; 图 7是根据本发明实施例的调制解调器的示意图; 图 8是^ f艮据本发明的调制解调器的优选实施例的示意图。 具体实施方式 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征 可以相互组合。 下面将参考附图并结合实施例来详细说明本发明。 图 4是 居本发明实施例的因特网组管理协议监听的实现系统的示意图。 如图 4所示, 该因特网组管理协议监听的实现系统包括上联设备 10、 调制 解调器 20和局 i或网设备 30。 其中, 局域网设备 30设置为发送离开报文; 调制解调器 20设置为接收离 开报文, 查询组播表, 在查询到组播表中的组播有多个条目的情况下, 保存离 开报文, 以及向局域网设备发送查询报文, 并在未接收到来自局域网设备的回 应的情况下, 将离开报文发送至上联设备, 上联设备 10设置为接收离开报文。 上述的局域网设备包括机顶盒和计算机。 图 5是 居本发明实施例的因特网组管理协议监听的实现方法的流程图。 如图所示, 该方法包括: 步骤 S502 , 调制解调器接收来自局域网设备的离开报文。 例如, 调制解调器经由 LAN端口接收来自局域网设备的离开报文。 步 4聚 S 504, 调制解调器查询组播表。 例如, 调制解调器在收到某个端口的 leave报文后, 根据 leave中的组播地 址查看组播 mac表。 步骤 S506, 调制解调器在查询到组播表中的组播有多个条目的情况下, 保 存离开 4艮文。 例如, 调制解调器可以釆用以下方式保存离开 4艮文: 首先, 调制解调器创建链表; 以及 调制解调器利用链表对离开报文进行保存。 步骤 S508, 调制解调器向局域网设备发送查询 4艮文。 步骤 S510, 调制解调器在未接收到来自局域网设备的回应的情况下, 将离 开报文发送至上联设备。 如果该组播有多个条目则向对应的 LAN端口 (局域网设备) 发送特定的 组播查询报文, 启动定时器, 并将收到的 leave报文緩存起来; 否则将 leave报 文在 WAN口转发。 定时器时间超时(timeout )之前, 如果有 LAN口回答该组播的查询 4艮文, 则直接将緩存的 leave报文丢弃; 反之则删除该组播的所有条目, 并将緩存的 leave 4艮文在 WAN口转发。 如图 6所描述的场景,当机顶盒 A从 239.1.1.1切换到 239.1.1.3时, modem 收到 239.1.1.1的 leave 4艮文, 开始查询组播 mac表, 发现该组播有 a和 b两个 条目存在, 则将 leave 4艮文緩存起来, 向 LAN口发送 239.1.1.1的 query 4艮文, 由于这时候已经没有机顶盒在看这个节目, 当然 modem收不到任何回应, 则 将 a和 b都删除, 并向 WAN口转发先前緩存的 leave包, 这样上联设备在收到 该 leave报文后便不会在向下发送 239.1.1.1的组播流, 这样就解决了在看相同 组播节目时, 由于某种原因前面离开的机顶盒没发 leave 包而导致的黑屏, 带 宽浪费问题。 本发明只是在机顶盒在看相同节目时候才会让 modem主动发 query包,对 系统性能几乎没有影响。 本发明通过以上的方法, 能够解决在 modem上一些机顶盒在播放同一个 组播组时在特定的情况下不发送 leave报文所带来的问题。 优选地, 上述方法还包括: 调制解调器创建标识变量, 标识变量用于标识 链表是否为空, 其中, 若链表为空, 则标识变量为假, 若链表非空, 则标识变 量为真; 其中, 在调制解调器接收到来自局域网设备的回应并且在标识变量为 真的情况下, 调制解调器将链表中对应的节点删除。 上述方法还可以包括: 调制解调器判断链表是否为空; 以及在链表为空的 情况下, 调制解调器将标识变量设置为假。 在调制解调器将离开报文发送至上联设备之后, 上述方法还可以包括: 调 制解调器将链表中与离开报文对应的节点删除。 在上述实施例中,调制解调器向局域网设备发送查询 4艮文之后,开始计时, 其中, 调制解调器在第一设定时间未接收到来自局域网设备的回应的情况下, 将离开报文发送至上联设备。 具体地, 上述方法可以包括以下步 4聚: 步骤 1 , 首先将上联设备发送的 query报文緩存一个变量 Cquery, 这样在 需要向 LAN口发特定查询 query报文时, 只需要将緩存的 query包修改一下目 的组播地址和 CRC校验即可, 不需要从头到尾构造一个 query报文。 步骤 2, 创建一个链表、 一个定时器和一个标识变量, 每当收到一个 LAN 侧的 leave报文, 查询组播 mac表, 如果查询到该组播有多个条目, 则向 LAN 口发送特定组播 query 4艮文,并创建一个链表节点,用于緩存 leave 4艮文和 query 的 timeout时间以及对应的组播地址。 步骤 3 , 只要链表中有节点, 标识变量的值设为 true (真), 定时器都会启 动, 定时器时间到则遍历链表,将每个节点的 timeout时间减 1 , 并判断 timeout 是否已经为 0, 如果为 0则将节点中保存的 leave报文在 WAN口转发, 删除该 节点, 定时器重新定时。 步骤 4, 收到从 LAN端口的 report报文, 如果标识变量为 true, 则根据组 播地址遍历链表, 找到便将节点删除, 并判断链表是否已经为空, 如果为空, 将标识变量设置为 false (假), 关闭定时器。 从以上的描述中, 可以看出, 本发明能够防止局域网设备因为接收不到某 个频道而出现黑屏。 需要说明的是, 在附图的流程图示出的步骤可以在诸如一组计算机可执行 指令的计算机系统中执行, 并且, 虽然在流程图中示出了逻辑顺序, 但是在某 些情况下, 可以以不同于此处的顺序执行所示出或描述的步 4聚。 图 Ί是根据本发明实施例的调制解调器的示意图。 如图所示, 该调制解调 器, 包括接收模块 802、 查询模块 804、 保存模块 806、 第一发送模块 808以及 第二发送模块 810。 其中, 接收模块 802 , 设置为接收来自局域网设备的离开报文; 查询模块 804 , 设置为查询组播表; 保存模块 806 , 设置为在查询到组播表中的组播有多 个条目的情况下, 保存离开报文; 第一发送模块 808 , 设置为向局域网设备发 送查询报文; 以及第二发送模块 810 , 设置为在未接收到来自局域网设备的回 应的情况下, 将离开报文发送至上联设备。 图 8是^ f艮据本发明的调制解调器的优选实施例的示意图。 与上述的实施例相比, 本实施例的调制解调器还包括: 创建模块 812 , 设 置为创建链表, 其中, 链表用于对离开报文进行保存; 以及删除模块 814 , 设 置为在接收到来自局域网设备的回应的情况下, 将链表中对应的节点删除。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以 用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多 个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码 来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 或者将它们 分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集 成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领 域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之 内。 The present invention relates to the field of communications, and in particular to a method and system for implementing Internet Group Management Protocol Snooping (IGMP Snooping). modem. BACKGROUND OF THE INVENTION At present, IGMP Snooping of a general modem (modem) is to communicate between a local area network (LAN) user and a WAN port uplink device of a wide area network (WAN). The IGMP 4 message maintains a forwarding table of the correspondence between the multicast address and each port on the LAN side. After receiving the multicast data packet, it searches the table according to the multicast address to determine which LAN ports should forward the multicast packet to. The main process of IGMPv2 messages is as follows. When receiving an IGMP report (response) from pc (computer;), stb (set top box), etc. from a LAN port, (using multicast address, LAN port, source mac), look up whether the multicast mac table is already The forwarding entry exists. If it exists, the aging time is updated. If it does not exist, the multicast forwarding address is received by the multicast address, the LAN port number of the report packet, the MAC address of the device that sends the report packet, and the aging time. Add to the multicast mac table, and forward the message to the WAN port; when receiving IGMP leave message from a LAN port (leave 4 messages), the same (by multicast address, LAN port, source) Mac) Find whether the forwarding entry exists in the multicast mac table. If it exists, delete the entry from the multicast mac table, and use the multicast address to find out whether other entries exist. If there are other LAN ports, If the IGMP leave packet is discarded, the IGMP leave packet is not forwarded to the WAN port. If there is no other entry in the multicast, the IGMP leave message is forwarded to the WAN port. After receiving the IGMP query message from the WAN port, Directly All LAN ports are forwarded; in addition, when the aging time of an entry is decremented to 0, the entry is deleted. As can be seen from the above IGMP snooping process, if there are two entries of the same multicast A in the multicast mac table, that is, when two ports on the LAN side join the same multicast group A, only When the last port leaves the multicast group, the modem can forward the IGMP Leave message to the WAN port. If the first port leaves, the modem forwards the IGMP leave message to the WAN port, causing the uplink device to stop sending the corresponding multicast A to the modem's WAN port. If the packet is received, the other port that needs the multicast cannot receive the packet from multicast A. In addition, it can be seen that the IGMP report 4 from any LAN port can be received by other LAN devices. The modem itself does not actively send IGMP query 4 messages, only the 4 bar received from the WAN port. 4 艮 text is transmitted to all LAN ports. In practical applications, the inventors have found that some set-top boxes in the related technologies have the following characteristics for multicast processing, for example: typical networking mode is shown in Figure 1, and set-top boxes A and B are added to multicast 239.1.1.1, multicast mac There are two entries a and b in the forwarding table. The uplink device periodically sends IGMP query messages. At a certain moment, the device immediately sends a query message, and the modem forwards the query message to all LAN ports. Both A and B receive the query packet, and the set-top box A first returns the report 4 message. After receiving the report message from A, the modem will forward it on the LAN port (in most cases, the multicast message is forwarded from LAN to LAN. Both have hardware implementations, do not need to go through the protocol stack), B will not return to report 4 after receiving the report 4 message from A, that is to say, for the query message sent by the uplink device, the modem On the LAN side, only one set-top box will respond to the report 4 message. If the set-top box B receives the return message from the A back and switches the channel to 239.1.1.2 within a certain time range, the set-top box B will only send to join the 239.1.1.2. Report 4 艮文, will not send The leaving 239.1.1.1 leave packet, modem can not delete the multicast forwarding entry b, but creates a new entry c, the STB to switch the channel B forwards the multicast case shown in FIG. The uplink device sends two multicast streams 239.1.1.1 and 239.1.1.2, the set-top box A reads the program 239.1.1.1, and the set-top box B looks at the program 239.1.1.2. At this time, the _ set-top box A switches the channel to 239.1.1.3, the set-top box A first sends a leave 4 message leaving 239.1.1.1, and then sends a report message to join 239.1.1.3. After the modem receives the leave packet, it deletes the entry a. Because there is an entry b of 239.1.1.1, the modem cannot. After the packet is forwarded out on the WAN port, the modem will create an entry d according to the report packet sent by A. Since the uplink device has not received the leave message leaving 239.1.1.1, it has to send 239.1.1.1. The multicast stream, after A switches the channel, as shown in Figure 3, the uplink device sends three multicasts 3⁄4ϊ 239.1.1.1, 239.1.1.2, 239.1.1.3, 4艮 obviously 239.1.1.1 is redundant, which leads to The waste of bandwidth is more serious. If the uplink device restricts two multicast streams, since there are already two multicast streams 239.1.1.1 and 239.1.1.2, 239.1.1.3 added later cannot be sent down. Set-top box A is due to If you do not receive 239.1.1.3, it will be black, although the time of the black screen is not Over the device sends query packets with intermittent time, but this is still a user wants to see. In addition, when the PC or the set-top box is abnormally shut down, powered down, or dialed, no message will be sent, and the above faults may occur. For the related art, the LAN device often has a black screen because it does not receive a certain channel. At present, no effective solution has been proposed. SUMMARY OF THE INVENTION The present invention has been made in view of the problem that a local area network device often has a black screen because a certain channel is not received. Therefore, the main object of the present invention is to provide an implementation method and system for monitoring an Internet group management protocol, and a modem to solve the problem. The above question. In order to achieve the above object, in one aspect of the present invention, an implementation method of Internet Group Management Protocol snooping is provided. The method for implementing the Internet Group Management Protocol listening according to the present invention includes: the modem receives the leaving message from the local area network device; the modem queries the multicast table; and the modem queries the multicast table to have multiple entries in the multicast table. And saving the leaving message; the modem sending the query message to the local area network device; and, if the modem does not receive the response from the local area network device, sending the leaving message to the uplink device. Preferably, the modem saves the leaving message including: the modem creates a linked list; and the modem uses the linked list to save the leaving message. Preferably, the implementation method of the Internet group management protocol monitoring further comprises: the modem creates an identifier variable, and the identifier variable is used to identify whether the linked list is empty; wherein, when the modem receives the response from the local area network device and the identifier variable is true The modem deletes the corresponding node in the linked list. Preferably, the method for implementing the Internet Group Management Protocol monitoring further comprises: the modem determining whether the linked list is empty; and if the linked list is empty, the modem sets the identification variable to false. Preferably, after the modem sends the message to the uplink device, the method further includes: the modem deleting the node in the linked list corresponding to the leaving message. Preferably, after the modem sends the query message to the local area network device, the timing starts, wherein the modem sends the leaving message to the uplink device if the response from the local area network device is not received within the first set time. In order to achieve the above object, in another aspect of the present invention, an implementation system of Internet Group Management Protocol snooping is provided. The system includes an uplink device, a modem, and a local area network device, wherein: a local area network device, configured to send a leave message; a modem, set to receive a leave message, query The multicast table saves the leaving message and sends the query message to the local area network device when the multicast in the multicast table has multiple entries, and if the response from the local area network device is not received, The leaving message is sent to the uplink device; the uplink device is set to receive the leaving message. Preferably, the local area network device includes a set top box and a computer. In order to achieve the above object, according to another aspect of the present invention, a modem is provided. The modem includes: a receiving module configured to receive a leaving message from the local area network device; a query module configured to query the multicast table; and a saving module configured to query the multicast in the multicast table to have multiple entries And storing the leaving message; the first sending module is configured to send the query message to the local area network device; and, the second sending module is configured to send the leaving message if the response from the local area network device is not received To the uplink device. Preferably, the modem further comprises: a creating module, configured to create a linked list, wherein the linked list is used to save the leaving message; and the deleting module is set to, in response to receiving the response from the local area network device, corresponding to the linked list The node is deleted. According to the present invention, the modem receives the leaving message from the local area network device, queries the multicast table, and saves the leaving message and sends the query to the local area network device when the multicast in the multicast table has multiple entries. And, in the case that the response from the LAN device is not received, the leaving message is sent to the uplink device, which solves the problem that the LAN device often has a black screen because it does not receive a certain channel, thereby preventing the LAN device from being The black show effect is not received when a channel is not received. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a schematic diagram of a set-top box A and B according to the related art joining multicast 239.1.1.1; FIG. 2 is a schematic diagram of the set-top box B switching to 239.1.1.2 according to the related art. FIG. FIG. 4 is a schematic diagram of an implementation system of the Internet Group Management Protocol listening according to the embodiment of the present invention; FIG. 4 is a schematic diagram of the system after the set-top box A is switched to 239.1.1.3; 5 is a flowchart of a method for implementing Internet group management protocol monitoring according to an embodiment of the present invention; FIG. 6 is a schematic diagram of a set top box A after switching to 239.1.1.3 according to an embodiment of the present invention; A schematic diagram of a modem; Figure 8 is a schematic illustration of a preferred embodiment of a modem in accordance with the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. 4 is a schematic diagram of an implementation system of an Internet Group Management Protocol listener in an embodiment of the present invention. As shown in FIG. 4, the implementation system of the Internet Group Management Protocol monitoring includes an uplink device 10, a modem 20, and a station i or a network device 30. The local area network device 30 is configured to send and leave a message; the modem 20 is configured to receive the leaving message, query the multicast table, and save the leaving message if the multicast in the multicast table has multiple entries, and The Query message is sent to the local area network device, and if the response from the local area network device is not received, the leaving message is sent to the uplink device, and the uplink device 10 is configured to receive the leaving message. The above-mentioned local area network equipment includes a set top box and a computer. FIG. 5 is a flowchart of a method for implementing Internet group management protocol monitoring according to an embodiment of the present invention. As shown, the method includes: Step S502: The modem receives an leaving message from a local area network device. For example, the modem receives a Leave message from the LAN device via the LAN port. Step 4 gathers S 504, and the modem queries the multicast table. For example, after receiving a leave packet from a port, the modem checks the multicast mac table according to the multicast address in the leave. Step S506, the modem saves and leaves the message when it queries that the multicast in the multicast table has multiple entries. For example, the modem can save the message in the following manner: First, the modem creates a linked list; and the modem uses the linked list to save the leaving message. Step S508, the modem sends a query message to the local area network device. Step S510, the modem sends the leaving message to the uplink device without receiving the response from the local area network device. If the multicast has multiple entries, send a specific multicast query message to the corresponding LAN port (LAN device), start the timer, and cache the received Leave message; otherwise, leave the Leave message on the WAN port. Forward. Before the timer expires (timeout), if a LAN port answers the multicast query, the cached leave packet is directly discarded; otherwise, all entries of the multicast are deleted, and the cached leave 4艮The text is forwarded on the WAN port. As shown in Figure 6, when the set-top box A is switched from 239.1.1.1 to 239.1.1.3, the modem receives the leave 4艮 of 239.1.1.1, starts to query the multicast mac table, and finds that the multicast has a and b. If there are entries, the leave 4 艮 text will be cached, and the query 4艮 of 239.1.1.1 will be sent to the LAN port. Since there is no set-top box watching this program at this time, of course, the modem will not receive any response, then a and b will be All are deleted, and the previously cached leave packet is forwarded to the WAN port, so that the uplink device does not send the multicast stream of 239.1.1.1 downward after receiving the leave message, thus solving the same multicast. During the program, for some reason, the set-top box that left before did not send a leave packet and the black screen caused a waste of bandwidth. The invention only makes the modem actively send the query package when the set top box is watching the same program, and has almost no influence on the system performance. The method of the present invention can solve the problem caused by not sending a leave message in a specific case when some set top boxes play the same multicast group on the modem. Preferably, the method further includes: the modem creates an identifier variable, and the identifier variable is used to identify whether the linked list is empty, wherein if the linked list is empty, the identifier variable is false, and if the linked list is not empty, the identifier variable is true; The modem receives a response from the LAN device and, if the identification variable is true, the modem deletes the corresponding node in the linked list. The above method may further comprise: the modem determining whether the linked list is empty; and in case the linked list is empty, the modem sets the identification variable to false. After the modem sends the leaving message to the uplink device, the method may further include: the modem deleting the node in the linked list corresponding to the leaving message. In the above embodiment, the modem starts timing after transmitting the query message to the local area network device, wherein the modem sends the leaving message to the uplink device if the modem does not receive the response from the local area network device at the first set time. Specifically, the foregoing method may include the following steps: Step 1: First, the query message sent by the uplink device is cached with a variable Cquery, so that when a specific query query message needs to be sent to the LAN port, only the cached query needs to be cached. The package can modify the destination multicast address and CRC check. It is not necessary to construct a query message from beginning to end. Step 2: Create a linked list, a timer, and an identification variable. Whenever a LAN-side leave packet is received, the multicast mac table is queried. If the multicast has multiple entries, the specific port is sent to the LAN port. Multicast query 4 艮 ,, and create a linked list node, used to cache the timeout time of the leave 4 que and query and the corresponding multicast address. Step 3: As long as there is a node in the linked list, the value of the identification variable is set to true (true), the timer will start, and when the timer expires, the list is traversed, the timeout time of each node is decremented by 1, and the timeout is determined to be 0. If it is 0, the leave message saved in the node is forwarded on the WAN port, the node is deleted, and the timer is retimed. Step 4: After receiving the report packet from the LAN port, if the identifier variable is true, the traversal of the linked list according to the multicast address is found, the node is deleted, and the linked list is determined to be empty. If it is empty, the identifier variable is set to False, turns off the timer. From the above description, it can be seen that the present invention can prevent a local area network device from appearing a black screen because a certain channel is not received. It should be noted that the steps shown in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and, although the logical order is shown in the flowchart, in some cases, The steps shown or described may be performed in an order different from that herein. Figure Ί is a schematic diagram of a modem in accordance with an embodiment of the present invention. As shown, the modem includes a receiving module 802, a query module 804, a saving module 806, a first sending module 808, and a second sending module 810. The receiving module 802 is configured to receive the leaving message from the local area network device; the querying module 804 is configured to query the multicast table; and the saving module 806 is configured to query the multicast in the multicast table to have multiple entries. And storing the leaving message; the first sending module 808 is configured to send the query message to the local area network device; and the second sending module 810 is configured to send the leaving message if the response from the local area network device is not received To the uplink device. Figure 8 is a schematic illustration of a preferred embodiment of a modem in accordance with the present invention. Compared with the above embodiment, the modem of this embodiment further includes: a creating module 812, configured to create a linked list, wherein the linked list is used to save the leaving message; and the deleting module 814 is configured to receive the device from the local area network In the case of a response, the corresponding node in the linked list is deleted. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种因特网组管理协议监听的实现方法, 包括: 1. An implementation method of Internet group management protocol monitoring, including:
调制解调器接收来自局域网设备的离开报文;  The modem receives the leaving message from the local area network device;
所述调制解调器查询组播表;  The modem queries the multicast table;
所述调制解调器在查询到所述组播表中的组播有多个条目的情况 下, 保存所述离开 4艮文;  The modem saves the leaving message if it queries that the multicast in the multicast table has multiple entries;
所述调制解调器向所述局域网设备发送查询报文; 以及 所述调制解调器在未接收到来自所述局域网设备的回应的情况下, 将所述离开 4艮文发送至上联设备。  The modem transmits an inquiry message to the local area network device; and the modem transmits the leaving message to the uplink device without receiving a response from the local area network device.
2. 根据权利要求 1所述的方法, 其中, 所述调制解调器保存所述离开报文 包括: 2. The method according to claim 1, wherein the saving the leaving message by the modem comprises:
所述调制解调器创建链表; 以及  The modem creates a linked list;
所述调制解调器利用所述链表对所述离开报文进行保存。  The modem saves the leaving message by using the linked list.
3. 根据权利要求 2所述的方法, 其中, 所述方法还包括: 3. The method according to claim 2, wherein the method further comprises:
所述调制解调器创建标识变量, 所述标识变量用于标识所述链表是 否为空;  The modem creates an identification variable, and the identification variable is used to identify whether the linked list is empty;
其中, 在所述调制解调器接收到来自所述局域网设备的回应并且在 所述标识变量为真的情况下, 所述调制解调器将所述链表中对应的节点 删除。  Wherein the modem receives a response from the local area network device and in the event that the identification variable is true, the modem deletes a corresponding node in the linked list.
4. 根据权利要求 3所述的方法, 其中, 所述方法还包括: 4. The method according to claim 3, wherein the method further comprises:
所述调制解调器判断所述链表是否为空; 以及  The modem determines whether the linked list is empty;
在所述链表为空的情况下, 所述调制解调器将所述标识变量设置为 假。  In case the linked list is empty, the modem sets the identification variable to false.
5. 根据权利要求 2所述的方法, 其中, 在所述调制解调器将所述离开报文 发送至所述上联设备之后, 所述方法还包括: The method according to claim 2, wherein, after the modem sends the leaving message to the uplink device, the method further includes:
所述调制解调器将所述链表中与所述离开 4艮文对应的节点删除。 The modem deletes the node in the linked list corresponding to the leaving message.
6. 根据权利要求 1所述的方法, 其中, 所述调制解调器向局域网设备发送 查询报文之后, 开始计时, 其中, 所述调制解调器在第一设定时间未接 收到来自所述局域网设备的回应的情况下, 将所述离开报文发送至所述 上联设备。 6. The method according to claim 1, wherein the modem starts timing after sending a query message to the local area network device, wherein the modem does not receive a response from the local area network device at the first set time. In the case, the leaving message is sent to the uplink device.
7. 一种调制解调器, 包括: 7. A modem that includes:
接收模块, 设置为接收来自局域网设备的离开报文;  a receiving module, configured to receive a leaving message from a local area network device;
查询模块, 设置为查询组播表; 保存模块, 设置为在查询到所述组播表中的组播有多个条目的情况 下, 保存所述离开 4艮文;  The query module is configured to query the multicast table; and the saving module is configured to save the leaving message if the multicast in the multicast table is queried to have multiple entries;
第一发送模块, 设置为向所述局域网设备发送查询 4艮文; 以及 第二发送模块, 设置为在未接收到来自所述局域网设备的回应的情 况下, 将所述离开 4艮文发送至上联设备。  a first sending module, configured to send a query to the local area network device; and a second sending module configured to send the leaving message to the upper device without receiving a response from the local area network device Connected devices.
8. 根据权利要求 7所述的调制解调器, 其中, 还包括: 8. The modem according to claim 7, further comprising:
创建模块, 设置为创建链表, 其中, 所述链表用于对所述离开报文 进行保存; 以及  Creating a module, configured to create a linked list, wherein the linked list is used to save the leaving message;
删除模块, 设置为在接收到来自所述局域网设备的回应的情况下, 将所述链表中对应的节点删除。  And deleting the module, configured to delete the corresponding node in the linked list if receiving a response from the local area network device.
9. 一种因特网组管理协议监听的实现系统, 包括上联设备、 调制解调器和 局域网设备, 其中: 9. An implementation system for monitoring Internet Protocol Management Protocol, comprising an uplink device, a modem, and a local area network device, wherein:
所述局域网设备, 设置为发送离开报文;  The local area network device is configured to send a leave message;
所述调制解调器, 设置为接收所述离开报文, 查询组播表, 在查询 到所述组播表中的组播有多个条目的情况下, 保存所述离开 4艮文, 以及 向局域网设备发送查询报文, 并在未接收到来自所述局域网设备的回应 的情况下, 将所述离开 4艮文发送至所述上联设备;  The modem is configured to receive the leaving message, query a multicast table, and save the leaving message and the local area network device when querying that the multicast in the multicast table has multiple entries Sending a query message, and sending the leaving message to the uplink device if the response from the local area network device is not received;
所述上联设备, 设置为接收所述离开报文。 根据权利要求 9所述的系统, 其中, 所述局域网设备包括机顶盒和计算 机。  The uplink device is configured to receive the leaving message. The system of claim 9, wherein the local area network device comprises a set top box and a computer.
PCT/CN2011/076741 2010-09-27 2011-06-30 Method, system and modem for implementing internet group management protocol snooping WO2012041104A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010507059.1A CN101964733B (en) 2010-09-27 2010-09-27 Method and system for implementing internet group management protocol snooping and modem
CN201010507059.1 2010-09-27

Publications (1)

Publication Number Publication Date
WO2012041104A1 true WO2012041104A1 (en) 2012-04-05

Family

ID=43517477

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076741 WO2012041104A1 (en) 2010-09-27 2011-06-30 Method, system and modem for implementing internet group management protocol snooping

Country Status (2)

Country Link
CN (1) CN101964733B (en)
WO (1) WO2012041104A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964733B (en) * 2010-09-27 2015-01-28 中兴通讯股份有限公司 Method and system for implementing internet group management protocol snooping and modem

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1538839A1 (en) * 2003-12-03 2005-06-08 Advanced Fibre Communications, Inc. System and method of operating the system that prevents multiple channels from continuously being sent to the same set top box
US6977891B1 (en) * 2001-06-30 2005-12-20 Extreme Networks, Inc. Method and system for multicast traffic reduction
CN101094132A (en) * 2006-06-20 2007-12-26 中兴通讯股份有限公司 Process method for restarting terminal device of multicast service
CN101145922A (en) * 2006-09-13 2008-03-19 中兴通讯股份有限公司 A system and method for realizing reliable exit of multi-cast terminal
CN101964733A (en) * 2010-09-27 2011-02-02 中兴通讯股份有限公司 Method and system for implementing internet group management protocol snooping and modem

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100469039C (en) * 2004-08-05 2009-03-11 上海贝尔阿尔卡特股份有限公司 Method and device for processing user to leave, switching multicast service channel request using slow leaving mechanism
CN100450068C (en) * 2006-07-18 2009-01-07 杭州华三通信技术有限公司 Multicast group maintaining method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6977891B1 (en) * 2001-06-30 2005-12-20 Extreme Networks, Inc. Method and system for multicast traffic reduction
EP1538839A1 (en) * 2003-12-03 2005-06-08 Advanced Fibre Communications, Inc. System and method of operating the system that prevents multiple channels from continuously being sent to the same set top box
CN101094132A (en) * 2006-06-20 2007-12-26 中兴通讯股份有限公司 Process method for restarting terminal device of multicast service
CN101145922A (en) * 2006-09-13 2008-03-19 中兴通讯股份有限公司 A system and method for realizing reliable exit of multi-cast terminal
CN101964733A (en) * 2010-09-27 2011-02-02 中兴通讯股份有限公司 Method and system for implementing internet group management protocol snooping and modem

Also Published As

Publication number Publication date
CN101964733B (en) 2015-01-28
CN101964733A (en) 2011-02-02

Similar Documents

Publication Publication Date Title
US8023448B2 (en) Packet relay apparatus
WO2014187204A1 (en) Ofs in-band communication method and ofs
WO2007028293A1 (en) A method for forwarding a multicasting package in vpls
WO2012003743A1 (en) Method and apparatus for forwarding multicast traffic
WO2015027739A1 (en) Method and system for delivering flow table in sdn, of controller, and of switch
WO2012075831A1 (en) Method and system for multicast protection
WO2012075731A1 (en) Method and device for link fault detecting and recovering based on arp interaction
US20140233563A1 (en) Multicast processing method and device
WO2007019785A1 (en) A multicast supported virtual local area network switching system and a method thereof
WO2008028384A1 (en) A method and system for implementing the transmission control for the oam messages
WO2018072732A1 (en) Information processing method and device, and computer storage medium
WO2011144048A2 (en) Multicast realization method and network device
WO2018014767A1 (en) Information determination method and device, and storage medium
WO2009082905A1 (en) Method, system and switch device for dynamically establishing multicast virtual local area network
WO2007059679A1 (en) A method for processing the abnormal multicast service and a network equipment thereof
CN101119311B (en) Method and device for controlling multicast data flow
WO2020173340A1 (en) Bier-based bidirectional forwarding detection session creation method, bfir, bfer, system, and storage medium
CN100466606C (en) Unknown multicasting message processing method
WO2013139159A1 (en) Method for forwarding packet in network and provider edge device
WO2009132568A1 (en) Control method for quality of service and network device
CN102045250B (en) Forwarding method for multicast message in VPLS, and service provider edge equipment
US11057235B1 (en) Controlling protocol independent multicast (PIM) join/prune messages from a downstream PIM neighbor using a PIM join/prune response(s) from an upstream PIM neighbor
WO2011020346A1 (en) Method and apparatus for forwarding multicast data
WO2011140921A1 (en) Method, device and system for forwarding data frames of virtual private local area network service (vpls)
WO2015074423A1 (en) Data packet forwarding processing method in access gateway

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11828000

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11828000

Country of ref document: EP

Kind code of ref document: A1