WO2009030080A1 - A handover processing method in the cdn agent - Google Patents

A handover processing method in the cdn agent Download PDF

Info

Publication number
WO2009030080A1
WO2009030080A1 PCT/CN2007/003508 CN2007003508W WO2009030080A1 WO 2009030080 A1 WO2009030080 A1 WO 2009030080A1 CN 2007003508 W CN2007003508 W CN 2007003508W WO 2009030080 A1 WO2009030080 A1 WO 2009030080A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
node controller
streaming
agent
handover
Prior art date
Application number
PCT/CN2007/003508
Other languages
French (fr)
Chinese (zh)
Inventor
Yan Liu
Original Assignee
Zte Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zte Corporation filed Critical Zte Corporation
Publication of WO2009030080A1 publication Critical patent/WO2009030080A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists

Definitions

  • the present invention relates to the field of telecommunications services IPTV (Internet Television), and in particular to a handover processing method for a streaming media node controller (Agent). Background technique
  • IPTV is an interactive network TV based on broadband high-speed IP network with network video resources as the main body and TV, computer and other display terminals. It integrates various technologies such as Internet, multimedia and communication, and can provide digital TV programs. Many services such as on-demand programming, online information consultation, and visual IP telephony. Since IPTV makes full use of the respective advantages and characteristics of telecommunications, television and internet, it effectively realizes the substantive interaction between media providers and media consumers. Therefore, it will become the next promising value-added service in the telecom industry. , with huge market potential.
  • the Content Distribution Network (CDN Subsystem) is responsible for the distribution control of content and the push of content to edge service nodes to improve the quality of content services in IPTV.
  • the CDN subsystem is mainly composed of a CDN controller (CDN Manager) and a streaming media node controller (CDN Agent).
  • CDN Manager is responsible for accessing the IPTV service management system, and the CDN Agent and the streaming media system together form a distributed streaming media node.
  • Each agent of each node has only one agent at a certain time, and the agent acting as the scheduling agent is the main agent, and the other agent is the standby agent.
  • the main agent or the standby agent has the label in the Manager. (EPG) and the streaming media system only maintain the heartbeat with the main agent, so only the main agent can perform operations such as redirection and other services for the user.
  • EPG EPG
  • the streaming media system only maintain the heartbeat with the main agent, so only the main agent can perform operations such as redirection and other services for the user.
  • a good Agent is used as the new main agent, so that it will not cause the user to provide services due to the Agent failure.
  • the identity of the master/slave agent in the Manager must be consistent with the identity of the Agent itself. If the Agents coexist and cannot communicate with each other, the Manager must be able to perform accurate secondary planting and identification confirmation. There can be no '1 ⁇ green conditions of multiple primary agents under the same node, nor can there be no primary agent under the node but Manager It does not trigger the search for the main Agent. However, it has not been proposed yet to achieve the above. Technical effects program.
  • the present invention has been made in view of the above problems in the related art, and the present invention is directed to a switching processing method of a streaming media node controller (Agent).
  • the streaming media node controller switching processing method according to the present invention is used for streaming media node controller switching in a content distribution network, wherein a streaming media node of the content distribution network has a plurality of streaming media node controllers, and at a certain moment Only one streaming node controller acts as a primary media node controller for scheduling purposes.
  • the method includes: setting an information table and/or a comparison table, wherein the information table records information of each streaming node controller of the content distribution network, where the information includes a node to which the streaming node controller belongs, a working mode, and a link state.
  • the comparison table records the identification information of each node of the content distribution network and/or the mainstream media node controller of the node; the traversal information table and/or the comparison table, for the mainstream media node controller whose link state is abnormal
  • the node and/or the mainstream media node controller's identification information is an empty node, and a primary handover request is initiated.
  • the process of initiating the main handover request by traversing the information table is specifically: setting a first timer, triggering each streaming node controller in the traversal information table, and determining whether the streaming node controller determined to be a link abnormality is The mainstream media node controller, if the determination result is yes, determines the node to which the mainstream media node controller belongs, and selects a streaming media node controller whose link state is normal to send a primary handover request, to request that the switch is Mainstream media node controller.
  • traversing is performed by transmitting a heartbeat request to each of the streaming node controllers in the information table, and a third timer is set, wherein, according to whether the streaming node controller returns to the heart before the third timer expires A mega-response is used to determine if the link is normal. Based on this, the streaming node controller that has no heartbeat response after the third timer expires for a predetermined predetermined number of times determines that it is a streaming node controller whose link is abnormal. Further, for the streaming node controller determined to be abnormal in the link, the link state corresponding to the link recorded in the information table is set to be abnormal.
  • the process of initiating the main handover request by traversing the comparison table is specifically: setting a second timer, triggering each node in the traversal comparison table, and selecting a link of the node for the node whose identification information of the mainstream media node controller is empty
  • the streaming node controller with the normal status sends a primary handover request to request that it switch to the mainstream media node controller.
  • the fourth timer is set when the main handover request is transmitted. It should be noted that the additional information of the third timer/fourth timer carries the base of the associated streaming media node controller.
  • the sender sends a master switch request.
  • the slave handover control request is further sent to all other media control pointcuts under the node to which the new mainstream media node controller belongs to request that the handover be from the streaming node controller.
  • the slave slave switching request is continued; for the case where the handover succeeds, the corresponding working mode of the other stream media control pointcuts in the information table is set to the slave mode.
  • the streaming node controller sets the corresponding working mode in the information table to the slave working mode, and belongs to it.
  • the node sets the corresponding mainstream media node controller identifier in the comparison table to be empty, and reselects the streaming node controller whose link state is normal to send the primary handover request.
  • the invention realizes the switching process of the multi-agent in the IPTV, effectively arbitrates the function of the mutual agent of the multiple agents under the node to provide the monthly service, and ensures that the situation of the unowned agent and the multiple main agents does not occur, so that each The system can stably provide various media services to users, thus ensuring system stability and post-maintenance quality, and reducing maintenance costs.
  • FIG. 3 P 16849 1 is a system framework diagram of an IPT V CDN subsystem to which the present invention is applied;
  • FIG. 2 is a schematic flowchart of an agent handover processing method according to an embodiment of the present invention;
  • FIG. 3 is an agent handover processing method according to an embodiment of the present invention;
  • FIG. 4 is a flowchart of a process after triggering a handover request in an agent handover processing method according to an embodiment of the present invention.
  • FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The preferred embodiments of the present invention are described with reference to the accompanying drawings.
  • the present invention aims to provide a switching processing method for a streaming media node controller (Agent).
  • Agent streaming media node controller
  • the CDN may include multiple streaming media nodes (hereinafter referred to as nodes), that is, one Manager may control multiple nodes, and each node may have multiple agents, and at some Only one agent acts as the primary agent at a time, and other agents are called standby agents or slave agents. Since each agent may become the primary agent, each agent and its own node are guaranteed to ensure that the system can provide services normally. All the streaming media under the link.
  • nodes multiple streaming media nodes
  • each agent may have multiple agents, and at some Only one agent acts as the primary agent at a time, and other agents are called standby agents or slave agents. Since each agent may become the primary agent, each agent and its own node are guaranteed to ensure that the system can provide services normally. All the streaming media under the link.
  • the idea of the method according to the embodiment of the present invention is roughly as follows, that is, maintaining (storing) the information table and the comparison table, determining whether to initiate a handover request by traversing the information/reference table, and then following the response result to the handover request.
  • the method may include the following processing: Step S202, setting an information table and/or a comparison table, where the information table records information of each agent of the CDN (including the node to which the agent belongs, the working mode Basic information such as link status, communication parameters, IP address, etc.;
  • the comparison table records the identification information of each node of the CDN and/or the primary agent of the node (when a node does not have a primary agent, the corresponding primary agent identifier Empty, wherein the information stored in the information table and the comparison table can be obtained from the database synchronization after the system is restarted;
  • Step S204 traversing the information table and/or the comparison table, for the mainstream media whose link status is abnormal
  • step S204 The node to which the node controller belongs and/or the identifier information of the mainstream media node controller is an empty node, and a primary handover request is initiated.
  • the process of initiating the main handover request by traversing the information table is specifically: setting a first timer, triggering each agent in the traversal information table, that is, according to the communication parameters of the Agent in the information table
  • the agent sends a heartbeat request and sets a third timer.
  • the agent If an agent returns a heart/signal response before the third timer expires, the agent is considered to be normal and the timer is turned off; if an agent is scheduled for a predetermined number of times (may Pre-set) If there is no 3 mega-response after the third timer expires, the agent link is considered abnormal; for the agent determined to be abnormal, the link status recorded in the information table is set to abnormal. And determine whether it is the primary agent. If the judgment result is yes, determine the node to which the primary agent belongs, clear the corresponding primary agent identifier of the node in the comparison table, and select one of the node's link states to be sent by the normal agent.
  • the processing of the primary handover request is specifically as follows: setting a second timer, triggering each node in the traversal comparison table, and selecting a node with a normal link status of the node to be a normal node.
  • the request is switched to request that it be switched to the primary agent, and the fourth timer is set.
  • durations of the foregoing first to fourth timers are flexibly configured according to requirements, to adapt to different application environments or to set an optimal value according to actual conditions, for the third timer/fourth timer.
  • the agent, the set of the heart and the timeout timer are all the third timer/fourth timer. Therefore, in order to distinguish which agent is, it is necessary to carry the related agent in the additional information of setting the timer. Basic information to identify or distinguish Agents.
  • Step 1 Set The timer A (301), the timer A (ie, the first timer) triggers to traverse the Agent information table (302) stored in the memory, where the information table includes the section to which the Agent belongs.
  • Step 2 According to the communication parameters, the Manager initiates a heartbeat request to all Agents (303), and then sets a timeout timer C (ie, the third Timer) (304); Step 3: Determine whether the requested Agent returns the heart 5 response (305). If the response is returned before the timer C times out, the timer C is closed (306), and it is determined whether the working mode reported by the agent is consistent with the saved in the Manager memory. If they are consistent, the process ends (317); if not, the manager The Agent initiates a switch to a consistent handover request (308) and sets a timer D (316) awaiting the handover result.
  • a timeout timer C ie, the third Timer
  • Step 3 Determine whether the requested Agent returns the heart 5 response (305). If the response is returned before the timer C times out, the timer C is closed (306), and it is determined whether the working mode reported by the agent is consistent with the saved in the Manager memory. If they are consistent, the process ends (317); if not, the manager The Agent initiate
  • the agent does not return the heartbeat response after the timer C expires, it is determined that the agent is broken, and the link state of the agent in the memory is set to abnormal (309), and it is determined whether the broken chain agent is The current master agent (310), if not, the process ends (317); if yes, the node (314) to which the agent belongs is obtained, and an agent with a normal state under the node is searched as the master agent, and the switch is sent to The master agent's handover request (315), and sets a timer D (316) waiting for the handover result.
  • Step 1 Set the timer B ( 311 ), the timer B triggers to traverse the node in the memory and the master agent comparison table ( 312 );
  • Step 2 Determine the node in the comparison Whether there is a corresponding main agent (313) in the table, if yes, the process ends (317); if not, the node (314) to which the agent belongs is obtained, and an agent with a normal state under the node is searched as the main agent, It transmits a handover request (315) that is switched to the primary agent, and sets a timer D (316) waiting for the handover result.
  • the agent that is requested to switch returns a handover response before the fourth timer expires, the fourth timer is closed, and the handover is successful; if the handover is successful, the agent is used as the new primary agent, and The corresponding working mode in the information table is set as the main working mode, and its identifier is saved to the comparison table; in the case of the switching failure, the corresponding working mode of the agent in the information table is set to the working mode, and the node to which it belongs is set.
  • the corresponding primary agent ID is set to null, and the link whose status of the node to which the node belongs is normal is sent.
  • the slave handover control request is further sent to all other streaming media control points under the node to which the new primary agent belongs to request that it switch to the secondary agent. Then, for the case where the handover response is not returned or the handover fails, the slave slave switching request is continued; for the case where the handover succeeds, the corresponding working mode of the other stream media control pointcuts in the information table is set to the slave mode. On the other hand, if the agent requested to switch does not return the handover response before the fourth timer expires, the corresponding working mode of the Agent in the information table is set to the slave working mode, and the node to which the node belongs is in the corresponding table in the comparison table.
  • the Agent ID is set to null, and the link of the node to which it belongs is reselected ⁇ !
  • the large state sends a primary handover request to the normal Agent.
  • the Manager needs to determine whether the response responds to the request to switch to the primary agent, or the response to the request to switch from the agent, and then perform subsequent processing according to the determination result.
  • the content can be further understood as shown in Figure 4. 4 is a flowchart showing the processing flow after receiving the handover response in detail, and the present invention will be further described below with reference to FIG. 4. As shown in FIG.
  • Case 1 The agent returns the handover result (401) before the timer D (ie, the fourth timer described above) times out, and then the processing step As follows: Step 1: Turn off timer D (402); Step 2: Determine whether the working mode that the agent wants to switch to is the primary agent (403); If you want to switch to the secondary agent, determine whether the returned switching result is successful ( 404), if it is unsuccessful, continue to send a handover request to the agent to switch from the agent (405), and set a timer D to wait for the handover result (420); if the handover is successful, update the agent in the in-memory agent information table The working mode (406), and synchronously update the information of the agent in the database (407); to switch to the main agent, determine whether the returned switching result is successful (408), if successful, update the in-memory agent information table The working mode of the agent (409), and synchronously updating the information (410) of the agent in the database, and saving the
  • the working mode of the agent in the memory is set to the slave working mode (415), and the information of the agent in the database is updated synchronously (417), and the node in the memory and the master agent are compared.
  • the primary agent corresponding to the node is cleared (416).
  • the node is then searched for a new available primary agent (418), a handover request is sent to the primary agent (419), and a timer D is set to wait for the handover result (420).
  • Case 2 After the timer D has not returned the handover result (413), the agent has the following steps: Determine whether the working mode that the agent is to switch to is the primary agent (414); to switch to the secondary agent, continue to The Agent sends a handover request to the slave agent (421), and sets a timer D to wait for the handover result (420).
  • the working mode of the agent in the memory is set to the slave working mode (415), and the information of the agent in the database is updated synchronously (417), and the node in the memory and the master agent are compared in the table.
  • the primary agent corresponding to the node is cleared ( 416 ).
  • the node is then sought for a new available primary agent (418), a handover request is sent to the primary agent (419), and a timer D is set to wait for the handover result (420). At this point, the process is all over. In this way, through the invention, it is ensured that under the arbitration and identification confirmation of the Manager, the situation of the main agent and the multi-master agent does not occur, so that the whole system can stably provide various media services for the user.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are intended to be included within the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

A handover processing method in the CDN agent is provided by this invention, including: setting an information table and/or a comparison table, wherein the information table notes the information of each agent in CDN, and the comparison table notes each node of CDN and/or the identifier information of the master CDN agent in the node (S202); traversing the information table and/or the comparison table, for the node that the master CDN agent with link status abnormity belongs to and/or the node that the identifier information of the master CDN agent is blank, initiating the master handover request (S204). Through this invention, the handover process of multi agents in IPTV is implemented.

Description

流媒体节点控制器的切换处理方法 技术领域 本发明涉及电信通讯业务 IPTV (网络电视)领域, 特别地, 涉及流媒 体节点控制器 (Agent ) 的切换处理方法。 背景技术  TECHNICAL FIELD The present invention relates to the field of telecommunications services IPTV (Internet Television), and in particular to a handover processing method for a streaming media node controller (Agent). Background technique
IPTV是基于宽带高速 IP网的以网络视频资源为内容主体, 以电视机、 电脑等为显示终端的交互式网络电视, 融合了互联网、 多媒体、 通讯等各种 技术, 可以提供包括数字电视节目、 节目点播、 在线信息咨询、 可视 IP电话 等在内的诸多服务。 由于 IPTV充分利用了电信、 电视、 互联网各自的优势 和特点, 有效地实现了媒体提供者和媒体消费者之间的实质性互动, 因此, 它将会成为电信行业下一个极具前景的增值业务, 具有巨大的市场潜力。 内容分发网络 ( Content Distribution Network, CDN子系统)在 IPTV 中担负着内容的分发控制、 将内容推送到边缘服务节点提高内容服务质量的 功能。 CDN子系统主要由 CDN控制器 ( CDN Manager ) 和流媒体节点控制 器 ( CDN Agent ) 组成, CDN Manager负责接入 IPTV业务管理系统, CDN Agent与流媒体系统共同组成分布式流媒体节点。 每个节点的多个 Agent在 某一个时刻只有一个 Agent在起调度作用, 起调度作用的 Agent为主 Agent, 其他 Agent为备用 Agent, 主 Agent或者备用 Agent在 Manager有标 "ί只。 电 子节目单 (EPG ) 和流媒体系统只和主 Agent保持心跳, 所以只有主 Agent 才能进行重定向等为用户提供服务的操作。 当主 agent与 Manager断链或者 主 Agent本身坏掉的情况下, Manager寻找一个状态良好的 Agent作为新的 主 Agent, 这样就不会造成由于 Agent故障不能为用户提供服务。 为了消息的正常通讯, Manager中的主 /从 Agent的标识要和 Agent本身 的标识相一致, 在多个 Agent并存且互相不能通讯的情况下, Manager就必 须能够进行准确的仲栽和标识确认, 不能出现同一节点下存在多个主 Agent 的 '1·青况, 也不能出现节点下没有主 Agent但 Manager不触发寻找主 Agent的 情况。 然而, 目前尚未提出能够实现上述技术效果的方案。 IPTV is an interactive network TV based on broadband high-speed IP network with network video resources as the main body and TV, computer and other display terminals. It integrates various technologies such as Internet, multimedia and communication, and can provide digital TV programs. Many services such as on-demand programming, online information consultation, and visual IP telephony. Since IPTV makes full use of the respective advantages and characteristics of telecommunications, television and internet, it effectively realizes the substantive interaction between media providers and media consumers. Therefore, it will become the next promising value-added service in the telecom industry. , with huge market potential. The Content Distribution Network (CDN Subsystem) is responsible for the distribution control of content and the push of content to edge service nodes to improve the quality of content services in IPTV. The CDN subsystem is mainly composed of a CDN controller (CDN Manager) and a streaming media node controller (CDN Agent). The CDN Manager is responsible for accessing the IPTV service management system, and the CDN Agent and the streaming media system together form a distributed streaming media node. Each agent of each node has only one agent at a certain time, and the agent acting as the scheduling agent is the main agent, and the other agent is the standby agent. The main agent or the standby agent has the label in the Manager. (EPG) and the streaming media system only maintain the heartbeat with the main agent, so only the main agent can perform operations such as redirection and other services for the user. When the main agent and the Manager are broken or the main agent itself is broken, the Manager looks for a status. A good Agent is used as the new main agent, so that it will not cause the user to provide services due to the Agent failure. For the normal communication of the message, the identity of the master/slave agent in the Manager must be consistent with the identity of the Agent itself. If the Agents coexist and cannot communicate with each other, the Manager must be able to perform accurate secondary planting and identification confirmation. There can be no '1·green conditions of multiple primary agents under the same node, nor can there be no primary agent under the node but Manager It does not trigger the search for the main Agent. However, it has not been proposed yet to achieve the above. Technical effects program.
1 P16849 发明内容 考虑到相关技术中存在的上述问题而提出本发明, 为此, 本发明旨在提 供一种流媒体节点控制器 (Agent ) 的切换处理方法。 根据本发明的流媒体节点控制器切换处理方法用于内容分发网络中的 流媒体节点控制器切换, 其中, 内容分发网络的流媒体节点下有多个流媒体 节点控制器, 并且在某一时刻只有一个流媒体节点控制器作为主流媒体节点 控制器起调度作用。 该方法包括: 设置信息表和 /或对照表, 其中, 信息表记录了内容分发 网络的每个流媒体节点控制器的信息, 信息包括流媒体节点控制器的所属节 点、 工作模式、 链路状态; 对照表记录了内容分发网络的每个节点和 /或该节 点的主流媒体节点控制器的标识信息; 遍历信息表和 /或对照表, 对于链路状 态为异常的主流媒体节点控制器所属的节点和 /或主流媒体节点控制器的标 识信息为空的节点, 发起主切换请求。 通过遍历信息表发起主切换请求的处理具体为: 设置第一定时器, 触发 遍历信息表中的每个流媒体节点控制器, 对于判定为链路异常的流媒体节点 控制器, 判断其是否为主流媒体节点控制器, 如果判断结果为是, 则确定主 流媒体节点控制器所属的节点, 并选择该节点的一个链路状态为正常的流媒 体节点控制器发送主切换请求 , 以请求其切换为主流媒体节点控制器。 在上述方法中,通过向信息表中的每个流媒体节点控制器发送心跳请求 来进行遍历, 并设置第三定时器, 其中, 根据流媒体节点控制器是否在第三 定时器超时前返回心兆响应来判断其链路是否正常。 基于此, 对于连续预定 次数在第三定时器超时后没有心跳响应的流媒体节点控制器, 判定其为链路 异常的流媒体节点控制器。 进一步地, 对于判定为链路异常的流媒体节点控 制器, 将信息表中记录的与其对应的链路状态设置为异常。 通过遍历对照表发起主切换请求的处理具体为: 设置第二定时器, 触发 遍历对照表中的每个节点,对于主流媒体节点控制器的标识信息为空的节点, 选择该节点的一个链路状态为正常的流媒体节点控制器发送主切换请求, 以 请求其切换为主流媒体节点控制器。 在上述方法中,在发送主切换请求时,设置第四定时器。需要说明的是, 第三定时器 /第四定时器的附加信息中携带有相关的流媒体节点控制器的基 1 P16849 SUMMARY OF THE INVENTION The present invention has been made in view of the above problems in the related art, and the present invention is directed to a switching processing method of a streaming media node controller (Agent). The streaming media node controller switching processing method according to the present invention is used for streaming media node controller switching in a content distribution network, wherein a streaming media node of the content distribution network has a plurality of streaming media node controllers, and at a certain moment Only one streaming node controller acts as a primary media node controller for scheduling purposes. The method includes: setting an information table and/or a comparison table, wherein the information table records information of each streaming node controller of the content distribution network, where the information includes a node to which the streaming node controller belongs, a working mode, and a link state. The comparison table records the identification information of each node of the content distribution network and/or the mainstream media node controller of the node; the traversal information table and/or the comparison table, for the mainstream media node controller whose link state is abnormal The node and/or the mainstream media node controller's identification information is an empty node, and a primary handover request is initiated. The process of initiating the main handover request by traversing the information table is specifically: setting a first timer, triggering each streaming node controller in the traversal information table, and determining whether the streaming node controller determined to be a link abnormality is The mainstream media node controller, if the determination result is yes, determines the node to which the mainstream media node controller belongs, and selects a streaming media node controller whose link state is normal to send a primary handover request, to request that the switch is Mainstream media node controller. In the above method, traversing is performed by transmitting a heartbeat request to each of the streaming node controllers in the information table, and a third timer is set, wherein, according to whether the streaming node controller returns to the heart before the third timer expires A mega-response is used to determine if the link is normal. Based on this, the streaming node controller that has no heartbeat response after the third timer expires for a predetermined predetermined number of times determines that it is a streaming node controller whose link is abnormal. Further, for the streaming node controller determined to be abnormal in the link, the link state corresponding to the link recorded in the information table is set to be abnormal. The process of initiating the main handover request by traversing the comparison table is specifically: setting a second timer, triggering each node in the traversal comparison table, and selecting a link of the node for the node whose identification information of the mainstream media node controller is empty The streaming node controller with the normal status sends a primary handover request to request that it switch to the mainstream media node controller. In the above method, the fourth timer is set when the main handover request is transmitted. It should be noted that the additional information of the third timer/fourth timer carries the base of the associated streaming media node controller.
2 P16849 本信息, 以标识流媒体节点控制器。 这样,一方面, 如果被请求切换的流媒体节点控制器在第四定时器超时 前返回切换响应, 则关闭第四定时器, 并判断切换是否成功; 在切换成功的 情况下, 将流媒体节点控制器作为新的主流媒体节点控制器, 将其在信息表 中对应的工作模式设置为主工作模式, 并将其标识保存到对照表; 在切换失 败的情况下, 将流媒体节点控制器在信息表中对应的工作模式设置为从工作 模式, 将其所属节点在对照表中对应的主流媒体节点控制器标识设置为空, 并重新选择其所属节点的链路状态为正常的流媒体节点控制器发送主切换请 求。 另外, 在切换成功的情况下, 进一步向新的主流媒体节点控制器所属的 节点下的所有其他流媒体控制切点发送从切换请求, 以请求其切换 从流媒 体节点控制器。 之后, 对于没有返回切换响应或切换失败的情况, 继续发送 从切换请求; 对于切换成功的情况, 将其他流媒体控制切点在信息表中对应 的工作模式设置为从工作模式。 另一方面,如果被请求切换的流媒体节点控制器未在第四定时器超时前 返回切换响应, 则将流媒体节点控制器在信息表中对应的工作模式设置为从 工作模式, 将其所属节点在对照表中对应的主流媒体节点控制器标识设置为 空, 并重新选择其所属节点的链路状态为正常的流媒体节点控制器发送主切 换请求。 通过本发明, 实现了 IPTV中多 Agent的切换处理, 有效地仲裁了节点 下多个 Agent 互斥提供月良务的功能, 确保了不会出现无主 Agent 和多个主 Agent 的情况, 使得各个系统能够稳定地为用户提供各种媒体服务, 因此, 保证了系统的稳定性和后期维护质量, 降低了维护成本。 本发明的其它特征和优点将在随后的说明书中阐述, 并且, 部分地从说 明书中变得显而易见, 或者通过实施本发明而了解。 本发明的目的和其他优 点可通过在所写的说明书、 权利要求书、 以及附图中所特别指出的结构来实 现和获得。 附图说明 附图用来提供对本发明的进一步理解, 并且构成说明书的一部分, 与本 发明的实施例一起用于解释本发明, 并不构成对本发明的限制。 在附图中: 2 P16849 This information is used to identify the streaming node controller. In this way, on the one hand, if the streaming node controller that is requested to switch returns a handover response before the fourth timer expires, the fourth timer is turned off, and it is determined whether the handover is successful; if the handover is successful, the streaming node is As a new mainstream media node controller, the controller sets its corresponding working mode in the information table as the main working mode, and saves its identifier to the comparison table; in the case of the switching failure, the streaming node controller is The corresponding working mode in the information table is set to the slave working mode, the corresponding mainstream media node controller identifier in the matching table is set to be empty, and the link state of the node to which the node belongs is controlled to be normal. The sender sends a master switch request. In addition, in the case that the handover is successful, the slave handover control request is further sent to all other media control pointcuts under the node to which the new mainstream media node controller belongs to request that the handover be from the streaming node controller. Then, for the case where the handover response is not returned or the handover fails, the slave slave switching request is continued; for the case where the handover succeeds, the corresponding working mode of the other stream media control pointcuts in the information table is set to the slave mode. On the other hand, if the streaming node controller that is requested to switch does not return the switching response before the fourth timer expires, the streaming node controller sets the corresponding working mode in the information table to the slave working mode, and belongs to it. The node sets the corresponding mainstream media node controller identifier in the comparison table to be empty, and reselects the streaming node controller whose link state is normal to send the primary handover request. The invention realizes the switching process of the multi-agent in the IPTV, effectively arbitrates the function of the mutual agent of the multiple agents under the node to provide the monthly service, and ensures that the situation of the unowned agent and the multiple main agents does not occur, so that each The system can stably provide various media services to users, thus ensuring system stability and post-maintenance quality, and reducing maintenance costs. Other features and advantages of the invention will be set forth in the description which follows, and The objectives and other advantages of the invention will be realized and attained by the <RTI The drawings are intended to provide a further understanding of the invention, and are intended to be a part of the description of the invention. In the drawing:
3 P 16849 图 1是本发明应用的 IPT V CDN子系统的系统框架图; 图 2是 居本发明实施例的 Agent切换处理方法的简要流程图; 图 3是才艮据本发明实施例的 Agent切换处理方法中触发切换请求以及触 发切换请求前的处理流程图; 图 4是根据本发明实施例的 Agent切换处理方法中触发切换请求后的处 理流程图。 具体实施方式 以下结合附图对本发明的优选实施例进行说明, 应当理解, 此处所描述 的优选实施例仅用于说明和解释本发明, 并不用于限定本发明。 本发明旨在提供一种流媒体节点控制器 (Agent ) 的切换处理方法。 3 P 16849 1 is a system framework diagram of an IPT V CDN subsystem to which the present invention is applied; FIG. 2 is a schematic flowchart of an agent handover processing method according to an embodiment of the present invention; FIG. 3 is an agent handover processing method according to an embodiment of the present invention; FIG. 4 is a flowchart of a process after triggering a handover request in an agent handover processing method according to an embodiment of the present invention. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The preferred embodiments of the present invention are described with reference to the accompanying drawings. The present invention aims to provide a switching processing method for a streaming media node controller (Agent).
切换, 其中, 如图 1所示, CDN可以包括多个流媒体节点(下文中简称为节 点), 即,一个 Manager可能控制多个节点, 而每个节点下可以有多个 Agent, 并且在某一时刻只有一个 Agent作为主 Agent起调度作用, 其他 Agent称为 备用 Agent或从 Agent; 由于每个 Agent都有可能成为主 Agent, 所以为了保 证系统的能够正常提供服务, 每个 Agent都和所属节点下的所有流媒体建立 链接。 根据本发明实施例的方法的思路大致如下, 即, 维护(保存)信息表和 对照表, 通过对信息^ /对照表的遍历决定是否发起切换请求, 之后, 根据对 切换请求的响应结果进行后续处理。 具体地, 如图 2所示, 该方法可以包括以下处理: 步骤 S202, 设置信息表和 /或对照表, 其中, 信息表记录了 CDN的每 个 Agent的信息(包括 Agent的所属节点、 工作模式、 链路状态、 通讯参数、 IP地址等基本信息); 对照表记录了 CDN的每个节点和 /或该节点的主 Agent 的标识信息(当某个节点没有主 Agent时,对应的主 Agent标识为空);其中, 该信息表和对照表中保存的信息可以在系统重新启动后从数据库同步获得; 步骤 S204, 遍历信息表和 /或对照表, 对于链路状态为异常的主流媒体 Switching, wherein, as shown in FIG. 1, the CDN may include multiple streaming media nodes (hereinafter referred to as nodes), that is, one Manager may control multiple nodes, and each node may have multiple agents, and at some Only one agent acts as the primary agent at a time, and other agents are called standby agents or slave agents. Since each agent may become the primary agent, each agent and its own node are guaranteed to ensure that the system can provide services normally. All the streaming media under the link. The idea of the method according to the embodiment of the present invention is roughly as follows, that is, maintaining (storing) the information table and the comparison table, determining whether to initiate a handover request by traversing the information/reference table, and then following the response result to the handover request. deal with. Specifically, as shown in FIG. 2, the method may include the following processing: Step S202, setting an information table and/or a comparison table, where the information table records information of each agent of the CDN (including the node to which the agent belongs, the working mode Basic information such as link status, communication parameters, IP address, etc.; The comparison table records the identification information of each node of the CDN and/or the primary agent of the node (when a node does not have a primary agent, the corresponding primary agent identifier Empty, wherein the information stored in the information table and the comparison table can be obtained from the database synchronization after the system is restarted; Step S204, traversing the information table and/or the comparison table, for the mainstream media whose link status is abnormal
4 P16849 节点控制器所属的节点和 /或主流媒体节点控制器的标识信息为空的节点,发 起主切换请求。 一方面, 在步骤 S204中, 通过遍历信息表发起主切换请求的处理具体 为: 设置第一定时器, 触发遍历信息表中的每个 Agent, 即, 根据信息表中 Agent的通讯参数向每个 Agent发送心跳请求, 并设置第三定时器, 如果某 Agent在第三定时器超时前返回心 ·ϊ兆响应, 则认为该 Agent链路正常, 并关 闭定时器; 若某 Agent连续预定次数(可以预先设置) 在第三定时器超时后 都没有心 3兆响应, 则认为该 Agent链路异常; 对于判定为链路异常的 Agent, 将信息表中记录的与其对应的链路状态 设置为异常, 并判断其是否为主 Agent, 如果判断结果为是, 则确定主 Agent 所属的节点, 将所属节点在对照表中对应的主 Agent标识清空, 并选择该节 点的一个链路状态为正常的 Agent 发送主切换请求, 以请求其切换为主 Agent, 并设置第四定时器; 另一方面, 在步骤 S204中, 通过遍历对照表发起主切换请求的处理具 体为: 设置第二定时器, 触发遍历对照表中的每个节点, 对于主 Agent的标 识信息为空的节点, 选择该节点的一个链路状态为正常的 Agent发送主切换 请求, 以请求其切换为主 Agent, 并设置第四定时器。 需要说明的是, 上述的第一至第四定时器的时长根据需要灵活配置, 以 适应不同的应用环境或 居实际情况设置最佳值,对于第三定时器 /第四定时 器, 由于对于每个 Agent, 设置的心 if兆超时和切换超时定时器都是第三定时 器 /第四定时器, 因此, 为了区分是哪一个 Agent, 需要在设置定时器的附加 信息中携带有相关的 Agent的基本信息, 以标识或区分 Agent。 4 P16849 The node to which the node controller belongs and/or the identifier information of the mainstream media node controller is an empty node, and a primary handover request is initiated. On the one hand, in step S204, the process of initiating the main handover request by traversing the information table is specifically: setting a first timer, triggering each agent in the traversal information table, that is, according to the communication parameters of the Agent in the information table The agent sends a heartbeat request and sets a third timer. If an agent returns a heart/signal response before the third timer expires, the agent is considered to be normal and the timer is turned off; if an agent is scheduled for a predetermined number of times (may Pre-set) If there is no 3 mega-response after the third timer expires, the agent link is considered abnormal; for the agent determined to be abnormal, the link status recorded in the information table is set to abnormal. And determine whether it is the primary agent. If the judgment result is yes, determine the node to which the primary agent belongs, clear the corresponding primary agent identifier of the node in the comparison table, and select one of the node's link states to be sent by the normal agent. Master switching request to request that it switch to the primary agent, and set a fourth timer; on the other hand, in step S204, by traversing the comparison table The processing of the primary handover request is specifically as follows: setting a second timer, triggering each node in the traversal comparison table, and selecting a node with a normal link status of the node to be a normal node. The request is switched to request that it be switched to the primary agent, and the fourth timer is set. It should be noted that the durations of the foregoing first to fourth timers are flexibly configured according to requirements, to adapt to different application environments or to set an optimal value according to actual conditions, for the third timer/fourth timer, The agent, the set of the heart and the timeout timer are all the third timer/fourth timer. Therefore, in order to distinguish which agent is, it is necessary to carry the related agent in the additional information of setting the timer. Basic information to identify or distinguish Agents.
以上描述的是发送切换请求及发送切换请求前的处理过程。 通过图 3 示出的详细处理流程图可以更好的理解上述处理。 如图 3所示, 并且如上所述, 可能触发 Agent切换的有两种情况, 即, 主 Agent断链或没有主 Agent: 情况一: 主 Agent断链, 可以进行如下处理: 第一步: 设置定时器 A ( 301 ), 定时器 A (即, 上述第一定时器)触发 遍历保存在内存中的 Agent信息表( 302 ), 该信息表中包括 Agent所属的节  Described above is the process of transmitting a handover request and transmitting a handover request. The above processing can be better understood by the detailed processing flowchart shown in FIG. As shown in Figure 3, and as mentioned above, there are two situations that may trigger the Agent switchover, that is, the primary Agent is broken or has no primary agent: Case 1: The primary Agent is broken, you can perform the following processing: Step 1: Set The timer A (301), the timer A (ie, the first timer) triggers to traverse the Agent information table (302) stored in the memory, where the information table includes the section to which the Agent belongs.
5 P 16849 点、 通讯参数、 IP地址、 工作模式、 链路状态等基本信息; 第二步: 按照通讯参数, Manager向所有的 Agent发起心跳请求( 303 ), 然后设置超时定时器 C (即, 上述第三定时器)(304 ); 第三步: 判断请求的 Agent是否返回心 ·5此响应 (305 )。 若在定时器 C超时前返回响应, 则关闭定时器 C ( 306 ), 判断 Agent 上报的工作模式和 Manager 内存中保存的是否一致, 若一致, 则流程结束 ( 317 );若不一致,则 Manager向该 Agent发起切换为一致的切换请求( 308 ), 并设置等待切换结果的定时器 D ( 316 )。 若连续多次 (次数可以配置) 定时器 C超时后 Agent也未返回心跳响 应, 则判定该 Agent断链, 将内存中该 Agent的链路状态置为异常 ( 309 ), 判断断链的 Agent是否为当前的主 Agent ( 310 ),若不是,则流程结束(317 ); 若是,则获得该 Agent所属的节点( 314 ),寻找该节点下状态正常的一个 Agent 作为主 Agent, 向其发送切换为主 Agent的切换请求 (315 ), 并设置等待切 换结果的定时器 D ( 316 )。 情况二, 没有主 Agent, 可以进行如下处理: 第一步: 设置定时器 B ( 311 ), 定时器 B触发遍历内存中的节点和主 Agent对照表 ( 312 ); 第二步: 判断节点在对照表中是否有对应的主 Agent ( 313 ), 若有, 则 流程结束(317 ); 若没有, 则获得该 Agent所属的节点 (314 ), 寻找该节点 下状态正常的一个 Agent作为主 Agent, 向其发送切换为主 Agent的切换请 求 (315 ), 并设置等待切换结果的定时器 D ( 316 )。 基于上述描述,将进一步描述本发明实施例在切换请求发送之后的后续 处理。 一方面, 如果被请求切换的 Agent在第四定时器超时前返回切换响应, 则关闭第四定时器, 并判断切换是否成功; 在切换成功的情况下, 将 Agent 作为新的主 Agent, 将其在信息表中对应的工作模式设置为主工作模式, 并 将其标识保存到对照表; 在切换失败的情况下, 将 Agent在信息表中对应的 工作模式设置为从工作模式, 将其所属节点在对照表中对应的主 Agent标识 设置为空, 并重新选择其所属节点的链路状态为正常的 Agent发送主切换请 5 P 16849 Basic information such as point, communication parameters, IP address, working mode, link status, etc. Step 2: According to the communication parameters, the Manager initiates a heartbeat request to all Agents (303), and then sets a timeout timer C (ie, the third Timer) (304); Step 3: Determine whether the requested Agent returns the heart 5 response (305). If the response is returned before the timer C times out, the timer C is closed (306), and it is determined whether the working mode reported by the agent is consistent with the saved in the Manager memory. If they are consistent, the process ends (317); if not, the manager The Agent initiates a switch to a consistent handover request (308) and sets a timer D (316) awaiting the handover result. If the agent does not return the heartbeat response after the timer C expires, it is determined that the agent is broken, and the link state of the agent in the memory is set to abnormal (309), and it is determined whether the broken chain agent is The current master agent (310), if not, the process ends (317); if yes, the node (314) to which the agent belongs is obtained, and an agent with a normal state under the node is searched as the master agent, and the switch is sent to The master agent's handover request (315), and sets a timer D (316) waiting for the handover result. Case 2, without the main Agent, the following processing can be performed: Step 1: Set the timer B ( 311 ), the timer B triggers to traverse the node in the memory and the master agent comparison table ( 312 ); Step 2: Determine the node in the comparison Whether there is a corresponding main agent (313) in the table, if yes, the process ends (317); if not, the node (314) to which the agent belongs is obtained, and an agent with a normal state under the node is searched as the main agent, It transmits a handover request (315) that is switched to the primary agent, and sets a timer D (316) waiting for the handover result. Based on the above description, the subsequent processing of the embodiment of the present invention after the handover request is transmitted will be further described. On the one hand, if the agent that is requested to switch returns a handover response before the fourth timer expires, the fourth timer is closed, and the handover is successful; if the handover is successful, the agent is used as the new primary agent, and The corresponding working mode in the information table is set as the main working mode, and its identifier is saved to the comparison table; in the case of the switching failure, the corresponding working mode of the agent in the information table is set to the working mode, and the node to which it belongs is set. In the comparison table, the corresponding primary agent ID is set to null, and the link whose status of the node to which the node belongs is normal is sent.
6 P 16849 求。 另夕卜, 在切换成功的情况下, 进一步向新的主 Agent所属的节点下的所 有其他流媒体控制切点发送从切换请求, 以请求其切换到从 Agent。 之后, 对于没有返回切换响应或切换失败的情况, 继续发送从切换请求; 对于切换 成功的情况, 将其他流媒体控制切点在信息表中对应的工作模式设置为从工 作模式。 另一方面,如果被请求切换的 Agent未在第四定时器超时前返回切换响 应, 则将 Agent在信息表中对应的工作模式设置为从工作模式, 将其所属节 点在对照表中对应的主 Agent标识设置为空, 并重新选择其所属节点的链路 ^!大态为正常的 Agent发送主切换请求。 实际上, 在接收到切换响应或切换结果时, Manager需要判断该响应对 切换为主 Agent的请求的响应, 还是对切换为从 Agent的请求的响应, 并才艮 据判断结果进行后续处理, 该内容可以看照图 4来进一步理解。 其中, 图 4 的流程图详细地示出了上述接收到切换响应后的处理流程, 以下将参照图 4 来进一步描述本发明。 如图 4所示, 接收到切换响应后的处理流程同样包括两种情况: 情况一: Agent在定时器 D (即, 上述的第四定时器)超时前返回切换 结果(401 ), 则处理步骤如下: 第一步: 关闭定时器 D ( 402 ); 第二步: 判断 Agent要切换为的工作模式是否为主 Agent ( 403 ); 若要切换为从 Agent, 则判断返回的切换结果是否成功 (404 ), 若不成 功, 则继续向该 Agent发送切换为从 Agent的切换请求 ( 405 ), 并设置定时 器 D 等待切换结果 (420 ); 若切换成功, 则更新内存中 Agent信息表中该 Agent的工作模式 ( 406 ), 并同步更新数据库中该 Agent的信息 ( 407 ); 若要切换为主 Agent, 则判断返回的切换结果是否成功( 408 ), 若成功, 则更新内存中 Agent信息表中该 Agent的工作模式 ( 409 ), 并同步更新数据 库中该 Agent的信息 ( 410 ), 同时将该 Agent标识信息 (例如, 编号)保存 到内存中节点和主 Agent对照表中 (411 ), 为了确保同一节点下只有一个主 Agent,还要向该节点下所有其他的 Agent发送一遍切换为从 Agent的切换请 6 P 16849 begging. In addition, in the case that the handover is successful, the slave handover control request is further sent to all other streaming media control points under the node to which the new primary agent belongs to request that it switch to the secondary agent. Then, for the case where the handover response is not returned or the handover fails, the slave slave switching request is continued; for the case where the handover succeeds, the corresponding working mode of the other stream media control pointcuts in the information table is set to the slave mode. On the other hand, if the agent requested to switch does not return the handover response before the fourth timer expires, the corresponding working mode of the Agent in the information table is set to the slave working mode, and the node to which the node belongs is in the corresponding table in the comparison table. The Agent ID is set to null, and the link of the node to which it belongs is reselected ^! The large state sends a primary handover request to the normal Agent. In fact, when receiving the handover response or the handover result, the Manager needs to determine whether the response responds to the request to switch to the primary agent, or the response to the request to switch from the agent, and then perform subsequent processing according to the determination result. The content can be further understood as shown in Figure 4. 4 is a flowchart showing the processing flow after receiving the handover response in detail, and the present invention will be further described below with reference to FIG. 4. As shown in FIG. 4, the processing flow after receiving the handover response also includes two cases: Case 1: The agent returns the handover result (401) before the timer D (ie, the fourth timer described above) times out, and then the processing step As follows: Step 1: Turn off timer D (402); Step 2: Determine whether the working mode that the agent wants to switch to is the primary agent (403); If you want to switch to the secondary agent, determine whether the returned switching result is successful ( 404), if it is unsuccessful, continue to send a handover request to the agent to switch from the agent (405), and set a timer D to wait for the handover result (420); if the handover is successful, update the agent in the in-memory agent information table The working mode (406), and synchronously update the information of the agent in the database (407); to switch to the main agent, determine whether the returned switching result is successful (408), if successful, update the in-memory agent information table The working mode of the agent (409), and synchronously updating the information (410) of the agent in the database, and saving the agent identification information (for example, number) to the in-memory node and the main agent comparison table (4) 11), in order to ensure that there is only one main agent under the same node, you must also send all the other agents under the node to switch from the agent.
7 P16849 求 (412 ); 若不成功, 则将内存中该 Agent的工作模式置为从工作模式(415 ), 并 同步更新数据库中该 Agent的信息 ( 417 ), 同时将内存中节点和主 Agent对 照表中该节点对应的主 Agent清空 (416 )。 然后为该节点寻找新的可用的主 Agent ( 418 ), 向其发送切换为主 Agent的切换请求( 419 ), 并设置定时器 D 等待切换结果 (420 )。 情况二: Agent在定时器 D超时后仍未返回切换结果(413 ), 则处理步 骤如下: 判断 Agent要切换为的工作模式是否为主 Agent ( 414 ); 若要切换为从 Agent, 则继续向该 Agent发送切换为从 Agent的切换请 求 ( 421 ), 并设置定时器 D等待切换结果 ( 420 )。 若要切换为主 Agent, 则将内存中该 Agent的工作模式置为从工作模式 ( 415 ), 并同步更新数据库中该 Agent的信息 (417 ), 同时将内存中节点和 主 Agent对照表中该节点对应的主 Agent清空 ( 416 )。 然后为该节点寻找新 的可用的主 Agent ( 418 ), 向其发送切换为主 Agent的切换请求 ( 419 ), 并 设置定时器 D等待切换结果 ( 420 )。 至此, 流程全部结束。 这样, 通过本发明, 保证在 Manager的仲裁和标识确认下, 不会出现无 主 Agent和多主 Agent的情况, 使得整个系统能稳定的为用户提供各种媒体 月 务。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的青神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 7 P16849 If the method is unsuccessful, the working mode of the agent in the memory is set to the slave working mode (415), and the information of the agent in the database is updated synchronously (417), and the node in the memory and the master agent are compared. The primary agent corresponding to the node is cleared (416). The node is then searched for a new available primary agent (418), a handover request is sent to the primary agent (419), and a timer D is set to wait for the handover result (420). Case 2: After the timer D has not returned the handover result (413), the agent has the following steps: Determine whether the working mode that the agent is to switch to is the primary agent (414); to switch to the secondary agent, continue to The Agent sends a handover request to the slave agent (421), and sets a timer D to wait for the handover result (420). To switch to the primary agent, the working mode of the agent in the memory is set to the slave working mode (415), and the information of the agent in the database is updated synchronously (417), and the node in the memory and the master agent are compared in the table. The primary agent corresponding to the node is cleared ( 416 ). The node is then sought for a new available primary agent (418), a handover request is sent to the primary agent (419), and a timer D is set to wait for the handover result (420). At this point, the process is all over. In this way, through the invention, it is ensured that under the arbitration and identification confirmation of the Manager, the situation of the main agent and the multi-master agent does not occur, so that the whole system can stably provide various media services for the user. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are intended to be included within the scope of the present invention.
8 P 16849 8 P 16849

Claims

权 利 要 求 书 Claim
1. 一种流媒体节点控制器的切换处理方法, 用于内容分发网络中的流媒体 节点控制器切换, 其中, 内容分发网络的流媒体节点下有多个流媒体节 点控制器, 并且在某一时刻只有一个流媒体节点控制器作为主流媒体节 点控制器起调度作用, 其特征在于, 包括: A switching processing method for a streaming media node controller, configured for switching of a streaming media node controller in a content distribution network, wherein a streaming media node of the content distribution network has multiple streaming media node controllers, and Only one streaming media node controller acts as a mainstream media node controller at a time, and is characterized in that it includes:
设置信息表和 /或对照表, 其中, 信息表记录了内容分发网络的每 个流媒体节点控制器的信息, 所述信息包括流媒体节点控制器的所属节 点、 工作模式、 链路状态; 对照表记录了内容分发网络的每个节点和 / 或该节点的主流媒体节点控制器的标识信息;  Setting a information table and/or a comparison table, wherein the information table records information of each streaming media node controller of the content distribution network, where the information includes a node to which the streaming media node controller belongs, an operating mode, and a link state; The table records identification information of each node of the content distribution network and/or the mainstream media node controller of the node;
遍历所述信息表和 /或所述对照表, 对于链路状态为异常的主流媒 体节点控制器所属的节点和 /或主流媒体节点控制器的标识信息为空的 节点, 发起主切换请求。  The information table and/or the comparison table is traversed, and a node for which the node of the mainstream media node controller whose link state is abnormal and/or a node whose identification information of the mainstream media node controller is empty is traversed, and a master handover request is initiated.
2. 居权利要求 1所述的方法, 其特征在于, 通过遍历所述信息表发起主 切换请求的处理具体为: 2. The method of claim 1, wherein the process of initiating a master handover request by traversing the information table is specifically:
设置第一定时器, 触发遍历所述信息表中的每个流媒体节点控制 器, 对于判定为链路异常的流媒体节点控制器, 判断其是否为主流媒体 节点控制器, 如果判断结果为是, 则确定所述主流媒体节点控制器所属 的节点, 并选择该节点的一个链路状态为正常的流媒体节点控制器发送 主切换请求, 以请求其切换为主流媒体节点控制器。  Setting a first timer, triggering to traverse each streaming media node controller in the information table, and determining, by the streaming node controller determined to be a link abnormality, whether it is a mainstream media node controller, if the determination result is yes Then, the node to which the mainstream media node controller belongs is determined, and a streaming node controller whose link state is normal is sent to send a primary handover request to request that it be switched to the mainstream media node controller.
3. 根据权利要求 2所述的方法, 其特征在于, 通过向所述信息表中的每个 流媒体节点控制器发送心跳请求来进行遍历, 并设置第三定时器, 其中, 根据流媒体节点控制器是否在第三定时器超时前返回心跳响应来判断其 链路是否正常。 3. The method according to claim 2, wherein traversing is performed by sending a heartbeat request to each of the streaming node controllers in the information table, and setting a third timer, wherein, according to the streaming node Whether the controller returns a heartbeat response before the third timer expires to determine whether the link is normal.
4. 根据权利要求 3所述的方法, 其特征在于, 所述第三定时器的附加信息 中携带有相关的流媒体节点控制器的基本信息, 以标识流媒体节点控制 器。 The method according to claim 3, wherein the additional information of the third timer carries basic information of an associated streaming media node controller to identify a streaming media node controller.
5. 根据权利要求 3所述的方法, 其特征在于, 对于连续预定次数在所述第 三定时器超时后没有返回心跳响应的流媒体节点控制器, 判定其为链路 异常的流媒体节点控制器。 The method according to claim 3, wherein the streaming node controller that determines that it is a link abnormality is determined by the streaming node controller that does not return a heartbeat response after the third timer expires for a predetermined predetermined number of times Device.
9 P 16849 9 P 16849
6. 根据权利要求 5所述的方法, 其特征在于, 对于所述判定为链路异常的 流媒体节点控制器, 将所述信息表中记录的与其对应的链路状态设置为 异常。 The method according to claim 5, wherein, for the streaming node controller determined to be abnormal in the link, the link state corresponding to the information recorded in the information table is set to be abnormal.
7. 根据权利要求 6所述的方法, 其特征在于, 对于判定为链路异常的主流 媒体节点控制器, 还将其所属节点在所述对照表中对应的主流媒体节点 控制器标识信息清空。 The method according to claim 6, wherein the mainstream media node controller determined to be a link abnormality clears the corresponding mainstream media node controller identification information of the node to which the node belongs.
8. 根据权利要求 1所述的方法, 其特征在于, 通过遍历所述对照表发起主 切换请求的处理具体为: 8. The method according to claim 1, wherein the process of initiating a master handover request by traversing the lookup table is specifically:
设置第二定时器, 触发遍历所述对照表中的每个节点, 对于主流媒 体节点控制器的标识信息为空的节点, 选择该节点的一个链路状态为正 常的流媒体节点控制器发送主切换请求, 以请求其切换为主流媒体节点 控制器。  Setting a second timer, triggering to traverse each node in the comparison table, and selecting a node of the node that has a link state of normal, the node of the node is a normal node of the streaming media node controller Switch the request to request it to switch to the mainstream media node controller.
9. 根据权利要求 2至 8中任一项所述的方法, 其特征在于, 在发送主切换 请求时, 设置第四定时器。 The method according to any one of claims 2 to 8, characterized in that, when the main handover request is transmitted, a fourth timer is set.
10. 根据权利要求 9所述的方法, 其特征在于, 所述第四定时器的附加信息 中携带有相关的流媒体节点控制器的基本信息, 以标识流媒体节点控制 器。 10. The method according to claim 9, wherein the additional information of the fourth timer carries basic information of an associated streaming media node controller to identify a streaming media node controller.
11. 根据权利要求 9所述的方法, 其特征在于, 进一步包括: The method according to claim 9, further comprising:
如果被请求切换的所述流媒体节点控制器在所述第四定时器超时 前返回切换响应, 则关闭所述第四定时器, 并判断切换是否成功;  If the streaming media node controller that is requested to switch returns a handover response before the fourth timer expires, the fourth timer is closed, and it is determined whether the handover is successful.
在切换成功的情况下,将所述流媒体节点控制器作为新的主流媒体 节点控制器, 将其在所述信息表中对应的工作模式设置为主工作模式, 并将其标识保存到所述对照表;  In the case that the handover is successful, the streaming media node controller is used as a new mainstream media node controller, and the corresponding working mode in the information table is set as the main working mode, and the identifier is saved to the Chart;
在切换失败的情况下,将所述流媒体节点控制器在所述信息表中对 应的工作模式设置为从工作模式, 将其所属节点在所述对照表中对应的 主流媒体节点控制器标识设置为空, 并重新选择其所属节点的链路状态 为正常的流媒体节点控制器发送主切换请求。  In the case that the handover fails, the corresponding working mode of the streaming media node controller in the information table is set to the slave working mode, and the node to which the node belongs is set in the corresponding mainstream media node controller identifier in the comparison table. It is empty, and reselects the streaming node controller whose link state of the node to which it belongs is normal to send the primary switching request.
10 P 16849 10 P 16849
12. 根据权利要求 11所述的方法, 其特征在于, 在切换成功的情况下, 进一 步向所述新的主流媒体节点控制器所属的节点下的所有其他流媒体控制 切点发送从切换请求, 以请求其切换到从流媒体节点控制器。 The method according to claim 11, wherein, in the case that the handover is successful, the handover request is further sent to all other streaming media control points under the node to which the new mainstream media node controller belongs, To request it to switch to the slave streaming node controller.
13. 根据权利要求 12所述的方法, 其特征在于, 对于没有返回切换响应或切 换失败的情况, 继续发送所述从切换请求; 对于切换成功的情况, 将所 述其他流媒体控制切点在所述信息表中对应的工作模式设置为从工作模 式。 13. The method according to claim 12, wherein, for the case that no handover response or handover failure is returned, the slave handover request is continued to be sent; for the handover success, the other streaming media control is switched to The corresponding working mode in the information table is set to the slave working mode.
14. 根据权利要求 9所述的方法, 其特征在于, 进一步包括: The method according to claim 9, further comprising:
如果被请求切换的所述流媒体节点控制器未在所述第四定时器超 时前返回切换响应, 则将所述流媒体节点控制器在所述信息表中对应的 工作模式设置为从工作模式, 将其所属节点在所述对照表中对应的主流 媒体节点控制器标识设置为空, 并重新选择其所属节点的链路状态为正 常的流媒体节点控制器发送主切换请求。  If the streaming media node controller requested to switch does not return a handover response before the fourth timer expires, setting the corresponding working mode of the streaming media node controller in the information table to the slave working mode And setting the corresponding mainstream media node controller identifier of the node to which the node belongs to be empty, and reselecting the streaming node controller whose link state of the node to which the node belongs is normal to send the primary handover request.
11 P16849 11 P16849
PCT/CN2007/003508 2007-09-04 2007-12-10 A handover processing method in the cdn agent WO2009030080A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710149304A CN100589452C (en) 2007-09-04 2007-09-04 Switch processing method of stream media node controller
CN200710149304.4 2007-09-04

Publications (1)

Publication Number Publication Date
WO2009030080A1 true WO2009030080A1 (en) 2009-03-12

Family

ID=39055257

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/003508 WO2009030080A1 (en) 2007-09-04 2007-12-10 A handover processing method in the cdn agent

Country Status (2)

Country Link
CN (1) CN100589452C (en)
WO (1) WO2009030080A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100589452C (en) * 2007-09-04 2010-02-10 中兴通讯股份有限公司 Switch processing method of stream media node controller
CN101640688B (en) * 2009-08-20 2014-03-12 中兴通讯股份有限公司 Content delivery network (CDN)-based switching method for main node controller and spare controller and CDN
CN103138983A (en) * 2011-12-01 2013-06-05 苏州达联信息科技有限公司 Method and device of primary-backup switching of video distribution network global server
CN103200033B (en) * 2013-03-21 2016-09-07 中兴通讯股份有限公司 CDN and network integration system and the electoral machinery of primary, spare scheduling unit thereof
CN105872568A (en) * 2015-11-19 2016-08-17 乐视云计算有限公司 Method and device for transmitting video data based on cloud live broadcast platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11146014A (en) * 1997-02-19 1999-05-28 Nippon Telegr & Teleph Corp <Ntt> Distribution multimedia server device, method for accessing distribution multimedia server information and recording medium recording program to realize the method
US20040073596A1 (en) * 2002-05-14 2004-04-15 Kloninger John Josef Enterprise content delivery network having a central controller for coordinating a set of content servers
CN1691591A (en) * 2004-04-16 2005-11-02 Ut斯达康公司 Method and apparatus for a loosely coupled, scalable distributed multimedia streaming system
CN101119318A (en) * 2007-09-04 2008-02-06 中兴通讯股份有限公司 Switch processing method of stream media node controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11146014A (en) * 1997-02-19 1999-05-28 Nippon Telegr & Teleph Corp <Ntt> Distribution multimedia server device, method for accessing distribution multimedia server information and recording medium recording program to realize the method
US20040073596A1 (en) * 2002-05-14 2004-04-15 Kloninger John Josef Enterprise content delivery network having a central controller for coordinating a set of content servers
CN1691591A (en) * 2004-04-16 2005-11-02 Ut斯达康公司 Method and apparatus for a loosely coupled, scalable distributed multimedia streaming system
CN101119318A (en) * 2007-09-04 2008-02-06 中兴通讯股份有限公司 Switch processing method of stream media node controller

Also Published As

Publication number Publication date
CN100589452C (en) 2010-02-10
CN101119318A (en) 2008-02-06

Similar Documents

Publication Publication Date Title
EP1119134B1 (en) Method and apparatus for an improved internet group management protocol
US9226002B2 (en) Method, device and system for realizing broadcast TV
JP2004531180A (en) Audio-video management in UPnP
JP2002324047A (en) Method and system for automated session resources cleanup in distributed client/server environment
WO2011103837A2 (en) Method for processing packet when server fails and router thereof
JP2004048661A (en) Method and apparatus for network path configuration
CN103117876A (en) User state information synchronizing method and device
WO2009030080A1 (en) A handover processing method in the cdn agent
WO2011029331A1 (en) Method, multimedia system and network side device for recording program
US20160072641A1 (en) Data transmission method, apparatus, and computer storage medium
WO2009155771A1 (en) Resource allocation method, server, network device and network system
JP2009118063A (en) Redundant system, method, program and server
US20120023527A1 (en) Method, system and home stream media server for implementing video on demand service
CN108234922B (en) A kind of recorded broadcast method and device
CN111200622B (en) Resource transmission method and device and storage medium
WO2007093094A1 (en) A method for selecting the qos policy and a system thereof
CN115567486A (en) Lease synchronization method, device, equipment and medium in MLAG environment
JPH11341077A (en) Information distribution device selection system
JP5182051B2 (en) Service server and communication system using the same
CN112214377B (en) Equipment management method and system
CN109729388A (en) Depending on networked server switching method and apparatus
CN110505433A (en) A kind of data processing method and view networked video meeting platform
JPH10308758A (en) Communication equipment
US20020065918A1 (en) Method and apparatus for efficient and accountable distribution of streaming media content to multiple destination servers in a data packet network (DPN)
WO2022083281A1 (en) Message transmission method and system, electronic device, and storage medium

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: 07845865

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: 07845865

Country of ref document: EP

Kind code of ref document: A1