[go: up one dir, main page]

CN101605040B - Multicast control method under single-port and multi-user access mode and device - Google Patents

Multicast control method under single-port and multi-user access mode and device Download PDF

Info

Publication number
CN101605040B
CN101605040B CN200810110666A CN200810110666A CN101605040B CN 101605040 B CN101605040 B CN 101605040B CN 200810110666 A CN200810110666 A CN 200810110666A CN 200810110666 A CN200810110666 A CN 200810110666A CN 101605040 B CN101605040 B CN 101605040B
Authority
CN
China
Prior art keywords
port
message
multicast group
igmp
characteristic information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN200810110666A
Other languages
Chinese (zh)
Other versions
CN101605040A (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.)
ZTE Corp
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 CN200810110666A priority Critical patent/CN101605040B/en
Publication of CN101605040A publication Critical patent/CN101605040A/en
Application granted granted Critical
Publication of CN101605040B publication Critical patent/CN101605040B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种单端口多用户接入模式下的组播控制方法,包括:宽带接入设备收到一端口的IGMP加入或离开组播组报文时,相应地进行处理:确认加入报文合理后提取其信息,由此判断该端口的组播组节点不存在,则建立该端口的组播组节点及其特征信息记录,并将记录中的时间值更新为初始值;然后依IGMP的工作状态进入相应的处理;或者,确认离开报文合理后提取其信息,由此判断端口的组播组节点存在且具有相应的特征信息记录,则清空该记录;在确定快速离开功能使能且该组播组节点中所有特征信息记录均为空,依IGMP的工作状态进入相应的处理。本发明减少了同一端口用户进行频道切换时产生的干扰,并节省了端口的带宽资源。

Figure 200810110666

A method for controlling multicast in a single-port multi-user access mode, comprising: when a broadband access device receives an IGMP message for joining or leaving a multicast group of a port, it processes accordingly: after confirming that the joining message is reasonable, it extracts Its information, thus judging that the multicast group node of the port does not exist, then establish the multicast group node and its characteristic information record of the port, and update the time value in the record to the initial value; then enter into Corresponding processing; or, after confirming that the leave message is reasonable, extract its information, thereby judging that the multicast group node of the port exists and has a corresponding characteristic information record, then clear the record; when it is determined that the fast leave function is enabled and the multicast All feature information records in the group node are empty, and enter corresponding processing according to the working status of IGMP. The invention reduces the interference generated when users of the same port switch channels, and saves bandwidth resources of the port.

Figure 200810110666

Description

一种单端口多用户接入模式下的组播控制方法及装置Multicast control method and device in single-port multi-user access mode

技术领域 technical field

本发明涉及数据通讯领域内交互式网络电视(IPTV,Internet ProtocolTelevision)业务中的组播控制技术,尤其涉及宽带接入设备在单端口多用户接入模式下的组播频道控制方法和装置。The present invention relates to the multicast control technology in the Internet Protocol Television (IPTV) service in the field of data communication, in particular to a multicast channel control method and device for broadband access equipment in single-port multi-user access mode.

背景技术 Background technique

随着宽带网络技术的日益成熟,流媒体以其直观性、实时性及互动性等特点广泛地应用于视频点播、网络教学以及网络直播等诸多业务中。更进一步的发展是,当前IPTV已经成为固网领域的一大热点,而基于组播的电视业务又是IPTV业务的核心,运营商都非常重视IPTV系统中的宽带接入设备的组播支持能力。With the increasing maturity of broadband network technology, streaming media is widely used in many services such as video on demand, network teaching and network broadcasting due to its intuition, real-time and interactive characteristics. A further development is that IPTV has become a hot spot in the fixed network field, and multicast-based TV services are the core of IPTV services. Operators attach great importance to the multicast support capabilities of broadband access equipment in IPTV systems.

目前,在IPTV业务应用中如何更好地实现对用户的点播可控性,以保证用户视频流的质量及节约运营商的带宽,一直是IPTV技术发展面临的一个问题。At present, in the application of IPTV services, how to better realize the controllability of users' on-demand, so as to ensure the quality of users' video streams and save the bandwidth of operators, has always been a problem faced by the development of IPTV technology.

现有技术主要采用了两种技术方案来实现IPTV业务中点播节目的可控性:一种是基于传统的互联网组管理协议(IGMP,Internet Group ManagementProtocol)的技术方案,另外一种则是在IGMP技术方案基础上增加组播频道快速离开(Fast-Leave)功能的快速离开方案。The prior art mainly adopts two technical solutions to realize the controllability of on-demand programs in the IPTV service: one is based on the traditional Internet Group Management Protocol (IGMP, Internet Group Management Protocol) technical solution, and the other is based on IGMP On the basis of the technical solution, a fast-leave solution in which a multicast channel fast-leave (Fast-Leave) function is added.

如图1所示是IPTV业务组网示意图。其中,组播路由器与IPTV网络相连,组播用户(TV1~TV3)通过提供组播代理功能的宽带接入设备接入,然后与组播路由器相连。对于组播用户来讲,宽带接入设备实现组播路由器的功能,即通过接收组播用户的加入、离开请求,周期性地下发查询报文,维护组播组成员关系;对于组播路由器来讲,组播代理设备(即宽带接入设备)则是一个组播主机,通过发送加入或离开请求获取或取消多播路由器上某个组播组的服务。组播用户与宽带接入设备、宽带接入设备与组播路由器之间通过IGMP协议互相通信。Figure 1 is a schematic diagram of IPTV service networking. Wherein, the multicast router is connected with the IPTV network, and the multicast users (TV1-TV3) access through the broadband access device providing multicast proxy function, and then connect with the multicast router. For multicast users, the broadband access device implements the function of a multicast router, that is, by receiving the join and leave requests of multicast users, periodically sending query messages to maintain the membership of multicast groups; for multicast routers In other words, a multicast proxy device (that is, a broadband access device) is a multicast host that obtains or cancels a service of a multicast group on a multicast router by sending a join or leave request. Multicast users and broadband access devices, and broadband access devices and multicast routers communicate with each other through the IGMP protocol.

IGMP协议规定,当组播路由器接收到端口下组播用户的离开报文后,需要发送组播特定组查询报文,等待该组播组下可能存在的其他用户的回应,以确定此端口所连接的网络中是否还有其他组播用户在这个组中,当确认没有其他用户在这个组播组中,才能将这个端口从该组播组的表项中删除,从而保证了一个用户的离开不会影响与该用户同属于一个组播组的其他用户。The IGMP protocol stipulates that when a multicast router receives a leave message from a multicast user on a port, it needs to send a multicast specific group query message and wait for responses from other users that may exist in the multicast group to determine the number of users on the port. Whether there are other multicast users in this group in the connected network, only when it is confirmed that there are no other users in this multicast group, can this port be deleted from the entry of this multicast group, thus ensuring that a user leaves Other users belonging to the same multicast group as this user will not be affected.

但是上述的组播特定组查询报文过程所产生的延时,为实际的IPTV业务应用中带来了问题。在由组播技术提供的IPTV业务中,用户的频道切换操作包括:发送原频道的IGMP离开报文,发送新频道的IGMP加入报文。当组播接入设备(即宽带接入设备)接收到IGMP离开报文后,不会立刻将原有的视频流中断,而是要发送IGMP特定组查询报文后,等待用户是否回应IGMP加入报文后,再决定是否中断视频节目流;由此会造成新旧节目流同时下发,而浪费了大量的带宽。例如,当用户快速依次浏览多个频道,从频道1到频道n,这样就会在一段时间内有n个频道的视频流同时发送到组播接入设备的一个组播业务端口上,可能大大超过该业务端口的下行带宽,造成报文丢失、延迟,使用户的视频节目质量急剧下降,甚至无法观看。However, the delay caused by the above-mentioned process of multicasting a specific group query message brings problems in the actual application of IPTV services. In the IPTV service provided by the multicast technology, the user's channel switching operation includes: sending an IGMP leave message of the original channel, and sending an IGMP join message of the new channel. When the multicast access device (that is, the broadband access device) receives the IGMP leave message, it will not immediately interrupt the original video stream, but will send an IGMP specific group query message and wait for the user to respond to the IGMP join After receiving the message, it will decide whether to interrupt the video program stream; this will cause the new and old program streams to be delivered at the same time, which wastes a lot of bandwidth. For example, when a user quickly browses multiple channels in sequence, from channel 1 to channel n, the video streams of n channels will be sent to a multicast service port of the multicast access device at the same time within a period of time, which may greatly Exceeding the downlink bandwidth of the service port will result in packet loss and delay, causing the quality of the user's video program to drop sharply, or even make it impossible to watch.

为了解决上述问题,现有技术基于IGMP协议又采用了一种能够快速中断组播用户的节目流的组播用户快速离开(Fast-Leave)方案。图2a表示出在快速离开功能关闭情况下用户切换频道时的节目流重叠的示意图,图2b则表示在快速离开功能打开情况下用户切换频道时的节目流几乎没有重叠的示意图。如果在IPTV业务应用中采用了Fast-Leave功能,当一个用户切换频道时,组播接入设备通过端口收到原频道的IGMP离开报文后,立刻将该端口从所离开的组播组的表项中删除,停止转发原频道的视频流,避免出现新旧两个频道节目流同时下发,从而实现任意时刻一个端口只能转发一个频道的节目,以节约设备带宽。但是,上述的快速离开方案只适用于组播接入设备的一个业务端口下只有一个组播用户的情况(即单端口单用户),对于一个业务端口下接入多个组播用户的情况(单端口多用户),又存在新的问题。In order to solve the above problem, the prior art adopts a multicast user fast-leave (Fast-Leave) scheme based on the IGMP protocol, which can quickly interrupt the program flow of the multicast user. Fig. 2a shows a schematic diagram of overlapping program streams when the user switches channels with the quick leave function turned off, and Fig. 2b shows a schematic diagram of almost no overlapping of program streams when the user switches channels with the fast leave function turned on. If the Fast-Leave function is used in the IPTV service application, when a user switches channels, the multicast access device immediately removes the port from the left multicast group after receiving the IGMP leave message of the original channel through the port. Delete the table entry, stop forwarding the video stream of the original channel, and avoid the simultaneous delivery of the old and new channel program streams, so that at any time, one port can only forward the program of one channel to save device bandwidth. However, the above-mentioned fast leaving scheme is only applicable to the situation where there is only one multicast user under one service port of the multicast access device (that is, single port and single user), and for the case of accessing multiple multicast users under one service port ( Single-port multi-user), there are new problems.

如图3所示,宽带接入设备在IPTV业务应用中采用了快速离开方案。可以看到当机顶盒(STB,Set Top Box)STB1、STB2及STB3同时收看频道1节目的时候,宽带接入设备只会向下发送一份频道1的视频流,然后通过家庭网关复制成三份视频流,分别传输给STB1、STB2及STB3;但是当STB1的用户切换频道到频道2的时候,STB1就会发出频道1的离开报文及频道2的加入报文,宽带接入设备会立即中止频道1的节目流转发,开始发送频道2的节目流,这就造成了STB2和STB3正在观看的频道1节目流中断了,直到STB2和STB3分别重新发起加入频道1的请求后,频道1的节目流才会恢复。这样,在多个组播用户的频道切换过程中便产生了互相干扰的情况,由此导致用户的收视质量下降。As shown in Figure 3, the broadband access device adopts the quick departure solution in the IPTV service application. It can be seen that when set-top boxes (STB, Set Top Box) STB1, STB2, and STB3 watch channel 1 programs at the same time, the broadband access device will only send down a video stream of channel 1, and then copy it into three copies through the home gateway The video stream is transmitted to STB1, STB2 and STB3 respectively; but when the user of STB1 switches the channel to channel 2, STB1 will send the leaving message of channel 1 and the joining message of channel 2, and the broadband access device will stop immediately The program stream of channel 1 is forwarded, and the program stream of channel 2 starts to be sent, which causes the program stream of channel 1 being watched by STB2 and STB3 to be interrupted. flow will resume. In this way, mutual interference occurs during the channel switching process of multiple multicast users, which leads to the degradation of the viewing quality of the users.

发明内容 Contents of the invention

本发明解决的技术问题是提出一种单端口多用户接入模式下的组播控制方法及装置,能够使同一端口上不同用户之间观看IPTV节目的互不干扰,且能减少用户端口的不必要的组播流量带宽占用。The technical problem to be solved by the present invention is to propose a multicast control method and device in a single-port multi-user access mode, which can enable different users on the same port to watch IPTV programs without interfering with each other, and can reduce the uninterrupted user ports. Necessary multicast traffic bandwidth occupation.

为了解决上述技术问题,本发明提供了一种单端口多用户接入模式下的组播控制方法,包括:宽带接入设备收到一端口的互联网组管理协议IGMP报文,In order to solve the above-mentioned technical problems, the present invention provides a multicast control method in a single-port multi-user access mode, comprising: the broadband access device receives an Internet group management protocol IGMP message of a port,

当该报文为加入组播组报文时进行加入报文处理:确认该报文合理后提取报文的信息,根据该信息若判断该端口的组播组节点不存在,则建立该端口的组播组节点及其相应的特征信息记录,并将该特征信息中的时间值字段更新为初始值;在完成时间值字段的更新后,依IGMP的工作状态确定进入相应的IGMP处理;When the message is a message for joining a multicast group, the message processing is carried out: after confirming that the message is reasonable, extract the information of the message, and if it is judged that the multicast group node of the port does not exist according to the information, then establish the Record the multicast group node and its corresponding feature information, and update the time value field in the feature information to the initial value; after completing the update of the time value field, determine to enter the corresponding IGMP process according to the working status of IGMP;

当该报文为离开组播组报文时进行离开报文处理:确认该报文合理后提取报文的信息,根据该信息若判断该端口的组播组节点存在,且具有相应的特征信息记录,则清空该特征信息记录;在确定快速离开功能使能且该组播组节点中所有特征信息记录均为空时,依IGMP的工作状态确定进入相应的IGMP处理。When the message is a leave multicast group message, perform leave message processing: after confirming that the message is reasonable, extract the information of the message, and according to the information, if it is judged that the multicast group node of the port exists and has corresponding characteristic information record, then clear the feature information record; when it is determined that the fast leave function is enabled and all feature information records in the multicast group node are empty, determine to enter the corresponding IGMP process according to the working status of IGMP.

进一步地,该特征信息还包括该端口的用户的源IP地址或源媒体接入控制MAC地址以及虚拟局域网VLAN信息中的一种或多种;进行加入报文处理若判断该端口的该组播组节点存在且具有相应的特征信息记录,则直接将该特征信息中的时间值字段更新;或者,若判断该端口的组播组节点存在,但没有相应的特征信息记录,则建立该特征信息记录,并将该特征信息中的时间值字段更新。Further, the characteristic information also includes one or more of the source IP address or the source MAC address of the user of the port and the VLAN information of the virtual local area network; If the group node exists and has the corresponding characteristic information record, then directly update the time value field in the characteristic information; or, if it is judged that the multicast group node of the port exists, but there is no corresponding characteristic information record, then create the characteristic information record, and update the time value field in the feature information.

进一步地,进行离开报文处理,在确定快速离开功能未使能时,依IGMP的工作状态确定进入相应的IGMP处理。Further, the leaving message is processed, and when it is determined that the fast leaving function is not enabled, it is determined to enter corresponding IGMP processing according to the working status of IGMP.

进一步地,在上述方法执行前还包括:在宽带接入设备上为每个端口建立一个全局的组播组链表数组结构,用于记录该端口上所有组播组,并以组播组为索引,唯一标识一个节点,在该节点中设置端口用户的特征信息数组,以记录用户的源IP地址或源MAC地址,并辅助设置时间值字段;该时间值的初始值,在IGMP的Snooping模式下赋值为老化时间,在IGMP的Proxy模式下赋值为最后一个组成员查询时间间隔加1。Further, before the above method is executed, it also includes: establishing a global multicast group linked list array structure for each port on the broadband access device, for recording all multicast groups on the port, and using the multicast group as an index , to uniquely identify a node, set the feature information array of the port user in the node to record the source IP address or source MAC address of the user, and assist in setting the time value field; the initial value of the time value, in the Snooping mode of IGMP Assigned as the aging time, in IGMP proxy mode, assigned as the last group member query interval plus 1.

进一步地,上述方法还包括:针对端口的组播组中非正常离开的用户,定义一定时器,并为该定时器预先设置超时时间;当该定时器超时溢出时,在快速离开功能使能的前提下,遍历该端口的组播组节点的特征信息记录项,将其中的时间值减1;当判断所有特征信息记录项的时间值均减为0后,将组播组及其特征信息记录项从该端口删除;所述非正常离开的用户,即未向宽带接入设备发送开组播组报文而长期不使用组播组的用户。Further, the above method also includes: defining a timer for the users who leave abnormally in the multicast group of the port, and presetting the timeout period for the timer; when the timer times out and overflows, enable the fast leaving function Under the premise of traversing the feature information record items of the multicast group nodes of the port, the time value in it is reduced by 1; when it is judged that the time values of all feature information record items are reduced to 0, the multicast group and its feature information The record item is deleted from the port; the user who leaves abnormally is the user who does not send a multicast group message to the broadband access device and does not use the multicast group for a long time.

为了解决上述技术问题,本发明提供了一种单端口多用户接入模式下的组播控制装置,包括:加入报文处理模块、存储模块、离开报文处理模块以及进入互联网组管理协议IGMP处理模块,其中:In order to solve the above-mentioned technical problems, the present invention provides a multicast control device in a single-port multi-user access mode, including: a message processing module for joining, a storage module, a message processing module for leaving, and IGMP processing for entering the Internet Group Management Protocol module, where:

加入报文处理模块,分别与存储模块和进入IGMP处理模块连接,用于将确认为合法的加入报文中的信息进行提取,根据该信息若判断相应的组播组节点不存在,则创建所述组播组节点及其对应的特征信息记录,并将该特征信息中的时间值字段更新为初始值;在完成时间值字段的更新后,将该端口的组播组节点数据结构存入存储模块,并将加入报文输出给进入IGMP处理模块进行处理;Join the message processing module, which is connected with the storage module and the IGMP processing module respectively, and is used to extract the information in the added message that is confirmed as legal. If it is judged that the corresponding multicast group node does not exist according to the information, then create the The multicast group node and its corresponding feature information record, and update the time value field in the feature information to the initial value; after completing the update of the time value field, store the multicast group node data structure of the port in the storage module, and output the added message to the IGMP processing module for processing;

存储模块,用于作为加入报文或离开报文处理过程中建立的端口的组播组节点数据结构的存储媒介;The storage module is used as a storage medium for the multicast group node data structure of the port established during the processing of the joining message or leaving the message;

离开报文处理模块,分别与存储模块和进入IGMP处理模块连接,用于将确认为合法的离开报文中的信息进行提取,根据该信息若判断相应的端口组节点存在,且具有相应的特征信息记录,则清空该特征信息记录;在确定快速离开功能使能且组播组节点中所有特征信息记录均为空时,将离开报文输出给进入IGMP处理模块进行处理;The leaving message processing module is respectively connected with the storage module and the entering IGMP processing module, and is used to extract the information in the leaving message confirmed to be legal. According to the information, if it is judged that the corresponding port group node exists and has corresponding characteristics information record, then clear the feature information record; when it is determined that the fast leaving function is enabled and all feature information records in the multicast group node are empty, the leaving message is output to the IGMP processing module for processing;

进入IGMP处理模块,用于根据输入的报文中工作状态确定进入IGMPSnooping处理或进入IGMP Proxy处理。Enter the IGMP processing module, which is used to determine whether to enter IGMPSnooping processing or enter IGMP Proxy processing according to the working status in the input message.

进一步地,加入报文处理模块创建的特征信息还包括该端口的用户的源IP地址或源媒体接入控制MAC地址以及虚拟局域网VLAN信息中的一种或多种;加入报文处理模块若判断该端口的组播组节点存在且具有相应的特征信息记录,则直接将该特征信息中的时间值字段更新;或者,若判断该端口的组播组节点存在,但没有相应的特征信息记录,则建立该特征信息记录,并将该特征信息中的时间值字段更新。Further, the feature information created by the added message processing module also includes one or more of the source IP address or source media access control MAC address and virtual local area network VLAN information of the user of the port; The multicast group node of this port exists and has corresponding feature information records, then directly update the time value field in the feature information; or, if it is judged that the multicast group node of this port exists, but there is no corresponding feature information record, Then create the characteristic information record, and update the time value field in the characteristic information.

进一步地,离开报文处理模块在确定快速离开功能未使能时,将离开报文输出给进入IGMP处理模块进行处理。Further, when the leaving message processing module determines that the fast leaving function is not enabled, it outputs the leaving message to the incoming IGMP processing module for processing.

进一步地,上述装置还包括报文内容分检模块,分别与加入报文处理模块和离开报文处理模块连接,用于将接收的IGMP报文进行内容分检,并对分检到的加入报文或离开报文相应地进行合法性确认后,相应地输出给加入报文处理模块和离开报文处理模块进行处理。Further, the above-mentioned device also includes a message content sorting module, which is respectively connected with the adding message processing module and the leaving message processing module, and is used to perform content sorting on the received IGMP messages, and sort the added messages received by sorting. After the legitimacy of the outgoing message or the leaving message is confirmed accordingly, it is correspondingly output to the joining message processing module and the leaving message processing module for processing.

进一步地,报文内容分检模块还与存储模块连接,用于在宽带接入设备进行组播控制之前,为宽带接入设备的每个端口在存储模块中建立一个全局的组播组链表数组结构,以记录所述端口的所有组播组,并以组播组为索引,唯一标识一个节点,在该节点中设置端口用户的特征信息数组,并辅助设置时间值字段;该时间值字段的初始值,在IGMP的Snooping模式下赋值为老化时间,在IGMP的Proxy模式下赋值为最后一个组成员查询时间间隔加1。Further, the message content sorting module is also connected to the storage module, and is used to establish a global multicast group linked list array in the storage module for each port of the broadband access device before the broadband access device performs multicast control structure, to record all the multicast groups of the port, and use the multicast group as an index to uniquely identify a node, set the feature information array of the port user in this node, and assist in setting the time value field; the time value field The initial value is the aging time in IGMP Snooping mode, and the last group member query interval plus 1 in IGMP Proxy mode.

进一步地,上述装置还包括老化处理模块,与存储模块连接,用于针对端口的组播组中非正常离开的用户,定义一定时器,并为定时器预先设置超时时间;当该定时器超时溢出时,在快速离开功能使能的前提下,遍历端口的组播组节点的特征信息记录项,将其中的时间值减1;当判断所有特征信息记录项的时间值均减为0后,则将该组播组及其特征信息记录项从该端口删除;所述非正常离开的用户,即未向宽带接入设备发送离开组播组报文而长期不使用组播组的用户。Further, the above-mentioned device also includes an aging processing module, which is connected to the storage module, and is used to define a timer for users who leave abnormally in the multicast group of the port, and preset a timeout period for the timer; when the timer times out When overflowing, on the premise that the fast leave function is enabled, traverse the feature information record items of the multicast group nodes of the port, and subtract 1 from the time value; when it is judged that the time values of all feature information record items are reduced to 0, Then delete the multicast group and its characteristic information record items from the port; the users who leave abnormally, that is, users who do not send the leave multicast group message to the broadband access device and do not use the multicast group for a long time.

本发明在单端口多用户接入模式以及组播的快速离开功能开启的应用场景下,能够减少同一端口用户在频道切换过程中产生的相互干扰,并能尽可能地减少无用节目流的传送,以此节省了端口的带宽资源,从而能为用户提供出更好的收视体验。In the application scenario where the single-port multi-user access mode and the multicast quick leave function are turned on, the present invention can reduce the mutual interference generated by users of the same port during the channel switching process, and can reduce the transmission of useless program streams as much as possible. In this way, the bandwidth resource of the port is saved, thereby providing a better viewing experience for the user.

附图说明 Description of drawings

图1为现有的IPTV业务组网图;Fig. 1 is the network diagram of existing IPTV service;

图2a为快速离开功能关闭时用户切换频道过程的节目流重叠的示意图;Fig. 2a is a schematic diagram of overlapping program streams in the process of channel switching by the user when the quick leave function is disabled;

图2b为快速离开功能打开时用户切换频道过程的节目流几乎无重叠的示意图;Fig. 2b is a schematic diagram of almost no overlapping of program streams in the process of channel switching by the user when the quick leave function is turned on;

图3为单端口多STB用户依现有技术的IPTV业务体验图;Fig. 3 is the IPTV service experience diagram of single-port multi-STB users according to the prior art;

图4为实现本发明方法的宽带接入设备上所建立的端口组播组链表结构示意图;Fig. 4 is the schematic structural diagram of the port multicast group linked list set up on the broadband access device realizing the method of the present invention;

图5为本发明的单端口多用户模式下用户侧IGMP协议报文处理方法流程图;Fig. 5 is the flowchart of the user side IGMP protocol message processing method under the single port multi-user mode of the present invention;

图5a为本发明的单端口多用户模式下收到加入报文处理方法流程图;FIG. 5a is a flowchart of a method for processing a joining message received in a single-port multi-user mode of the present invention;

图5b为本发明的单端口多用户模式下收到离开报文处理方法流程图;FIG. 5b is a flowchart of a method for processing a leave message received in a single-port multi-user mode of the present invention;

图6为本发明针对单端口多用户模式下用户异常离开老化处理流程图;FIG. 6 is a flow chart of the present invention for the aging processing of abnormal departure of users in single-port multi-user mode;

图7为本发明的单端口多用户模式下用户侧IGMP协议报文处理装置实施例结构框图。FIG. 7 is a structural block diagram of an embodiment of an apparatus for processing IGMP protocol packets at the user side in a single-port multi-user mode according to the present invention.

具体实施方式 Detailed ways

本发明的单端口多用户接入模式下的组播控制方法,包括步骤:宽带接入设备收到一端口的IGMP协议报文,当该报文为加入组播组报文时,确定该报文合理后提取报文的信息,根据该信息若判断端口的组播组节点不存在,则建立该端口组播组节点及其相应的特征信息记录,并将特征信息中的时间值字段更新为初始值;然后,依IGMP的工作状态确定进入相应的IGMP处理;当该报文为离开组播组报文时,确定该报文合理后提取报文的信息,根据该信息若判断端口的组播组节点存在,且具有相应的特征信息记录,则清空该特征信息记录;在确定快速离开功能使能且该组播组节点中所有特征信息记录均为空时,依IGMP的工作状态确定进入相应的IGMP处理。The multicast control method under the single-port multi-user access mode of the present invention comprises the steps: the broadband access device receives an IGMP protocol message of a port, and when the message is a message for joining a multicast group, determines the message After the text is reasonable, the information of the message is extracted. According to the information, if it is judged that the multicast group node of the port does not exist, then the multicast group node of the port and its corresponding feature information record will be established, and the time value field in the feature information will be updated as The initial value; then, according to the working state of IGMP, it is determined to enter the corresponding IGMP processing; when the message is leaving a multicast group message, after confirming that the message is reasonable, extract the information of the message, and judge the group of the port according to the information If the multicast group node exists and has the corresponding feature information record, then clear the feature information record; when it is determined that the fast leave function is enabled and all feature information records in the multicast group node are empty, determine the entry according to the working status of IGMP Corresponding IGMP processing.

针对端口的组播组中非正常离开的用户(未向宽带接入设备发送离开组播组报文且长期不使用该组播组),定义一定时器,并为该定时器预先设置超时时间;当该定时器超时溢出时,在快速离开功能使能的前提下,遍历端口的组播组节点的特征信息记录项,将其中的时间值减1;当判断所有特征信息记录项的时间值均减为0后,则将组播组及其所述特征信息记录项从端口删除。For users who leave abnormally in the multicast group of the port (the user who has not sent the leave multicast group message to the broadband access device and does not use the multicast group for a long time), define a timer, and set the timeout time for the timer in advance ;When the timer expires, under the premise that the fast leave function is enabled, traverse the characteristic information record items of the multicast group nodes of the port, and subtract 1 from the time value; when judging the time value of all characteristic information record items After both are reduced to 0, the multicast group and its characteristic information record items are deleted from the port.

以下结合附图及优选实施例对本发明的上述技术方案进行详细地说明。应当理解,下面所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The above-mentioned technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings and preferred embodiments. It should be understood that the preferred embodiments described below are only used to illustrate and explain the present invention, not to limit the present invention.

首先,在组播代理设备(即宽带接入设备)上为每个端口建立一个链表结构,形成一个全局的端口组播组(以下将端口组播组简称为端口组)链表数组,如图4所示。每个端口(端口A,B,...)的端口组链表,记录下该端口上存在的组播组情况,每个端口组播组个数最大为n(即受控组播规定的组播个数的最大值,譬如规定每个用户可同时加入的组播组个数不超过4,等等)。First, a linked list structure is established for each port on the multicast proxy device (i.e. broadband access device) to form a global port multicast group (hereinafter referred to as port multicast group for short) linked list array, as shown in Figure 4 shown. The port group linked list of each port (port A, B, ...) records the multicast groups that exist on the port. The maximum number of multicast groups, for example, it is stipulated that the number of multicast groups that each user can join at the same time does not exceed 4, etc.).

端口组链表节点以组播组为索引,唯一标识一个节点。该节点中设置端口用户特征信息结构数组,该数组维数可以根据需要设定(如以每端口支持用户STB个数为依据,等等)。端口用户特征信息结构(以下简称为特征信息)中,记录用户STB的源IP地址或源MAC地址,并辅助设置一个时间值字段,该时间值初始值在IGMP协议的IGMP Snooping模式下赋值为老化时间;在IGMP协议的IGMP Proxy模式下赋值为(LastMemberQueryInterval+Δ),单位为秒;其中LastMemberQueryInterval为最后一个组成员查询时间间隔,Δ为正的较小的数值,在此可以取值为1,这样,就可以使得在单端口单用户的情况下沿用原有的老化机制。The node in the port group linked list uses the multicast group as the index to uniquely identify a node. An array of port user characteristic information structures is set in this node, and the dimension of the array can be set as required (for example, based on the number of user STBs supported by each port, etc.). In the port user feature information structure (hereinafter referred to as feature information), the source IP address or source MAC address of the user STB is recorded, and a time value field is auxiliary set. The initial value of the time value is assigned as aging in the IGMP Snooping mode of the IGMP protocol. Time; in the IGMP Proxy mode of the IGMP protocol, it is assigned a value of (LastMemberQueryInterval+Δ), and the unit is seconds; where LastMemberQueryInterval is the last group member query time interval, and Δ is a positive small value, which can be 1 here. In this way, the original aging mechanism can be used in the case of a single port and a single user.

本发明针对单端口多用户接入模式下端口组非正常离开的用户,新设一时间老化机制,通过定义一定时器,并预先设置其超时时间,结合上述时间值字段的初始值,及在该定时器启动后超时溢出后将该时间值减1,直至该时间值为0为止,用以实现该时间老化机制。The present invention sets up a new time aging mechanism for users who leave the port group abnormally in the single-port multi-user access mode. By defining a timer and setting its time-out time in advance, combined with the initial value of the above-mentioned time value field, and After the timer is started, the timer overflows and then subtracts 1 from the time value until the time value is 0, so as to realize the time aging mechanism.

图5表示出本发明的单端口多用户模式下用户侧IGMP协议报文处理方法流程图,该流程包括如下步骤:Fig. 5 shows the flow chart of user side IGMP protocol message processing method under the single-port multi-user mode of the present invention, and this flow process comprises the following steps:

501:宽带接入设备收到某端口的IGMP协议报文;501: The broadband access device receives an IGMP protocol message from a certain port;

502:判断是加入组播组报文还是离开组播组报文,若为前者执行步骤503;若为后者则执行步骤505;502: Judging whether to join the multicast group message or leave the multicast group message, if it is the former, execute step 503; if it is the latter, execute step 505;

503:进行单端口多用户模式下接收加入组播组报文处理;503: Process receiving and joining multicast group messages in single-port multi-user mode;

504:根据IGMP协议工作状态确定进入IGMP Snooping或IGMP Proxy处理,然后结束流程;504: According to the working status of the IGMP protocol, it is determined to enter IGMP Snooping or IGMP Proxy processing, and then end the process;

505:进行单端口多用户模式下接收离开组播组报文处理;505: Process the message leaving the multicast group received in the single-port multi-user mode;

506:判断进入IGMP协议处理条件是否满足,若是执行步骤504,若否则结束流程。506: Judging whether the conditions for entering the IGMP protocol processing are met, if yes, execute step 504, if not, end the process.

这里,进入IGMP协议处理条件是在进行离开组播组报文处理过程中记录的:在端口组节点存在的前提下,若快速离开功能打开,且端口组中所有特征信息均为空,则条件满足;或者,快速离开功能关闭,则条件满足。Here, the processing condition for entering the IGMP protocol is recorded during the process of leaving the multicast group message: under the premise that the port group node exists, if the fast leave function is enabled, and all the characteristic information in the port group is empty, then the condition Satisfied; or, if the quick leave function is off, the condition is met.

本发明的单端口多用户模式下接收加入组播组报文处理,即步骤503,其流程如图5a所示,包括如下步骤:Under the single-port multi-user mode of the present invention, receiving and joining the multicast group message processing is step 503, and its flow process is as shown in Figure 5a, including the following steps:

5031:进行加入报文的合法性确定,提取报文中后续处理所需信息;5031: Determine the legality of adding the message, and extract the information required for subsequent processing in the message;

该信息包括:端口号、组播组号、组播组内相应的特征信息(源IP地址或源MAC地址,时间值字段)以及虚拟局域网(VLAN,Virtual Local AreaNetwork)信息(由于在具体的实现方式中,组播组以mvlan形式来管理,而mvlan需要VLAN信息)等;This information includes: port number, multicast group number, corresponding feature information (source IP address or source MAC address, time value field) and virtual local area network (VLAN, Virtual Local AreaNetwork) information in the multicast group (due to specific implementation In the mode, the multicast group is managed in the form of mvlan, and mvlan needs VLAN information), etc.;

5032:根据端口(譬如图4中端口A)及组播组(譬如图4中组播组G1)判断端口组节点是否已存在,若是执行步骤5033,若否则执行步骤5035;5032: Determine whether the port group node exists according to the port (such as port A in Figure 4) and the multicast group (such as the multicast group G1 in Figure 4), if so, perform step 5033, otherwise perform step 5035;

5033:根据特征信息判断端口组节点(G1)是否已有对应记录,若是(譬如图4中STB1、STB2)执行步骤5034,若否则执行步骤5036;5033: Determine whether the port group node (G1) has a corresponding record according to the feature information, if so (such as STB1, STB2 in Figure 4), execute step 5034, otherwise execute step 5036;

5034:更新端口组节点(G1)特征信息(STB1、STB2)记录的时间值字段,然后结束流程;5034: Update the time value field of the port group node (G1) feature information (STB1, STB2) record, and then end the process;

这里,是将端口组节点特征信息记录的时间值复位为初始值,以便为用户非正常离开(即未发送离开组播组频道报文)老化处理提供依据。Here, the time value recorded in the characteristic information of the port group node is reset to the initial value, so as to provide a basis for the aging processing of the user leaving abnormally (that is, not sending a message leaving the multicast group channel).

5035:创建端口组节点;5035: Create a port group node;

5036:创建该端口组节点的特征信息记录,然后执行步骤5034。5036: Create a feature information record of the port group node, and then execute step 5034.

在上述加入报文处理流程中,会记录下报文的端口组及特征信息项,这些信息将为离开报文处理提供依据。In the above joining message processing flow, the port group and feature information items of the message will be recorded, and these information will provide a basis for leaving message processing.

本发明的单端口多用户模式下接收离开组播组报文处理,即步骤505,其流程如图5b所示,包括如下步骤:The process of receiving and leaving the multicast group message under the single-port multi-user mode of the present invention is step 505, and its flow process is as shown in Figure 5b, including the following steps:

5051:进行离开报文的合法性确定,提取报文中相关信息;5051: Determine the legitimacy of the departure message, and extract relevant information in the message;

该相关信息包括:端口号、组播组号以及组播组内相应的特征信息(源IP地址或源MAC地址,时间值字段)等;The relevant information includes: port number, multicast group number, and corresponding feature information (source IP address or source MAC address, time value field) in the multicast group, etc.;

5052:根据端口及组播组判断端口组节点是否已存在,若是执行步骤5053,若否则执行步骤5057;5052: Determine whether the port group node exists according to the port and the multicast group, if so, execute step 5053, if otherwise, execute step 5057;

如果端口组节点不存在,则认为是不合法的离开报文,不做后续处理。If the port group node does not exist, it will be regarded as an illegal leave message, and no subsequent processing will be performed.

5053:清空端口组节点中对应的特征信息记录项(包括该STB的源IP地址或源MAC地址以及时间值字段);5053: Empty the corresponding characteristic information record item in the port group node (including the source IP address or source MAC address and time value field of the STB);

5054:判断快速离开功能是否已打开,若是执行步骤5055,若否则执行步骤5056;5054: Determine whether the quick leave function is enabled, if so, execute step 5055, otherwise, execute step 5056;

5055:判断该端口组节点中是否所有特征信息记录均为空,若是执行步骤5056,若否则执行步骤5057;5055: Judging whether all feature information records in the port group node are empty, if so, execute step 5056, otherwise, execute step 5057;

如果同一端口同一组播组下还有其他用户在观看该组播组代表的频道节目,则不做后续处理。If there are other users under the same multicast group on the same port watching the channel program represented by the multicast group, no follow-up processing will be performed.

5056:记录进入IGMP协议处理条件满足后结束流程;5056: The process ends after the record enters the IGMP protocol processing condition;

5057:记录进入IGMP协议处理条件不满足后结束流程。5057: The record enters the IGMP protocol processing condition and ends the process after it is not satisfied.

上述的离开处理机制,由于在处理流程中增加了对同一端口同一组下是否还有其他用户在观看该组播组代表的频道节目的判断,即步骤5055,故很好地解决了单端口多用户互相干扰的问题。The above-mentioned leaving processing mechanism, due to the addition of the judgment of whether there are other users watching the channel program represented by the multicast group under the same group on the same port in the processing flow, that is, step 5055, so it solves the problem of multiple calls on a single port. The problem of users interfering with each other.

图6表示出了针对用户异常离开(即未向上发送离开组播组报文且长期不使用组播组)而增加的老化处理流程,该流程是当一定时器(预先设置超时时间)超时溢出时触发的,包括如下流程:Figure 6 shows the aging processing flow that is added for the user to leave abnormally (that is, the leaving multicast group message is not sent up and the multicast group is not used for a long time). When triggered, including the following processes:

601:判断系统配置的快速离开功能是否打开,若是执行步骤602,若否则结束流程;601: Judging whether the quick leave function of the system configuration is enabled, if so, execute step 602, if not, end the process;

602:对端口组节点的特征信息记录进行遍历,将特征信息记录项的时间值减1;602: Traversing the feature information records of the port group nodes, and decrementing the time value of the feature information record item by 1;

603,判断端口组节点下是否所有特征信息记录项均为未使用状态,亦即是否所有特征信息记录的时间值均为0;若是执行步骤604;若否则结束流程,意味着该端口下还有其他用户在该组播组中,不能立即删除该组播组节点;603. Determine whether all feature information records under the port group node are unused, that is, whether the time value of all feature information records is 0; if yes, execute step 604; otherwise, end the process, which means that there are still Other users in the multicast group cannot immediately delete the multicast group node;

604:表示该端口下已不存在其他用户在该组播组中,故可以安全删除该组播组节点,然后结束流程。604: Indicates that there are no other users in this multicast group under this port, so the multicast group node can be safely deleted, and then the process ends.

如图7所示,为本发明提供的单端口多用户接入模式下的组播控制装置一实施例的结构框图,该装置包括报文内容分检模块710、加入报文处理模块720、存储模块730、离开报文处理模块740、进入IGMP协议处理模块750以及老化处理模块760,其中:As shown in Figure 7, it is a structural block diagram of an embodiment of the multicast control device under the single-port multi-user access mode provided by the present invention, the device includes a message content sorting module 710, a message processing module 720, a storage Module 730, leaving message processing module 740, entering IGMP protocol processing module 750 and aging processing module 760, wherein:

报文内容分检模块710,分别与加入报文处理模块720和离开报文处理模块730连接,用于将接收的IGMP报文进行内容分检,并将分检到的IGMP组播组加入报文或组播组离开报文分别进行合法性确定后,相应地输出给加入报文处理模块720和离开报文处理模块730处理;Message content sorting module 710 is connected with joining message processing module 720 and leaving message processing module 730 respectively, and is used for carrying out content sorting to the received IGMP message, and adding the IGMP multicast group that sorting arrives into report After text or multicast group leaves the message and carries out legitimacy determination respectively, it is output to join message processing module 720 and leave message processing module 730 processing accordingly;

该报文内容分检模块710,还与存储模块730连接,在宽带接入设备进行组播控制之前,用于为该宽带接入设备的每个端口在存储模块730中建立一个全局的组播组链表数组结构,以记录端口上所有组播组,并以组播组为索引,唯一标识一个节点,在该节点中设置端口用户的特征信息数组,以记录该用户的源IP地址或源MAC地址,并辅助设置时间值字段;该时间值字段的初始值,在IGMP的Snooping模式下赋值为老化时间,在IGMP的Proxy模式下赋值为最后一个组成员查询时间间隔加1。The message content sorting module 710 is also connected to the storage module 730, and is used to establish a global multicast in the storage module 730 for each port of the broadband access device before the broadband access device performs multicast control Group linked list array structure to record all multicast groups on the port, and use the multicast group as an index to uniquely identify a node, set the feature information array of the port user in this node to record the source IP address or source MAC of the user address, and assist in setting the time value field; the initial value of the time value field is assigned as the aging time in IGMP Snooping mode, and assigned as the last group member query time interval plus 1 in IGMP Proxy mode.

加入报文处理模块720,分别与存储模块730和进入IGMP协议处理模块750连接,用于对合法的加入报文中的信息进行提取,根据端口组信息判断相应的端口组节点存在,并根据特征信息判断该端口组节点已存在对应的记录,则更新该特征信息记录中的时间值字段(即复位为初始值);若判断相应的端口组节点不存在,则创建相应的端口组节点及对应的特征信息记录;若判断相应的端口组节点存在,但判断该端口组节点尚不存在对应的记录,则创建对应的特征信息记录;然后,将特征记录中的时间值字段更新;将建立的端口组节点数据结构存入存储模块730中,并将组播组加入报文输出给进入IGMP协议处理模块750处理;Adding message processing module 720, connected with storage module 730 and entering IGMP protocol processing module 750 respectively, used for extracting the information in the legal adding message, judging the existence of the corresponding port group node according to the port group information, and according to the characteristic If the information judges that the port group node has a corresponding record, update the time value field in the feature information record (that is, reset it to the initial value); if it judges that the corresponding port group node does not exist, create the corresponding port group node and the corresponding If it is determined that the corresponding port group node exists, but it is judged that the port group node does not have a corresponding record, then create the corresponding feature information record; then, update the time value field in the feature record; The port group node data structure is stored in the storage module 730, and the multicast group join message is output to the IGMP protocol processing module 750 for processing;

存储模块730,用于作为加入报文或离开报文处理过程中建立或更新端口组节点数据结构的存储媒介;The storage module 730 is used as a storage medium for establishing or updating the data structure of the port group node during the processing of the join message or the leave message;

离开报文处理模块740,分别与存储模块730和进入IGMP协议处理模块750连接,用于将的合法离开报文中的信息进行提取,根据端口组信息(端口号、组播组号)判断相应的端口组节点存在,则根据特征信息将存储模块730中相应的记录项清空;当确认快速离开功能已打开,且判断存储模块730中该端口组中所有特征信息记录项均为空,或者,确认快速离开功能未打开,则将组播组离开报文输出给进入IGMP协议处理模块750处理;Leave message processing module 740, be connected with memory module 730 and enter IGMP protocol processing module 750 respectively, be used for extracting the information in the legal leaving message, judge corresponding according to port group information (port number, multicast group number) If the port group node exists, the corresponding record item in the storage module 730 is cleared according to the feature information; when it is confirmed that the quick leave function is turned on, and it is judged that all feature information record items in the port group in the storage module 730 are empty, or, Confirm that the fast leaving function is not opened, then the multicast group leaves the message output to enter the IGMP protocol processing module 750 for processing;

进入IGMP协议处理模块750,用于根据输入的报文中IGMP协议工作状态确定进入IGMP Snooping处理或IGMP Proxy处理;Enter the IGMP protocol processing module 750, for determining to enter IGMP Snooping processing or IGMP Proxy processing according to the IGMP protocol working state in the input message;

老化处理模块760,与存储模决730连接,用于在确定快速离开功能使能时,遍历端口组节点的特征信息记录,将特征信息记录项的时间值减1;当判断该端口组节点下所有特征信息记录的时间值均为0(即端口组节点下所有用户的特征信息记录项均为未使用状态)时,删除该组播组节点。The aging processing module 760 is connected with the storage module 730, and is used for traversing the feature information records of the port group nodes when it is determined that the fast leaving function is enabled, and subtracting 1 from the time value of the feature information record items; When the time values of all characteristic information records are 0 (that is, the characteristic information record items of all users under the port group node are unused), delete the multicast group node.

以上实施例仅仅用于说明本发明,而非用于限制本发明。譬如,上述装置中各个功能模块的划分,或者各功能模块的名称,均可采用与上述结构不同或模块名称不同但实质功能相同的结构或名称。任何与本发明装置在结构上不同或在模块名称上不同但实质精神相同的装置,均应处在本发明所要求保护的权利要求范围内。The above embodiments are only used to illustrate the present invention, not to limit the present invention. For example, the division of each functional module in the above-mentioned device, or the name of each functional module, may adopt a structure or name that is different from the above-mentioned structure or a module with a different name but the same substantial function. Any device that is different in structure or in module names from the device of the present invention but has the same essential spirit shall fall within the scope of the claims of the present invention.

综上所述,本发明解决了在单端口多用户接入模式且组播的快速离开功能使能的应用场景下存在的问题,使得同一端口下不同的用户之间观看IPTV节目进行频道切换过程中能够互不干扰,并尽可能地减少了无用节目流的传送,因而节省了端口的带宽资源;因此,能够为IPTV用户提供出更好的收视体验。In summary, the present invention solves the problems existing in the application scenario where the single-port multi-user access mode and the multicast fast leave function are enabled, so that different users under the same port watch IPTV programs to perform channel switching process It can not interfere with each other, and reduce the transmission of useless program streams as much as possible, thus saving the bandwidth resource of the port; therefore, it can provide IPTV users with better viewing experience.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。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.

Claims (11)

1. the multicast control method under the single-port and multi-user access mode is characterized in that said method comprises:
On broadband access equipment, set up a global port group linked list array structure for each port; The port set chained list of each port is used to write down all multicast group that exist on the port, and is index with said multicast group; Node of unique identification; The characteristic information array of said port user is set in said node, with source IP address or the source MAC that writes down said user, and the auxiliary time value field that is provided with;
Broadband access equipment is received the IGMP IGMP message of a port,
When said message is the processing that joins message when adding the multicast group message: the information of confirming the said message of said message back extraction rationally; Do not exist if judge the multicast group node of said port according to said information; Then set up the multicast group node and the corresponding characteristic information record thereof of this port, and the time value field in the said characteristic information is updated to initial value; After the renewal of accomplishing said time value field, confirm to get into corresponding IGMP according to the operating state of said IGMP and handle;
When said message is to carry out leave message when leaving the multicast group message to handle: the information of confirming the said message of said message back extraction rationally; Exist if judge the multicast group node of said port according to said information; And have corresponding characteristic information record, then empty said characteristic information record; Confirm to leave fast function enables and said multicast group node in all characteristic informations records when being sky, confirm to get into corresponding IGMP according to the operating state of said IGMP and handle.
2. according to the described method of claim 1, it is characterized in that said characteristic information also comprises the user's of said port source IP address or in media access control MAC address, source and the virtual LAN VLAN information one or more; Carry out said joining message and handle, then directly the time value field in the said characteristic information is upgraded if judge the said multicast group node existence of said port and have corresponding said characteristic information record; Perhaps, exist if judge the multicast group node of said port, but do not have corresponding characteristic information record, then set up this characteristic information record, and the time value field in the said characteristic information is upgraded.
3. according to the described method of claim 2, it is characterized in that, carry out said leave message and handle, confirming saidly when leaving function fast and not enabling, confirm to get into corresponding IGMP according to the operating state of said IGMP and handle.
4. according to each described method of claim 1 to 3; It is characterized in that; The initial value of said time value, assignment is an ageing time under the Snooping of said IGMP pattern, assignment adds 1 at interval for last group membership's query time under the Proxy of said IGMP pattern.
5. according to the described method of claim 4, it is characterized in that said method also comprises:, define a timer, and time-out time is set in advance for said timer to the improper user who leaves in the multicast group of said port; When said timer expiry overflows, leave fast under the prerequisite that function enables said, travel through the characteristic information record of the multicast group node of said port, wherein said time value is subtracted 1; After the said time value of judging all said characteristic information record items all is kept to 0, said multicast group and said characteristic information thereof are write down item from said port deletion; The said improper user who leaves does not promptly send to said broadband access equipment and saidly leaves the multicast group message and do not use the user of said multicast group for a long time.
6. the multicast control device under the single-port and multi-user access mode is characterized in that said device comprises: the processing module that joins message, memory module, leave message processing module and get into IGMP IGMP processing module, wherein:
The said processing module that joins message; Be connected with said entering IGMP processing module with said memory module respectively; Being used for confirming as the legal information that joins message extracts;, then create said multicast group node and characteristic of correspondence information record thereof, and the time value field in the said characteristic information is updated to initial value if judging the multicast group node of corresponding ports does not exist according to said information; After the renewal of accomplishing said time value field, deposit the said multicast group node data structure of said port in said memory module, and said joining message exported to said entering IGMP processing module and handled;
Said memory module is used for joining message or the storage medium of the said multicast group node data structure of the said port that the leave message processing procedure is set up as said;
Said leave message processing module; Be connected with said entering IGMP processing module with said memory module respectively; The information that is used for confirming as legal leave message is extracted; Exist as if the multicast group node of judging corresponding ports according to said information, and have corresponding characteristic information record, then empty said characteristic information record; Confirm to leave fast function enables and said multicast group node in all characteristic informations records when being sky, said leave message is exported to said entering IGMP processing module handles;
Said entering IGMP processing module is used for confirming that according to the said message operating state of input entering IGMP Snooping handles or gets into IGMP Proxy and handles.
7. according to the described device of claim 6; It is characterized in that the said characteristic information that the said processing module that joins message is created also comprises the user's of said port source IP address or in media access control MAC address, source and the virtual LAN VLAN information one or more; The said processing module that joins message is then directly upgraded the time value field in the said characteristic information if judge the said multicast group node existence of said port and have corresponding said characteristic information record; Perhaps, exist if judge the said multicast group node of said port, but do not have corresponding characteristic information record, then set up this characteristic information record, and the time value field in the said characteristic information is upgraded.
8. according to the described device of claim 7, it is characterized in that said leave message processing module is being confirmed saidly when leaving function fast and not enabling, and said leave message is exported to said entering IGMP processing module handle.
9. according to each described device of claim 6 to 8; It is characterized in that; Said device also comprises message content go-on-go module, is connected with said leave message processing module with the said processing module that joins message respectively, is used for the IGMP message that receives is carried out the content go-on-go; And to go-on-go to said join message or said leave message is correspondingly carried out after legitimacy confirms, correspondingly export to said processing module and the said leave message processing module of joining message and handle.
10. according to the described device of claim 9; It is characterized in that said message content go-on-go module also is connected with said memory module, be used for before broadband access equipment carries out multicast control; In said memory module, set up the multicast group linked list array structure of an overall situation for each port of said broadband access equipment; Writing down all multicast group of said port, and be index with said multicast group, node of unique identification; The characteristic information array of port user is set in said node, and auxiliary said time value field is set; The initial value of said time value field, assignment is an ageing time under the Snooping of IGMP pattern, assignment adds 1 at interval for last group membership's query time under the Proxy of IGMP pattern.
11., it is characterized in that said device also comprises the burin-in process module according to the described device of claim 10; Be connected with said memory module; Be used for the improper user who leaves of multicast group, define a timer, and time-out time is set in advance for said timer to said port; When said timer expiry overflows, leave fast under the prerequisite that function enables said, travel through the characteristic information record of the multicast group node of said port, wherein said time value is subtracted 1; After the said time value of judging all said characteristic information record items all is kept to 0, then said multicast group and said characteristic information thereof are write down item from said port deletion; The said improper user who leaves does not promptly send to said broadband access equipment and saidly leaves the multicast group message and do not use the user of said multicast group for a long time.
CN200810110666A 2008-06-12 2008-06-12 Multicast control method under single-port and multi-user access mode and device Expired - Fee Related CN101605040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810110666A CN101605040B (en) 2008-06-12 2008-06-12 Multicast control method under single-port and multi-user access mode and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810110666A CN101605040B (en) 2008-06-12 2008-06-12 Multicast control method under single-port and multi-user access mode and device

Publications (2)

Publication Number Publication Date
CN101605040A CN101605040A (en) 2009-12-16
CN101605040B true CN101605040B (en) 2012-10-10

Family

ID=41470601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810110666A Expired - Fee Related CN101605040B (en) 2008-06-12 2008-06-12 Multicast control method under single-port and multi-user access mode and device

Country Status (1)

Country Link
CN (1) CN101605040B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970152A (en) * 2012-11-23 2013-03-13 上海斐讯数据通信技术有限公司 Method for statically realizing Internet group management protocol (IGMP) Snooping
CN103220276B (en) * 2013-03-29 2016-09-28 深圳创维数字技术有限公司 A kind of method of network insertion, gateway and system
CN106301814A (en) * 2015-06-08 2017-01-04 中兴通讯股份有限公司 A kind of method and device realizing multicast service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783831A (en) * 2004-12-02 2006-06-07 华为技术有限公司 Method for realizing video multicast service medium frequency switch
CN1881913A (en) * 2005-06-15 2006-12-20 上海贝尔阿尔卡特股份有限公司 User interface multicast managing method in network access equipment and its apparatus
CN1929638A (en) * 2006-10-20 2007-03-14 中兴通讯股份有限公司 Management method for multicast members of wireless LAN IP multicast frame transmission
CN101056255A (en) * 2006-06-09 2007-10-17 华为技术有限公司 A multicast channel control method and the device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783831A (en) * 2004-12-02 2006-06-07 华为技术有限公司 Method for realizing video multicast service medium frequency switch
CN1881913A (en) * 2005-06-15 2006-12-20 上海贝尔阿尔卡特股份有限公司 User interface multicast managing method in network access equipment and its apparatus
CN101056255A (en) * 2006-06-09 2007-10-17 华为技术有限公司 A multicast channel control method and the device
CN1929638A (en) * 2006-10-20 2007-03-14 中兴通讯股份有限公司 Management method for multicast members of wireless LAN IP multicast frame transmission

Also Published As

Publication number Publication date
CN101605040A (en) 2009-12-16

Similar Documents

Publication Publication Date Title
EP2202919B1 (en) Method and apparatus for controlling the upward multicast traffic
US7228356B2 (en) IGMP expedited leave triggered by MAC address
EP2334073B1 (en) Internet protocol multicast content delivery
CN101207501B (en) IP broadcasting system and a multicast group management apparatus for the same
US7606228B2 (en) Home gateway system for providing optical communication packet data interface function and home broadcast service providing method using the same
CN100536399C (en) A distributed controllable multicast system of passive optical network and its implementation method
US20070011350A1 (en) Method and apparatus for multicast management of user interface in a network access device
EP2148468B1 (en) Method, equipment and system for realizing video live broadcast
EP1909439B1 (en) An implementing method and an apparatus for enhancing the multicast service manageability
US8677439B2 (en) Method and system for reducing channel switching delay of an IPTV
CN100583801C (en) A method, system and switching device for dynamically establishing multicast virtual LAN
CN101766000A (en) Method and apparatus for managing multicast group
CN102447565B (en) A kind of method and system realizing multicast control at broadband access network
JP5548696B2 (en) Multicast quality of service module and method
WO2007059679A1 (en) A method for processing the abnormal multicast service and a network equipment thereof
CN101094087A (en) Controllable multicast system under environment of passive optical network, and implementing method
CN101141276A (en) Realization method of controllable multicast service
US8238337B1 (en) Hybrid multicast switch employing network-layer routing
CN100563206C (en) Method and device for controlling multicast channel
CN101605040B (en) Multicast control method under single-port and multi-user access mode and device
CN101166194A (en) A system and method for realizing distributed acceptance control
CN100502346C (en) Realization Method of Fast Switching of Multicast Channels
CN101166084B (en) Secure method for preventing multicast user from attacking
CN101145922B (en) A system and method for realizing reliable exit of multi-cast terminal
EP1863219B1 (en) Method and system for processing abnormally becoming power off of a terminal of multicast user

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121010