WO2010127599A1 - Quick recovery method for a multicast service after break, apparatus and gateway device thereof - Google Patents
Quick recovery method for a multicast service after break, apparatus and gateway device thereof Download PDFInfo
- Publication number
- WO2010127599A1 WO2010127599A1 PCT/CN2010/072306 CN2010072306W WO2010127599A1 WO 2010127599 A1 WO2010127599 A1 WO 2010127599A1 CN 2010072306 W CN2010072306 W CN 2010072306W WO 2010127599 A1 WO2010127599 A1 WO 2010127599A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- multicast
- client
- gateway device
- multicast service
- query
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
Definitions
- the present invention relates to the field of multicast services, and in particular, to a method, a device, and a gateway device for quickly recovering a multicast service after disconnection.
- IPTV Internet Protocol Television
- IP Internet Protocol Television
- the IPTV multicast service mechanism also has an immature aspect. For example, when performing a multicast service, the gateway device restarts during multicast playback due to configuration, adjustment, power failure, etc., and the multicast service will immediately After the gateway device is restored to normal state, the set-top box (STB) cannot receive the multicast device data in a timely manner, and the multicast data is still received. . After the timeout period of the multicast client is reached, the multicast service can be re-established. After the user finds that the program is interrupted, the user can manually perform the on-demand broadcast to re-establish the multicast service, that is, the on-demand broadcast on the STB. Back to normal.
- STB set-top box
- the gateway device when a user uses STB to watch TV at home, during the IPTV program playback, when the gateway device loses power due to user misoperation, etc., the IPTV program is immediately interrupted; after the user discovers, the gateway device is restored. After the power is connected, the gateway device will restart after 2 minutes. However, the STB will still be in an interrupted state and cannot be restored to normal immediately. Instead, the user needs to reconfigure the multicast connection through the remote control of the STB to restore the group. Broadcast business.
- the main purpose of the present invention is to provide a method, a device, and a gateway device for quickly recovering after a multicast service is disconnected. After the gateway device is restarted, the group can be automatically and quickly established without user intervention. Broadcast services to quickly restore multicast connections.
- the present invention discloses a method for quickly recovering a multicast service after disconnection, including: after the gateway device restarts, querying whether the multicast client has the on-demand multicast service information; the multicast client exists.
- the gateway device returns a response join message; and according to the response join message, the gateway device requests and establishes a multicast service.
- the querying the multicast client for the presence of the on-demand multicast service information is: sending a query message to the multicast client; the multicast client checks whether it has an on-demand according to the query message received by the multicast client.
- the requesting and establishing the multicast service by the gateway device is: after the gateway device receives the response join message, parsing the response join message, constructing a multicast join request of the corresponding multicast service request, and transmitting the packet to the streaming media
- the server sends the multicast join message to request to establish a corresponding multicast service.
- the streaming media server sends a multicast data packet corresponding to the multicast service request.
- the gateway device forwards the multicast data packet to the multicast client to establish a multicast service.
- the gateway device forwards the multicast data packet to the multicast client: the gateway device analyzes and determines the multicast source corresponding to the multicast data packet, and determines the multicast forwarding table according to the multicast forwarding table.
- the multicast source finds the corresponding multicast client, and forwards the multicast data packet to the multicast client; the multicast forwarding table records the multicast client that the gateway device parses from the response join message.
- the present invention provides a device for quickly recovering a multicast service after disconnection, including: a gateway device and a multicast client; wherein, after the restart, the gateway device is configured to query whether the multicast client has on-demand broadcast Multicast service information, and according to the reply of the multicast client A multicast request should be added to the multicast service.
- the multicast client is configured to reply to the gateway device with a response to the multicast service when it has the multicast service information.
- the device further includes: a streaming media server, configured to receive a multicast service request of the gateway device, and provide a multicast data packet corresponding to the multicast service request.
- the gateway device is specifically configured to send a query message to the multicast client after the restart, and the multicast client is configured to check whether the multicast service information of the on-demand service exists according to the query message.
- the present invention further provides a gateway device that is quickly restored after the multicast service is disconnected, and includes: a multicast management module and a multicast client query module; wherein, the multicast management module is configured to: after the gateway device is restarted, The multicast client querying module is configured to query whether the multicast client has the on-demand multicast service information, and when the multicast client query module queries the multicast client for the on-demand multicast service information, requests and establishes the group.
- the multicast client query module is configured to query whether the multicast client has on-demand multicast service information.
- the multicast management module includes: an initialization unit, a message processing unit, where the initialization unit is configured to notify the multicast client query module to query whether the multicast client has an on-demand after the gateway device is restarted.
- the multicast service information is used by the packet processing unit to request and establish a multicast service when the multicast client query module queries the multicast service information that the multicast client has on-demand.
- the packet processing unit is configured to receive and parse the multicast response join message and the multicast data packet sent by the streaming media server, and obtain the multicast service information;
- the module further includes a forwarding unit, where the forwarding unit is configured to record an association between an IP address of the multicast client to which the packet processing unit is parsed and a multicast group address that is broadcast by the multicast client to the multicast forwarding table.
- the multicast forwarding packet is forwarded to the streaming server according to the multicast forwarding table, and the multicast data packet is forwarded to the multicast client.
- the present invention enables the gateway multicast device to send a multicast query (Query) message to enable the downlink multicast client to reply to the multicast join report message. So that the gateway device actively informs the STB after the power failure is restarted. The multicast service connection is newly established, and the multicast service is quickly restored.
- Query multicast query
- the multicast service can be re-established without user intervention, and the multicast connection relationship can be quickly restored.
- the invention can not only improve the reliability of the gateway device, but also facilitate the user to use the multicast service to a greater extent.
- the problem that the multicast service cannot be recovered immediately is solved fundamentally, and the problem of waiting timeout or user intervention in the process of multicast service recovery is eliminated.
- FIG. 1 is a schematic diagram of a system architecture of a general multicast service
- FIG. 2 is a schematic flowchart of Embodiment 1 of a method for quickly recovering a multicast service after disconnection according to the present invention
- FIG. 3 is a schematic flowchart of Embodiment 2 of a method for quickly recovering a multicast service after disconnection according to the present invention
- the basic idea of the present invention is: After the gateway device is restarted, the multicast Query message is automatically sent to the multicast client, and the multicast client responds to the Report message after receiving the Query message, and re-establishes the multicast connection relationship. Therefore, the purpose of quickly recovering the multicast service is achieved.
- the Query message, the Report message, and the multicast data message are all multicast protocol messages.
- the Report message is based on the Report.
- the object to be sent and received and the content of the packet are classified into: a report message, a multicast report message, and a response report message.
- the on-demand report message is a request message that the multicast client applies to the gateway device to join the multicast service;
- the multicast report message is a multicast service request message sent by the gateway device to the streaming media server;
- the response report message is a response message of the Query message sent by the gateway device to the multicast client.
- each multicast source includes one or more multicast services, namely: at the gateway device
- the system architecture of the multicast service includes: a streaming media server 101, an Internet 102, a gateway device 103, and a multicast client 104.
- the multicast client 104 accesses the Internet 102 through the gateway device 103 and contacts the streaming server 101 to carry out multicast services.
- the streaming server 101 provides multicast data corresponding to the multicast source to the multicast client 104, and the multicast client 104 can be an STB, a personal computer (PC), a mobile phone, or the like.
- the working mechanism of the IPTV multicast service includes: on-demand programming, exit-on-demand, and forwarding of programs.
- the STB sends an on-demand report message to the gateway device, and the on-demand report message includes an association between the IP address of the STB and the multicast group address; the gateway device receives the STB.
- the report message is requested, the association between the IP address of the STB and the multicast group address is obtained, and the association between the IP address of the STB and the multicast group address is recorded in the group. Broadcast in the forwarding table.
- the gateway device also checks whether other multicast client endpoints broadcast the program of the multicast source.
- the gateway device actively sends a multicast Report message to the streaming media server to request the multicast service; If another multicast client endpoint broadcasts the program of the multicast source, the gateway device does not need to send the multicast report packet to the streaming media server again, and directly adds the multicast of the multicast source to the multicast forwarding table. A record of the client's IP address.
- the multicast forwarding table is used to record the association between the IP address of the multicast client and the multicast group address requested by the multicast client; the multicast report packet includes the IP address of the gateway device and The multicast group address requested by the gateway device.
- the STB When the STB exits the on-demand broadcast, the STB sends an on-demand exit (Quit) to the gateway device, and after receiving the on-demand Quit packet, the gateway device parses and confirms the information, and obtains the IP address and the multicast group address of the STB. The relationship between the two, and find the IP address corresponding to the STB from the multicast forwarding table. The association between multicast group addresses and the record of the association relationship is cleared. Moreover, the gateway device also checks whether the multicast source corresponding to the STB has other multicast clients. If not, it indicates that the multicast device does not have the multicast client on-demand the program of the multicast source. The gateway device sends a multicast Quit packet to the multicast source; if another multicast client is on-demand the program of the multicast source, the gateway device does not perform any processing on the multicast source.
- an on-demand exit Quit
- the gateway device parses and confirms the information, and obtains the IP address and the multicast group address of the
- the gateway device After the gateway device forwards the program message of the multicast source, the gateway device receives the program of the multicast source, and then queries the multicast forwarding table to find the IP address of the STB corresponding to the multicast source, and sends the packet to the STB. Forwarding the program message of the multicast source; if there are multiple multicast clients, the gateway device copies the program message of the multicast source and forwards the program message to multiple multicast clients synchronously.
- Step 201 After the gateway device is restarted, the multicast service information of the multicast client is required to be queried. Proactively send Query messages to the multicast client;
- the gateway device After the gateway device is restarted, it enters the normal working state and needs to be initialized. However, because the gateway device is restarted, the multicast forwarding table before the restart is cleared, and the connection of the multicast service needs to be re-established. The multicast client cannot immediately re-send the on-demand report message of the multicast connection without manual intervention. This requires the gateway device to initiate the request for querying the multicast client, that is, to query the multicast of the multicast client. Business information.
- the multicast service information of the querying multicast client is: the gateway device sends a Query message to the multicast client according to the multicast protocol, and all the multicast clients that are connected are required to reply.
- the Query message mainly queries whether the multicast client has on-demand multicast service information.
- the Internet Group Management Protocol (IGMP, Internet Group Management) Protocol is a type of multicast protocol.
- the IGMP is used as an example to describe the multicast protocol.
- the IGMP is used to establish and maintain a multicast relationship between a multicast client and a gateway device directly adjacent to it. .
- the gateway device can learn the on-demand situation of the multicast client hanged on it through the IGMP-based Query message.
- the multicast client stores the multicast service information that is requested by the multicast client, such as the multicast group address, that is, the multicast source address corresponding to the multicast service.
- the gateway device sends an IGMP Query message to each internal network interface, and each multicast client that has a multicast service connected to its internal network interface returns a response report message.
- the gateway device does not know how many multicast clients are currently on the internal network interface, the destination IP address of the IGMP Query message is set to 224.0.0.1, and the IGMP multicast group address corresponds to the multicast service.
- the multicast source address is 0. In this way, all the multicast clients connected to the gateway device can receive the Query message and the purpose of querying all the multicast services that are disconnected.
- Step 202 After receiving the Query message, the multicast client checks whether there is on-demand multicast service information. If there is no on-demand multicast service information, step 203 is performed; if there is on-demand multicast service information, Perform step 204;
- Step 203 The multicast client does not have to reply to the gateway device, and the multicast client ends the current process.
- Step 204 The multicast client that has the on-demand multicast service information returns a response to the gateway device.
- the multicast client After receiving the Query message, if the multicast client has the on-demand multicast service information, the multicast client replies to the gateway device in response to the Repor message.
- the response report includes the information such as the multicast address of the multicast client and the multicast group address corresponding to the multicast service that is requested, so that the gateway device re-establishes the interrupted multicast connection by using the response report packet. Enable the multicast service to be re-launched.
- the response report message replied by the multicast client includes:
- the multicast group address is the multicast industry.
- the corresponding multicast source address such as the class D address: 224.223.0.100; and the IP address of the multicast client, such as the IP address of the PC or STB.
- Step 205 After receiving the response report message, the gateway device sends a multicast report message corresponding to the multicast service request to the streaming media server.
- the gateway device After receiving the response report message of the multicast client, the gateway device parses the response report message to obtain the multicast service information, the IP address of the multicast client, and the multicast group address corresponding to the multicast service. . And the gateway device records the association relationship between the obtained multicast group address and the IP address of the multicast client in a multicast forwarding table, where the multicast forwarding table records and updates the multicast group address and the multicast client. IP address association. And the gateway device obtains the multicast service information, the multicast group address, and the IP address of the multicast client that are multicast by the multicast client according to the response to the response, and constructs a multicast join request for the corresponding multicast service request. Message.
- the gateway device requests the corresponding multicast source to establish a multicast service, that is, sends the multicast report message to the streaming media server.
- the gateway device obtains and reports the multicast group address in the response report packet to obtain the multicast data of the interrupted multicast service.
- the streaming server can be requested to re-establish the multicast service according to the response report message.
- the multicast forwarding table is used to record the association between the multicast source and the multicast client, and the gateway device is configured to search for the IP address and the multicast group address of the multicast client.
- the multicast report packet records the gateway device.
- the IP address and the multicast group address requested by the gateway device; the corresponding multicast service request refers to the multicast service corresponding to the multicast source in the response report message.
- Step 206 After receiving the multicast report message requested by the multicast service, the streaming media server delivers the multicast data packet of the requested multicast service.
- the streaming server searches for the multicast data corresponding to the multicast service in the multicast report message, and delivers the multicast data to the gateway device in the form of a multicast data packet.
- Step 207 The gateway device forwards the multicast data packet delivered by the streaming media server to the multicast client to establish a multicast service.
- the gateway device forwards the multicast data packet according to the multicast forwarding table, that is, analyzes the data packet and determines the multicast source corresponding to the multicast data packet; the gateway device further determines the multicast source according to the The multicast source finds the multicast client corresponding to the multicast source, and forwards the multicast data packet to the multicast client, so as to quickly establish a multicast service.
- the first embodiment of the foregoing method implements fast recovery of the multicast service.
- the gateway device includes: a multicast management module and a multicast client query module, as shown in FIG. 3, which mainly includes the following steps:
- Step 301 The multicast management module initializes, and requests to query multicast service information of the multicast client.
- the gateway device After the gateway device is restarted, it enters the normal working state.
- the multicast management module on the gateway device enters the initialization working phase.
- the multicast management module actively requests the multicast client query module to query the multicast service information of the multicast client.
- Step 302 The multicast client query module sends a Query message.
- the multicast client query module sends a Query message to all multicast clients connected to the local area network (LAN) side of the gateway device.
- LAN local area network
- Step 303 After receiving the Query message, the multicast client returns a response report to the multicast management module on the gateway device.
- the multicast client After receiving the Query message, the multicast client finds that it has the multicast service information on demand, and then sends a response report message to the multicast management module on the gateway device.
- the response report is used to re-establish a multicast connection, and the response report includes: a multicast group address and an IP address of the multicast client.
- Step 304 The multicast management module parses the received response report message to the streaming media server. Send a multicast Report message and request to re-run the multicast service.
- the multicast management module parses the response report message, records the obtained multicast group address and the IP address of the multicast client in the multicast forwarding table, and then sends the response to the streaming server.
- a multicast report packet is sent, and the multicast service is required to be re-established.
- the multicast forwarding table is maintained by the multicast management module.
- Step 305 After receiving the multicast report message, the streaming media server sends a multicast data packet to the multicast management module of the gateway device.
- Step 306 After receiving the multicast data packet, the multicast management module forwards the multicast data packet to the multicast client.
- the multicast management module After receiving the multicast data packet, the multicast management module analyzes the multicast data to determine a multicast source from which the multicast data originates, and finds a corresponding according to the multicast forwarding table and the multicast source. The multicast client forwards the multicast data to the corresponding multicast client, thereby quickly recovering the multicast service.
- the present invention further provides a device and a gateway device for quickly recovering after the multicast service is disconnected.
- the device includes: a gateway device 402 and a multicast client 403;
- the gateway device 402 is configured to: after the restart, query whether the multicast client has the on-demand multicast service information, and join the packet according to the response replied by the multicast client to request and establish the multicast service;
- the multicast client 403 is configured to reply to the gateway device 402 in response to the report message when it has the multicast service information on demand.
- the above apparatus further includes a streaming media server 401, the streaming media server 401 is configured to receive the The multicast service request of the gateway device 402 is sent, and the multicast data packet corresponding to the multicast service request is sent to the gateway device 402.
- the multicast service request is sent when the gateway device 402 requests the streaming media server 401 to establish a multicast service, that is, a multicast Repor message.
- the gateway device 402 is specifically configured to send a Query message to the multicast client 403 after the restart.
- the multicast client 403 is specifically configured to check whether there is on-demand multicast service information after receiving the Query message of the gateway device 402.
- the gateway device 402 includes: a multicast management module 4021 and a multicast client query module 4022;
- the multicast management module 4021 is configured to notify the multicast client query module 4022 to query whether the multicast client 403 has on-demand multicast service information after the gateway device 402 is restarted.
- the multicast management module 4021 is further configured to request and establish a multicast service when the multicast client query module 4022 queries the multicast client 403 to have on-demand multicast service information.
- the multicast client query module 4022 is configured to query whether the multicast client 403 has the on-demand multicast service information.
- the multicast management module 4021 includes: an initialization unit, a "meman processing unit, and a forwarding unit;
- An initializing unit configured to notify the multicast client query module 4022 to query whether the multicast client 403 has on-demand multicast service information after the gateway device is restarted;
- the message processing unit is configured to request and establish a multicast service when the multicast client query module queries the multicast service information of the multicast client to be on-demand, that is, specifically: receiving and parsing the multicast client The reported multicast response report message and the multicast data message delivered by the streaming media server to obtain multicast service information;
- a forwarding unit configured to record, in the multicast forwarding table, an IP address of the multicast client 403 to which the processing unit is parsed and a multicast group address that the multicast client 403 broadcasts, and
- the multicast forwarding table forwards the multicast Report message to the streaming server and transfers it to the multicast client. Send multicast data packets.
- the multicast forwarding table records the association between the multicast source and the multicast client 403, that is, the association between the IP address of the multicast client 403 and the multicast group address.
- the multicast client query module 4022 sends a Query message to the multicast client 403. After receiving the Query message, the multicast client 403 immediately reports the response to the report. Packets, which quickly restore multicast services.
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
Description
组播业务断开后快速恢复的方法、 装置及网关设备 技术领域 Method, device and gateway device for quickly recovering after multicast service disconnection
本发明涉及组播业务领域, 特别是涉及一种组播业务断开后快速恢复 的方法、 装置及网关设备。 背景技术 The present invention relates to the field of multicast services, and in particular, to a method, a device, and a gateway device for quickly recovering a multicast service after disconnection. Background technique
网络电视(IPTV, Internet Protocol Television )是基于网络协议(IP ) 的电视广播服务媒体,是一种通信行业与广电、传媒行业融合的产物。 IPTV 凭借其良好的交互性和个性化等特点, 快速发展着, 并受到众多用户的欢 迎。 Internet Protocol Television (IPTV) is a television broadcast service media based on network protocol (IP). It is a product of the convergence of the communications industry with the broadcasting and media industries. IPTV is rapidly evolving due to its good interactivity and personalization, and is welcomed by many users.
然而, IPTV的组播业务机制也有不成熟的方面, 例如, 在执行组播业 务时, 网关设备由于配置、 调整、 掉电等原因, 在组播播放过程中进行重 启操作,组播业务将立即中断; 在网关设备恢复正常后, 由于机顶盒(STB ) 不能及时获知网关设备的状态, 依旧在被动的接收组播数据, 只是发现无 法收到组播源的数据报文, 而导致组播任务中断。 在组播客户端等待的超 时时间到达后才能重新建立组播业务, 或在用户发现节目中断后, 手动进 行点播来重新建立组播业务, 即: 在 STB上再点播一次, 才能使组播业务恢 复正常。 以某用户在家中利用 STB看电视为例, 在 IPTV的节目播放过程中, 由于用户的误操作等原因导致网关设备掉电时, IPTV的节目也会立刻中断; 用户发现后, 恢复网关设备的电源连接, 网关设备会在 2分钟后重新启动完 毕, 但此时 STB将依旧处于中断情况, 不能立即恢复正常, 而是需要用户再 通过 STB的遥控器, 重新配置组播连接关系才能恢复该组播业务。 However, the IPTV multicast service mechanism also has an immature aspect. For example, when performing a multicast service, the gateway device restarts during multicast playback due to configuration, adjustment, power failure, etc., and the multicast service will immediately After the gateway device is restored to normal state, the set-top box (STB) cannot receive the multicast device data in a timely manner, and the multicast data is still received. . After the timeout period of the multicast client is reached, the multicast service can be re-established. After the user finds that the program is interrupted, the user can manually perform the on-demand broadcast to re-establish the multicast service, that is, the on-demand broadcast on the STB. Back to normal. For example, when a user uses STB to watch TV at home, during the IPTV program playback, when the gateway device loses power due to user misoperation, etc., the IPTV program is immediately interrupted; after the user discovers, the gateway device is restored. After the power is connected, the gateway device will restart after 2 minutes. However, the STB will still be in an interrupted state and cannot be restored to normal immediately. Instead, the user needs to reconfigure the multicast connection through the remote control of the STB to restore the group. Broadcast business.
可见, 这种机制导致网关设备异常重启时, 整个组播业务需要长时间 被动等待超时时间达到, 或用户干预时才能恢复, 这给使用 IPTV的组播业 务的用户带来了极大的不便。 发明内容 It can be seen that when the gateway device restarts abnormally, the entire multicast service needs to wait for a long time to wait for the timeout period to be reached, or the user can only recover when the user interferes. This gives the multicast industry using IPTV. Users of the service have brought great inconvenience. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种组播业务断开后快速恢复 的方法、 装置及网关设备, 在网关设备重启后, 不需要用户干预的情况下, 就能够自动、 快速建立组播业务, 以迅速恢复组播连接关系。 In view of this, the main purpose of the present invention is to provide a method, a device, and a gateway device for quickly recovering after a multicast service is disconnected. After the gateway device is restarted, the group can be automatically and quickly established without user intervention. Broadcast services to quickly restore multicast connections.
为达到上述目的, 本发明公开了一种组播业务断开后快速恢复的方法, 包括: 网关设备重启后, 查询组播客户端是否存在点播的组播业务信息; 所述组播客户端存在点播的组播业务信息时, 向所述网关设备回复响应加 入报文; 根据所述响应加入报文, 所述网关设备请求并建立组播业务。 To achieve the above objective, the present invention discloses a method for quickly recovering a multicast service after disconnection, including: after the gateway device restarts, querying whether the multicast client has the on-demand multicast service information; the multicast client exists. When the multicast service information is requested, the gateway device returns a response join message; and according to the response join message, the gateway device requests and establishes a multicast service.
其中, 所述查询组播客户端是否存在点播的组播业务信息为: 向组播 客户端发出查询报文; 所述组播客户端依据其所收到的查询报文, 检查自 身是否存在点播的组播业务信息。 所述网关设备请求并建立组播业务为: 所述网关设备收到所述响应加入 文后, 解析所述响应加入 文, 构建对 应的组播业务请求的组播加入报文, 并向流媒体服务器发送所述组播加入 报文, 请求建立对应的组播业务; 所述流媒体服务器收到所述组播加入报 文后, 下发与所述组播业务请求对应的组播数据报文; 所述网关设备向组 播客户端转发该组播数据报文, 建立组播业务。 The querying the multicast client for the presence of the on-demand multicast service information is: sending a query message to the multicast client; the multicast client checks whether it has an on-demand according to the query message received by the multicast client. Multicast business information. The requesting and establishing the multicast service by the gateway device is: after the gateway device receives the response join message, parsing the response join message, constructing a multicast join request of the corresponding multicast service request, and transmitting the packet to the streaming media The server sends the multicast join message to request to establish a corresponding multicast service. After receiving the multicast join message, the streaming media server sends a multicast data packet corresponding to the multicast service request. The gateway device forwards the multicast data packet to the multicast client to establish a multicast service.
上述方法中, 所述网关设备向组播客户端转发所述组播数据报文为: 所述网关设备分析并确定该组播数据报文对应的组播源, 根据组播转发表, 通过确定的组播源找到对应的组播客户端, 并向所述组播客户端转发组播 数据报文; 所述组播转发表记录有网关设备从响应加入报文中解析得到的 组播客户端的 IP地址与所述组播业务对应的组播组地址关联关系。 In the above method, the gateway device forwards the multicast data packet to the multicast client: the gateway device analyzes and determines the multicast source corresponding to the multicast data packet, and determines the multicast forwarding table according to the multicast forwarding table. The multicast source finds the corresponding multicast client, and forwards the multicast data packet to the multicast client; the multicast forwarding table records the multicast client that the gateway device parses from the response join message. The association between the IP address and the multicast group address corresponding to the multicast service.
为实现上述方法, 本发明提供一种组播业务断开后快速恢复的装置, 包括: 网关设备和组播客户端; 其中, 网关设备, 用于在重启后, 查询组 播客户端是否存在点播的组播业务信息, 并根据所述组播客户端回复的响 应加入报文请求并建立组播业务; 组播客户端, 用于在其自身存在点播的 组播业务信息时, 向所述网关设备回复响应加入 ^艮文。 In order to implement the foregoing method, the present invention provides a device for quickly recovering a multicast service after disconnection, including: a gateway device and a multicast client; wherein, after the restart, the gateway device is configured to query whether the multicast client has on-demand broadcast Multicast service information, and according to the reply of the multicast client A multicast request should be added to the multicast service. The multicast client is configured to reply to the gateway device with a response to the multicast service when it has the multicast service information.
其中, 所述装置还包括: 流媒体服务器, 用于接收所述网关设备的组 播业务请求, 并提供与所述组播业务请求对应的组播数据报文。 所述网关 设备, 具体用于在重启后, 向组播客户端发出查询报文; 所述组播客户端, 具体用于依据所述查询报文, 检查自身是否存在点播的组播业务信息。 The device further includes: a streaming media server, configured to receive a multicast service request of the gateway device, and provide a multicast data packet corresponding to the multicast service request. The gateway device is specifically configured to send a query message to the multicast client after the restart, and the multicast client is configured to check whether the multicast service information of the on-demand service exists according to the query message.
相应的, 本发明还提供一种组播业务断开后快速恢复的网关设备, 包 括: 组播管理模块和组播客户端查询模块; 其中, 组播管理模块, 用于在 网关设备重启后, 通知组播客户端查询模块查询组播客户端是否存在点播 的组播业务信息, 并在所述组播客户端查询模块查询到组播客户端存在点 播的组播业务信息时, 请求并建立组播业务; 组播客户端查询模块, 用于 查询组播客户端是否存在点播的组播业务信息。 Correspondingly, the present invention further provides a gateway device that is quickly restored after the multicast service is disconnected, and includes: a multicast management module and a multicast client query module; wherein, the multicast management module is configured to: after the gateway device is restarted, The multicast client querying module is configured to query whether the multicast client has the on-demand multicast service information, and when the multicast client query module queries the multicast client for the on-demand multicast service information, requests and establishes the group. The multicast client query module is configured to query whether the multicast client has on-demand multicast service information.
上述网关设备中, 所述组播管理模块包括: 初始化单元, 报文处理单 元; 其中, 初始化单元, 用于在网关设备重启后, 通知组播客户端查询模 块查询组播客户端是否存在点播的组播业务信息; 所述报文处理单元, 用 于在所述组播客户端查询模块查询到组播客户端存在点播的组播业务信息 时, 请求并建立组播业务。 所述报文处理单元, 具体用于接收并解析组播 客户端上报的组播响应加入报文和流媒体服务器下发的组播数据报文, 以 获得组播业务信息; 所述组播管理模块还包括转发单元, 所述转发单元用 于将所述报文处理单元解析到的组播客户端的 IP地址与所述组播客户端所 点播的组播组地址关联关系记录到组播转发表中, 并根据组播转发表向流 媒体服务器转发组播加入报文、 以及向组播客户端转发组播数据报文。 In the above gateway device, the multicast management module includes: an initialization unit, a message processing unit, where the initialization unit is configured to notify the multicast client query module to query whether the multicast client has an on-demand after the gateway device is restarted. The multicast service information is used by the packet processing unit to request and establish a multicast service when the multicast client query module queries the multicast service information that the multicast client has on-demand. The packet processing unit is configured to receive and parse the multicast response join message and the multicast data packet sent by the streaming media server, and obtain the multicast service information; The module further includes a forwarding unit, where the forwarding unit is configured to record an association between an IP address of the multicast client to which the packet processing unit is parsed and a multicast group address that is broadcast by the multicast client to the multicast forwarding table. The multicast forwarding packet is forwarded to the streaming server according to the multicast forwarding table, and the multicast data packet is forwarded to the multicast client.
由以上技术方案可以看出, 在网关设备断电重启时, 本发明通过使网 关设备主动下发组播查询(Query )报文, 使下挂组播客户端回复组播加入 ( Report )报文, 从而使得所述网关设备在断电重启后, 主动地通知 STB重 新建立组播业务连接, 组播业务因此而快速恢复。 It can be seen from the above technical solution that, when the gateway device is powered off and restarted, the present invention enables the gateway multicast device to send a multicast query (Query) message to enable the downlink multicast client to reply to the multicast join report message. So that the gateway device actively informs the STB after the power failure is restarted. The multicast service connection is newly established, and the multicast service is quickly restored.
因此, 用户将组播客户端与网关设备连接上后, 即便播放过程中, 该 网关设备断开重启, 也能在不需要用户干预的情况下, 重新建立组播业务, 快速恢复组播连接关系。 通过本发明, 不仅能够提高网关设备可靠性, 而 且能够更大程度地方便用户使用组播业务。 从根本上解决了组播业务不能 立即恢复的问题, 消除了在组播业务恢复过程中的等待超时或用户干预等 问题。 附图说明 Therefore, after the user connects the multicast client to the gateway device, even if the gateway device is disconnected and restarted during playback, the multicast service can be re-established without user intervention, and the multicast connection relationship can be quickly restored. . The invention can not only improve the reliability of the gateway device, but also facilitate the user to use the multicast service to a greater extent. The problem that the multicast service cannot be recovered immediately is solved fundamentally, and the problem of waiting timeout or user intervention in the process of multicast service recovery is eliminated. DRAWINGS
图 1为一般的组播业务的系统架构示意图; FIG. 1 is a schematic diagram of a system architecture of a general multicast service;
图 2为本发明组播业务断开后快速恢复的方法实施例一的流程示意图; 图 3为本发明组播业务断开后快速恢复的方法实施例二的流程示意图; 图 4为本发明组播业务断开后快速恢复的装置结构示意图。 具体实施方式 2 is a schematic flowchart of Embodiment 1 of a method for quickly recovering a multicast service after disconnection according to the present invention; FIG. 3 is a schematic flowchart of Embodiment 2 of a method for quickly recovering a multicast service after disconnection according to the present invention; Schematic diagram of the device structure for fast recovery after the broadcast service is disconnected. detailed description
本发明的基本思想在于: 网关设备重启后, 自动向组播客户端下发组 播 Query报文, 组播客户端收到该 Query报文后回复响应 Report报文, 重新建 立组播连接关系, 从而达到快速恢复组播业务目的。 The basic idea of the present invention is: After the gateway device is restarted, the multicast Query message is automatically sent to the multicast client, and the multicast client responds to the Report message after receiving the Query message, and re-establishes the multicast connection relationship. Therefore, the purpose of quickly recovering the multicast service is achieved.
需要说明的是, 所述 Query报文、 Report报文和组播数据报文均为组播 协议报文, 但为了使各实施例的描述更为清楚, 因此, 将所述 Report报文根 据 Report报文的收发对象及报文内容, 分为: 点播 Report报文、 组播 Report 报文和响应 Report报文等。 其中, 所述点播 Report报文为组播客户端向网关 设备申请加入组播业务的请求报文;所述组播 Report报文为网关设备向流媒 体服务器发送的组播业务请求报文;所述响应 Report报文为组播客户端回复 网关设备下发的 Query报文的响应报文。 It should be noted that the Query message, the Report message, and the multicast data message are all multicast protocol messages. However, in order to make the description of the embodiments clearer, the Report message is based on the Report. The object to be sent and received and the content of the packet are classified into: a report message, a multicast report message, and a response report message. The on-demand report message is a request message that the multicast client applies to the gateway device to join the multicast service; the multicast report message is a multicast service request message sent by the gateway device to the streaming media server; The response report message is a response message of the Query message sent by the gateway device to the multicast client.
另外, 每个组播源包括一个或一个以上的组播业务, 即: 在网关设备 中对应一个组播源会存在一个或一个以上组播组, 每个组播组对应一个具 体的组播业务。 因此, 每个组播组地址为其对应的组播业务地址。 In addition, each multicast source includes one or more multicast services, namely: at the gateway device One or more multicast groups exist in the corresponding one multicast source, and each multicast group corresponds to a specific multicast service. Therefore, each multicast group address is its corresponding multicast service address.
先介绍一下 IPTV的组播业务的工作机制, 如图 1所示, 组播业务的系统 架构包括:流媒体服务器 101、互联网 102、网关设备 103以及组播客户端 104。 组播客户端 104通过网关设备 103接入到互联网 102上, 并与流媒体服务器 101取得联系, 以开展组播业务。 其中, 该流媒体服务器 101向组播客户端 104提供与组播源对应的组播数据,该组播客户端 104可以为 STB、个人电脑 ( PC )和移动电话等。 First, the working mechanism of the IPTV multicast service is introduced. As shown in FIG. 1, the system architecture of the multicast service includes: a streaming media server 101, an Internet 102, a gateway device 103, and a multicast client 104. The multicast client 104 accesses the Internet 102 through the gateway device 103 and contacts the streaming server 101 to carry out multicast services. The streaming server 101 provides multicast data corresponding to the multicast source to the multicast client 104, and the multicast client 104 can be an STB, a personal computer (PC), a mobile phone, or the like.
下面以网关设备下挂 STB开展组播业务为例, IPTV的组播业务的工作 机制包括: 点播节目、 退出点播以及转发节目等。 其中, 下挂于网关设备 的 STB在点播节目时,该 STB向网关设备发送点播 Report报文,该点播 Report 报文包括 STB的 IP地址与组播组地址之间的关联关系;该网关设备接收到点 播 Report报文时, 对该点播 Report报文解析确认后, 得到该 STB的 IP地址与 组播组地址的关联关系,并将该 STB的 IP地址与组播组地址的关联关系记录 到组播转发表中。 而且, 该网关设备还会检查是否有其他的组播客户端点 播过该组播源的节目, 如果没有, 该网关设备则主动向流媒体服务器发出 组播 Report"^文来请求组播业务;如果有其他的组播客户端点播过该组播源 的节目, 该网关设备则不用再次向流媒体服务器发送组播 Report报文, 直接 在组播转发表上增加点播该组播源的组播客户端 IP地址的记录。 The following takes the STB as the gateway device to carry out the multicast service as an example. The working mechanism of the IPTV multicast service includes: on-demand programming, exit-on-demand, and forwarding of programs. The STB sends an on-demand report message to the gateway device, and the on-demand report message includes an association between the IP address of the STB and the multicast group address; the gateway device receives the STB. When the report message is requested, the association between the IP address of the STB and the multicast group address is obtained, and the association between the IP address of the STB and the multicast group address is recorded in the group. Broadcast in the forwarding table. Moreover, the gateway device also checks whether other multicast client endpoints broadcast the program of the multicast source. If not, the gateway device actively sends a multicast Report message to the streaming media server to request the multicast service; If another multicast client endpoint broadcasts the program of the multicast source, the gateway device does not need to send the multicast report packet to the streaming media server again, and directly adds the multicast of the multicast source to the multicast forwarding table. A record of the client's IP address.
需要说明的是,该组播转发表用于记录组播客户端的 IP地址和该组播客 户端请求的组播组地址之间的关联关系;该组播 Report报文包括网关设备的 IP地址和该网关设备所请求的组播组地址。 It should be noted that the multicast forwarding table is used to record the association between the IP address of the multicast client and the multicast group address requested by the multicast client; the multicast report packet includes the IP address of the gateway device and The multicast group address requested by the gateway device.
STB退出点播时, 该 STB向网关设备发出点播退出 (Quit )才艮文, 该网 关设备收到该点播 Quit报文后, 对其进行解析确认, 获得该 STB的 IP地址与 组播组地址之间的关联关系,并从组播转发表中找到对应该 STB的 IP地址与 组播组地址之间的关联关系并清除该关联关系的记录。 而且, 该网关设备 还会检查该 STB对应的组播源是否还有其他的组播客户端,如果没有,则说 明该网关设备内部已经没有组播客户端在点播该组播源的节目, 则该网关 设备发出组播 Quit报文给该组播源;如果还有其他的组播客户端在点播该组 播源的节目, 则该网关设备对该组播源不作任何处理。 When the STB exits the on-demand broadcast, the STB sends an on-demand exit (Quit) to the gateway device, and after receiving the on-demand Quit packet, the gateway device parses and confirms the information, and obtains the IP address and the multicast group address of the STB. The relationship between the two, and find the IP address corresponding to the STB from the multicast forwarding table. The association between multicast group addresses and the record of the association relationship is cleared. Moreover, the gateway device also checks whether the multicast source corresponding to the STB has other multicast clients. If not, it indicates that the multicast device does not have the multicast client on-demand the program of the multicast source. The gateway device sends a multicast Quit packet to the multicast source; if another multicast client is on-demand the program of the multicast source, the gateway device does not perform any processing on the multicast source.
网关设备转发组播源的节目报文时, 该网关设备收到下发的组播源的 节目后,通过查询组播转发表,找出该组播源对应的 STB的 IP地址,并向 STB 转发该组播源的节目报文; 如果有多个组播客户端, 网关设备则将该组播 源的节目报文复制, 同步转发给多个组播客户端。 After the gateway device forwards the program message of the multicast source, the gateway device receives the program of the multicast source, and then queries the multicast forwarding table to find the IP address of the STB corresponding to the multicast source, and sends the packet to the STB. Forwarding the program message of the multicast source; if there are multiple multicast clients, the gateway device copies the program message of the multicast source and forwards the program message to multiple multicast clients synchronously.
为使本发明上述目的、 特征和优点能够更加明显易懂, 下面结合附图 和具体实施例对本发明作进一步详细的说明。 The present invention will be further described in detail with reference to the drawings and specific embodiments.
本实施例在网关设备异常掉电重启后, 以组播业务的恢复流程为例, 对组播业务断开后快速恢复的实现流程进行说明。 参照图 2, 示出了本发明 组播业务断开后快速恢复的方法实施例一的实现流程, 主要包括如下步骤: 步骤 201 , 网关设备重启后, 要求查询组播客户端的组播业务信息, 主 动向组播客户端发出 Query报文; In this embodiment, after the gateway device is abnormally powered off and restarted, the multicast service recovery process is taken as an example to describe the implementation process of the fast recovery after the multicast service is disconnected. Referring to FIG. 2, the implementation process of the first embodiment of the method for quickly recovering the multicast service after the disconnection of the present invention is shown, which mainly includes the following steps: Step 201: After the gateway device is restarted, the multicast service information of the multicast client is required to be queried. Proactively send Query messages to the multicast client;
网关设备重启后进入正常工作状态, 需进行初始化工作, 但由于该网 关设备重启, 而重启前的组播转发表被清空, 组播业务的连接全部需要重 新构建。 而组播客户端在没有人工干预的情况下又不能立即再次发出组播 连接的点播 Report报文,这就需要该网关设备主动发起查询组播客户端的要 求, 即要求查询组播客户端的组播业务信息。 After the gateway device is restarted, it enters the normal working state and needs to be initialized. However, because the gateway device is restarted, the multicast forwarding table before the restart is cleared, and the connection of the multicast service needs to be re-established. The multicast client cannot immediately re-send the on-demand report message of the multicast connection without manual intervention. This requires the gateway device to initiate the request for querying the multicast client, that is, to query the multicast of the multicast client. Business information.
其中, 所述查询组播客户端的组播业务信息为: 该网关设备根据组播 协议, 向组播客户端发出的 Query报文, 要求下挂的所有组播客户端进行答 复。 该 Query报文主要查询组播客户端是否存在点播的组播业务信息。 The multicast service information of the querying multicast client is: the gateway device sends a Query message to the multicast client according to the multicast protocol, and all the multicast clients that are connected are required to reply. The Query message mainly queries whether the multicast client has on-demand multicast service information.
需要说明的是, 互联网组管理协议(IGMP, Internet Group Management Protocol )为组播协议中的一种, 这里就以 IGMP为例来说明所述组播协议: 该 IGMP用于在组播客户端和与其直接相邻的网关设备之间建立及维护组 播关系。 该网关设备能够通过基于 IGMP的 Query报文了解下挂在其上的组 播客户端的点播情况。 而组播客户端会保存自身点播的组播业务信息, 如 组播组地址, 即组播业务对应的组播源地址等。 It should be noted that the Internet Group Management Protocol (IGMP, Internet Group Management) Protocol is a type of multicast protocol. The IGMP is used as an example to describe the multicast protocol. The IGMP is used to establish and maintain a multicast relationship between a multicast client and a gateway device directly adjacent to it. . The gateway device can learn the on-demand situation of the multicast client hanged on it through the IGMP-based Query message. The multicast client stores the multicast service information that is requested by the multicast client, such as the multicast group address, that is, the multicast source address corresponding to the multicast service.
例如: 该网关设备向每个内部网络接口都发送一个 IGMP的 Query报文, 要求连接在其内部网络接口上的每个有组播业务的组播客户端均返回一个 响应 Report报文。但是, 由于网关设备不清楚其内部网络接口上当前有多少 组播客户端, 因此, 该 IGMP的 Query报文的目的 IP地址设为 224.0.0.1 , 而 IGMP的组播组地址即组播业务对应的组播源地址为 0。 如此, 使得该网关 设备下挂的所有组播客户端均能收到该 Query报文, 达到查询断开的所有组 播业务的目的。 For example, the gateway device sends an IGMP Query message to each internal network interface, and each multicast client that has a multicast service connected to its internal network interface returns a response report message. However, because the gateway device does not know how many multicast clients are currently on the internal network interface, the destination IP address of the IGMP Query message is set to 224.0.0.1, and the IGMP multicast group address corresponds to the multicast service. The multicast source address is 0. In this way, all the multicast clients connected to the gateway device can receive the Query message and the purpose of querying all the multicast services that are disconnected.
步骤 202, 收到 Query报文后, 组播客户端检查自身是否存在点播的组 播业务信息, 如果不存在点播的组播业务信息, 则执行步骤 203; 如果存在 点播的组播业务信息, 则执行步骤 204; Step 202: After receiving the Query message, the multicast client checks whether there is on-demand multicast service information. If there is no on-demand multicast service information, step 203 is performed; if there is on-demand multicast service information, Perform step 204;
步骤 203 , 该组播客户端不必回复网关设备, 该组播客户端结束当前流 程; Step 203: The multicast client does not have to reply to the gateway device, and the multicast client ends the current process.
步骤 204, 存在点播的组播业务信息的组播客户端向网关设备回复响应 Report才艮文; Step 204: The multicast client that has the on-demand multicast service information returns a response to the gateway device.
该组播客户端收到 Query报文后, 如果存在点播的组播业务信息, 则以 响应 Repor 艮文的形式向网关设备回复该 Query才艮文。 该响应 Report^艮文包 括了组播客户端的 IP地址与所点播的组播业务对应的组播组地址等信息,以 便于网关设备借助该响应 Report报文, 重新建立被中断的组播连接, 使组播 业务得以重新开展。 After receiving the Query message, if the multicast client has the on-demand multicast service information, the multicast client replies to the gateway device in response to the Repor message. The response report includes the information such as the multicast address of the multicast client and the multicast group address corresponding to the multicast service that is requested, so that the gateway device re-establishes the interrupted multicast connection by using the response report packet. Enable the multicast service to be re-launched.
其中, 组播客户端所回复的响应 Report报文包括: 组播组地址即组播业 务对应的组播源地址, 如 D类地址: 224.223.0.100; 以及该组播客户端的 IP 地址, 如 PC或 STB的 IP地址。 The response report message replied by the multicast client includes: The multicast group address is the multicast industry. The corresponding multicast source address, such as the class D address: 224.223.0.100; and the IP address of the multicast client, such as the IP address of the PC or STB.
步骤 205 , 网关设备收到该响应 Report报文后, 向流媒体服务器发送对 应的组播业务请求的组播 Report报文; Step 205: After receiving the response report message, the gateway device sends a multicast report message corresponding to the multicast service request to the streaming media server.
该网关设备收到其下挂组播客户端的响应 Report报文后, 解析该响应 Report报文, 以获得组播业务信息、 组播客户端的 IP地址以及与该组播业务 对应的组播组地址。 并且, 该网关设备将解析获得的组播组地址以及组播 客户端的 IP地址的关联关系记录在组播转发表中,该组播转发表将记录并更 新该组播组地址和组播客户端的 IP地址关联关系。并且,该网关设备根据解 析该响应加入 ^艮文获得组播客户端所点播的组播业务信息、 组播组地址以 及组播客户端的 IP地址等,构建对应的组播业务请求的组播加入报文。然后, 该网关设备向对应的组播源请求建立组播业务,即发送组播 Report^文给流 媒体服务器。 该网关设备通过获取并上报响应 Report报文中组播组地址, 以 获取被中断的组播业务的组播数据。如此,就可以根据所述响应 Report报文, 向流媒体服务器请求重新建立组播业务。 After receiving the response report message of the multicast client, the gateway device parses the response report message to obtain the multicast service information, the IP address of the multicast client, and the multicast group address corresponding to the multicast service. . And the gateway device records the association relationship between the obtained multicast group address and the IP address of the multicast client in a multicast forwarding table, where the multicast forwarding table records and updates the multicast group address and the multicast client. IP address association. And the gateway device obtains the multicast service information, the multicast group address, and the IP address of the multicast client that are multicast by the multicast client according to the response to the response, and constructs a multicast join request for the corresponding multicast service request. Message. Then, the gateway device requests the corresponding multicast source to establish a multicast service, that is, sends the multicast report message to the streaming media server. The gateway device obtains and reports the multicast group address in the response report packet to obtain the multicast data of the interrupted multicast service. In this way, the streaming server can be requested to re-establish the multicast service according to the response report message.
其中, 该组播转发表用于记录组播源和组播客户端的关联关系, 也便 于该网关设备查找组播客户端的 IP地址和组播组地址; 该组播 Report报文记 录了网关设备的 IP地址和该网关设备所请求的组播组地址;所述对应的组播 业务请求是指所述响应 Report报文中组播源对应的组播业务。 The multicast forwarding table is used to record the association between the multicast source and the multicast client, and the gateway device is configured to search for the IP address and the multicast group address of the multicast client. The multicast report packet records the gateway device. The IP address and the multicast group address requested by the gateway device; the corresponding multicast service request refers to the multicast service corresponding to the multicast source in the response report message.
步骤 206, 流媒体服务器收到组播业务请求的组播 Report报文后, 下发 所请求的组播业务的组播数据报文; Step 206: After receiving the multicast report message requested by the multicast service, the streaming media server delivers the multicast data packet of the requested multicast service.
该流媒体服务器查找组播 Report报文中所请求的组播业务对应的组播 数据, 并以组播数据报文的形式将该组播数据下发至该网关设备上。 The streaming server searches for the multicast data corresponding to the multicast service in the multicast report message, and delivers the multicast data to the gateway device in the form of a multicast data packet.
步骤 207, 网关设备向组播客户端转发流媒体服务器下发的组播数据报 文, 以建立组播业务。 该网关设备根据组播转发表转发组播数据报文, 即: 对该组播数分析 据报文、 并确定该组播数据报文所对应的组播源; 该网关设备再根据所确 定的组播源找到与该组播源对应的组播客户端, 并向该组播客户端转发组 播数据报文, 从而迅速建立组播业务。 Step 207: The gateway device forwards the multicast data packet delivered by the streaming media server to the multicast client to establish a multicast service. The gateway device forwards the multicast data packet according to the multicast forwarding table, that is, analyzes the data packet and determines the multicast source corresponding to the multicast data packet; the gateway device further determines the multicast source according to the The multicast source finds the multicast client corresponding to the multicast source, and forwards the multicast data packet to the multicast client, so as to quickly establish a multicast service.
至此可见, 在网关设备异常后, 上述方法实施例一实现了组播业务快 速恢复。 It can be seen that after the gateway device is abnormal, the first embodiment of the foregoing method implements fast recovery of the multicast service.
下面结合网关设备内部的不同分工以及具体的组播客户端, 来说明组 播业务断开后快速恢复的方法实施例二的实现流程。 本实施例中, 该组播 客户端以机顶盒为例, 该网关设备包括: 组播管理模块和组播客户端查询 模块, 如图 3所示, 主要包括如下步骤: The following describes the implementation process of the second embodiment of the method for quickly recovering the multicast service after the disconnection of the multicast service, in combination with the different division of the gateway device and the specific multicast client. In this embodiment, the multicast client uses a set-top box as an example. The gateway device includes: a multicast management module and a multicast client query module, as shown in FIG. 3, which mainly includes the following steps:
步骤 301 , 组播管理模块进行初始化, 并要求查询组播客户端的组播业 务信息; Step 301: The multicast management module initializes, and requests to query multicast service information of the multicast client.
网关设备重启后进入正常工作状态, 该网关设备上的组播管理模块进 入初始化工作阶段, 该组播管理模块主动要求组播客户端查询模块查询组 播客户端的组播业务信息。 After the gateway device is restarted, it enters the normal working state. The multicast management module on the gateway device enters the initialization working phase. The multicast management module actively requests the multicast client query module to query the multicast service information of the multicast client.
步骤 302, 组播客户端查询模块发出 Query报文; Step 302: The multicast client query module sends a Query message.
该组播客户端查询模块向网关设备局域网 (LAN )侧下挂的所有组播 客户端发出 Query报文。 The multicast client query module sends a Query message to all multicast clients connected to the local area network (LAN) side of the gateway device.
步骤 303 , 组播客户端收到 Query报文后, 向网关设备上的组播管理模 块回复响应 Report才艮文; Step 303: After receiving the Query message, the multicast client returns a response report to the multicast management module on the gateway device.
组播客户端收到 Query报文后, 查询后发现自身存在点播的组播业务信 息, 则向网关设备上的组播管理模块回复响应 Report报文。 After receiving the Query message, the multicast client finds that it has the multicast service information on demand, and then sends a response report message to the multicast management module on the gateway device.
其中, 该响应 Report才艮文用于重建组播连接, 该响应 Report才艮文包括: 组播组地址与组播客户端的 IP地址。 The response report is used to re-establish a multicast connection, and the response report includes: a multicast group address and an IP address of the multicast client.
步骤 304, 组播管理模块解析收到的响应 Report报文, 向流媒体服务器 发送组播 Report报文, 要求重新开展组播业务; Step 304: The multicast management module parses the received response report message to the streaming media server. Send a multicast Report message and request to re-run the multicast service.
该组播管理模块收到该响应 Report报文后, 解析该响应 Report报文, 并 将解析获得的组播组地址与组播客户端的 IP地址记录在组播转发表中 ,然后 向流媒体服务器发出组播 Report报文, 要求重新开展组播业务。 其中, 该组 播转发表由组播管理模块进行维护。 After receiving the response report message, the multicast management module parses the response report message, records the obtained multicast group address and the IP address of the multicast client in the multicast forwarding table, and then sends the response to the streaming server. A multicast report packet is sent, and the multicast service is required to be re-established. The multicast forwarding table is maintained by the multicast management module.
步骤 305 , 流媒体服务器收到组播 Report报文后, 向网关设备的组播管 理模块下发组播数据报文; Step 305: After receiving the multicast report message, the streaming media server sends a multicast data packet to the multicast management module of the gateway device.
步骤 306, 组播管理模块收到组播数据报文后, 将该组播数据报文转发 给该组播客户端。 Step 306: After receiving the multicast data packet, the multicast management module forwards the multicast data packet to the multicast client.
该组播管理模块收到组播数据报文后, 对该组播数据进行分析, 以确 定该组播数据所源于的组播源, 并根据组播转发表以及该组播源找到对应 的组播客户端, 向该对应的组播客户端转发组播数据 4艮文, 从而迅速恢复 组播业务。 After receiving the multicast data packet, the multicast management module analyzes the multicast data to determine a multicast source from which the multicast data originates, and finds a corresponding according to the multicast forwarding table and the multicast source. The multicast client forwards the multicast data to the corresponding multicast client, thereby quickly recovering the multicast service.
对于上述的各实施例, 为了简单描述, 故将其都表述为一系列的动作 组合, 但是本领域技术人员应该知悉, 本发明并不受所描述的动作顺序的 限制, 因为依据本发明, 某些步骤可以釆用其他顺序或者同时进行。 For the above embodiments, for the sake of brevity, they are all described as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described order of actions, because according to the present invention, These steps can be performed in other orders or at the same time.
为实现上述方法, 本发明还提供一种组播业务断开后快速恢复的装置 及网关设备, 如图 4所示, 该装置包括: 网关设备 402和组播客户端 403; 其 中, In order to implement the foregoing method, the present invention further provides a device and a gateway device for quickly recovering after the multicast service is disconnected. As shown in FIG. 4, the device includes: a gateway device 402 and a multicast client 403;
网关设备 402, 用于在重启后, 查询组播客户端是否存在点播的组播业 务信息, 并根据所述组播客户端回复的响应加入报文, 请求并建立组播业 务; The gateway device 402 is configured to: after the restart, query whether the multicast client has the on-demand multicast service information, and join the packet according to the response replied by the multicast client to request and establish the multicast service;
组播客户端 403 , 用于在其自身存在点播的组播业务信息时, 向所述网 关设备 402回复响应 Report才艮文。 The multicast client 403 is configured to reply to the gateway device 402 in response to the report message when it has the multicast service information on demand.
上述装置还包括流媒体服务器 401 , 该流媒体服务器 401用于接收所述 网关设备 402的组播业务请求, 并向所述网关设备 402下发与该组播业务请 求对应的组播数据报文。 其中, 该组播业务请求为网关设备 402向流媒体服 务器 401请求建立组播业务时发送的, 即组播 Repor 艮文。 The above apparatus further includes a streaming media server 401, the streaming media server 401 is configured to receive the The multicast service request of the gateway device 402 is sent, and the multicast data packet corresponding to the multicast service request is sent to the gateway device 402. The multicast service request is sent when the gateway device 402 requests the streaming media server 401 to establish a multicast service, that is, a multicast Repor message.
上述装置中, 所述网关设备 402, 具体用于在重启后, 向组播客户端 403 发出 Query报文。 所述组播客户端 403 , 具体用于在收到所述网关设备 402的 Query报文后, 检查自身是否存在点播的组播业务信息。 In the above device, the gateway device 402 is specifically configured to send a Query message to the multicast client 403 after the restart. The multicast client 403 is specifically configured to check whether there is on-demand multicast service information after receiving the Query message of the gateway device 402.
更进一步地, 所述网关设备 402包括: 组播管理模块 4021和组播客户端 查询模块 4022; 其中, Further, the gateway device 402 includes: a multicast management module 4021 and a multicast client query module 4022;
组播管理模块 4021 , 用于在网关设备 402重启后, 通知组播客户端查询 模块 4022查询组播客户端 403是否存在点播的组播业务信息。 该组播管理模 块 4021还用于在所述组播客户端查询模块 4022查询到组播客户端 403存在 点播的组播业务信息时, 请求并建立组播业务; The multicast management module 4021 is configured to notify the multicast client query module 4022 to query whether the multicast client 403 has on-demand multicast service information after the gateway device 402 is restarted. The multicast management module 4021 is further configured to request and establish a multicast service when the multicast client query module 4022 queries the multicast client 403 to have on-demand multicast service information.
组播客户端查询模块 4022, 用于查询组播客户端 403是否存在点播的组 播业务信息。 The multicast client query module 4022 is configured to query whether the multicast client 403 has the on-demand multicast service information.
上述网关设备 402中, 所述组播管理模块 4021包括: 初始化单元、 "^文 处理单元及转发单元; 其中, In the above gateway device 402, the multicast management module 4021 includes: an initialization unit, a "meman processing unit, and a forwarding unit;
初始化单元, 用于在网关设备重启后, 通知组播客户端查询模块 4022 查询组播客户端 403是否存在点播的组播业务信息; An initializing unit, configured to notify the multicast client query module 4022 to query whether the multicast client 403 has on-demand multicast service information after the gateway device is restarted;
报文处理单元, 用于在所述组播客户端查询模块查询到组播客户端存 在点播的组播业务信息时, 请求并建立组播业务, 即: 具体用于接收并解 析组播客户端上报的组播响应 Report报文和流媒体服务器下发的组播数据 报文, 以获得组播业务信息; The message processing unit is configured to request and establish a multicast service when the multicast client query module queries the multicast service information of the multicast client to be on-demand, that is, specifically: receiving and parsing the multicast client The reported multicast response report message and the multicast data message delivered by the streaming media server to obtain multicast service information;
转发单元, 用于将所述^艮文处理单元解析到的组播客户端 403的 IP地址 与该组播客户端 403所点播的组播组地址关联关系记录到组播转发表中, 并 根据组播转发表向流媒体服务器转发组播 Report报文、以及向组播客户端转 发组播数据报文。 a forwarding unit, configured to record, in the multicast forwarding table, an IP address of the multicast client 403 to which the processing unit is parsed and a multicast group address that the multicast client 403 broadcasts, and The multicast forwarding table forwards the multicast Report message to the streaming server and transfers it to the multicast client. Send multicast data packets.
其中, 所述组播转发表记录组播源和组播客户端 403之间的关联关系, 即组播客户端 403的 IP地址与组播组地址的关联关系。 当网关设备 402重启, 组播转发表清空的情况下, 组播客户端查询模块 4022向组播客户端 403发送 Query报文, 组播客户端 403收到该 Query报文后, 立即上报响应 Report报文, 从而快速恢复组播业务。 The multicast forwarding table records the association between the multicast source and the multicast client 403, that is, the association between the IP address of the multicast client 403 and the multicast group address. When the gateway device 402 is restarted and the multicast forwarding table is cleared, the multicast client query module 4022 sends a Query message to the multicast client 403. After receiving the Query message, the multicast client 403 immediately reports the response to the report. Packets, which quickly restore multicast services.
在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没 有详述的部分, 可以参见其他实施例的相关描述即可。 以上所述, 仅为本 发明的较佳实施例而已, 只是用来说明和解释本发明, 并非用于限定本发 明的保护范围。 在本发明的精神和权利要求保护范围之内, 对本发明所作 的任何修改、 等同替换, 都落入本发明的保护范围。 In the above embodiments, the descriptions of the various embodiments are different, and the details are not described in detail in an embodiment, and the related descriptions of other embodiments may be referred to. The above is only the preferred embodiment of the present invention, and is intended to illustrate and explain the present invention, and is not intended to limit the scope of the present invention. It is intended that any modifications and equivalents of the present invention are intended to be included within the scope of the present invention.
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNA2009100831907A CN101557296A (en) | 2009-05-05 | 2009-05-05 | Method of quick recovery after break of multicast service, device and gateway device |
| CN200910083190.7 | 2009-05-05 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2010127599A1 true WO2010127599A1 (en) | 2010-11-11 |
Family
ID=41175252
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2010/072306 Ceased WO2010127599A1 (en) | 2009-05-05 | 2010-04-28 | Quick recovery method for a multicast service after break, apparatus and gateway device thereof |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN101557296A (en) |
| WO (1) | WO2010127599A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115460470A (en) * | 2022-08-19 | 2022-12-09 | 武汉烽火技术服务有限公司 | Multicast data forwarding method, device, equipment and readable storage medium |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101494548B (en) * | 2009-03-02 | 2011-07-13 | 中兴通讯股份有限公司 | Method and apparatus for reducing network television multicast cutoff time |
| CN101557296A (en) * | 2009-05-05 | 2009-10-14 | 中兴通讯股份有限公司 | Method of quick recovery after break of multicast service, device and gateway device |
| CN107769945B (en) * | 2016-08-19 | 2021-02-23 | 中国电信股份有限公司 | Method and device for realizing automatic configuration and IPTV intelligent terminal |
| CN109507916B (en) * | 2017-09-14 | 2021-06-29 | 佛山市顺德区美的电热电器制造有限公司 | Method, device, server and storage medium for controlling recovery work of household appliance |
| CN114285820B (en) * | 2021-12-24 | 2024-03-29 | 凌云天博光电科技股份有限公司 | Multicast method, system and electronic equipment based on MoCA technology |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101102274A (en) * | 2007-08-13 | 2008-01-09 | 中兴通讯股份有限公司 | A redundancy backup method of multicast source port |
| CN101159647A (en) * | 2007-10-22 | 2008-04-09 | 中国电信股份有限公司 | System and method of implementing gateway local parameter fast recovery |
| CN101557296A (en) * | 2009-05-05 | 2009-10-14 | 中兴通讯股份有限公司 | Method of quick recovery after break of multicast service, device and gateway device |
-
2009
- 2009-05-05 CN CNA2009100831907A patent/CN101557296A/en active Pending
-
2010
- 2010-04-28 WO PCT/CN2010/072306 patent/WO2010127599A1/en not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101102274A (en) * | 2007-08-13 | 2008-01-09 | 中兴通讯股份有限公司 | A redundancy backup method of multicast source port |
| CN101159647A (en) * | 2007-10-22 | 2008-04-09 | 中国电信股份有限公司 | System and method of implementing gateway local parameter fast recovery |
| CN101557296A (en) * | 2009-05-05 | 2009-10-14 | 中兴通讯股份有限公司 | Method of quick recovery after break of multicast service, device and gateway device |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115460470A (en) * | 2022-08-19 | 2022-12-09 | 武汉烽火技术服务有限公司 | Multicast data forwarding method, device, equipment and readable storage medium |
| CN115460470B (en) * | 2022-08-19 | 2024-03-26 | 烽火通信科技股份有限公司 | Multicast data forwarding method, device, equipment and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101557296A (en) | 2009-10-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113872916B (en) | Data retransmission method, network device, and computer-readable storage medium | |
| US8588077B2 (en) | Retransmission-based stream repair and stream join | |
| CN101461194B (en) | Method and system for remotely accessing devices in a network | |
| US8270294B2 (en) | Method and apparatus for implementing multicast service | |
| WO2010127599A1 (en) | Quick recovery method for a multicast service after break, apparatus and gateway device thereof | |
| WO2007118405A1 (en) | Device, system and method for carrying out remote software upgrading | |
| US20090316573A1 (en) | System and method for transmitting messages using a redundancy mechanism | |
| WO2009052712A1 (en) | Method, system and router for multicast flow handover | |
| US20190140884A1 (en) | Multicast Delay Diagnosis Method and Apparatus | |
| WO2009021460A1 (en) | Method for reporting implement result of policy, network communication system and equipment | |
| TW201006189A (en) | System and method for connecting a wireless network device | |
| CN109862437B (en) | Forwarding table item creating method and BRAS | |
| CN101102274A (en) | A redundancy backup method of multicast source port | |
| CN102264001A (en) | Method for enhancing multicast reliability of Internet protocol television (IPTV), server and system | |
| CN101668027A (en) | Method and system for providing multimedia content, content server and client | |
| WO2012159287A1 (en) | Method and device for data transmission | |
| US8762549B2 (en) | System and method for IPTV node recovery | |
| CN100466832C (en) | A multicast member management method for wireless local area network IP multicast frame transmission | |
| US20070274310A1 (en) | Method and system for processing abnormally becoming power off of a terminal of multicast user | |
| WO2010099687A1 (en) | Method and device for reducing interruption time of internet protocol television multicast stream | |
| CN100563206C (en) | Method and device for controlling multicast channel | |
| JP7126334B2 (en) | Method for controlling wireless links in local area networks including wireless bridges, separate wireless bridges, program storage media and computer programs | |
| CN100527680C (en) | Method and device for automatically identifying multicast agent device interface types | |
| US20080198771A1 (en) | Method, Apparatus or Software for a Multicast Network for Providing Indications of Active Multicast Groups to one or more Multicast Receivers | |
| CN100452768C (en) | Multicast method and access device for combining source-specific multicast and source-independent multicast |
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: 10772002 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 10772002 Country of ref document: EP Kind code of ref document: A1 |