WO2014187380A1 - 组播报文响应方法和装置 - Google Patents
组播报文响应方法和装置 Download PDFInfo
- Publication number
- WO2014187380A1 WO2014187380A1 PCT/CN2014/078687 CN2014078687W WO2014187380A1 WO 2014187380 A1 WO2014187380 A1 WO 2014187380A1 CN 2014078687 W CN2014078687 W CN 2014078687W WO 2014187380 A1 WO2014187380 A1 WO 2014187380A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- multicast
- response
- time
- packet
- channels
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/185—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/1863—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports
- H04L12/1868—Measures taken after transmission, e.g. acknowledgments
- H04L12/1872—Measures taken after transmission, e.g. acknowledgments avoiding ACK or NACK implosion
Definitions
- the present invention relates to the field of communications, and in particular to a multicast message response method and apparatus.
- the multicast technology has the advantages that the network bandwidth does not increase linearly with the number of users on the basis of the transmission efficiency, and can effectively save the Internet Protocol Television (IPTV) media server and The load that carries the network. Therefore, in order to deploy IPTV services efficiently and economically, multicast technology is often used for end-to-end media streaming.
- IPTV Internet Protocol Television
- the IPTV node has a plurality of media ports connected to the switching device for receiving the program code stream and providing the live broadcast service.
- the node sends an Internet Group Management Protocol (IGMP) join request to the switching device at the network port where the channel is located, and then the switching device forms a multicast entry (s, g).
- IGMP Internet Group Management Protocol
- the multicast code stream will be sent to the requested network port.
- the multicast entry has an aging time.
- the switching device periodically broadcasts IGMP multicast query messages (the default is every 125 seconds), and sets the timer to wait for a reply (that is, the maximum response time of the query. The default is 10 seconds).
- the switching device updates the aging time of the corresponding multicast entry after receiving the report.
- FIG. 1 is a schematic diagram of an IPTV node responding to a multicast query message according to the related art. As shown in FIG. 1, if an IPTV node has 10 network ports connected to a switching device, each network port has 100 multicast channels, and is received. After the IGMP Query message, the multicast inbound channel of each network port may give a multicast response to the switching device. As long as the maximum response time of the IGMP protocol is met, the IGMP response packet can be sent to the switch within the maximum response time.
- the inventor of the present invention found that there is no unified and reasonable scheduling mechanism for the multicast channel in the same network port or even between different network ports to respond to multicast messages in the related art. Therefore, in the case of a large number of multicast channels (similar to a terminal that receives multiple multicast streams), since the multicast channels do not know each other's existence, if the IGMP response is randomly responded to the switch, When the performance of each multicast channel is similar to that of multicast packets, it is likely that a large number of multicast channels send IGMP responses to the switch in a short time. The switching device is likely to receive the message in a short time. Thousands of IGMP reports, which will far exceed the ability of the switching device to process multicast protocol packets. Some multicast reports will be discarded. As a result, the corresponding multicast entries will be aged. Flow to this part of the multicast channel.
- a multicast packet response method including: acquiring a multicast packet, and acquiring a maximum response time of the multicast packet according to the multicast packet; And the maximum response time, the response message of each multicast channel of the plurality of multicast channels is sent uniformly, wherein the multiple multicast channels are multicast channels to be responded to the multicast message.
- the multiple multicast channels are multicast channels corresponding to the same network port in the media server.
- the sending the response message of each multicast channel uniformly according to the maximum response time comprises: determining, according to the maximum response time and the number of the multiple multicast channels, adjacent sending The sending interval of the response message; sending the response message of the multiple multicast channels according to the sending interval.
- the sending the response message of each multicast channel uniformly according to the maximum response time comprises: responding according to the maximum response time and the number of the multiple multicast channels, The total time of the multicast packet is divided into a predetermined number of time segments; and the one of the plurality of multicast channels is separately sent in each of the time segments Response message.
- the sending the response message of the one or more multicast channels of the multiple multicast channels respectively comprises: responding to the multicast report according to each of the plurality of multicast channels
- the chronological order of the texts is sent in sequence, and the response packets corresponding to the multicast channels that respond to the multicast packets are sent in priority.
- the number of the response messages sent in each time period is less than or equal to a predetermined value, wherein the predetermined value is determined according to a capability of the receiving end to process the response message.
- the sending the response message of each multicast channel evenly according to the maximum response time comprises: using a preset algorithm according to the maximum response time and the information of the multiple multicast channels And mapping, by the multicast channel, the time when the response packet is sent to the total time for responding to the multicast packet, and obtaining, by the multicast channel, the multicast channel to send the response packet. Time; according to the time, respectively sending the response message of each multicast channel.
- a multicast packet response apparatus including: an obtaining module, configured to acquire a multicast packet, and obtain the multicast packet according to the multicast packet a maximum response time; the sending module is configured to uniformly send a response message of each of the plurality of multicast channels according to the maximum response time, wherein the plurality of multicast channels are to be responded to Multicast channel for multicast messages.
- the sending module includes: a determining unit, configured to determine, according to the maximum response time and the number of the multiple multicast channels, a sending interval of the response message sent by the neighboring device; the first sending unit, setting And sending the response packet of the multiple multicast channels according to the sending interval.
- the sending module includes: a dividing unit, configured to divide the total time for responding to the multicast packet into a predetermined number of times according to the maximum response time and the number of the multiple multicast channels a second sending unit, configured to separately send the response message of one or more of the plurality of multicast channels in each of the time periods.
- the sending module includes: a mapping unit, configured to: according to the maximum response time and the information of the multiple multicast channels, use a preset algorithm to send the response message to each multicast channel The time is mapped to the total time for responding to the multicast message, and the time for each multicast channel to send the response message is obtained; the third sending unit is set to be respectively according to the time Sending the response message of each multicast channel.
- the multicast response packet is obtained, and the maximum response time of the multicast packet is obtained according to the multicast packet; and each multicast of the multiple multicast channels is uniformly sent according to the maximum response time.
- the mode of the response packet of the channel, where the multiple multicast channels are the multicast channels to be responded to the multicast packet, and the large number of IGMP multicast response messages that erupt in a short period of time may exceed the IGMP of the switch.
- the packet processing capability causes the multicast entry to age and the channel code stream is interrupted, which improves the reliability and stability of the system.
- FIG. 3 PN22097 1 is a schematic diagram of an IPTV node responding to a multicast query message according to the related art
- FIG. 2 is a schematic flowchart of a multicast message response method according to an embodiment of the present invention
- FIG. 3 is a multicast message according to an embodiment of the present invention
- FIG. 4 is a schematic diagram of a preferred structure of a multicast message response apparatus according to an embodiment of the present invention
- FIG. 5 is a schematic diagram of a preferred structure of a multicast message response apparatus according to an embodiment of the present invention
- FIG. 7 is a flow chart showing a method for controlling a multicast report transmission rate according to a preferred embodiment of the present invention.
- DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, may differ from this The steps shown are performed in the order shown or described. This embodiment provides a multicast packet response method. FIG.
- Step S202 Acquire a group
- the message is broadcasted, and the maximum response time of the multicast packet is obtained according to the multicast packet.
- Step S204 the response packet of each multicast channel of the multiple multicast channels is uniformly sent according to the maximum response time, where Multiple multicast channels are multicast channels of multicast packets to be responded to.
- the response time of the multicast channel is determined by the response time of the multicast channel when the response message is sent, and the response packet of the multicast channel responding to the multicast packet is actively performed in this embodiment.
- the plan achieves a linear uniform transmission response message, which solves the problem that a large number of IGMP multicast response messages erupted in a short period of time may exceed the IGMP packet processing capability of the switch, causing the multicast entry to age and the channel code stream to be interrupted. Improve system reliability and stability.
- the multiple multicast channels are multicast channels corresponding to the same network port in the media server.
- network port 0 eth0
- each of the other network ports respectively uses the method provided in this embodiment to uniformly send the response message.
- the step S204 includes: determining, according to the maximum response time and the number of the plurality of multicast channels, a sending interval of the response message sent by the neighboring device; sending, according to the sending interval, the response packet of the multiple multicast channels. Text. In this manner, by setting the transmission interval of the adjacent response message, all the response messages can be uniformly transmitted in the response time.
- a plurality of response messages can be sent at the same time, and the interval between the multiple response messages and the next multiple response packets can be determined according to the maximum response time and the number of multiple multicast channels. .
- the sending interval corresponding to each network port may be uniformly set, or may be separately set.
- step S204 includes: dividing the total time for responding to the multicast message into a predetermined number of time segments according to the maximum response time and the number of the plurality of multicast channels, where the predetermined number may be less than or equal to multiple The number of multicast channels; respectively, sending response messages of one or more of the plurality of multicast channels in each time period.
- the total time of the multicast message can be segmented, so that one or more response messages of the multicast channel are implemented in each time period, thereby achieving linear uniformity.
- the total time for responding to the multicast message may be the time period indicated by the maximum response time.
- the total time for responding to the multicast message may not include one or more of the time periods indicated by the maximum response time.
- the multicast channel responds to the response time of the multicast packet.
- the chronological order of the multicast packets may be responded to according to the multicast channels in the plurality of multicast channels.
- the response packet is sent in the same manner.
- the response packet corresponding to the multicast channel that responds to the multicast packet is sent preferentially.
- the response packet of the multicast packet may be sent in the form of a queue, that is, all the response packets are respectively added to one or more queues according to the generated time, and are scheduled according to the predetermined time interval (corresponding to the predetermined reservation) The number of time periods) are dequeued separately and finally sent to the receiving end.
- step S204 includes: mapping, according to the maximum response time and the information of the multiple multicast channels, a time for each multicast channel to send the response message to the total time for responding to the multicast message by using a preset algorithm. , get
- each multicast channel is used to send a response message. According to the time, each multicast channel response message is sent. In this manner, a method is provided for mapping the time when each multicast channel sends a response packet to the total time that can respond to the multicast packet, thereby planning the time for sending the response packet for each multicast channel.
- the time for each multicast channel to send the response packet is relatively determined within the total time indicated by the maximum response time for responding to the multicast message, so that the response message can be sent linearly and uniformly.
- the information of the multiple multicast channels includes the identification information of each multicast channel; preferably, the preset algorithm includes a hash algorithm.
- FIG. 3 is a schematic structural diagram of a multicast packet response apparatus according to an embodiment of the present invention.
- the apparatus may include: an obtaining module 32 and a sending module 34, where the obtaining module 32 is configured to acquire a multicast report. And obtaining, according to the multicast packet, a maximum response time of the multicast packet; the sending module 34 is coupled to the obtaining module 32, and configured to send each multicast of the multiple multicast channels linearly and uniformly according to at least the maximum response time.
- the modules and units involved in the embodiments of the present invention may be implemented by software, or may be implemented by hardware.
- the described modules and units in this embodiment may also be disposed in a processor.
- a processor includes an obtaining module 32 and a sending module 34.
- the name of the module does not constitute a limitation on the module itself.
- the obtaining module can also be described as "set to obtain multicast packets and obtain multicast packets according to the multicast packets. Module with maximum response time.”
- the multiple multicast channels are multicast channels corresponding to the same network port in the media server.
- the sending module 34 includes: a determining unit, configured to determine a sending interval of the response message sent by the neighbor according to the maximum response time and the number of the plurality of multicast channels; the first sending unit is coupled to the determining module, configured to be configured according to Send interval, send response messages of multiple multicast channels.
- FIG. 4 is a schematic diagram of a preferred structure of a multicast message response apparatus according to an embodiment of the present invention. As shown in FIG. 4, preferably, the sending module 34 includes: a dividing unit 342, configured to set a maximum response time according to a maximum response time and multiple multicasts.
- the number of channels, the total time for responding to the multicast message is divided into a predetermined number of time segments; the second transmitting unit 344 is coupled to the dividing unit 342, and is configured to respectively send multiple multicast channels in each time period. Response message for one or more multicast channels.
- the second sending unit 344 is configured to respond to the multicast message according to the multicast channel in the multiple multicast channels in the case of respectively transmitting response messages of one or more of the plurality of multicast channels.
- the response packet is sent in sequence, and the response packet corresponding to the multicast channel that responds to the multicast packet is sent in priority.
- the number of sending response messages in the same time period is less than or equal to a predetermined value, and the predetermined value is determined according to the capability of the receiving end to process the response message.
- FIG. 5 is a schematic diagram of a preferred structure of a multicast message response apparatus according to an embodiment of the present invention. As shown in FIG.
- the sending module 34 includes: a mapping unit 346, configured to set a maximum response time and multiple multicasts. Channel information, using a preset algorithm to map the time at which each multicast channel sends the response message to the total time for responding to the multicast message, and obtain the time for each multicast channel to send the response message;
- the third transmitting unit 348 is coupled to the mapping unit 346 and is configured to respectively transmit response messages for each multicast channel according to the time.
- the information of the multiple multicast channels includes identification information of each multicast channel
- the preset algorithm includes a hash algorithm. Description and description are made below in conjunction with the preferred embodiments.
- FIG. 6 is a schematic diagram of a working process of a media server responding to a multicast query message according to a preferred embodiment of the present invention.
- the method for controlling the sending rate of the IPTV multicast report message on the content delivery network (CDN) side includes the following solutions: After receiving the multicast query message, the network port of the media server obtains the maximum carried in the packet.
- FIG. 7 is a schematic flowchart of a method for controlling a multicast report sending rate according to a preferred embodiment of the present invention. As shown in FIG. 7, the path includes the following steps:
- Step S701 the upper layer service module sends a command for creating a channel to the media processing module, and the carrying parameters include a channel number, a multicast IP, a media server external port IP, and the like;
- Step S702 the media processing module opens a channel to create a channel according to the parameter, and passes the The network port transceiver module sends a multicast join request to the switching device.
- Step S703 The media processing module returns a channel creation result to the service module.
- Step S704 the switching device receives the network port request, generates a multicast entry, and pushes the code stream to Step S705, the above steps S701 to S704 are repeated to create a plurality of multicast channels;
- Step S706 the switching device sends a multicast query to each network port according to the configured period;
- Step S707 the media server network port receives the multicast
- the query is sent to the media processing module for processing; in step S708, the media processing module parses the query message to obtain the maximum response time, and the media server sequentially sends the IGMP response message of each multicast channel in sequence in a maximum response time, step S709,
- the media processing module calls the network port transceiver module to issue reports of all multicast channels in sequence.
- step S710 the switching device receives a multicast report updates the corresponding entry in the multicast.
- all the multicast reports are uniformly sent in the maximum response time, and the switching device can uniformly receive the multicast reports sent by all the network ports, and the received report packets will not be processed and the processing will not be processed. Discarded situation.
- Industrial Applicability According to the embodiment of the present invention, a multicast packet is obtained, and a maximum response time of the multicast packet is obtained according to the multicast packet; and at least one of the plurality of multicast channels is uniformly sent according to the maximum response time.
- the method of responding to the multicast channel, wherein the multiple multicast channels are multicast channels to be responded to the multicast packet, and the large number of IGMP multicast response messages that are erupted in a short period of time may be exceeded.
- the IGMP packet processing capability of the switch causes the multicast entries to age and the channel code stream to be interrupted, which improves the reliability and stability of the system.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了一种组播报文响应方法和装置,其中,该方法包括:获取组播报文,并根据组播报文获取该组播报文的最大响应时间;至少根据该最大响应时间,均匀地发送多个组播频道中每个组播频道的响应报文,其中,该多个组播频道为待响应该组播报文的组播频道。通过本发明,解决了短时间内爆发出的大量的因特网组管理协议(IGMP)组播响应报文可能超过交换机的IGMP报文处理能力导致组播条目老化而出现频道码流中断的问题,提高了系统的可靠性和稳定性。
Description
组播报文响应方法和装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种组播报文响应方法和装置。 背景技术 组播技术与单播技术相比, 在传输效率相当的基础上具有网络带宽不随用户数量 线性增长的优点, 可以有效地节约网路协议电视 (Internet Protocol Television, 简称为 IPTV) 媒体服务器和承载网络的负载。 因此, 为了高效且经济的部署 IPTV业务, 多 采用组播技术进行端到端的媒体流推送。
IPTV节点有多个媒体口连接到交换设备上,用以接收节目码流并向外提供直播服 务。 当一个组播频道创建时, 节点会在频道所在的网口给交换设备发送因特网组管理 协议 (Internet Group Management Protocol, 简称为 IGMP) 加入请求, 然后交换设备 形成一个组播条目(s, g),才会把该组播码流发给请求的网口。组播条目有老化时间, 交换设备定期广播 IGMP组播查询报文(默认是每隔 125秒), 并设置定时器等待回复 (就是查询的最大响应时间, 默认是 10秒), IPTV网口收到后发送组播报告, 交换设 备收到报告后就更新对应组播条目的老化时间。 如果在最大响应时间内没收到报告, 交换设备就认为节点没有响应此次查询。 如果一直没有收到 IGMP报告, 那么到达老 化时间的组播条目就会被删除。 图 1是根据相关技术的 IPTV节点响应组播查询报文的示意图, 如图 1所示, 如 果 IPTV节点有 10个网口连接交换设备,每个网口上有 100个组播频道,在收到 IGMP 查询报文后, 每个网口的组播入频道都可能给交换设备组播响应, 并且, 只要符合 IGMP协议最大响应时间要求, 在最大响应时间范围内给交换机 IGMP响应报文即可。 本发明的发明人在研究过程中发现, 在相关技术中同一个网口中乃至不同网口间 的组播频道响应组播报文时并没有一个统一、 合理的调度机制。 因此, 在组播频道多 的情况下(类似交换机上接了多个接收组播码流的终端), 由于各个组播频道之间并不 知道对方的存在, 如果随机回应 IGMP响应给交换机, 在各个组播频道响应组播报文 的性能相近的情况下, 很可能在短时间内大量的组播频道突然、 集中地发送 IGMP响 应给交换机, 那么交换设备很可能在很短时间内收到上千个 IGMP报告, 这将远远超 出了交换设备处理组播协议报文的能力, 部分组播报告的报文将被丢弃, 从而导致对 应的组播条目被老化, 导致交换设备不会推送码流到这部分组播频道。
1 PN22097
由此可见,短时间内爆发出的大量的 IGMP组播响应报文可能超过交换机的 IGMP 报文处理能力导致组播条目老化, 出现频道码流中断的情况。 针对相关技术中短时间内爆发出的大量的 IGMP组播响应报文可能超过交换机的 IGMP 报文处理能力导致组播条目老化而出现频道码流中断的问题, 目前尚未提出有 效的解决方案。 发明内容 本发明实施例提供了一种组播报文的响应方法和装置, 以至少解决短时间内爆发 出的大量的 IGMP组播响应报文可能超过交换机的 IGMP报文处理能力导致组播条目 老化而出现频道码流中断的问题。 根据本发明实施例的一个方面, 提供了一种组播报文响应方法, 包括: 获取组播 报文, 并根据所述组播报文获取所述组播报文的最大响应时间; 至少根据所述最大响 应时间, 均匀地发送多个组播频道中每个组播频道的响应报文, 其中, 所述多个组播 频道为待响应所述组播报文的组播频道。 优选地, 所述多个组播频道为媒体服务器中相同网口对应的组播频道。 优选地, 至少根据所述最大响应时间, 均匀地发送所述每个组播频道的所述响应 报文包括: 根据所述最大响应时间和所述多个组播频道的数目, 确定相邻发送的所述 响应报文的发送间隔; 根据所述发送间隔, 发送所述多个组播频道的所述响应报文。 优选地, 至少根据所述最大响应时间, 均匀地发送所述每个组播频道的所述响应 报文包括: 根据所述最大响应时间和所述多个组播频道的数目, 将用于响应所述组播 报文的总时间划分为预定数目的时间段; 在所述时间段中的每个时间段内分别发送所 述多个组播频道中的一个或多个组播频道的所述响应报文。 优选地, 分别发送所述多个组播频道中的一个或多个组播频道的所述响应报文包 括: 按照所述多个组播频道中的每个组播频道响应所述组播报文的时间先后次序, 依 次发送所述响应报文, 其中, 较先响应所述组播报文的组播频道对应的所述响应报文 优先发送。 优选地,在所述每个时间段中发送的所述响应报文的个数小于或等于预定值 ,其 中, 所述预定值是根据接收端处理所述响应报文的能力确定的。
PN22097
优选地, 至少根据所述最大响应时间, 均匀地发送所述每个组播频道的所述响应 报文包括: 根据所述最大响应时间和所述多个组播频道的信息, 采用预设算法将所述 每个组播频道将发送所述响应报文的时间映射到用于响应所述组播报文的总时间内, 得到所述每个组播频道用于发送所述响应报文的时间; 根据所述时间, 分别发送所述 每个组播频道的所述响应报文。 根据本发明实施例的另一个方面, 还提供了一种组播报文响应装置, 包括: 获取 模块, 设置为获取组播报文, 并根据所述组播报文获取所述组播报文的最大响应时间; 发送模块, 设置为至少根据所述最大响应时间, 均匀地发送多个组播频道中每个组播 频道的响应报文, 其中, 所述多个组播频道为待响应所述组播报文的组播频道。 其中, 所述发送模块包括: 确定单元, 设置为根据所述最大响应时间和所述多个 组播频道的数目, 确定相邻发送的所述响应报文的发送间隔; 第一发送单元, 设置为 根据所述发送间隔, 发送所述多个组播频道的所述响应报文。 优选地, 所述发送模块包括: 划分单元, 设置为根据所述最大响应时间和所述多 个组播频道的数目, 将用于响应所述组播报文的总时间划分为预定数目的时间段; 第 二发送单元, 设置为在所述时间段中的每个时间段内分别发送所述多个组播频道中的 一个或多个组播频道的所述响应报文。 优选地, 所述发送模块包括: 映射单元, 设置为根据所述最大响应时间和所述多 个组播频道的信息, 采用预设算法将所述每个组播频道将发送所述响应报文的时间映 射到用于响应所述组播报文的总时间内, 得到所述每个组播频道用于发送所述响应报 文的时间; 第三发送单元, 设置为根据所述时间, 分别发送所述每个组播频道的所述 响应报文。 通过本发明实施例, 采用获取组播报文, 并根据组播报文获取该组播报文的最大 响应时间; 至少根据该最大响应时间, 均匀地发送多个组播频道中每个组播频道的响 应报文的方式, 其中, 该多个组播频道为待响应该组播报文的组播频道, 解决了短时 间内爆发出的大量的 IGMP组播响应报文可能超过交换机的 IGMP报文处理能力导致 组播条目老化而出现频道码流中断的问题, 提高了系统的可靠性和稳定性。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中:
3 PN22097
图 1是根据相关技术的 IPTV节点响应组播查询报文的示意图; 图 2是根据本发明实施例的组播报文响应方法的流程示意图; 图 3是根据本发明实施例的组播报文响应装置的结构示意图; 图 4是根据本发明实施例的组播报文响应装置的优选结构示意图一; 图 5是根据本发明实施例的组播报文响应装置的优选结构示意图二; 图 6是根据本发明优选实施例的媒体服务器响应组播查询报文的工作示意图; 图 7是根据本发明优选实施例的控制组播报告发送速率的方法的流程示意图。 具体实施方式 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相 互组合。 下面将参考附图并结合实施例来详细说明本发明。 在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执 行, 并且, 虽然在流程图中示出了逻辑顺序, 但是在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤。 本实施例提供了一种组播报文响应方法, 图 2是根据本发明实施例的组播报文响 应方法的流程示意图, 如图 2所示, 该流程包括如下步骤: 步骤 S202, 获取组播报文, 并根据组播报文获取组播报文的最大响应时间; 步骤 S204, 至少根据最大响应时间, 均匀地发送多个组播频道中每个组播频道的 响应报文, 其中, 多个组播频道为待响应组播报文的组播频道。 通过上述步骤, 采用在最大响应时间所指示的用于响应该组播报文的时间内, 多 个组播频道均匀地发送响应报文的方式。 相对于相关技术中在发送响应报文时由组播 频道的响应时间来决定响应组播报文的时间的方式, 本实施例主动对多个组播频道响 应组播报文的响应报文进行规划从而实现了线性均匀发送响应报文, 解决了短时间内 爆发出的大量的 IGMP组播响应报文可能超过交换机的 IGMP报文处理能力导致组播 条目老化而出现频道码流中断的问题, 提高了系统的可靠性和稳定性。
ΡΝ22097
优选地, 多个组播频道为媒体服务器中相同网口对应的组播频道。 例如, 图 1中 的网口 0 ( eth0)。 优选地, 其他的每一个网口都分别采用本实施例中提供的方法实现 均匀地发送响应报文。 优选地, 步骤 S204包括: 根据最大响应时间和多个组播频道的数目, 确定相邻发 送的响应报文的发送间隔; 根据该发送间隔,发送所述多个组播频道的所述响应报文。 在本方式中, 通过设置相邻响应报文的发送间隔, 可以使得所有的响应报文在响应时 间中均匀地依次发送。 优选地, 还可以设置同一时间发送多个响应报文, 且该多个响 应报文与下一次发送的多个响应报文的发送间隔可以根据最大响应时间和多个组播频 道的数目进行确定。 优选地, 每个网口所对应的发送间隔可以统一设置, 也可以单独分别设置。 优选地, 步骤 S204包括: 根据最大响应时间和多个组播频道的数目, 将用于响应 组播报文的总时间划分为预定数目的时间段, 其中, 该预定数目可以小于或等于多个 组播频道的数目; 在每个时间段内分别发送多个组播频道中的一个或多个组播频道的 响应报文。在本方式中提供了一种将可以响应组播报文的总时间进行分段规划的方式, 使得在每一个时间段内实现一个或多个组播频道的响应报文, 从而实现了线性均匀地 发送响应报文。 用于响应组播报文的总时间可以是指最大响应时间所指示的时间段; 优选地, 用 于响应组播报文的总时间可以不包括最大响应时间所指示的时间段中一个或者多个组 播频道响应该组播报文的响应时间。 优选地,在分别发送多个组播频道中的一个或多个组播频道的响应报文的情况下, 可以按照多个组播频道中的组播频道响应组播报文的时间先后次序, 依次发送响应报 文, 优选地, 较先响应组播报文的组播频道对应的响应报文优先发送。 例如, 可以采 用队列的形式发送组播报文的响应报文, 即将所有的响应报文按照生成的时间, 分别 加入一个或者多个队列中, 并按照预定的时间间隔 (对应于上述划分的预定数目的时 间段) 分别出队, 最终发送给接收端。 优选地, 为了保证接收端的处理性能, 还可以对相同时间段中发送响应报文的最 大个数进行设置, 所设置的预定值用于表示相同时间段中发送响应报文的最大个数, 且该预定值根据接收端处理响应报文的能力来确定。 优选地, 步骤 S204包括: 根据最大响应时间和多个组播频道的信息, 采用预设算 法将每个组播频道将发送响应报文的时间映射到用于响应组播报文的总时间内, 得到
5 PN22097
每个组播频道用于发送响应报文的时间; 根据该时间, 分别发送每个组播频道的响应 报文。 在本方式中提供了一种将每个组播频道发送响应报文的时间映射到可以响应组 播报文的总时间中, 从而对每个组播频道发送响应报文的时间进行规划的方式, 使得 每个组播频道发送响应报文的时间在最大响应时间所指示的用于响应组播报文的总时 间内相对确定, 从而可以实现线性均匀地发送响应报文。 优选地, 多个组播频道的信息包括每个组播频道的标识信息; 优选地, 预设算法 包括散列算法。 本实施例还提供了一种组播报文响应装置, 该装置用于实现上述组播报文响应方 法, 装置实施例中描述的装置具体的实现过程在方法实施例中已经进行过详细说明, 在此不再赘述。 图 3是根据本发明实施例的组播报文响应装置的结构示意图, 如图 3所示, 该装 置可以包括: 获取模块 32和发送模块 34, 其中, 获取模块 32, 设置为获取组播报文, 并根据组播报文获取组播报文的最大响应时间; 发送模块 34耦合至获取模块 32, 设 置为至少根据最大响应时间, 线性均匀地分别发送多个组播频道中每个组播频道的响 应报文, 其中, 多个组播频道为待响应组播报文的组播频道。 本发明的实施例中所涉及到的模块、 单元可以通过软件的方式实现, 也可以通过 硬件的方式来实现。本实施例中的所描述的模块、单元也可以设置在处理器中, 例如, 可以描述为: 一种处理器包括获取模块 32和发送模块 34。 其中, 这些模块的名称在 某种情况下并不构成对该模块本身的限定, 例如, 获取模块还可以被描述为 "设置为 获取组播报文并根据组播报文获取组播报文的最大响应时间的模块"。 优选地, 多个组播频道为媒体服务器中相同网口对应的组播频道。 优选地, 发送模块 34包括: 确定单元, 设置为根据最大响应时间和多个组播频道 的数目, 确定相邻发送的响应报文的发送间隔; 第一发送单元耦合至确定模块, 设置 为根据发送间隔, 发送多个组播频道的响应报文。 图 4是根据本发明实施例的组播报文响应装置的优选结构示意图一,如图 4所示, 优选地, 发送模块 34包括: 划分单元 342, 设置为根据最大响应时间和多个组播频道 的数目, 将用于响应组播报文的总时间划分为预定数目的时间段; 第二发送单元 344 耦合至划分单元 342, 设置为在每个时间段内分别发送多个组播频道中的一个或多个 组播频道的响应报文。
PN22097
优选地, 第二发送单元 344设置为在分别发送多个组播频道中的一个或多个组播 频道的响应报文的情况下, 按照多个组播频道中的组播频道响应组播报文的时间先后 次序, 依次发送响应报文, 其中, 较先响应组播报文的组播频道对应的响应报文优先 发送。 优选地, 相同时间段中发送响应报文的个数小于或等于预定值, 该预定值根据接 收端处理响应报文的能力确定。 图 5是根据本发明实施例的组播报文响应装置的优选结构示意图二,如图 5所示, 优选地, 发送模块 34包括: 映射单元 346, 设置为根据最大响应时间和多个组播频道 的信息, 采用预设算法将每个组播频道将发送响应报文的时间映射到用于响应组播报 文的总时间内, 得到每个组播频道用于发送响应报文的时间; 第三发送单元 348耦合 至映射单元 346, 设置为根据该时间, 分别发送每个组播频道的响应报文。 优选地, 多个组播频道的信息包括每个组播频道的标识信息, 该预设算法包括散 列算法。 下面结合优选实施例进行描述和说明。 本优选实施例提供了一种 IPTV系统中控制组播报告报文发送速率的方法和系统, 可以用于数据设备处理组播报告受限的网络环境下, 控制 IPTV节点大量组播报告报 文发送速率。 图 6是根据本发明优选实施例的媒体服务器响应组播查询报文的工作示意图, 如 图 6所示,本发明优选实施例提供的在交换设备处理组播协议报文能力有限的环境下, 内容分发网络 (Content Delivery Network, 简称为 CDN) 侧控制 IPTV组播报告报文 发送速率的方法包括如下方案: 媒体服务器的网口收到组播查询报文后, 获取该报文中携带的最大响应时间参数 T, 媒体服务器在最大响应时间内统一线性均匀的依次发送每个组播频道的 IGMP 响 应报文, 直到发送完所有的组播报告报文。 下面对本优选实施例的实现过程进行进一步描述和说明。 图 7是根据本发明优选实施例的控制组播报告发送速率的方法的流程示意图, 如 图 7所示, 该路程包括如下步骤:
PN22097
步骤 S701, 上层业务模块下发创建频道的命令给媒体处理模块, 携带参数包括频 道号、 组播 IP、 媒体服务器外口 IP等; 步骤 S702, 媒体处理模块根据参数打开一个通道创建频道, 并通过网口收发模块 向交换设备发组播加入请求; 步骤 S703 , 媒体处理模块返回频道创建结果给业务模块; 步骤 S704,交换设备收到网口的请求,生成一个组播条目,并推送码流给该网口; 步骤 S705, 重复上述步骤 S701~S704, 创建多个组播频道; 步骤 S706, 交换设备按配置的周期向各网口发送组播查询; 步骤 S707, 媒体服务器网口收到组播查询, 发给媒体处理模块处理; 步骤 S708, 媒体处理模块解析查询报文, 获取最大响应时间, 媒体服务器在最大 响应时间内线性均匀的依次发送每个组播频道的 IGMP响应报文 步骤 S709,媒体处理模块按间隔调用网口收发模块依次发出所有组播频道的报告 报文; 步骤 S710, 交换设备收到组播报告, 更新对应的组播条目。 通过本优选实施例实现了在最大响应时间内均匀地发送全部组播报告, 交换设备 侧可以均匀地收到所有网口发送的组播报告, 不会出现接收报告报文集中爆发导致处 理不了而丢弃的情况。 工业实用性 通过本发明实施例, 采用获取组播报文, 并根据组播报文获取该组播报文的最大 响应时间; 至少根据该最大响应时间, 均匀地发送多个组播频道中每个组播频道的响 应报文的方式, 其中, 该多个组播频道为待响应该组播报文的组播频道, 解决了短时 间内爆发出的大量的 IGMP组播响应报文可能超过交换机的 IGMP报文处理能力导致 组播条目老化而出现频道码流中断的问题, 提高了系统的可靠性和稳定性。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以
8 PN22097
将它们存储在存储装置中由计算装置来执行, 或者将它们分别制作成各个集成电路模 块, 或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明 不限制于任何特定的硬件和软件结合。 以上上述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。
9 PN22097
Claims
1. 一种组播报文响应方法, 包括:
获取组播报文, 并根据所述组播报文获取所述组播报文的最大响应时间; 至少根据所述最大响应时间, 均匀地发送多个组播频道中每个组播频道的 响应报文, 其中, 所述多个组播频道为待响应所述组播报文的组播频道。
2. 根据权利要求 1所述的方法, 其中, 所述多个组播频道为媒体服务器中相同网 口对应的组播频道。
3. 根据权利要求 1或 2所述的方法, 其中, 至少根据所述最大响应时间, 均匀地 发送所述每个组播频道的所述响应报文包括:
根据所述最大响应时间和所述多个组播频道的数目, 确定相邻发送的所述 响应报文的发送间隔;
根据所述发送间隔, 发送所述多个组播频道的所述响应报文。
4. 根据权利要求 1或 2所述的方法, 其中, 至少根据所述最大响应时间, 均匀地 发送所述每个组播频道的所述响应报文包括:
根据所述最大响应时间和所述多个组播频道的数目, 将用于响应所述组播 报文的总时间划分为预定数目的时间段;
在所述时间段中的每个时间段内分别发送所述多个组播频道中的一个或多 个组播频道的所述响应报文。
5. 根据权利要求 4所述的方法, 其中, 分别发送所述多个组播频道中的一个或多 个组播频道的所述响应报文包括: 按照所述多个组播频道中的每个组播频道响 应所述组播报文的时间先后次序, 依次发送所述响应报文, 其中, 较先响应所 述组播报文的组播频道对应的所述响应报文优先发送。
6. 根据权利要求 5所述的方法, 其中, 在所述每个时间段中发送的所述响应报文 的个数小于或等于预定值, 其中, 所述预定值是根据接收端处理所述响应报文 的能力确定的。 根据权利要求 1或 2所述的方法, 其中, 至少根据所述最大响应时间, 均匀地 发送所述每个组播频道的所述响应报文包括:
10 PN22097
根据所述最大响应时间和所述多个组播频道的信息, 采用预设算法将所述 每个组播频道将发送所述响应报文的时间映射到用于响应所述组播报文的总时 间内, 得到所述每个组播频道用于发送所述响应报文的时间;
根据所述时间, 分别发送所述每个组播频道的所述响应报文。
8. 一种组播报文响应装置, 包括:
获取模块, 设置为获取组播报文, 并根据所述组播报文获取所述组播报文 的最大响应时间;
发送模块, 设置为至少根据所述最大响应时间, 均匀地发送多个组播频道 中每个组播频道的响应报文, 其中, 所述多个组播频道为待响应所述组播报文 的组播频道。
9. 根据权利要求 8所述的装置, 其中, 所述发送模块包括:
确定单元, 设置为根据所述最大响应时间和所述多个组播频道的数目, 确 定相邻发送的所述响应报文的发送间隔;
第一发送单元, 设置为根据所述发送间隔, 发送所述多个组播频道的所述 响应报文。
10. 根据权利要求 8所述的装置, 其中, 所述发送模块包括:
划分单元, 设置为根据所述最大响应时间和所述多个组播频道的数目, 将 用于响应所述组播报文的总时间划分为预定数目的时间段;
第二发送单元, 设置为在所述时间段中的每个时间段内分别发送所述多个 组播频道中的一个或多个组播频道的所述响应报文。
11. 根据权利要求 8所述的装置, 其中, 所述发送模块包括:
映射单元, 设置为根据所述最大响应时间和所述多个组播频道的信息, 采 用预设算法将所述每个组播频道将发送所述响应报文的时间映射到用于响应所 述组播报文的总时间内,得到所述每个组播频道用于发送所述响应报文的时间; 第三发送单元, 设置为根据所述时间, 分别发送所述每个组播频道的所述 响应报文。
11 PN22097
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP14800315.5A EP3057263A4 (en) | 2013-10-08 | 2014-05-28 | METHOD AND DEVICE FOR RESPONSE TO MULTICAST MESSAGE |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310466157.9A CN104518889A (zh) | 2013-10-08 | 2013-10-08 | 组播报文响应方法和装置 |
CN201310466157.9 | 2013-10-08 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014187380A1 true WO2014187380A1 (zh) | 2014-11-27 |
Family
ID=51932930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/078687 WO2014187380A1 (zh) | 2013-10-08 | 2014-05-28 | 组播报文响应方法和装置 |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP3057263A4 (zh) |
CN (1) | CN104518889A (zh) |
WO (1) | WO2014187380A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110999230B (zh) * | 2017-10-18 | 2021-06-01 | 华为技术有限公司 | 传输组播报文的方法、网络设备和系统 |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056255A (zh) * | 2006-06-09 | 2007-10-17 | 华为技术有限公司 | 一种组播频道控制方法及装置 |
CN101163002A (zh) * | 2006-10-12 | 2008-04-16 | 中兴通讯股份有限公司 | 一种高效组播认证方法 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1881913A (zh) * | 2005-06-15 | 2006-12-20 | 上海贝尔阿尔卡特股份有限公司 | 一种网络接入设备中用户接口组播管理方法及其装置 |
CN100499583C (zh) * | 2005-10-20 | 2009-06-10 | 华为技术有限公司 | 一种简化的igmp组播代理实现方法 |
US7672325B2 (en) * | 2006-11-28 | 2010-03-02 | Alcatel Lucent | Method and apparatus for improved IGMP group membership messaging |
CN101964716B (zh) * | 2009-07-21 | 2015-04-29 | 华为技术有限公司 | 一种实现流业务的方法及通信系统以及相关设备 |
CN102547448B (zh) * | 2010-12-20 | 2014-03-19 | 中兴通讯股份有限公司 | 频道切换方法、终端及系统 |
WO2011127857A2 (zh) * | 2011-05-17 | 2011-10-20 | 华为技术有限公司 | 组播数据流的处理方法及upe、npe |
-
2013
- 2013-10-08 CN CN201310466157.9A patent/CN104518889A/zh active Pending
-
2014
- 2014-05-28 EP EP14800315.5A patent/EP3057263A4/en not_active Withdrawn
- 2014-05-28 WO PCT/CN2014/078687 patent/WO2014187380A1/zh active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056255A (zh) * | 2006-06-09 | 2007-10-17 | 华为技术有限公司 | 一种组播频道控制方法及装置 |
CN101163002A (zh) * | 2006-10-12 | 2008-04-16 | 中兴通讯股份有限公司 | 一种高效组播认证方法 |
Also Published As
Publication number | Publication date |
---|---|
CN104518889A (zh) | 2015-04-15 |
EP3057263A4 (en) | 2016-11-23 |
EP3057263A1 (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Deshpande et al. | Streaming live media over a peer-to-peer network | |
US10205971B2 (en) | Media data live broadcast method, device, and system | |
US20200021859A1 (en) | Multicast implementation method and related network device | |
EP2817971B1 (en) | Network controlled streaming | |
WO2017143723A1 (zh) | 一种实现服务质量控制的方法、装置及系统 | |
WO2013104241A1 (zh) | 数据重传方法、系统、组播服务器及用户终端 | |
WO2007030813A2 (en) | Multicast delivery of multimedia content on demand | |
US20160072641A1 (en) | Data transmission method, apparatus, and computer storage medium | |
WO2007054006A1 (fr) | Station de base de système d’accès sans fil large bande et système pour réaliser un service de diffusion de groupe | |
JP2009520409A (ja) | マルチキャストデータの高速処理 | |
CN109151058A (zh) | 一种数据传输方法和装置 | |
WO2008138248A1 (fr) | Procédé, carte d'interface et routeur destinés à transmettre un message | |
KR102162851B1 (ko) | 인기 있는 라이브 방송 비디오를 결정하는 방법 및 디바이스 | |
EP3297210B1 (en) | Method and apparatus for setting packet transmission mode | |
CN104796340A (zh) | 一种组播数据传输方法和设备 | |
CN106375100B (zh) | 一种视频监控系统中组播实现方法及装置 | |
US20070008966A1 (en) | Method and system for sending a multimedia stream in an IP multicast network | |
WO2009015539A1 (fr) | Procédé de commande multidiffusion pour service de demande de contenu multimédia et son système | |
WO2014187380A1 (zh) | 组播报文响应方法和装置 | |
CN105210347B (zh) | 监控服务器、解析服务器、请求设备及节点选择方法 | |
WO2014101733A1 (zh) | 报文处理方法和装置 | |
CN1925468B (zh) | 一种互联网组管理协议报告抑制方法和通信网络系统 | |
Ji et al. | File-stream distribution application on software-defined networks (SDN) | |
US20230412661A1 (en) | Providing transparent multicast content via mobile telecommunication network | |
US12126666B2 (en) | Providing transparent multicast content via mobile telecommunication network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14800315 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
REEP | Request for entry into the european phase |
Ref document number: 2014800315 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2014800315 Country of ref document: EP |