[go: up one dir, main page]

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

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

Info

Publication number
CN101964733A
CN101964733A CN2010105070591A CN201010507059A CN101964733A CN 101964733 A CN101964733 A CN 101964733A CN 2010105070591 A CN2010105070591 A CN 2010105070591A CN 201010507059 A CN201010507059 A CN 201010507059A CN 101964733 A CN101964733 A CN 101964733A
Authority
CN
China
Prior art keywords
modem
message
multicast
lan
lan device
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
CN2010105070591A
Other languages
Chinese (zh)
Other versions
CN101964733B (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.)
Haining Hi Tech Zone Science And Innovation Center Co Ltd
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201010507059.1A priority Critical patent/CN101964733B/en
Publication of CN101964733A publication Critical patent/CN101964733A/en
Priority to PCT/CN2011/076741 priority patent/WO2012041104A1/en
Application granted granted Critical
Publication of CN101964733B publication Critical patent/CN101964733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种因特网组管理协议监听的实现方法及系统、调制解调器。其中,该因特网组管理协议监听的实现方法包括:调制解调器接收来自局域网设备的离开报文,查询组播表,在查询到组播表中的组播有多个条目的情况下,保存离开报文,向局域网设备发送查询报文,以及在未接收到来自局域网设备的回应的情况下,将离开报文发送至所述上联设备。通过本发明,能够防止局域网设备因为接收不到某个频道而出现黑屏。

Figure 201010507059

The invention discloses a method, a system and a modem for realizing monitoring of an Internet group management protocol. Wherein, the implementation method of the Internet group management protocol monitoring includes: the modem receives the leaving message from the LAN device, queries the multicast table, and saves the leaving message when it is found that the multicast in the multicast table has multiple entries. , sending a query message to the local area network device, and sending a leave message to the uplink device if no response is received from the local area network device. Through the present invention, it is possible to prevent a black screen from appearing on a local area network device because a certain channel cannot be received.

Figure 201010507059

Description

因特网组管理协议监听的实现方法及系统、调制解调器 Implementation method, system, and modem of Internet group management protocol monitoring

技术领域technical field

本发明涉及通信领域,具体而言,涉及一种因特网组管理协议监听(Internet Group Management Protocol Snooping,简称为IGMPSnooping)的实现方法及系统、调制解调器。 The present invention relates to the field of communications, in particular to a method, system and modem for implementing Internet Group Management Protocol Snooping (IGMPSnooping for short). the

背景技术Background technique

目前一般Modem(调制解调器)的IGMP Snooping是靠侦听局域网(Local Area Network,简称为LAN)侧用户与(Wide Area Network,简称为WAN)WAN口上联设备之间通信的IGMP报文维护一张组播地址和LAN侧各个端口的对应关系的转发表,在收到组播数据包后,根据组播地址查找该表来决定应该向哪些LAN口转发组播包,对IGMPv2报文的主要流程如下: At present, the IGMP Snooping of the general Modem (modem) is to maintain a multicast address by listening to the IGMP messages communicated between the local area network (Local Area Network, referred to as LAN) side users and (Wide Area Network, referred to as WAN) WAN port uplink equipment. The forwarding table corresponding to each port on the LAN side. After receiving the multicast data packet, look up the table according to the multicast address to determine which LAN ports should forward the multicast packet. The main process for IGMPv2 messages is as follows:

当从某个LAN端口收到pc(计算机),stb(机顶盒)等发出的IGMP report(回应)报文时,(以组播地址,LAN端口,源mac)查找组播mac表是否已经存在该转发条目,如果存在则更新老化时间,如果不存在则由组播地址,收到该report报文的LAN端口号,发送该report包的设备源mac,老化时间等创建对应的转发条目,添加到组播mac表中,并向WAN口转发该报文;当从某个LAN端口收到IGMP leave报文(离开报文)时,则同样(以组播地址,LAN端口,源mac)查找组播mac表是否已经存在该转发条目,存在则从组播mac表中删除该条目,并仅以组播地址查找是否还存其他的 条目,如果存在说明还有其他的LAN口需要该组播,则将IGMPleave包丢掉不再向WAN口转发,如果不存在该组播的其他条目,则向WAN口转发IGMP leave报文;当收到从WAN口下来的IGMPquery报文后,直接向所有的LAN口转发;另外当某个条目的老化时间递减为0的时候,将该条目删除。 When receiving an IGMP report (response) message from a pc (computer), stb (set-top box), etc. from a certain LAN port, (using multicast address, LAN port, source mac) to find out whether the multicast mac table already exists If it exists, update the aging time of the forwarding entry. If it does not exist, create a corresponding forwarding entry based on the multicast address, the LAN port number that received the report message, the source mac of the device that sent the report packet, and the aging time, etc., and add it to multicast mac table, and forward the message to the WAN port; when an IGMP leave message (leave message) is received from a LAN port, the same (multicast address, LAN port, source mac) search group Whether the forwarding entry already exists in the multicast mac table, if it exists, delete the entry from the multicast mac table, and only use the multicast address to find out whether there are other entries. If it exists, it means that there are other LAN ports that need the multicast. The IGMPleave packet will be discarded and not forwarded to the WAN port. If there are no other entries of the multicast, the IGMP leave message will be forwarded to the WAN port; port forwarding; in addition, when the aging time of an entry is decremented to 0, the entry is deleted. the

从上面IGMP snooping的基本处理过程可以看出,如果在组播mac表中存在着同一个组播A的两个条目,也就是LAN侧有两个端口加入了相同的组播组A时,只有当最后一个端口离开该组播组时,modem才能将IGMP leave报文向WAN口转发。如果第一个端口离开时,modem就把IGMP leave报文向WAN口转发,会导致上联设备停止向modem的WAN口发送对应的组播A的报文,那么另外一个还需要该组播的端口也无法收到组播A的报文;另外还可以看出,从任何一个LAN口过来的IGMP report报文都可以被其他LAN口的设备收到,modem本身不主动发送IGMP query报文,只是把从WAN口收到的query报文透传给所有的LAN口。 It can be seen from the basic processing process of IGMP snooping above that 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 will forward the IGMP leave message to the WAN port, which will cause the uplink device to stop sending the corresponding multicast A message to the WAN port of the modem, then the other one still needs the multicast message The port also cannot receive the message of multicast A; in addition, it can be seen that the IGMP report message from any LAN port can be received by other LAN port devices, and the modem itself does not actively send IGMP query messages. It just transparently transmits the query message received from the WAN port to all LAN ports. the

在实际应用中,发明人发现相关技术中有些机顶盒对组播的处理方式有以下特点,举例如下:典型的组网方式如图1,机顶盒A和B都加入组播239.1.1.1,组播mac转发表中存在a和b两个条目,上联设备在定时的发送IGMP query报文,在某个时刻上联设备刚好发了query报文,modem将query报文在所有LAN口转发,机顶盒A和B都收到了query包,机顶盒A先回了report报文,modem在收到A回的report报文后,会在LAN口转发(多数情况下这种多播报文在LAN到LAN转发都是有硬件实现,不需要经过协议栈),B在收到A回的report报文后,就不再回report报文,也就是说对于上联设备发下来的query报文,modem的LAN侧只会有一台机顶盒回应report报文,如果机顶盒B在收到了A回的report报文后在一定的时间范围内切换频道到239.1.1.2,机顶盒B仅仅会发送要加入239.1.1.2的report报文,不会发送离开239.1.1.1的leave 报文,modem也不会删除相应的组播转发条目b,但会创建一个新的条目c,上述机顶盒B切换频道后组播转发情况如图2所示。 In practical application, the inventor found that some set-top boxes in related technologies have the following characteristics in the way of processing multicast, as follows: a typical networking method is shown in Figure 1, set-top boxes A and B both join the multicast 239.1.1.1, and the multicast mac There are two entries a and b in the forwarding table. The uplink device sends the IGMP query message regularly. At a certain moment, the uplink device just sends the query message. The modem forwards the query message on all LAN ports. Set-top box A Both set-top box A and B have received the query packet, and the set-top box A returns the report message first. After the modem receives the report message returned by A, it will forward it on the LAN port (in most cases, this kind of multicast message is forwarded from LAN to LAN. It is implemented by hardware and does not need to go through the protocol stack), B will not return the report message after receiving the report message from A, that is to say, for the query message sent by the uplink device, the LAN side of the modem only There will be a set-top box responding to the report message. If set-top box B switches the channel to 239.1.1.2 within a certain time range after receiving the report message from A, set-top box B will only send a report message to add 239.1.1.2. The leave message for leaving 239.1.1.1 will not be sent, and the modem will not delete the corresponding multicast forwarding entry b, but will create a new entry c. The multicast forwarding situation after the above-mentioned set-top box B switches channels is shown in Figure 2. the

上联设备下发两条组播流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报文,然后发送一个加入239.1.1.3的report报文,modem收到leave包后删除条目a,因为还存在239.1.1.1的条目b,所以modem不能把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,很明显239.1.1.1是多余的,就导致了带宽的浪费,更加严重的如果上联设备对组播流限制两条,由于已经有239.1.1.1和239.1.1.2两条组播流,后来加入的239.1.1.3就无法往下发送,机顶盒A由于收不到239.1.1.3就会黑屏,虽然黑屏的时间不会超过上联设备发送query包的间歇时间,但这个对用户来说是依然是不愿看到的。另外,当pc或者机顶盒非正常关机、掉电、拨网线的情况下,都不会发leave报文,都有可能出现以上故障。 The uplink device sends two multicast streams 239.1.1.1 and 239.1.1.2. Set-top box A watches program 239.1.1.1, and set-top box B watches program 239.1.1.2. At this time, suppose set-top box A switches the channel to 239.1.1.3. Set-top box A first Send a leave message to leave 239.1.1.1, and then send a report message to join 239.1.1.3, the modem deletes entry a after receiving the leave packet, because there is still entry b of 239.1.1.1, so the modem cannot wrap leave in The WAN port forwards it out, and the modem will also create entry d according to the report message sent by A. Since the uplink device has not received the leave message leaving 239.1.1.1, it has to send the multicast stream of 239.1.1.1 down, A After switching channels, as shown in Figure 3, the uplink device sends three multicast streams 239.1.1.1, 239.1.1.2, and 239.1.1.3. Obviously, 239.1.1.1 is redundant, which leads to a waste of bandwidth, and even more serious If the uplink device restricts two multicast streams, because there are already two multicast streams 239.1.1.1 and 239.1.1.2, the 239.1.1.3 added later cannot be sent down, and the set-top box A cannot receive 239.1.1.3. There will be a black screen, although the time of the black screen will not exceed the interval time between the query packet sent by the uplink device, but this is still unwilling to see for the user. In addition, when the PC or set-top box is abnormally shut down, power-off, or disconnects the network cable, it will not send a leave message, and the above faults may occur. the

针对相关技术中局域网设备往往因为接收不到某个频道而出现黑屏的问题,目前尚未提出有效的解决方案。 Aiming at the problem in the related art that the LAN device often has a black screen because it cannot receive a certain channel, no effective solution has been proposed yet. the

发明内容Contents of the invention

针对局域网设备往往因为接收不到某个频道而出现黑屏的问题而提出本发明,为此,本发明的主要目的在于提供一种因特网组管理协议监听的实现方法及系统、调制解调器,以解决上述问题。 The present invention is proposed aiming at the problem that the LAN equipment often appears black screen because it cannot receive a certain channel. For this reason, the main purpose of the present invention is to provide a method, system and modem for realizing monitoring of the Internet group management protocol, so as to solve the above-mentioned problems . the

为了实现上述目的,根据本发明的一个方面,提供了一种因特网组管理协议监听的实现方法。 In order to achieve the above purpose, according to one aspect of the present invention, a method for implementing IGMP monitoring is provided. the

根据本发明的因特网组管理协议监听的实现方法包括:调制解调器接收来自局域网设备的离开报文;调制解调器查询组播表;调制解调器在查询到组播表中的组播有多个条目的情况下,保存离开报文;调制解调器向局域网设备发送查询报文;以及,调制解调器在未接收到来自局域网设备的回应的情况下,将离开报文发送至上联设备。 According to the implementation method of Internet group management protocol monitoring of the present invention, comprising: the modem receives the leaving message from the local area network equipment; the modem queries the multicast table; the modem saves the A leave message; the modem sends a query message to the LAN device; and, when the modem does not receive a response from the LAN device, sends the leave message to the uplink device. the

为了实现上述目的,根据本发明的另一方面,提供了一种因特网组管理协议监听的实现系统。该系统包括上联设备、调制解调器和局域网设备,其中:局域网设备,用于发送离开报文;调制解调器,用于接收离开报文,查询组播表,在查询到组播表中的组播有多个条目的情况下,保存离开报文,以及向局域网设备发送查询报文,并在未接收到来自局域网设备的回应的情况下,将离开报文发送至上联设备;上联设备,用于接收离开报文。 In order to achieve the above purpose, according to another aspect of the present invention, a system for implementing IGMP monitoring is provided. The system includes an uplink device, a modem and a LAN device, among which: the LAN device is used to send the leaving message; the modem is used to receive the leaving message and query the multicast table. In the case of entries, save the leave message, and send a query message to the LAN device, and if no response is received from the LAN device, send the leave message to the uplink device; the uplink device is used to receive leave the message. the

为了实现上述目的,根据本发明的另一方面,提供了一种调制解调器。该调制解调器包括:接收模块,用于接收来自局域网设备的离开报文;查询模块,用于查询组播表;保存模块,用于在查询到组播表中的组播有多个条目的情况下,保存离开报文;第一发送模块,用于向局域网设备发送查询报文;以及,第二发送模块,用于在未接收到来自局域网设备的回应的情况下,将离开报文发送至上联设备。 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, used to receive the leaving message from the LAN device; a query module, used to query the multicast table; a saving module, used to query the multicast table in the case that there are multiple entries , save the leaving message; the first sending module is used to send the query message to the LAN device; and the second sending module is used to send the leaving message to the uplink if no response is received from the LAN device equipment. the

通过本发明,采用调制解调器接收来自局域网设备的离开报文,查询组播表,在查询到组播表中的组播有多个条目的情况下,保存离开报文,向局域网设备发送查询报文,以及在未接收到来自局域网设备的回应的情况下,将离开报文发送至上联设备,解决了局域 网设备往往因为接收不到某个频道而出现黑屏的问题,进而达到了防止局域网设备因为接收不到某个频道而出现黑屏的效果。 Through the present invention, the modem is used to receive the leaving message from the LAN device, query the multicast table, and when the multicast in the multicast table is found to have multiple entries, save the leaving message, and send the query message to the LAN device , and in the case of not receiving a response from the LAN device, the leave message is sent to the uplink device, which solves the problem that the LAN device often has a black screen because it cannot receive a certain channel, and thus prevents the LAN device from The effect of a black screen appears because a certain channel cannot be received. the

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中: The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1是根据相关技术的机顶盒A和B都加入组播239.1.1.1的示意图; Fig. 1 is the synoptic diagram that set-top box A and B all join multicast 239.1.1.1 according to related technology;

图2是根据相关技术的机顶盒B切换到239.1.1.2后的示意图 Figure 2 is a schematic diagram of the set-top box B switched to 239.1.1.2 according to the related technology

图3是根据相关技术的机顶盒A切换到239.1.1.3后的示意图; Fig. 3 is a schematic diagram after the set-top box A is switched to 239.1.1.3 according to the related technology;

图4是根据本发明实施例的因特网组管理协议监听的实现系统的示意图; Fig. 4 is the schematic diagram of the realization system of the Internet group management protocol monitoring according to the embodiment of the present invention;

图5是根据本发明实施例的因特网组管理协议监听的实现方法的流程图; Fig. 5 is the flow chart of the realization method that the Internet Group Management Protocol monitors according to the embodiment of the present invention;

图6是根据本发明实施例的机顶盒A切换到239.1.1.3后的示意图; Fig. 6 is a schematic diagram after the set-top box A switches to 239.1.1.3 according to an embodiment of the present invention;

图7是根据本发明实施例的调制解调器的示意图; Figure 7 is a schematic diagram of a modem according to an embodiment of the present invention;

图8是根据本发明的调制解调器的优选实施例的示意图。 Figure 8 is a schematic diagram of a preferred embodiment of a modem in accordance with the present invention. the

具体实施方式Detailed ways

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。 It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and examples. the

图4是根据本发明实施例的因特网组管理协议监听的实现系统的示意图。 Fig. 4 is a schematic diagram of a system for implementing IGMP snooping according to an embodiment of the present invention. the

如图4所示,该因特网组管理协议监听的实现系统包括上联设备10、调制解调器20和局域网设备30。 As shown in FIG. 4 , the system for implementing IGMP monitoring includes an uplink device 10 , a modem 20 and a LAN device 30 . the

其中,局域网设备30用于发送离开报文;调制解调器20用于接收离开报文,查询组播表,在查询到组播表中的组播有多个条目的情况下,保存离开报文,以及向局域网设备发送查询报文,并在未接收到来自局域网设备的回应的情况下,将离开报文发送至上联设备,上联设备10用于接收离开报文。 Wherein, the LAN device 30 is used to send the leaving message; the modem 20 is used to receive the leaving message, query the multicast table, and save the leaving message when the multicast in the multicast table is found to have multiple entries, and Send a query message to the LAN device, and if no response is received from the LAN device, send the leave message to the uplink device, and the uplink device 10 is used to receive the leave message. the

上述的局域网设备包括机顶盒和计算机。 The aforementioned LAN devices include set-top boxes and computers. the

图5是根据本发明实施例的因特网组管理协议监听的实现方法的流程图。如图所示,该方法包括: Fig. 5 is a flowchart of a method for implementing IGMP snooping according to an embodiment of the present invention. As shown, the method includes:

步骤S502,调制解调器接收来自局域网设备的离开报文。 Step S502, the modem receives the leaving message from the LAN device. the

例如,调制解调器经由LAN端口接收来自局域网设备的离开报文。 For example, a modem receives leave messages from LAN devices via a LAN port. the

步骤S504,调制解调器查询组播表。 Step S504, the modem queries the multicast table. the

例如,调制解调器在收到某个端口的leave报文后,根据leave中的组播地址查看组播mac表。 For example, after a modem receives a leave message from a certain port, it checks the multicast mac table according to the multicast address in the leave. the

步骤S506,调制解调器在查询到组播表中的组播有多个条目的情况下,保存离开报文。 In step S506, the modem saves the leave message when it finds that there are multiple entries in the multicast table. the

例如,调制解调器可以采用以下方式保存离开报文: For example, a modem can store leave messages in the following ways:

首先,调制解调器创建链表;以及 First, the modem creates the linked list; and

调制解调器利用链表对离开报文进行保存。 The modem uses a linked list to save the leaving message. the

步骤S508,调制解调器向局域网设备发送查询报文。以及 Step S508, the modem sends a query message to the LAN device. as well as

步骤S510,调制解调器在未接收到来自局域网设备的回应的情况下,将离开报文发送至上联设备。 Step S510, if the modem does not receive a response from the LAN device, the modem sends the leaving message to the uplink device. the

如果该组播有多个条目则向对应的LAN端口(局域网设备)发送特定的组播查询报文,启动定时器,并将收到的leave报文缓存起来;否则将leave报文在WAN口转发。 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

定时器时间超时(timeou)之前,如果有LAN口回答该组播的查询报文,则直接将缓存的leave报文丢弃;反之则删除该组播的所有条目,并将缓存的leave报文在WAN口转发。 Before the timer expires (timeou), if there is a LAN port answering the multicast query message, the cached leave message will be discarded directly; otherwise, all entries of the multicast will be deleted, and the cached leave message will be WAN port forwarding. the

如图6所描述的场景,当机顶盒A从239.1.1.1切换到239.1.1.3时,modem收到239.1.1.1的leave报文,开始查询组播mac表,发现该组播有a和b两个条目存在,则将leave报文缓存起来,向LAN口发送239.1.1.1的query报文,由于这时候已经没有机顶盒在看这个节目,当然modem收不到任何回应,则将a和b都删除,并向WAN口转发先前缓存的leave包,这样上联设备在收到该leave报文后便不会在向下发送239.1.1.1的组播流,这样就解决了在看相同组播节目时,由于某种原因前面离开的机顶盒没发leave包而导致的黑屏,带宽浪费问题。 As shown in Figure 6, when the set-top box A switches from 239.1.1.1 to 239.1.1.3, the modem receives the leave message of 239.1.1.1, starts to query the multicast mac table, and finds that the multicast has a and b If the entry exists, the leave message will be cached, and the query message of 239.1.1.1 will be sent to the LAN port. Since no set-top box is watching this program at this time, of course the modem cannot receive any response, and both a and b will be deleted. And forward the previously cached leave packet to the WAN port, so that the uplink device will not send the 239.1.1.1 multicast stream downward after receiving the leave message, which solves the problem of watching the same multicast program. For some reason, the set-top box that left before did not send a leave packet, which caused a black screen and a waste of bandwidth. the

本发明只是在机顶盒在看相同节目时候才会让modem主动发query包,对系统性能几乎没有影响。The invention only allows the modem to actively send query packets when the set-top box is watching the same program, and has almost no influence on system performance.

本发明通过以上的方法,能够解决在modem上防护一些机顶盒在播放同一个组播组时在特定的情况下不发送leave报文所带来的问题。 Through the above method, the present invention can solve the problem caused by protecting some set-top boxes from not sending leave messages under certain circumstances when playing the same multicast group on the modem. the

优选地,上述方法还包括:调制解调器创建标识变量;其中,在调制解调器接收到来自局域网设备的回应并且在标识变量为真的情况下,调制解调器将链表中对应的节点删除。 Preferably, the above method further includes: the modem creates an identification variable; wherein, when the modem receives the response from the LAN device and the identification variable is true, the modem deletes the corresponding node in the linked list. the

上述方法还可以包括:调制解调器判断链表是否为空;以及在链表为空的情况下,调制解调器将标识变量设置为假。 The above method may further include: the modem judging whether the linked list is empty; and if the linked list is empty, the modem sets the identification variable as false. the

在调制解调器将离开报文发送至上联设备之后,上述方法还可以包括:调制解调器将链表中与离开报文对应的节点删除。 After the modem sends the leave message to the uplink device, the above method may further include: the modem deletes the node corresponding to the leave message in the linked list. the

在上述实施例中,调制解调器向局域网设备发送查询报文之后,开始计时,其中,调制解调器在第一时间未接收到来自局域网设备的回应的情况下,将离开报文发送至上联设备。 In the above embodiment, after the modem sends the query message to the LAN device, it starts counting. If the modem does not receive a response from the LAN device at the first time, it sends the leaving message to the uplink device. the

具体地,上述方法可以包括以下步骤: Specifically, the above method may include the following steps:

步骤1,首先将上联设备发送的query报文缓存一个变量Cquery,这样在需要向LAN口发特定查询query报文时,只需要将缓存的query包修改一下目的组播地址和CRC校验即可,不需要从头到尾构造一个query报文。 Step 1, first cache the query message sent by the uplink device in a variable Cquery, so that when you need to send a specific query message to the LAN port, you only need to modify the cached query package for the destination multicast address and CRC check. Yes, there is no need to construct a query message from beginning to end. the

步骤2,创建一个链表、一个定时器和一个标识变量,每当收到一个LAN侧的leave报文,查询组播mac表,如果查询到该组播有多个条目,则向LAN口发送特定组播query报文,并创建一个链 表节点,用于缓存leave报文和query的timeout时间以及对应的组播地址。 Step 2. Create a linked list, a timer and an identification variable. Whenever a leave message from the LAN side is received, the multicast mac table is queried. If it is found that the multicast has multiple entries, a specific message is sent to the LAN port. Multicast the query message, and create a linked list node, which is used to cache the timeout time of the leave message and query and the corresponding multicast address. the

步骤3,只要链表中有节点,标识变量的值设为true(真),定时器都会启动,定时器时间到则遍历链表,将每个节点的timeout时间减1,并判断timeout是否已经为0,如果为0则将节点中保存的leave报文在WAN口转发,删除该节点,定时器重新定时。 Step 3, as long as there are nodes in the linked list and the value of the identification variable is set to true (true), the timer will start, and when the timer expires, the linked list will be traversed, the timeout time of each node will be reduced by 1, and it will be judged whether the timeout is 0 , if it is 0, the leave message saved in the node will be forwarded on the WAN port, the node will be deleted, and the timer will be reset. the

步骤4,收到从LAN端口的report报文,如果标识变量为true,则根据组播地址遍历链表,找到便将节点删除,并判断链表是否已经为空,如果为空,将标识变量设置为false(假),关闭定时器。 Step 4, receive the report message from the LAN port, if the identification variable is true, then traverse the linked list according to the multicast address, delete the node if found, and judge whether the linked list is empty, if it is empty, set the identification variable to false (false), turn off the timer. the

从以上的描述中,可以看出,本发明能够防止局域网设备因为接收不到某个频道而出现黑屏。 From the above description, it can be seen that the present invention can prevent the LAN device from appearing black screen due to failure to receive a certain channel. the

需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。 It should be noted that the steps shown in the flowcharts of the accompanying drawings may be performed in a computer system, such as a set of computer-executable instructions, and that although a logical order is shown in the flowcharts, in some cases, The steps shown or described may be performed in an order different than here. the

图7是根据本发明实施例的调制解调器的示意图。如图所示,该调制解调器,包括接收模块802、查询模块804、保存模块806、第一发送模块808以及第二发送模块810。 FIG. 7 is a schematic diagram of a modem according to an embodiment of the present invention. As shown in the figure, 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

其中,接收模块802,用于接收来自局域网设备的离开报文;查询模块804,用于查询组播表;保存模块806,用于在查询到组播表中的组播有多个条目的情况下,保存离开报文;第一发送模块808,用于向局域网设备发送查询报文;以及第二发送模块810,用于在未接收到来自局域网设备的回应的情况下,将离开报文发送至上联设备。 Wherein, the receiving module 802 is used to receive the leaving message from the LAN device; the query module 804 is used to query the multicast table; the preservation module 806 is used to query the multicast in the multicast table when there are multiple entries Next, save the leaving message; the first sending module 808 is used to send a query message to the LAN device; and the second sending module 810 is used to send the leaving message when no response is received from the LAN device Uplink equipment. the

图8是根据本发明的调制解调器的优选实施例的示意图。 Figure 8 is a schematic diagram of a preferred embodiment of a modem in accordance with the present invention. the

与上述的实施例相比,本实施例的调制解调器还包括:创建模块812,用于创建链表,其中,链表用于对离开报文进行保存;以及删除模块814,用于在接收到来自局域网设备的回应的情况下,将链表中对应的节点删除。 Compared with the above-mentioned embodiment, the modem of this embodiment also includes: a creation module 812, which is used to create a linked list, wherein, the linked list is used to save the leaving message; In the case of a response, delete the corresponding node in the linked list. the

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。 Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Optionally, they can be implemented with program codes executable by a computing device, so that they can be stored in a storage device and executed by a computing device, or they can be made into individual integrated circuit modules, or they can be integrated into Multiple modules or steps are fabricated into a single integrated circuit module to realize. As such, the present invention is not limited to any specific combination of hardware and software. the

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention. the

Claims (10)

1.一种因特网组管理协议监听的实现方法,其特征在于,包括:1. A method for implementing Internet Group Management Protocol monitoring, characterized in that, comprising: 调制解调器接收来自局域网设备的离开报文;The modem receives the leaving message from the LAN device; 所述调制解调器查询组播表;The modem queries the multicast table; 所述调制解调器在查询到所述组播表中的组播有多个条目的情况下,保存所述离开报文;The modem saves the leave message when it is found that the multicast in the multicast table has multiple entries; 所述调制解调器向所述局域网设备发送查询报文;以及The modem sends a query message to the LAN device; and 所述调制解调器在未接收到来自所述局域网设备的回应的情况下,将所述离开报文发送至上联设备。When the modem does not receive a response from the LAN device, the modem sends the leave message to the uplink device. 2.根据权利要求1所述的方法,其特征在于,所述调制解调器保存所述离开报文包括:2. The method according to claim 1, wherein the modem saving the leaving message comprises: 所述调制解调器创建链表;以及said modem creates a linked list; and 所述调制解调器利用所述链表对所述离开报文进行保存。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: 所述调制解调器创建标识变量;said modem creates an identification variable; 其中,在所述调制解调器接收到来自所述局域网设备的回应并且在所述标识变量为真的情况下,所述调制解调器将所述链表中对应的节点删除。Wherein, when the modem receives the response from the LAN device and the identification variable is true, the modem deletes the corresponding node in the linked list. 4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. method according to claim 3, is characterized in that, described method also comprises: 所述调制解调器判断所述链表是否为空;以及The modem determines whether the linked list is empty; and 在所述链表为空的情况下,所述调制解调器将所述标识变量设置为假。In case the linked list is empty, the modem sets the identification variable to false. 5.根据权利要求2所述的方法,其特征在于,在所述调制解调器将所述离开报文发送至所述上联设备之后,所述方法还包括:5. The method according to claim 2, characterized in that, after the modem sends the leaving message to the uplink device, the method further comprises: 所述调制解调器将所述链表中与所述离开报文对应的节点删除。The modem deletes the node corresponding to the leaving message in the linked list. 6.根据权利要求1所述的方法,其特征在于,所述调制解调器向局域网设备发送查询报文之后,开始计时,其中,所述调制解调器在第一时间未接收到来自所述局域网设备的回应的情况下,将所述离开报文发送至所述上联设备。6. The method according to claim 1, wherein the modem starts timing after sending the query message to the LAN device, wherein the modem does not receive a response from the LAN device at the first time In other cases, the leave message is sent to the uplink device. 7.一种调制解调器,其特征在于,包括:7. A modem, characterized in that, comprising: 接收模块,用于接收来自局域网设备的离开报文;A receiving module, configured to receive a leaving message from a LAN device; 查询模块,用于查询组播表;Query module, used for querying multicast table; 保存模块,用于在查询到所述组播表中的组播有多个条目的情况下,保存所述离开报文;A saving module, configured to save the leaving message when it is found that the multicast in the multicast table has multiple entries; 第一发送模块,用于向所述局域网设备发送查询报文;以及A first sending module, configured to send a query message to the LAN device; and 第二发送模块,用于在未接收到来自所述局域网设备的回应的情况下,将所述离开报文发送至上联设备。The second sending module is configured to send the leaving message to the uplink device when no response is received from the LAN device. 8.根据权利要求7所述的调制解调器,其特征在于,还包括:8. The modem according to claim 7, further comprising: 创建模块,用于创建链表,其中,所述链表用于对所述离开报文进行保存;以及A creating module, configured to create a linked list, wherein the linked list is used to save the leaving message; and 删除模块,用于在接收到来自所述局域网设备的回应的情况下,将所述链表中对应的节点删除。A deletion module, configured to delete the corresponding node in the linked list when a response from the LAN device is received. 9.一种因特网组管理协议监听的实现系统,其特征在于,包括上联设备、调制解调器和局域网设备,其中:9. A realization system of Internet Group Management Protocol monitoring, characterized in that it includes an uplink device, a modem and a local area network device, wherein: 所述局域网设备,用于发送离开报文;The LAN device is configured to send a leaving message; 所述调制解调器,用于接收所述离开报文,查询组播表,在查询到所述组播表中的组播有多个条目的情况下,保存所述离开报文,以及向局域网设备发送查询报文,并在未接收到来自所述局域网设备的回应的情况下,将所述离开报文发送至所述上联设备;The modem is configured to receive the leaving message, query the multicast table, and store the leaving message when it is found that there are multiple entries in the multicast table, and send the leaving message to the LAN device Querying a message, and sending the leaving message to the uplink device if no response is received from the LAN device; 所述上联设备,用于接收所述离开报文。The uplink device is configured to receive the leave message. 10.根据权利要求9所述的系统,其特征在于,所述局域网设备包括机顶盒和计算机。10. The system according to claim 9, wherein the local area network device comprises a set-top box and a computer.
CN201010507059.1A 2010-09-27 2010-09-27 Method and system for implementing internet group management protocol snooping and modem Active CN101964733B (en)

Priority Applications (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
PCT/CN2011/076741 WO2012041104A1 (en) 2010-09-27 2011-06-30 Method, system and modem for implementing internet group management protocol snooping

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN101964733A true CN101964733A (en) 2011-02-02
CN101964733B CN101964733B (en) 2015-01-28

Family

ID=43517477

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

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

Citations (4)

* 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
CN1731756A (en) * 2004-08-05 2006-02-08 上海贝尔阿尔卡特股份有限公司 Method and device for processing user to leave, switching multicast service channel request using slow leaving mechanism
CN1878121A (en) * 2006-07-18 2006-12-13 杭州华为三康技术有限公司 Multicast group maintaining method
CN101094132A (en) * 2006-06-20 2007-12-26 中兴通讯股份有限公司 Process method for restarting terminal device of multicast service

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050125420A1 (en) * 2003-12-03 2005-06-09 Allen Tsz-Chiu Wong System and method of operating the system that prevents multiple channels from continuously being sent to the same set top box
CN101145922B (en) * 2006-09-13 2011-06-22 中兴通讯股份有限公司 A system and method for realizing reliable exit of multi-cast terminal
CN101964733B (en) * 2010-09-27 2015-01-28 中兴通讯股份有限公司 Method and system for implementing internet group management protocol snooping and modem

Patent Citations (4)

* 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
CN1731756A (en) * 2004-08-05 2006-02-08 上海贝尔阿尔卡特股份有限公司 Method and device for processing user to leave, switching multicast service channel request using slow leaving mechanism
CN101094132A (en) * 2006-06-20 2007-12-26 中兴通讯股份有限公司 Process method for restarting terminal device of multicast service
CN1878121A (en) * 2006-07-18 2006-12-13 杭州华为三康技术有限公司 Multicast group maintaining method

Cited By (1)

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

Also Published As

Publication number Publication date
WO2012041104A1 (en) 2012-04-05
CN101964733B (en) 2015-01-28

Similar Documents

Publication Publication Date Title
US9832111B2 (en) OFS in-band communication method and OFS
EP2622805B1 (en) Method for pruning a multicast branch, protocol independent multicast router, and layer-2 exchange
US8208483B2 (en) Ethernet switching
CN101741742B (en) Message processing method, access equipment and communication system
US20140233563A1 (en) Multicast processing method and device
CN108737221B (en) Packet loss detection method and communication link system
CN106717015A (en) Computer network providing redundant data traffic control features and related methods
KR20180025944A (en) Method and apparatus for implementing SDN-based ARP
WO2020173340A1 (en) Bier-based bidirectional forwarding detection session creation method, bfir, bfer, system, and storage medium
EP2652919B1 (en) Method for group-based multicast with non-uniform receivers
WO2018014767A1 (en) Information determination method and device, and storage medium
WO2020083095A1 (en) Reverse path check method, apparatus and device, and storage medium
CN102158395B (en) Device and method for processing neighbor discovery items of router
CN104660509B (en) The method for processing forwarding of data message in a kind of access gateway
EP3579517A1 (en) Multicast service processing method and access device
CN102064956B (en) Method for regulating aging time, system and modulator-demodulator
WO2017041534A1 (en) Power line network communication method and device, and computer storage media
CN101304359B (en) RRPP Ring Network Link Restoration Method and Equipment
WO2012146139A1 (en) Message filtering method and access device
CN101964733B (en) Method and system for implementing internet group management protocol snooping and modem
CN103825794B (en) Transparent interconnection of lots of links internet data frame sending method and device
CN103236980A (en) Router and method for implementing unnumbered broadcasting ports of router
CN111711968A (en) Message processing method, device, communication device and communication system
WO2012103748A1 (en) Multicast control method, routing device and multicast system
CN103609066B (en) Method and node for querying operation administration maintenance configuration information

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191220

Address after: 314400 No.11, Weisan Road, Nongfa District, Chang'an Town, Haining City, Jiaxing City, Zhejiang Province

Patentee after: Haining hi tech Zone Science and Innovation Center Co., Ltd

Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Patentee before: ZTE Communications Co., Ltd.