[go: up one dir, main page]

WO2011017976A1 - Method and system for media service - Google Patents

Method and system for media service Download PDF

Info

Publication number
WO2011017976A1
WO2011017976A1 PCT/CN2010/073950 CN2010073950W WO2011017976A1 WO 2011017976 A1 WO2011017976 A1 WO 2011017976A1 CN 2010073950 W CN2010073950 W CN 2010073950W WO 2011017976 A1 WO2011017976 A1 WO 2011017976A1
Authority
WO
WIPO (PCT)
Prior art keywords
media
edge node
node
url
user equipment
Prior art date
Application number
PCT/CN2010/073950
Other languages
French (fr)
Chinese (zh)
Inventor
王德超
熊勤
王印龙
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011017976A1 publication Critical patent/WO2011017976A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1046Call controllers; Call servers

Definitions

  • the present invention relates to the field of communications, and in particular to a media service method and system.
  • Mobile streaming media technology collects continuous sound and video information into a network server after being collected and compressed, so that the mobile terminal user can listen and watch while downloading, without waiting for the entire multimedia file to be downloaded. Instant viewing technology.
  • the server node is generally set up according to the physical area to which the user belongs, and the node provides the media service for the users in the area. When there are more and more media files in the system, it will put a lot of pressure on the storage of the node.
  • a primary object of the present invention is to provide an improved media service solution to solve at least one of the above problems. According to an aspect of the present invention, a media service method is provided.
  • the media service method includes: the edge node receives a media service request from the user equipment, wherein the media service request is used to request the media resource; the edge node determines whether it can provide the media resource for the user equipment; In the case of no, the request message is sent to the central node; the edge node receives the media resource from the central node in response to the request message, and sends the media resource to the user equipment.
  • a media service system is provided.
  • the media service system includes an edge node and a central node, where the edge node includes: a first receiving module, configured to receive a media service request from a user equipment, where the media service request is used to request a media resource; Used to determine that an edge node can be a user device Providing a media resource; a first sending module, configured to send a request message to the central node if the determining result of the determining module is negative; the second receiving module, the edge node receives the media resource from the central node in response to the request message; And a sending module, configured to send the media resource to the user equipment.
  • the media resource is saved on the sub-node (ie, the edge node) according to the policy.
  • the sub-node acquires the media resource from the central node, and solves the problem.
  • FIG. 1 is a flowchart of a media service method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a mobile streaming media system networking according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an embodiment of the present invention.
  • FIG. 4 is a flowchart of providing an on-demand service in a non-relay form according to an embodiment of the present invention
  • FIG. 5 is a flowchart of providing an on-demand service in a relay form according to an embodiment of the present invention
  • 6 is a structural block diagram of a media service system according to an embodiment of the present invention
  • FIG. 7 is a block diagram showing a specific structure of a media service system according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a media service method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps S102 to S106: Step S102: The edge node receives a media service request from the user equipment, where the media service request is used to request the media resource.
  • Step S104 The edge node determines whether the edge node can provide the requested media resource for the user equipment, and sends a request message to the central node if it is determined that it cannot provide the media resource for the user equipment; In the case that the user equipment is provided with the media resource, the edge node sends the media resource to the user equipment.
  • Step S106 The edge node receives the media resource of the central node in response to the request message, and sends the media resource to the user equipment. Through the foregoing steps, the edge node can request the media resource from the central node if the media resource cannot be provided for the user equipment, so that the edge node can save all the media resources without saving all the media resources.
  • the reason why the edge node cannot provide the media resource to the user equipment may be that the edge node does not have the media resource, but the reason is not limited thereto. For example, the reason may be that the load of the edge node is too large, etc., based on the overload.
  • the above steps can also avoid overloading the edge nodes. Therefore, the above steps solve the problem that the storage node generated by the server sub-node in the related art wastes the storage resources and the system cannot provide the service when the resource does not exist.
  • the edge node does not need to save all the media resources, and the media resource may be saved according to a predetermined policy. For example, the media resource may be saved according to the number of times the media resource is requested, the creation time of the media resource, and the like.
  • Embodiment 2 a description is given of a preferred embodiment in which an edge node in step 4 of the first embodiment receives a media resource from a central node in response to a request message, and includes the following steps: Step A, Center The node sends a Uniform Resource Locator (URL) carrying the address of the media server for providing the media resource to the edge node.
  • Step B The edge node initiates a media service request according to the URL to the media server corresponding to the URL, and receives the media resource from the media server corresponding to the URL.
  • the edge node can request and acquire the media resource from the media server of the central node.
  • Embodiment 3 a preferred implementation manner of sending a request message to an edge node in the step S104 of the first embodiment is described.
  • the method includes the following steps: Step C: The edge node sends the carried message to the user equipment.
  • Step E After receiving the service request from the user equipment, the media server corresponding to the URL sends a request message to the central node.
  • FIG. 2 is a schematic structural diagram of a mobile streaming media system networking according to an embodiment of the present invention, as shown in FIG. 2, in the mobile streaming media system.
  • the lieutenant deploys the headquarters-provincial secondary architecture, and sets up a central node (also called the headquarters node) at the headquarters; sets an edge node (also called a provincial node or local node) in each province, where
  • the service server address information of the headquarters node is configured on the media server of the provincial node.
  • the node refers to a combination of a service engine device and multiple media server devices.
  • the service engine is used to manage the file information (ie, the media resource) stored on the media server device and the media server device.
  • the national service engine is also responsible for processing the interaction with the user equipment (User Equipment, UE for short).
  • the service engine After receiving the media service request from the user equipment, the service engine first retrieves from the database which media server devices contain the media files requested by the user (ie, media resources), and then integrates the hardware of each media server in the provincial node. Choose the most appropriate server for performance and / or concurrent flow, and finally assemble the URL for providing media services Provided to the user, the user uses this URL for media service requests.
  • the media server can provide media services such as on-demand, live broadcast, and download to the user.
  • the media server can form a cluster by using multiple media server devices.
  • the media server uses a large-capacity magnetic array to store the physical content of the media files on the node.
  • the Wireless Access Protocol (WAP) portal in the headquarters node is responsible for displaying media files in the mobile streaming media system.
  • WAP Wireless Access Protocol
  • the user device browses the list of media files in the system by accessing the WAP portal. All media files are saved on the media server of the headquarters node. Each provincial node stores only some physical files according to certain policies. For example, only popular content or new online content can be saved according to the actual operation of the system and dynamically adjusted periodically. All mobile streaming users can belong to an edge node based on their terminal number (for example, mobile number).
  • the wireless network or the wired fixed network is responsible for sending the request to the provincial branching service engine of the provincial branch node to which it belongs, and the provincial branching service engine records the media file saved in the database of the node.
  • the local media server of the node directly provides services for the user; if the corresponding media file does not exist on the provincial media server, the service relay process is triggered.
  • the network element such as the provincial media server, the headquarters service engine, and the headquarters media server selects an optimal available headquarters media server device, which is responsible for providing the media service of the user request content to the provincial media server. The relay process is described in detail below.
  • the relaying process is: when the user equipment requests the service, if the home node does not have the service condition, the provincial media server in the home node first initiates a redirect request to the headquarters service engine (it is required that the redirection refers to The distribution information of the media files in the system and the operation of each media device, select a media server to provide services for the user), and the headquarters service engine generates a service URL including the address of the media server of the headquarters to return to the provincial media server, and save the media server. Use this URL to request services from the headquarters media server.
  • the headquarters media server sends the media code stream to the provincial media server.
  • the media server saves the media code stream to the user device to complete the media interaction process.
  • the data transmission form between the headquarters media server and the provincial media server, and between the provincial media server and the user equipment is related to the service type.
  • the general streaming media data transmission is through a real-time transport protocol (Real-time Transport Protocol, Referred to as RTP, it is completed with the Real-time Transport Control Protocol (RTCP).
  • RTP Real-time Transport Protocol
  • RTCP Real-time Transport Control Protocol
  • Step S301 The user equipment initiates a media service request to the provincial service engine of the home node.
  • Step S302 After receiving the media service request, the provincial service engine searches the database for whether the content requested by the user exists on the media service device of the local node.
  • Step S303 determining whether the provincial node can provide the service according to the search result in step S302, and combining the hardware performance of the media server and the number of concurrent flows in the provincial node.
  • Step S304 if the provincial node can provide a service for the user, the media stream is directly sent by the provincial media server to the user equipment, and the monthly service flow is started.
  • step S305 if the provincial node cannot provide the service, the relay process needs to be triggered.
  • a temporary service URL is generated by the provincial service engine and returned to the user equipment.
  • the service device network protocol (Internet Protocol, IP address) in the URL fills in the address of any media server in the node, and at the same time, The URL indicates that the service needs to go through the relay process through an identifier parameter.
  • Step S306 The user equipment initiates a request to the provincial media server by using the URL returned in step S305, and the provincial media server takes out the relay identification parameter in the request URL, and initiates a redirect request to the headquarters service engine.
  • Step S307 The headquarters service engine performs redirection in the headquarters node to generate an available URL containing the address of the headquarters media server, and then encapsulates the URL in a response message of a certain format to return the result to the requesting national media server.
  • the provincial media server requests the service from the headquarters media server by using the received new URL, and the headquarters media server sends the code stream data of the requested content to the provincial media server.
  • the regional media server forwards the received code stream data to the user equipment, and starts the media service process.
  • the user equipment requests the video file on-demand service as an example, and the description is made on the situation that the content requested by the user and the content of the user request are not present on the provincial node to which the user belongs.
  • the process is a flow chart of providing an on-demand service in a non-relay form according to an embodiment of the present invention, as shown in FIG. 4, in the process, the provincial streaming media server provides services directly to the user, the UE is generally referred to as a mobile mobile terminal; the WAP refers to an audio and video WAP portal, and the portal entry list is provided on the portal.
  • the user equipment first accesses the WAP.
  • Portal select a content of interest on the page to trigger the on-demand process;
  • LSS Local Streaming Server
  • LSS Local Streaming Server
  • a media server for services such as on-demand, live broadcast, and download; a local service engine (LSE) is a national branch node and a local streaming server to provide mobile streaming services to users.
  • LSE local service engine
  • the process includes the following steps: Step S401: The user equipment accesses the WAP portal of the mobile streaming media system through the wireless network. Step S402, the WAP portal displays the audio and video media files in the mobile streaming media system on the page in a list, and returns the information to the user equipment.
  • Step S403 The user selects the media file of interest for on-demand, and sends an on-demand service request to the LSE of the own node, where the message is a GET request in a HyperText Transfer Protocol (HTTP) format.
  • HTTP HyperText Transfer Protocol
  • Step S404 the LSE searches in the content record table of the own node database, and finds whether the content requested by the user exists on the local streaming server. If the content streaming server requested by the user runs normally, the result message is in the form of an HTTP packet. Return, the result code in the HTTP message header is 200.
  • the HTTP message body contains the result URL generated by the LSE. Setting the proxy parameter to 0 in the URL indicates that the content exists in the provincial node, and the service relay process is not required.
  • Step S405 After the response to the LSE, the user equipment extracts the URL in the response message, and initiates a service request to the LSS by using a Real-time Streaming Protocol (RTSP) message.
  • RTSP Real-time Streaming Protocol
  • Step S406 After receiving the RTSP request from the user equipment, the LSS determines that the proxy parameter in the request URL is 0, locates the location of the file requested by the user on the magnetic array of the server, and starts to send the code stream data to the user equipment to provide the on-demand service.
  • FIG. 5 is a flowchart of providing an on-demand service in a relay form according to an embodiment of the present invention. As shown in FIG. 5, when a user equipment requests on-demand, the provincial service engine notifies the user equipment that a device needs to trigger a relay in a message returned to the user equipment. The process then completes the on-demand relay process by interacting between the provincial streaming media server, the headquarters service engine, and the headquarters streaming media server.
  • Step S503 the user selects the media file of interest for on-demand, and sends an on-demand service request to the LSE of the own node.
  • Step S504 the LSE searches in the content record table of the node database, and finds whether the content requested by the user exists on the local streaming server. If not, generates a temporary service URL, and the streaming server address in the URL is filled in the local node. Any streaming media server IP, at the same time, by setting the identifier parameter proxy in the URL to 1 means that there is no such content locally, the relay process needs to be triggered subsequently, and the response message is also returned in the form of an HTTP packet, and the result code in the HTTP message header is 200.
  • the HTTP message body contains the result URL generated by the LSE.
  • Step S505 After receiving the response of the LSE, the user equipment extracts the URL in the response message body, and initiates a service request to the LSS in the RTSP format.
  • Step S506 After receiving the request of the user equipment, the LSS determines that the proxy parameter in the request URL is 1, and initiates a redirect request to the GSE, requesting to obtain an on-demand URL that can be served.
  • Step S 507 the GSE retrieves the content record table of the headquarters node database, finds which streaming media device contains the media file requested by the user, and selects a streaming media server according to the running condition of each device, and finally generates a relay service that can provide the LSS with the relay service.
  • GSS-Port is the port number of the streaming media server that provides the video streaming service. Then the GSE encapsulates an RTSP response message. The result code in the message is filled with 302 (Moved Temporarily, redirection, indicating that the request must be further processed to complete the request;), At the same time, the newly generated URL is filled in the location (point) parameter i or in the response-header, and then returned to the provincial streaming media. Server. Step S508, after receiving the RTSP response with the result code 302, the LSS initiates a relay request by taking a new URL from the location i of the response-header in the response message packet.
  • Step S509 After receiving the service request of the LSS, the GSS locates the requested entity file and starts to send the code stream data to the LS S.
  • Step S510 the LSS forwards the received code stream data to the user equipment, and starts to provide an on-demand service to the user.
  • the on-demand service is taken as an example for description. Similarly, it can be extended to the media and service fields such as live broadcast and download.
  • the above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and all the various substitutions and tampering based on the essence of the present invention should belong to the present invention. The scope of protection of rights.
  • Embodiment 6 This embodiment combines the foregoing embodiments and the preferred embodiments in the respective embodiments.
  • This embodiment provides a media service system
  • FIG. 6 is a structural block diagram of a media service system according to an embodiment of the present invention, as shown in FIG. 6.
  • the central node may be connected to one or more edge nodes, and the edge node includes: a first receiving module 62, a first sending module 64, a second receiving module 66, and a second sending module 68.
  • the edge node is detailed below. Introduction.
  • the first receiving module 62 is configured to receive a media service request from the user equipment, where the media service request is used to request the media resource;
  • the determining module 60 is connected to the first receiving module 62 and the first sending module 64, where the module is used for determining Whether the edge node can provide the media resource to the user equipment;
  • the first sending module 64 is connected to the first receiving module 62, configured to send a request message to the central node if it is determined that the edge node cannot provide the media resource for the user equipment;
  • the receiving module 66 is connected to the first sending module 64, and the edge node receives the media resource from the central node in response to the request message.
  • the second sending module 68 is connected to the second receiving module 66 for transmitting the media resource to the user equipment.
  • the second receiving module 66 includes: a first receiving submodule 662, an initiating submodule 664, and a second receiving submodule 666.
  • a first receiving submodule 662 configured to receive a URL from a central node that carries a media server address for providing a media resource
  • the initiating submodule 664 is connected to the first receiving submodule 662
  • the second receiving sub-module 666 is configured to receive the media resource from the media server corresponding to the URL, by using the media server to initiate a media service request according to the URL.
  • the first sending module 64 includes: a first sending submodule 642 and a second sending submodule 644, where the first sending submodule 642 is configured to send, to the user equipment, a media server address carrying the edge node. a URL, wherein the URL carries an indication that the edge node cannot provide the media resource, so that the user equipment initiates a media service request according to the URL to the media server corresponding to the URL; and the second sending submodule 644 is configured to receive the user from the user. After the service request of the device, a request message is sent to the central node.
  • the edge node further includes: a saving module 74, configured to save the media resource according to a predetermined policy.
  • the central node includes: a third receiving module 76 and a third sending module 78. The central node is described in detail below.
  • the third receiving module 76 is configured to receive a request message from the edge node, where the request message is used to request the media resource: the third sending module 78 is connected to the third receiving module 76, and configured to send the media resource to the edge node.
  • each provincial branch node saves part of the content resources in the system according to a certain policy, and at the same time, the content that does not exist for the local node can provide services through relaying, and can effectively solve the node content storage.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any particular combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A method and system for media services are provided, and the method includes: an edge node receives a media service request from a user device, wherein the media service request is used to request media resources; the edge node determines whether it can provide the media resources for the user device; if the result is no, the edge node sends a request message to a center node; the edge node receives from the center node the media resources responding to the request message, and sends the media resources to the user device. The present invention optimizes the resource sharing ability of the system, and improves the user experience effect

Description

某体月良务方法及系统 技术领域 本发明涉及通信领域, 具体而言, 涉及一种媒体服务方法及系统。 背景技术 移动流媒体技术是把连续的声音和影像信息经过釆集、 压缩处理后存储 到网络服务器上, 使移动终端用户能够一边下载一边收听、 观看, 而不需要 等到整个多媒体文件下载完成就可以即时观看的技术。 在提供移动流媒体业务时, 一般是根据用户归属的物理区域分别架设服 务器节点, 由该节点为本区域内的用户提供媒体服务。 当系统中的媒体文件 越来越多时, 会给节点的存储造成很大压力, 同时对于一些较生僻的冷门内 容, 每个节点都保存一份会造成存储资源的浪费, 但是, 如果为了减轻存储 压力使每个节点有选择性地保存部分媒体文件, 当用户请求节点上不存在的 媒体文件时, 系统无法提供服务, 影响用户体验。 发明内容 本发明的主要目的在于提供一种改进的媒体月艮务方案, 以解决上述问题 至少之一。 根据本发明的一个方面, 提供了一种媒体服务方法。 根据本发明的媒体服务方法包括: 边缘节点接收来自用户设备的媒体服 务请求, 其中, 媒体服务请求用于请求媒体资源; 边缘节点判断其能否为用 户设备提供媒体资源; 边缘节点在判断结果为否的情况下, 向中心节点发送 请求消息; 边缘节点接收来自中心节点响应于请求消息的媒体资源, 并将媒 体资源发送给用户设备。 根据本发明的另一方面, 提供了一种媒体服务系统。 根据本发明的媒体服务系统包括边缘节点和中心节点, 其中, 边缘节点 包括: 第一接收模块, 用于接收来自用户设备的媒体服务请求, 其中, 媒体 服务请求用于请求媒体资源; 判断模块, 用于判断边缘节点能够为用户设备 提供媒体资源; 第一发送模块, 用于在判断模块的判断结果为否的情况下, 向中心节点发送请求消息; 第二接收模块, 边缘节点接收来自中心节点响应 于请求消息的媒体资源; 第二发送模块, 用于将媒体资源发送给用户设备。 通过本发明, 釆用了根据策略在分节点 (即, 边缘节点) 上保存媒体资 源, 当用户终端请求的媒体资源在分节点上不存在时, 该分节点从中心节点 获取该媒体资源, 解决了的服务器分节点在存储资源时产生的存储资源浪费 以及资源不存在时系统无法提供服务的问题, 进而达到了优化系统的资源共 享能力以及提高用户体验的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是根据本发明实施例的媒体服务方法的流程图; 图 2是 居本发明实施例的移动流媒体系统组网的结构示意图; 图 3是才艮据本发明实施例的服务中继方法的流程图; 图 4是根据本发明实施例的以非中继形式提供点播服务的流程图; 图 5是根据本发明实施例的以中继形式提供点播服务的流程图; 图 6是根据本发明实施例的媒体服务系统的结构框图; 图 7是根据本发明实施例的媒体服务系统具体的结构框图。 具体实施方式 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特 征可以相互组合。 下面将参考附图并结合实施例来详细说明本发明。 在以下实施例中, 在附图的流程图示出的步 4聚可以在诸如一组计算机可 执行指令的计算机系统中执行, 并且, 虽然在流程图中示出了逻辑顺序, 但 是在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤。 实施例一 在本实施例中, 提供了一种媒体服务方法, 图 1是根据本发明是实施例 的媒体服务方法的流程图, 如图 1 所示, 该方法包括如下的步骤 S 102至步 骤 S 106: 步骤 S 102, 边缘节点接收来自用户设备的媒体服务请求, 其中, 媒体服 务请求用于请求媒体资源。 步骤 S 104,边缘节点判断该边缘节点能否为用户设备提供请求的媒体资 源, 并在确定在其不能为用户设备提供媒体资源的情况下, 向中心节点发送 请求消息; 在边缘节点确定其能为用户设备提供媒体资源的情况下, 边缘节 点将媒体资源发送给用户设备。 步骤 S 106, 边缘节点接收中心节点响应于请求消息的媒体资源, 并将媒 体资源发送给用户设备。 通过上述步骤, 边缘节点在不能为用户设备提供媒体资源的情况下, 可 以向中心节点请求该媒体资源,从而使边缘节点可以不保存所有的媒体资源, 可以节省存储资源。 当然, 边缘节点不能为用户设备提供媒体资源的原因可 以是该边缘节点不存在该媒体资源, 但原因并不限于此, 例如, 该原因还可 以是因为边缘节点的负载过大等, 基于此过载原因上述步骤还可以避免边缘 节点的负载过大。 因此, 通过上述步骤解决了相关技术中的服务器分节点在 存储资源时产生的存储资源浪费以及资源不存在时系统无法提供服务的问 题。 优选地, 边缘节点不需要保存所有的媒体资源, 可以根据预定策略保存 媒体资源, 例如, 可以根据该媒体资源点播的次数, 该媒体资源的创建时间 等来保存媒体资源。 实施例二 在本实施例中, 对实施例一的步 4聚 S 106 中的边缘节点接收来自中心节 点响应于请求消息的媒体资源的优选实施方式进行了说明, 包括如下步骤: 步骤 A, 中心节点向边缘节点发送携带有用于提供媒体资源的媒体服务 器地址的统一资源定位符 ( Uniform Resource Locator, 简称为 URL )„ 步骤 B , 边缘节点根据 URL向 URL对应的媒体服务器发起媒体服务请 求, 并接收来自 URL对应的媒体服务器的媒体资源。 通过本实施例, 边缘节点可以向中心节点的媒体服务器请求并获取到媒 体资源。 实施例三 在本实施例中, 对实施例一的步骤 S 104 中的边缘节点向中心节点发送 请求消息的优选实施方式进行了说明, 包括如下步骤: 步骤 C, 边缘节点向用户设备发送携带有边缘节点的媒体服务器地址的 URL, 其中, URL中携带有边缘节点不存在媒体资源的指示标识。 步骤 D, 用户设备根据 URL向 URL对应的媒体服务器发起媒体服务请 求。 步骤 E, URL对应的媒体服务器接收到来自用户设备的服务请求之后, 向中心节点发送请求消息。 通过上述步骤,可以由边缘节点的媒体服务器向中心节点发送请求消息, 从而使边缘节点的媒体服务器可以从中心节点获得该媒体资源, 并保存。 实施例四 本实施例结合了实施例一至实施三及其优选实施方式, 图 2是 居本发 明实施例的移动流媒体系统组网的结构示意图, 如图 2所示, 在该移动流媒 体系统中釆用总部-省分二级架构的方式进行部署,在总部设置一个中心节点 (也称为总部节点); 在各省设置一个边缘节点 (也称为省分节点或本地节 点), 其中, 在省分节点的媒体服务器上配置总部节点的业务引擎地址信息, 在此节点是指一个业务引擎设备和多台媒体服务器设备的组合。 业务引擎用来管理媒体服务器设备和各媒体服务器设备上存放的文件信 息 (即, 媒体资源), 其中, 省分业务引擎还负责处理与用户设备 (User Equipment, 简称为 UE ) 的交互。 业务引擎接收到来自用户设备的媒体服务 请求后, 先从数据库中检索出有哪些媒体服务器设备包含用户请求的媒体文 件 (即, 媒体资源), 然后, 综合该省分节点内各媒体服务器的硬件性能和 / 或并发流数选择一个最合适的服务器, 最终组装出用于提供媒体服务的 URL 提供给用户, 用户使用此 URL进行媒体服务请求。 媒体服务器上可以为用户提供点播、 直播和下载等媒体服务, 可以由多 台媒体服务器设备共同组成集群, 媒体服务器使用大容量磁阵保存节点上媒 体文件的实体内容。 总部节点中的音视频无线接入协议 ( Wireless Access Protocol , 简称为 WAP ) 门户负责展现移动流媒体系统中的媒体文件, 用户设备通过访问 WAP 门户 浏览系统中的媒体文件列表。 总部节点的媒体服务器上保存所有的媒体文件, 每个省分节点根据一定 的策略只存储部分实体文件, 例如, 可以根据系统实际运营情况只保存热门 内容或者新上线的内容并定期动态调整。 所有的移动流媒体用户都可以才艮据 其终端编号 (例如, 手机号码) 归属到某个边缘节点。 当一个用户设备请求 媒体服务时, 由无线网络或有线固定网络负责将请求发送到其归属的省分节 点的省分业务引擎, 该省分业务引擎才艮据本节点数据库中保存的媒体文件记 录进行查询, 如果在省分媒体服务器上存在用户请求的媒体文件, 则直接由 该节点的本地媒体服务器为用户提供服务; 如果省分媒体服务器上不存在对 应媒体文件, 则触发服务中继流程, 经由省分媒体服务器、 总部业务引擎和 总部媒体服务器等网元通过一系列交互后选择一个最优的可用总部媒体服务 器设备, 由其负责向省分媒体服务器提供用户请求内容的媒体服务。 下面对 该中继流程进行详细的介绍。 该中继流程为:当用户设备请求服务时若自身归属节点不具备服务条件, 先由归属节点内的省分媒体服务器向总部业务引擎发起重定向请求 (需要说 明的是, 重定向是指根据系统中媒体文件的分布信息和各媒体设备的运行情 况,选取一台媒体服务器为用户提供服务), 总部业务引擎生成一个包括总部 媒体服务器地址的服务 URL 返回给省分媒体服务器, 省分媒体服务器使用 此 URL 向总部媒体服务器请求服务, 总部媒体服务器向省分媒体服务器发 送媒体码流, 省分媒体服务器将媒体码流转发给用户设备, 完成媒体交互流 程。 其中提供总部媒体服务器与省分媒体服务器之间、 省分媒体服务器与用 户设备之间时的数据传输形式跟服务类型相关, 一般的流媒体数据传输是通 过实时传输协议 ( Real-time Transport Protocol, 简称为 RTP ) 和实时传输控 制协议 (Real-time Transport Control Protocol, 简称为 RTCP ) 配合完成。 图TECHNICAL FIELD The present invention relates to the field of communications, and in particular to a media service method and system. BACKGROUND OF THE INVENTION Mobile streaming media technology collects continuous sound and video information into a network server after being collected and compressed, so that the mobile terminal user can listen and watch while downloading, without waiting for the entire multimedia file to be downloaded. Instant viewing technology. When the mobile streaming media service is provided, the server node is generally set up according to the physical area to which the user belongs, and the node provides the media service for the users in the area. When there are more and more media files in the system, it will put a lot of pressure on the storage of the node. At the same time, for some unpopular and unpopular content, saving one node for each node will cause waste of storage resources, but if it is to reduce storage The pressure allows each node to selectively save part of the media file. When the user requests a media file that does not exist on the node, the system cannot provide the service and affect the user experience. SUMMARY OF THE INVENTION A primary object of the present invention is to provide an improved media service solution to solve at least one of the above problems. According to an aspect of the present invention, a media service method is provided. The media service method according to the present invention includes: the edge node receives a media service request from the user equipment, wherein the media service request is used to request the media resource; the edge node determines whether it can provide the media resource for the user equipment; In the case of no, the request message is sent to the central node; the edge node receives the media resource from the central node in response to the request message, and sends the media resource to the user equipment. According to another aspect of the present invention, a media service system is provided. The media service system according to the present invention includes an edge node and a central node, where the edge node includes: a first receiving module, configured to receive a media service request from a user equipment, where the media service request is used to request a media resource; Used to determine that an edge node can be a user device Providing a media resource; a first sending module, configured to send a request message to the central node if the determining result of the determining module is negative; the second receiving module, the edge node receives the media resource from the central node in response to the request message; And a sending module, configured to send the media resource to the user equipment. According to the present invention, the media resource is saved on the sub-node (ie, the edge node) according to the policy. When the media resource requested by the user terminal does not exist on the sub-node, the sub-node acquires the media resource from the central node, and solves the problem. The problem that the server sub-node wastes the storage resources generated when the resources are stored and the system cannot provide the services when the resources are not present, thereby achieving the effect of optimizing the resource sharing capability of the system and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1 is a flowchart of a media service method according to an embodiment of the present invention; FIG. 2 is a schematic structural diagram of a mobile streaming media system networking according to an embodiment of the present invention; FIG. 3 is a schematic diagram of an embodiment of the present invention. FIG. 4 is a flowchart of providing an on-demand service in a non-relay form according to an embodiment of the present invention; FIG. 5 is a flowchart of providing an on-demand service in a relay form according to an embodiment of the present invention; 6 is a structural block diagram of a media service system according to an embodiment of the present invention; and FIG. 7 is a block diagram showing a specific structure of a media service system according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. In the following embodiments, the steps shown in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some In this case, the steps shown or described may be performed in a different order than the ones described herein. Embodiment 1 In this embodiment, a media service method is provided. FIG. 1 is a flowchart of a media service method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps S102 to S106: Step S102: The edge node receives a media service request from the user equipment, where the media service request is used to request the media resource. Step S104: The edge node determines whether the edge node can provide the requested media resource for the user equipment, and sends a request message to the central node if it is determined that it cannot provide the media resource for the user equipment; In the case that the user equipment is provided with the media resource, the edge node sends the media resource to the user equipment. Step S106: The edge node receives the media resource of the central node in response to the request message, and sends the media resource to the user equipment. Through the foregoing steps, the edge node can request the media resource from the central node if the media resource cannot be provided for the user equipment, so that the edge node can save all the media resources without saving all the media resources. The reason why the edge node cannot provide the media resource to the user equipment may be that the edge node does not have the media resource, but the reason is not limited thereto. For example, the reason may be that the load of the edge node is too large, etc., based on the overload. The above steps can also avoid overloading the edge nodes. Therefore, the above steps solve the problem that the storage node generated by the server sub-node in the related art wastes the storage resources and the system cannot provide the service when the resource does not exist. Preferably, the edge node does not need to save all the media resources, and the media resource may be saved according to a predetermined policy. For example, the media resource may be saved according to the number of times the media resource is requested, the creation time of the media resource, and the like. Embodiment 2 In this embodiment, a description is given of a preferred embodiment in which an edge node in step 4 of the first embodiment receives a media resource from a central node in response to a request message, and includes the following steps: Step A, Center The node sends a Uniform Resource Locator (URL) carrying the address of the media server for providing the media resource to the edge node. Step B: The edge node initiates a media service request according to the URL to the media server corresponding to the URL, and receives the media resource from the media server corresponding to the URL. With this embodiment, the edge node can request and acquire the media resource from the media server of the central node. Embodiment 3 In this embodiment, a preferred implementation manner of sending a request message to an edge node in the step S104 of the first embodiment is described. The method includes the following steps: Step C: The edge node sends the carried message to the user equipment. The URL of the media server address of the edge node, where the URL carries an indication identifier that the edge node does not have a media resource. Step D: The user equipment initiates a media service request according to the URL to the media server corresponding to the URL. Step E: After receiving the service request from the user equipment, the media server corresponding to the URL sends a request message to the central node. Through the above steps, the media server of the edge node can send a request message to the central node, so that the media server of the edge node can obtain the media resource from the central node and save it. Embodiment 4 This embodiment combines Embodiment 1 to Embodiment 3 and its preferred embodiments. FIG. 2 is a schematic structural diagram of a mobile streaming media system networking according to an embodiment of the present invention, as shown in FIG. 2, in the mobile streaming media system. The lieutenant deploys the headquarters-provincial secondary architecture, and sets up a central node (also called the headquarters node) at the headquarters; sets an edge node (also called a provincial node or local node) in each province, where The service server address information of the headquarters node is configured on the media server of the provincial node. The node refers to a combination of a service engine device and multiple media server devices. The service engine is used to manage the file information (ie, the media resource) stored on the media server device and the media server device. The provincial service engine is also responsible for processing the interaction with the user equipment (User Equipment, UE for short). After receiving the media service request from the user equipment, the service engine first retrieves from the database which media server devices contain the media files requested by the user (ie, media resources), and then integrates the hardware of each media server in the provincial node. Choose the most appropriate server for performance and / or concurrent flow, and finally assemble the URL for providing media services Provided to the user, the user uses this URL for media service requests. The media server can provide media services such as on-demand, live broadcast, and download to the user. The media server can form a cluster by using multiple media server devices. The media server uses a large-capacity magnetic array to store the physical content of the media files on the node. The Wireless Access Protocol (WAP) portal in the headquarters node is responsible for displaying media files in the mobile streaming media system. The user device browses the list of media files in the system by accessing the WAP portal. All media files are saved on the media server of the headquarters node. Each provincial node stores only some physical files according to certain policies. For example, only popular content or new online content can be saved according to the actual operation of the system and dynamically adjusted periodically. All mobile streaming users can belong to an edge node based on their terminal number (for example, mobile number). When a user equipment requests a media service, the wireless network or the wired fixed network is responsible for sending the request to the provincial branching service engine of the provincial branch node to which it belongs, and the provincial branching service engine records the media file saved in the database of the node. If the media file requested by the user exists on the provincial media server, the local media server of the node directly provides services for the user; if the corresponding media file does not exist on the provincial media server, the service relay process is triggered. Through a series of interactions, the network element such as the provincial media server, the headquarters service engine, and the headquarters media server selects an optimal available headquarters media server device, which is responsible for providing the media service of the user request content to the provincial media server. The relay process is described in detail below. The relaying process is: when the user equipment requests the service, if the home node does not have the service condition, the provincial media server in the home node first initiates a redirect request to the headquarters service engine (it is required that the redirection refers to The distribution information of the media files in the system and the operation of each media device, select a media server to provide services for the user), and the headquarters service engine generates a service URL including the address of the media server of the headquarters to return to the provincial media server, and save the media server. Use this URL to request services from the headquarters media server. The headquarters media server sends the media code stream to the provincial media server. The media server saves the media code stream to the user device to complete the media interaction process. The data transmission form between the headquarters media server and the provincial media server, and between the provincial media server and the user equipment is related to the service type. The general streaming media data transmission is through a real-time transport protocol (Real-time Transport Protocol, Referred to as RTP, it is completed with the Real-time Transport Control Protocol (RTCP). Figure
3是才艮据本发明实施例的服务中继方法的流程图, 如图 3所示, 该流程包括 如下步 4聚: 步骤 S301 , 用户设备向归属节点的省分业务引擎发起媒体服务请求。 步骤 S302, 省分业务引擎接收到该媒体服务请求后, 在数据库中查找用 户请求的内容在本地节点的媒体服务设备上是否存在。 步骤 S303 , 才艮据步骤 S302中的查找结果, 并结合省分节点中媒体月艮务 设备的硬件性能和并发流数等情况确定省分节点是否可以提供服务。 步骤 S304 , 如果省分节点可以为用户提供服务, 直接由省分媒体服务器 向用户设备发送媒体码流, 开始月艮务流程。 步骤 S305 , 如果省分节点无法提供服务, 需要触发中继流程。 此时, 由 省分业务引擎生成一个临时的服务 URL返回给用户设备, URL中的服务设 备网路协议 (Internet Protocol, 简称为 IP ) 地址填写本节点中任意一个媒体 服务器的地址, 同时, 在 URL 中通过一个标识参数表示本次服务需要走中 继流程。 步骤 S306,用户设备使用步骤 S305中返回的 URL向省分媒体服务器发 起请求, 省分媒体服务器取出请求 URL 中的中继标识参数, 向总部业务引 擎发起重定向请求。 步骤 S307, 总部业务引擎在总部节点内进行重定向, 生成一个含有总部 媒体服务器地址的可用 URL, 然后, 将 URL封装在某种格式的响应消息中 将结果返回给发出请求的省分媒体服务器。 步骤 S308, 省分媒体服务器使用接收到的新 URL向总部媒体服务器请 求服务, 总部媒体服务器向省分媒体服务器发送所请求内容的码流数据。 步骤 S309, 省分媒体服务器将接收到的码流数据转发给用户设备, 开始 媒体艮务流程。 实施例五 在本实施例中以用户设备请求视频文件点播服务为例, 分别说明对用户 归属的省分节点上存在用户请求的内容和不存在用户请求的内容两种情况进 行说明。 图 4是根据本发明实施例的以非中继形式提供点播服务的流程图, 如图 4所示, 在该流程中由省分流媒体服务器直接为用户提供服务, UE—般指移 动手机终端; WAP是指音视频 WAP门户, 门户上提供节目入口列表, 实际 应用中用户设备先访问 WAP 门户, 在页面上选择一个感兴趣的内容进行访 问触发点播流程; 本地流媒体服务器 ( Local Streaming Server, 简称为 LSS ) 部署在网络边缘节点, 负责某个省的用户本地接入, 提供流媒体的点播、 直 播、 下载等服务的媒体服务器; 本地业务引擎 (Local Service Engine, 简称 为 LSE ) 与本地流媒体服务器组成省分节点, 共同为用户提供移动流媒体服 务。 如图 4所示, 该流程包括如下步^^ 步骤 S401 , 用户设备通过无线网络访问移动流媒体系统的 WAP门户。 步骤 S402 , WAP 门户将移动流媒体系统中的音视频媒体文件以列表的 方式展现在页面上, 返回给用户设备。 步骤 S403 , 用户选择感兴趣的媒体文件进行点播, 向自身节点的 LSE 发送点播服务请求, 该消息是一个超文本传输协议 (HyperText Transfer Protocol, 简称为 HTTP )格式的 GET请求。 步骤 S404, LSE在自身节点数据库的内容记录表中检索, 查找用户请求 的内容在本地流媒体服务器上是否存在, 如果存在用户请求的内容流媒体服 务器运行正常, 则将结果消息以 HTTP包的形式返回, HTTP消息头中结果 码是 200, HTTP消息体中包含了 LSE生成的结果 URL, URL中设置 proxy 参数为 0表示该内容在省分节点存在, 不需要走服务中继流程。 步骤 S405 , 用户设备) 到 LSE的响应后, 取出响应消息中的 URL, 以 实时流十办议 ( Real-time Streaming Protocol, 简称为 RTSP ) 消息向 LSS发起 服务请求。 步骤 S406, LSS收到用户设备 RTSP请求后, 判断发现其请求 URL中 proxy参数为 0, 在服务器的磁阵上定位到用户请求的文件所在位置, 开始向 用户设备发送码流数据, 提供点播服务。 图 5是根据本发明实施例的以中继形式提供点播服务的流程图如图 5所 示, 当用户设备请求点播时, 省分业务引擎向用户设备返回的消息中通知用 户设备需要触发中继流程, 然后通过省分流媒体服务器、 总部业务引擎和总 部流媒体服务器之间进行交互完成点播中继流程。全局流媒体服务器( Global Streaming Server, 简称为 GSS ), 部署在移动流媒体系统的总部节点, 通过 中继的方式分担各省分节点的月艮务压力; 全局业务引擎 (Golbal Service Engine, 简称为 GSE ) 当收到 LSS的重定向请求时在总部节点的流媒体月艮务 器器中选择一个最优的可用设备, 将该服务器的信息传回给 LSS。 该流程包 括如下步 4聚: 步骤 S 501 , 用户设备访问移动流媒体系统的 WAP门户。 步骤 S502, WAP 门户将系统中的音视频媒体文件以列表的方式展现在 页面上, 返回给用户设备。 步骤 S503 , 用户选择感兴趣的媒体文件进行点播, 向自身节点的 LSE 发送点播服务请求。 步骤 S504, LSE在节点数据库的内容记录表中检索, 查找用户请求的内 容在本地流媒体服务器上是否存在, 如果不存在则生成一个临时的服务 URL, URL中的流媒体服务器地址填写本地节点中任一流媒体服务器 IP, 同 时通过将 URL中的标识参数 proxy设置为 1表示本地无此内容,后续需要触 发中继流程, 响应消息也以 HTTP包的形式返回, HTTP消息头中结果码是 200, HTTP消息体中包含了 LSE生成的结果 URL。 步骤 S505 , 用户设备收到 LSE的响应后, 取出响应消息体中的 URL, 以 RTSP格式向 LSS发起服务请求。 步骤 S506, LSS收到用户设备请求后, 判断发现其请求 URL 中 proxy 参数为 1 , 向 GSE发起重定向请求, 请求获取一个可以服务的点播 URL。 步骤 S 507 , GSE检索总部节点数据库的内容记录表, 查找哪些流媒体设 备包含用户请求的媒体文件, 同时根据各设备的运行情况选择一个流媒体服 务器, 最终生成一个可以给 LSS提供中继服务的可用 URL, 格式形如: rtsp:〃<GSS-IP>:<GSS-Port>/vod.3gp?userid=8618807880000&subcontenti d=9013100020090514012300... , 其中, GSS-IP 是总部节点中一个可以服务的流媒体服务器的地址,3 is a flowchart of a service relay method according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps: Step S301: The user equipment initiates a media service request to the provincial service engine of the home node. Step S302: After receiving the media service request, the provincial service engine searches the database for whether the content requested by the user exists on the media service device of the local node. Step S303, determining whether the provincial node can provide the service according to the search result in step S302, and combining the hardware performance of the media server and the number of concurrent flows in the provincial node. Step S304, if the provincial node can provide a service for the user, the media stream is directly sent by the provincial media server to the user equipment, and the monthly service flow is started. In step S305, if the provincial node cannot provide the service, the relay process needs to be triggered. At this time, a temporary service URL is generated by the provincial service engine and returned to the user equipment. The service device network protocol (Internet Protocol, IP address) in the URL fills in the address of any media server in the node, and at the same time, The URL indicates that the service needs to go through the relay process through an identifier parameter. Step S306: The user equipment initiates a request to the provincial media server by using the URL returned in step S305, and the provincial media server takes out the relay identification parameter in the request URL, and initiates a redirect request to the headquarters service engine. Step S307: The headquarters service engine performs redirection in the headquarters node to generate an available URL containing the address of the headquarters media server, and then encapsulates the URL in a response message of a certain format to return the result to the requesting provincial media server. Step S308, the provincial media server requests the service from the headquarters media server by using the received new URL, and the headquarters media server sends the code stream data of the requested content to the provincial media server. Step S309, the provincial media server forwards the received code stream data to the user equipment, and starts the media service process. In the embodiment, the user equipment requests the video file on-demand service as an example, and the description is made on the situation that the content requested by the user and the content of the user request are not present on the provincial node to which the user belongs. 4 is a flow chart of providing an on-demand service in a non-relay form according to an embodiment of the present invention, as shown in FIG. 4, in the process, the provincial streaming media server provides services directly to the user, the UE is generally referred to as a mobile mobile terminal; the WAP refers to an audio and video WAP portal, and the portal entry list is provided on the portal. In actual applications, the user equipment first accesses the WAP. Portal, select a content of interest on the page to trigger the on-demand process; Local Streaming Server (LSS) is deployed at the edge node of the network, responsible for local access of users in a certain province, providing streaming media. A media server for services such as on-demand, live broadcast, and download; a local service engine (LSE) is a provincial branch node and a local streaming server to provide mobile streaming services to users. As shown in FIG. 4, the process includes the following steps: Step S401: The user equipment accesses the WAP portal of the mobile streaming media system through the wireless network. Step S402, the WAP portal displays the audio and video media files in the mobile streaming media system on the page in a list, and returns the information to the user equipment. Step S403: The user selects the media file of interest for on-demand, and sends an on-demand service request to the LSE of the own node, where the message is a GET request in a HyperText Transfer Protocol (HTTP) format. Step S404, the LSE searches in the content record table of the own node database, and finds whether the content requested by the user exists on the local streaming server. If the content streaming server requested by the user runs normally, the result message is in the form of an HTTP packet. Return, the result code in the HTTP message header is 200. The HTTP message body contains the result URL generated by the LSE. Setting the proxy parameter to 0 in the URL indicates that the content exists in the provincial node, and the service relay process is not required. Step S405: After the response to the LSE, the user equipment extracts the URL in the response message, and initiates a service request to the LSS by using a Real-time Streaming Protocol (RTSP) message. Step S406: After receiving the RTSP request from the user equipment, the LSS determines that the proxy parameter in the request URL is 0, locates the location of the file requested by the user on the magnetic array of the server, and starts to send the code stream data to the user equipment to provide the on-demand service. . FIG. 5 is a flowchart of providing an on-demand service in a relay form according to an embodiment of the present invention. As shown in FIG. 5, when a user equipment requests on-demand, the provincial service engine notifies the user equipment that a device needs to trigger a relay in a message returned to the user equipment. The process then completes the on-demand relay process by interacting between the provincial streaming media server, the headquarters service engine, and the headquarters streaming media server. Global Streaming Server (GSS), deployed at the headquarters node of the mobile streaming system, The way of relaying shares the monthly pressure of each provincial node; the global service engine (Golbal Service Engine, GSE for short) selects one of the most popular streaming servers in the headquarters node when receiving the LSS redirection request. Excellent available device, the information of the server is transmitted back to the LSS. The process includes the following steps: Step S501: The user equipment accesses the WAP portal of the mobile streaming media system. Step S502, the WAP portal displays the audio and video media files in the system on the page in a list, and returns the information to the user equipment. Step S503, the user selects the media file of interest for on-demand, and sends an on-demand service request to the LSE of the own node. Step S504, the LSE searches in the content record table of the node database, and finds whether the content requested by the user exists on the local streaming server. If not, generates a temporary service URL, and the streaming server address in the URL is filled in the local node. Any streaming media server IP, at the same time, by setting the identifier parameter proxy in the URL to 1 means that there is no such content locally, the relay process needs to be triggered subsequently, and the response message is also returned in the form of an HTTP packet, and the result code in the HTTP message header is 200. The HTTP message body contains the result URL generated by the LSE. Step S505: After receiving the response of the LSE, the user equipment extracts the URL in the response message body, and initiates a service request to the LSS in the RTSP format. Step S506: After receiving the request of the user equipment, the LSS determines that the proxy parameter in the request URL is 1, and initiates a redirect request to the GSE, requesting to obtain an on-demand URL that can be served. Step S 507, the GSE retrieves the content record table of the headquarters node database, finds which streaming media device contains the media file requested by the user, and selects a streaming media server according to the running condition of each device, and finally generates a relay service that can provide the LSS with the relay service. Available URLs, formatted as: rtsp:〃<GSS-IP>:<GSS-Port>/vod.3gp?userid=8618807880000&subcontenti d=9013100020090514012300... , where GSS-IP is a serviceable stream in the headquarters node The address of the media server,
GSS-Port是该流媒体服务器提供视频流媒体服务的端口号, 然后 GSE封装 一个 RTSP响应消息, 消息中结果码填为 302 ( Moved Temporarily, 重定向, 表示要完成请求必须进行进一步操作;), 同时将新生成的 URL填入响应包头 ( response-header ) 中的位置 ( Location ) 参数 i或中, 然后返回给省分流媒体 服务器。 步骤 S508, LSS 收到结果码为 302 的 RTSP响应后, 从响应消息包里 response-header的 Location i或中取出新的 URL发起中继请求。 步骤 S509, GSS收到 LSS的服务请求后定位到所请求的实体文件, 开 始向 LS S发送码流数据。 步骤 S510, LSS将收到的码流数据转发给用户设备, 开始给用户提供点 播服务。 在本实施例中以点播服务为例进行说明, 同理, 也可以扩展到直播和下 载等媒体月艮务领域。 以上所述仅为本发明的一种较好的实施方式, 但本发明 的保护范围并不局限于此, 所有基于本发明的实质进行的各种替换和 4爹改, 均应属于本发明的权利保护范围。 实施例六 本实施例综合上述实施例及各个实施例中的优选实施方式, 本实施例提 供了一种媒体服务系统, 图 6是根据本发明实施例的媒体服务系统的结构框 图, 如图 6所示, 中心节点可以连接一个或多个边缘节点, 边缘节点包括: 第一接收模块 62、 第一发送模块 64、 第二接收模块 66、 第二发送模块 68 , 下面对该边缘节点进行详细的介绍。 第一接收模块 62 , 用于接收来自用户设备的媒体服务请求, 其中, 媒体 服务请求用于请求媒体资源; 判断模块 60连接至第一接收模块 62和第一发 送模块 64 , 该模块用于判断边缘节点能否为用户设备提供媒体资源; 第一发 送模块 64连接至第一接收模块 62 , 用于在确定边缘节点不能为用户设备提 供媒体资源的情况下, 向中心节点发送请求消息; 第二接收模块 66 连接至 第一发送模块 64 , 边缘节点接收来自中心节点响应于请求消息的媒体资源; 第二发送模块 68连接至第二接收模块 66 , 用于将媒体资源发送给用户设备。 图 7是根据本发明实施例的媒体服务系统具体的结构框图,如图 7所示, 第二接收模块 66包括: 第一接收子模块 662、 发起子模块 664、 第二接收子 模块 666 , 下面对此进行详细描述。 第一接收子模块 662 , 用于接收来自中心节点的携带有用于提供媒体资 源的媒体服务器地址的 URL; 发起子模块 664连接至第一接收子模块 662 , 用于根据 URL向 URL对应的媒体服务器发起媒体服务请求; 第二接收子模 块 666 ,连接至发起子模块 664用于接收来自 URL对应的媒体服务器的媒体 资源。 如图 7所示, 第一发送模块 64 包括: 第一发送子模块 642和第二发送 子模块 644 , 其中, 第一发送子模块 642 , 用于向用户设备发送携带有边缘 节点的媒体服务器地址的 URL, 其中, URL 中携带有边缘节点不能提供媒 体资源的指示标识, 以便于用户设备根据 URL向 URL对应的媒体服务器发 起媒体服务请求; 第二发送子模块 644 , 用于在接收到来自用户设备的服务 请求之后, 向中心节点发送请求消息。 GSS-Port is the port number of the streaming media server that provides the video streaming service. Then the GSE encapsulates an RTSP response message. The result code in the message is filled with 302 (Moved Temporarily, redirection, indicating that the request must be further processed to complete the request;), At the same time, the newly generated URL is filled in the location (point) parameter i or in the response-header, and then returned to the provincial streaming media. Server. Step S508, after receiving the RTSP response with the result code 302, the LSS initiates a relay request by taking a new URL from the location i of the response-header in the response message packet. Step S509: After receiving the service request of the LSS, the GSS locates the requested entity file and starts to send the code stream data to the LS S. Step S510, the LSS forwards the received code stream data to the user equipment, and starts to provide an on-demand service to the user. In the embodiment, the on-demand service is taken as an example for description. Similarly, it can be extended to the media and service fields such as live broadcast and download. The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and all the various substitutions and tampering based on the essence of the present invention should belong to the present invention. The scope of protection of rights. Embodiment 6 This embodiment combines the foregoing embodiments and the preferred embodiments in the respective embodiments. This embodiment provides a media service system, and FIG. 6 is a structural block diagram of a media service system according to an embodiment of the present invention, as shown in FIG. 6. As shown, the central node may be connected to one or more edge nodes, and the edge node includes: a first receiving module 62, a first sending module 64, a second receiving module 66, and a second sending module 68. The edge node is detailed below. Introduction. The first receiving module 62 is configured to receive a media service request from the user equipment, where the media service request is used to request the media resource; the determining module 60 is connected to the first receiving module 62 and the first sending module 64, where the module is used for determining Whether the edge node can provide the media resource to the user equipment; the first sending module 64 is connected to the first receiving module 62, configured to send a request message to the central node if it is determined that the edge node cannot provide the media resource for the user equipment; The receiving module 66 is connected to the first sending module 64, and the edge node receives the media resource from the central node in response to the request message. The second sending module 68 is connected to the second receiving module 66 for transmitting the media resource to the user equipment. FIG. 7 is a structural block diagram of a media service system according to an embodiment of the present invention. As shown in FIG. 7, the second receiving module 66 includes: a first receiving submodule 662, an initiating submodule 664, and a second receiving submodule 666. This is described in detail. a first receiving submodule 662, configured to receive a URL from a central node that carries a media server address for providing a media resource; the initiating submodule 664 is connected to the first receiving submodule 662, The second receiving sub-module 666 is configured to receive the media resource from the media server corresponding to the URL, by using the media server to initiate a media service request according to the URL. As shown in FIG. 7, the first sending module 64 includes: a first sending submodule 642 and a second sending submodule 644, where the first sending submodule 642 is configured to send, to the user equipment, a media server address carrying the edge node. a URL, wherein the URL carries an indication that the edge node cannot provide the media resource, so that the user equipment initiates a media service request according to the URL to the media server corresponding to the URL; and the second sending submodule 644 is configured to receive the user from the user. After the service request of the device, a request message is sent to the central node.
如图 7所示, 该边缘节点还包括: 保存模块 74 , 该模块用于根据预定策 略保存媒体资源。 如图 7所示, 该中心节点包括: 第三接收模块 76、 第三发送模块 78 , 下面对该中心节点进行详细的介绍。  As shown in FIG. 7, the edge node further includes: a saving module 74, configured to save the media resource according to a predetermined policy. As shown in FIG. 7, the central node includes: a third receiving module 76 and a third sending module 78. The central node is described in detail below.
第三接收模块 76 , 用于接收来自边缘节点请求消息, 其中, 请求消息用 于请求媒体资源: 第三发送模块 78连接至第三接收模块 76 , 用于将媒体资 源发送给边缘节点。  The third receiving module 76 is configured to receive a request message from the edge node, where the request message is used to request the media resource: the third sending module 78 is connected to the third receiving module 76, and configured to send the media resource to the edge node.
可以看出, 通过本发明描述的方法使各省分节点按照一定的策略保存系 统中的部分内容资源, 同时对于本地节点不存在的内容可以通过中继的方式 提供服务, 能有效地解决节点内容存储和提供稳定服务之间的矛盾, 较好地 优化了系统的资源共享能力。  It can be seen that, by the method described in the present invention, each provincial branch node saves part of the content resources in the system according to a certain policy, and at the same time, the content that does not exist for the local node can provide services through relaying, and can effectively solve the node content storage. The contradiction between providing stable service and better optimizing the resource sharing ability of the system.
显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 或 者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制 作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软 件结合。  Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any particular combination of hardware and software.
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。  The above description 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 scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种媒体艮务方法, 其特征在于, 包括: A media processing method, comprising:
边缘节点接收来自用户设备的媒体服务请求, 其中, 所述媒体服务 请求用于请求媒体资源;  The edge node receives a media service request from the user equipment, where the media service request is used to request a media resource;
所述边缘节点判断其能否为所述用户设备提供所述媒体资源; 所述边缘节点在判断结果为否的情况下,向中心节点发送请求消息; 所述边缘节点接收来自所述中心节点响应于所述请求消息的所述媒 体资源, 并将所述媒体资源发送给所述用户设备。  Determining, by the edge node, whether the media resource is provided by the user equipment; the edge node sending a request message to the central node if the determination result is no; the edge node receiving the response from the central node And the media resource of the request message is sent to the user equipment.
2. 根据权利要求 1所述的方法, 其特征在于, 所述边缘节点接收来自所述 中心节点响应于所述请求消息的所述媒体资源包括: The method according to claim 1, wherein the receiving, by the edge node, the media resource from the central node in response to the request message comprises:
所述中心节点向所述边缘节点发送携带有用于提供所述媒体资源的 媒体艮务器地址的 URL;  Sending, by the central node, a URL carrying a media server address for providing the media resource to the edge node;
所述边缘节点根据所述 URL向所述 URL对应的媒体服务器发起媒 体月艮务请求, 并接收来自所述 URL对应的媒体艮务器的所述媒体资源。  The edge node initiates a media monthly request to the media server corresponding to the URL according to the URL, and receives the media resource from the media server corresponding to the URL.
3. 根据权利要求 1所述的方法, 其特征在于, 所述边缘节点向所述中心节 点发送所述请求消息包括: The method according to claim 1, wherein the sending, by the edge node, the request message to the central node comprises:
所述边缘节点向所述用户设备发送携带有所述边缘节点的媒体服务 器地址的 URL, 其中, 所述 URL 中携带有所述边缘节点不能提供所述 媒体资源的指示标识;  The edge node sends, to the user equipment, a URL that carries the media server address of the edge node, where the URL carries an indication identifier that the edge node cannot provide the media resource;
所述用户设备 居所述 URL向所述 URL对应的所述媒体月艮务器发 起媒体服务请求;  The user equipment sends a media service request to the media server corresponding to the URL in the URL;
所述 URL 对应的媒体月艮务器接收到来自所述用户设备的月艮务请求 之后, 向所述中心节点发送所述请求消息。  After receiving the monthly service request from the user equipment, the media server corresponding to the URL sends the request message to the central node.
4. 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 在所述判断结 果为是的情况下, 所述边缘节点将所述媒体资源发送给所述用户设备。 The method according to any one of claims 1 to 3, wherein, in the case that the determination result is yes, the edge node sends the media resource to the user equipment.
5. 根据权利要求 1所述的方法, 其特征在于, 在所述边缘节点接收到来自 所述用户设备的所述媒体月艮务请求之前, 所述方法还包括: 所述边缘节点根据预定策略保存媒体资源。 The method according to claim 1, wherein before the edge node receives the media monthly request from the user equipment, the method further includes: The edge node saves the media resource according to a predetermined policy.
6. —种媒体服务系统, 包括边缘节点和中心节点, 其特征在于, 所述边缘 节点包括: 6. A media service system, comprising an edge node and a central node, wherein the edge node comprises:
第一接收模块, 用于接收来自用户设备的媒体服务请求, 其中, 所 述媒体服务请求用于请求媒体资源;  a first receiving module, configured to receive a media service request from a user equipment, where the media service request is used to request a media resource;
判断模块, 用于判断所述边缘节点能够为所述用户设备提供所述媒 体资源;  a determining module, configured to determine that the edge node is capable of providing the media resource to the user equipment;
第一发送模块, 用于在所述判断模块的判断结果为否的情况下, 向 中心节点发送请求消息;  a first sending module, configured to send a request message to the central node if the determining result of the determining module is negative;
第二接收模块, 所述边缘节点接收来自所述中心节点响应于所述请 求消息的所述媒体资源;  a second receiving module, the edge node receiving the media resource from the central node in response to the request message;
第二发送模块, 用于将所述媒体资源发送给所述用户设备。  The second sending module is configured to send the media resource to the user equipment.
7. 根据权利要求 6所述的系统, 其特征在于, 所述第二接收模块包括: 第一接收子模块, 用于接收来自所述中心节点的携带有用于提供所 述媒体资源的媒体艮务器地址的 URL; The system according to claim 6, wherein the second receiving module comprises: a first receiving submodule, configured to receive a media service from the central node for providing the media resource URL of the address of the device;
发起子模块, 用于根据所述 URL向所述 URL对应的媒体服务器发 起媒体服务请求;  And an initiating submodule, configured to send a media service request to the media server corresponding to the URL according to the URL;
第二接收子模块,用于接收来自所述 URL对应的媒体服务器的所述 媒体资源。  And a second receiving submodule, configured to receive the media resource from a media server corresponding to the URL.
8. 根据权利要求 6所述的系统, 其特征在于, 第一发送模块包括: The system according to claim 6, wherein the first sending module comprises:
第一发送子模块, 用于向所述用户设备发送携带有所述边缘节点的 媒体服务器地址的 URL, 其中, 所述 URL 中携带有所述边缘节点不能 提供所述媒体资源的指示标识 ,以便于所述用户设备 居所述 URL向所 述 URL对应的所述媒体服务器发起媒体服务请求;  a first sending submodule, configured to send, to the user equipment, a URL that carries a media server address of the edge node, where the URL carries an indication that the edge node cannot provide the media resource, so that Initiating a media service request to the media server corresponding to the URL by the user equipment in the URL;
第二发送子模块,用于在接收到来自所述用户设备的服务请求之后, 向所述中心节点发送所述请求消息。  And a second sending submodule, configured to send the request message to the central node after receiving a service request from the user equipment.
9. 根据权利要求 7所述的系统, 其特征在于, 所述边缘节点还包括: 9. The system according to claim 7, wherein the edge node further comprises:
保存模块, 用于根据预定策略保存媒体资源。 A saving module, configured to save a media resource according to a predetermined policy.
10. 根据权利要求 7至 9中任一项所述的系统, 其特征在于, 所述中心节点 包括: The system according to any one of claims 7 to 9, wherein the central node comprises:
第三接收模块, 用于接收来自所述边缘节点请求消息, 其中, 请求 消息用于请求媒体资源:  a third receiving module, configured to receive a request message from the edge node, where the request message is used to request a media resource:
第三发送模块, 用于将所述媒体资源发送给所述边缘节点。  And a third sending module, configured to send the media resource to the edge node.
PCT/CN2010/073950 2009-08-10 2010-06-13 Method and system for media service WO2011017976A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910164084.1A CN101626385B (en) 2009-08-10 2009-08-10 media service method and system
CN200910164084.1 2009-08-10

Publications (1)

Publication Number Publication Date
WO2011017976A1 true WO2011017976A1 (en) 2011-02-17

Family

ID=41522069

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/073950 WO2011017976A1 (en) 2009-08-10 2010-06-13 Method and system for media service

Country Status (2)

Country Link
CN (1) CN101626385B (en)
WO (1) WO2011017976A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626385B (en) * 2009-08-10 2016-03-30 中兴通讯股份有限公司 media service method and system
CN101964794A (en) * 2010-09-30 2011-02-02 中兴通讯股份有限公司 Media tandem method and system for multimedia service system
CN102638731B (en) * 2011-12-13 2018-04-17 中兴通讯股份有限公司 A kind of optimization method and system of user's program request
CN103731400A (en) * 2012-10-12 2014-04-16 三星电子(中国)研发中心 Resource sharing system and method
CN106170967B (en) * 2014-12-30 2019-10-18 华为技术有限公司 A kind of media asset delivery device and method
CN106657402B (en) * 2017-02-21 2019-10-22 上海微喂网络科技有限公司 The transmission method and transmission architecture of real-time multimedia contents distribution network
CN107707616B (en) * 2017-08-21 2019-02-12 贵州白山云科技股份有限公司 A kind of data transmission method and system
CN110691127B (en) * 2019-09-25 2022-04-12 北京奇艺世纪科技有限公司 Data acquisition control system, data acquisition control method and related device
CN111277663B (en) * 2020-02-07 2021-08-27 山东大学 Intelligent management and control method and system for building with double service pools
CN115208955B (en) * 2021-03-29 2024-04-19 贵州白山云科技股份有限公司 Method, device, computer equipment and medium for processing resource request
CN113891114B (en) * 2021-11-18 2023-12-15 上海哔哩哔哩科技有限公司 Transcoding task scheduling method and device
CN115277694B (en) * 2022-06-29 2023-12-08 北京奇艺世纪科技有限公司 Data acquisition method, device, system, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791213A (en) * 2005-12-27 2006-06-21 北京邮电大学 Mobile video order service system with optimized performance and realizing method
CN101137042A (en) * 2006-09-29 2008-03-05 中兴通讯股份有限公司 Static program distribution and service method in cluster type stream media system
CN101626385A (en) * 2009-08-10 2010-01-13 中兴通讯股份有限公司 Media service method and media service system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791213A (en) * 2005-12-27 2006-06-21 北京邮电大学 Mobile video order service system with optimized performance and realizing method
CN101137042A (en) * 2006-09-29 2008-03-05 中兴通讯股份有限公司 Static program distribution and service method in cluster type stream media system
CN101626385A (en) * 2009-08-10 2010-01-13 中兴通讯股份有限公司 Media service method and media service system

Also Published As

Publication number Publication date
CN101626385B (en) 2016-03-30
CN101626385A (en) 2010-01-13

Similar Documents

Publication Publication Date Title
WO2011017976A1 (en) Method and system for media service
US8694675B2 (en) Generalized dual-mode data forwarding plane for information-centric network
KR102305064B1 (en) Video live broadcasting method and device
CN104618506B (en) A crowdsourcing content distribution network system, method and device
KR100779751B1 (en) Method and device for acquiring data information
US8812715B2 (en) Method, system, and proxy node for P2P streaming media data distribution
JP2007529073A (en) Cache server network and content file delivery scheduling method
US20120297410A1 (en) Streaming With Optional Broadcast Delivery of Data Segments
WO2013029569A1 (en) A Generalized Dual-Mode Data Forwarding Plane for Information-Centric Network
CN108886630A (en) Signaling of application content packaging and delivery
CN102238226A (en) Session migration over content-centric networks
US9215265B2 (en) Caching directives for a file delivery protocol
US8817983B2 (en) Streaming video to cellular phones
US11051078B2 (en) Video distribution method and device
JP2009541877A (en) Method, system, apparatus and computer program for controlling web objects (method and apparatus for caching broadcast information)
WO2012083620A1 (en) Method, means and system for downloading streaming media files
Pitkänen et al. Opportunistic web access via wlan hotspots
CN105100147A (en) Controlmethod and device based on separation of content provider and service provider
WO2014117508A1 (en) Content delivery network and content management method in content delivery network
WO2010075742A1 (en) Method, device and system for acquiring media contents in p2p network
US11671515B2 (en) Methods, network node and client device for acquisition and delivery of resources in a communications network
EP2575323B1 (en) Delivering content from a server to a client
KR101524470B1 (en) System for distributed mobile contents delivery network and Method for contents delivery using the same
CN118714086A (en) Load balancing method, device, equipment and medium
CN117880542A (en) CDN cluster source returning method based on long connection and CDN cluster based on long connection

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

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

Country of ref document: EP

Kind code of ref document: A1