WO2008040199A1 - Living broadcast system and method of peer-to-peer stream media, and gathering server - Google Patents

Living broadcast system and method of peer-to-peer stream media, and gathering server Download PDF

Info

Publication number
WO2008040199A1
WO2008040199A1 PCT/CN2007/070606 CN2007070606W WO2008040199A1 WO 2008040199 A1 WO2008040199 A1 WO 2008040199A1 CN 2007070606 W CN2007070606 W CN 2007070606W WO 2008040199 A1 WO2008040199 A1 WO 2008040199A1
Authority
WO
WIPO (PCT)
Prior art keywords
media
server
data
peer
streaming media
Prior art date
Application number
PCT/CN2007/070606
Other languages
French (fr)
Chinese (zh)
Inventor
Yunhua Gong
Yilan Liu
Haibo Wang
Bo Wu
Bin Fang
Original Assignee
Tencent Technology (Shenzhen) Company Limited
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 Tencent Technology (Shenzhen) Company Limited filed Critical Tencent Technology (Shenzhen) Company Limited
Publication of WO2008040199A1 publication Critical patent/WO2008040199A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1854Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with non-centralised forwarding system, e.g. chaincast
    • 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/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1048Departure or maintenance mechanisms

Definitions

  • the present invention relates to streaming media technologies, and in particular, to a peer-to-peer connected streaming media live broadcast system and a peer-to-peer connected streaming media live broadcast method, and to an acquisition server for the above system.
  • P2P services on the Internet have developed rapidly and have become the mainstream of broadband Internet services.
  • P2P technology combines user terminals into one network, shares the bandwidth, and processes the information together.
  • each user terminal is both a client and a server. Taking a shared download file as an example, each of a plurality of user terminals that download the same file only needs to download a partial segment of the file and then exchange each other, and finally each user can obtain a complete file.
  • the P2P streaming media live broadcast service is a live broadcast service based on the Internet using P2P mode. It is generally used to synchronously watch streaming media programs on the network.
  • the P2P streaming media live broadcast tool has been widely applied and recognized on the Internet.
  • the P2P streaming media broadcasts the data sharing between users, which reduces the load of the service provider and saves the cost of providing services.
  • the P2P streaming media live broadcast service has good user participation and becomes a direction for the development of streaming media in the future.
  • FIG. 1 shows an existing P2P streaming media live broadcast system.
  • the system further includes a media server 102 that obtains program data from a program source.
  • the media server 102 can play a program stored on a storage device of another network node or a storage device of the same, and the media server 102 can also be an audio player, a CD player, or the like.
  • the program is read on the storage medium and converted into a stream for broadcast; the system also has an acquisition server 103 for generating streaming media fragmentation data, the collection server 103 collects the media data stream from the media server 102, and streams the media data stream The fragmentation becomes a streaming media data fragment, and corresponding streaming media header data is generated corresponding to the streaming media type, and the foregoing data is distributed to the client 104 in the system; each client 104 in the P2P streaming media live broadcast system (shown in the figure) Four clients 104A-104D), obtained from the index server 101 Program information, downloading the required program directly from the collection server 103, or downloading information between the respective clients 104 of the same program, and downloading the streaming media of the desired program from other clients 104 that download the same program.
  • the specific process is: the media server 102 establishes a publishing point of the media data, the collecting server 103 collects the streaming media data from the publishing point, and segments the media data, and then publishes the information that owns the streaming media data to the index server 101;
  • the client 104 requests the index server 101 to download the required program, acquires information of the collection server 103 providing the program from the index server 101, and other client 104 information that is downloading the same program; the client 104 connects the relevant according to the above information.
  • the collection server 103 or other client 104 requests them to download the fragmented streaming media data; through the above process, each client 104 finally obtains the streaming media data of the desired program.
  • the collection server 103 collects media data from the media server 102 and segments the data, and the streaming media data downloaded by the viewer is Directly or indirectly from the streaming media data fragment distributed by the collection server 103.
  • the publishing point of the media server 102 temporarily or permanently fails to provide normal media data for various reasons, the collection server 103 cannot collect the media data, and thus cannot provide the user.
  • Providing fragmentation data of the media causing the user to watch the streaming program to be intermittent or unable to view; secondly, when the network connection performance between the media server 102 and the collection server 103 is degraded or unavailable, such as a large amount of non-system data
  • the collection server 103 cannot collect media data from the media server, thereby affecting the user's viewing.
  • the technical problem solved by the embodiment of the present invention is to provide a peer-to-peer connected streaming media live broadcast system, which can provide continuous streaming media data to the viewer, so that the viewer can obtain a more smooth viewing effect.
  • the embodiment of the invention further provides a peer-to-peer connection streaming media live broadcast method and an acquisition server for the above system.
  • the peer-to-peer connection streaming media live broadcast system includes an index server and a client, and further includes: a media server, configured to provide multiple publishing points as a source of streaming media data; and an collecting server, configured to One of the publishing points collects the streaming media data and publishes it through the index server for the client to request to download, and switches to another publishing point when the data traffic of the streaming media data is abnormal from the publishing point.
  • the embodiment of the present invention further provides a peer-to-peer connection streaming media live broadcast system, including an index server and a client, further comprising: a plurality of media servers, each media server for providing one or more publishing points as streaming media data.
  • Source acquisition server, used to One of the media servers collects streaming media data and publishes it through an index server for the client to request to download, and when the data traffic of the streaming media data is abnormal from the publishing point, switch to another one.
  • the publishing point on the media server is a peer-to-peer connection streaming media live broadcast system, including an index server and a client, further comprising: a plurality of media servers, each media server for providing one or more publishing points as streaming media data.
  • Source acquisition server, used to One of the media servers collects streaming media data and publishes it through an index server for the client to request to download, and when the data traffic of the streaming media data is abnormal from the publishing point, switch to another one.
  • the publishing point on the media server is a peer-to-peer connection streaming
  • the embodiment of the present invention further provides a peer-to-peer connection streaming media live broadcast method, the method comprising: providing a plurality of publishing points as a source of streaming media data; collecting streaming media data from one of the plurality of publishing points, And being issued by the index server for the client to request to download; wherein, when the data traffic of collecting the streaming media data from the publishing point is abnormal, switching to another publishing point.
  • the embodiment of the present invention further provides an acquisition server for the peer-to-peer connected streaming media live broadcast system, which includes a data collection unit, a streaming media data generating unit, a cache unit, a download request receiving unit, a sending unit, and a publishing request unit, and features thereof.
  • the monitoring unit further includes a monitoring unit, a determining unit, and a switching instruction unit, where: the monitoring unit is configured to monitor the data traffic status of the media data collected by the collecting unit to the media server, and send the monitoring result to the determining unit;
  • the determining unit is configured to receive the monitoring result output by the monitoring unit, and determine, according to the monitoring result, whether the data flow is abnormal, and if yes, output a determination result that needs to switch the release point to the switching instruction unit;
  • the switching instruction unit is configured to receive the determination result output by the determining unit, and when the determination result is that the publishing point needs to be switched, issue an instruction to switch the publishing point to the media server.
  • the embodiment of the invention has the following advantages:
  • the peer-to-peer live streaming media live broadcast system has multiple streaming media data publishing points, and the collecting server of the system can monitor the status of obtaining streaming media data from the media server, when the media is obtained from the media.
  • the server obtains the traffic of the streaming media data is too slow or too intermittent, the streaming data publishing point can be dynamically switched, thereby solving the problem that the streaming media data is not properly released due to the instability of the publishing point, thereby affecting the viewing problem.
  • Switching to a publishing point on another media server avoids the hardware server failure of the media server itself and the network data failure caused by the network failure, thereby obtaining stable streaming media data and providing continuous streaming data to the viewer.
  • FIG. 1 is a schematic structural diagram of a system of a peer-to-peer connected streaming media live broadcast system according to a first embodiment of the present invention
  • FIG. 2 is a schematic diagram of a system structure of a peer-to-peer connected streaming media live broadcast system according to a first embodiment of the present invention
  • FIG. 3 is a flow chart showing the distribution and request viewing of streaming media data in the first embodiment of the present invention.
  • FIG. 4 is a flow chart of the client implementing streaming media data downloading and viewing in the first embodiment of the present invention
  • FIG. 5 is a flow chart of the collection server switching release source in the first embodiment of the present invention
  • FIG. 6 is a functional block diagram of the collection server according to the first embodiment of the present invention. Mode for carrying out the invention
  • a peer-to-peer connected live streaming system includes an index server 201, a media server 202, an acquisition server 203, and a client 204.
  • the media server 202 may have multiple, and the media server 202A and the media server 202B are shown in FIG.
  • the client 204 can also have multiple clients, and four clients 204A, 204B, 204C, 204D are shown in FIG.
  • the index server 201 is configured to save all the programs to provide the program streaming media for each program.
  • the information of the collection server 202 is based on the information of the client 204 that is downloading the program.
  • a client 204 needs to download a program, it sends a download request to the index server 202, which includes the network information of the client 204 and the name of the program requested to be downloaded.
  • the index server 201 returns the network information of the saved collection server 203 that is publishing the program and other clients 204 that are downloading the program, and the client 204 requesting to download the program is from the other client 204 according to the information.
  • the collection server 203 downloads the desired program.
  • the index server 202 is responsible for managing the related information of the various clients 204 that download the program and the collection server 203 that issues the program. It does not provide content download for the client 204, nor does it download the program itself.
  • the related information includes network information and status information, where the network information refers to the network location where the client 204 and the collection server 203 are located, including the network of the operator and the geographic location; the status information refers to the downloaded program name and the streaming media of the downloaded program. The number of the data slice. This information can be used as a basis for selection when the client 204 requesting to download the program selects where to download the tiled streaming media data.
  • the media server 202 is a data source of various media data, and is used for converting and outputting programs on various recording media into digital information, or collecting media data stored on other network nodes and outputting the data.
  • the media server 202 can be a Windows 2003 Media Server software tool that can collect and publish various media data from various network nodes on the network.
  • the network node may be a server that stores media data, or may be an image device that can read media data from a storage medium.
  • the software tool acquires media data and publishes it at a network node, which is called a publishing point.
  • the so-called publishing point is actually a source of media data.
  • the media server 202 itself may be an image device capable of reading media data from a storage medium, and the image devices play media data stored on a medium such as a compact disc or a magnetic tape.
  • Figure 2 shows two media servers 202A, 202B on the network, each of which may establish multiple publishing points.
  • Peer-to-peer connected streaming media live broadcast system provided by the present invention and prior art
  • One difference is that media data can be obtained from more than two publishing points in the system. These publishing points can be on different media servers 202 or different publishing points on the same media server 202.
  • the system provided by this embodiment has not only a plurality of media servers 202, but also a plurality of publishing points on each media server 202.
  • the function of the collection server 203 is to collect the media data from the media server 202, and slice the media data into pieces of the streaming media data, and combine the media header data describing the streaming media format with the streaming media data to form a fragment. Complete fragmented streaming data.
  • the collection server 203 issues a release request to the index server 201, and the related information of the published program is distributed to the index server 201 for use by the client 204.
  • the location of the collection server 203 on the network is no different from that of the client 204 and can be regarded as a special client. In this embodiment, the collection server 203 is different from the prior art collection server.
  • the collection server 203 can monitor the data traffic status of the media data obtained from the media server 202, and obtain the traffic of the media data from the media server 202. When it is obviously too slow or too intermittent, the collection server 203 can issue an instruction to the media server 202 to switch to another publishing point on the same media server or switch to a publishing point on another media server, from a new release. Click to get the media data of the desired program. In the case of switching to another publishing point on the same media server, the collection server 203 may switch to another media server 202 when the media server 202 cannot update the publishing point or the updated publishing point still fails to make the data transmission smooth. For example, from media server 202A to media server 202B.
  • the collection server 203 In the process of switching the publishing point or media server 202 described above, the collection server 203 simultaneously updates the media header data and publishes it so that the new data can be used by the client 204 that downloaded the data.
  • the collection server 203 preferably provides a strictly ascending number for each media header data, and when updated to a new publishing point, Increased media header data number. The client 204 will determine that it needs to be based on the increase in the number.
  • the significance of the media header data providing strict ascending numbers is that the streaming media header data number confusion can be avoided, and in fact, strict descending order can be used to obtain the same effect.
  • the client 204 is a network node on the network that needs to read and play streaming media data, and the network node has multiple networks on the network.
  • the download request is sent to the index server 201 to obtain the related information of the collecting server 203 that is publishing the program and other clients 204 that are downloading the program, including network information and status information.
  • the client 204 requesting to download the program requests the related collection server 203 and the client 204 to download the program based on the above information.
  • the client 204 requesting to download the program obtains the relevant information of the program published by the collection server 203, and interacts with other clients 204 to download the information of the program, and the client 204 requesting to download the program maintains and saves the above information, and according to The above information determines where to download the fragmented streaming media data.
  • the client 204 requesting to download the program downloads the streaming media header data corresponding to the streaming media data of the program. Since the streaming media header data is related to the program source, when the collecting server 203 changes the publishing point. When you need to re-download the new streaming header data.
  • the client 204 requesting to download the program reads the information in the streaming media data fragment and the streaming media header data corresponding to the streaming media data fragment, and continuously decodes each streaming media data fragment and implements streaming media playback. Once the handover point is changed, the number of streaming header data will increase, and the client 204 requesting to download the program knows that new streaming header data needs to be used, and the new streaming header data is used for decoding.
  • FIG. 3 is a flow chart of the distribution and request viewing of streaming media data in the embodiment.
  • Step S301 the media server 202 establishes a publishing point.
  • the media server 202 can obtain the publishing source of the media data from the network and establish a publishing point, and the media server 202 can read the data from the publishing source at any time.
  • step S302 the collection server 203 collects data from the publishing point.
  • the collection server 203 obtains media data through a publishing point of the media server 202, and processes the data to form complete streaming media data.
  • the processing includes: fragmenting the streaming media data and adding corresponding streaming media header data.
  • the data owned by the collection server 203 includes: a streaming media data fragment of a certain length of time of the fragmentation buffer, and for each piece of streaming media data, a corresponding streaming media header data describing the streaming media data format, the streaming media header
  • the data includes the encoding format of the streaming media data.
  • the collection server 203 can maintain a plurality of streaming header data, for which each of the streaming header data is maintained in a strictly ascending or descending integer number.
  • Step S303 the collection server 203 requests the index server 201 to issue a program, assuming that the program name is X.
  • the index server 201 When the collection server 203 requests to issue a program, the index server 201 is provided with the program name of the distributed program and the status information such as the fragmented streaming media data number, and the network information of the collection server 203. The index server 201 records the above information corresponding to the program name.
  • Step S304 the client 204A requests the index server 201 to watch the program whose program name is X.
  • the client 204A makes a request to the index server 201 to request viewing of a program containing the network information of the client 204A.
  • the index server 201 returns the relevant information of the collection server 203 to the client 204A, and downloads the network information of the other clients 204 of the same program.
  • the index server 201 records the network information of the client 204A corresponding to the program X so that when other clients 204 request to download the program X, the information can be provided to them.
  • FIG. 4 shows the flow of downloading and viewing of streaming media data by the client. This flow chart is a subsequent process of the flow chart shown in FIG.
  • the client 204A maintains state information of each program that is downloaded and viewed by itself.
  • the status information includes: a number of the streaming media data fragments buffered by the client 204A, corresponding streaming media header data and their numbers, and other client information for downloading the same program, the client information including the network Information and status information.
  • Step S402 The client 204 downloading the same program exchanges the respective fragmented stream media data numbers and the fragmented stream media data numbers buffered by the collection server 203 that issues the same program.
  • the client 204A stores the above obtained information corresponding to each client 204 and collection server 203.
  • Step S403 the client 204A, according to the number of the streaming media data fragment cached by the client 204A, and the streaming media data fragment number buffered by the client 204 that downloads the same program, and the streaming media of the collection server 203 that issues the same program.
  • Step S404 the client 204A submits a download request to the other client 204 or the collection server 203, including the fragment number of the requested streaming media data, and the maximum streaming media header data number of the downloaded fragment that is not larger than the fragment number. .
  • Step S405 the other client 204 or the collection server 203 receives the download request from the client 204A, and if it finds that it has the corresponding fragment, sends the fragment to the other party; if it finds that the cache is corresponding to the fragmentation If the number of the streaming media header data is greater than the streaming media header data number in the request packet, the streaming media header data should also be sent to the other party before the streaming media data slice is sent.
  • Step S406 the client 204A uses the encoding format information included in the downloaded streaming media header data to decode and view the downloaded streaming media data fragments.
  • the figure shows the flow of the collection server 203 switching the publishing point when the streaming media data is released.
  • step S501 the collection server 203 collects streaming media data from the media server 202.
  • Step S502 When collecting the streaming media data from the media server 202, the collecting server 203 detects the working status of the streaming media data publishing point, and determines whether the working status is abnormal. If the working condition is abnormal, proceed to the next step. Otherwise, continue to work normally.
  • a criterion for determining whether the working condition is normal can be set for the collection server 203.
  • a feasible criterion is: If the real-time code rate is found to be less than 1 kbps for 5 seconds or the connection point of the media server 203 is not correctly connected, then the publishing point of the media server 203 is considered to be abnormal.
  • Step S503 switching to the alternate publishing point.
  • the alternate publishing point can be another source of media data on the same media server 203 or an alternate publishing point established on another media server 203.
  • the alternate publishing point is a publishing point that has been prepared in advance. When the normal data stream is still not available after several times of switching the publishing point on the same media server; or when the media server cannot connect normally, you can switch to the publishing point on another media server.
  • the embodiment further provides an acquisition server 203, which can implement monitoring of the media traffic obtained from the media server 202.
  • the device can send an instruction to the media server 202 to control the media server 202 to switch to the standby.
  • the publishing point continues the media data collection.
  • the collection server 203 can switch to the new media server 202.
  • the collection server 203 includes: a data collection unit 601, a streaming media data generation unit 602, a cache unit 603, a download request receiving unit 604, a sending unit 605, a publishing request unit 606, a monitoring unit 607, and a determining unit 608. And switching the instruction unit 609.
  • the data collection unit 601 is configured to collect and output media data from a publishing point provided by the media server 202.
  • the streaming media data generating unit 602 receives the media data output by the data collecting unit 601, and fragments the pieces, generates fragmented streaming media program data, and numbers the data fragments; the streaming media data generating unit The 602 further generates corresponding media header data according to the type of the media data output by the data collection unit 601. For each media header data, the streaming media data generating unit 602 gives the strict integer or descending integer number thereof, so that When the media header data changes due to the switching of the publishing point, the media header data is obtained. After the media header data obtains the data, the client 204 can decode the fragmented streaming media data of the program content according to the media header data. The broadcast of the streaming media program is realized; the streaming program data of the above segment is combined with the streaming media header data to obtain complete fragmented streaming media data and output.
  • the buffer unit 603 is configured to receive the fragmented streaming media data output by the streaming media data generating unit 602, and buffer a plurality of pieces of fragmented streaming media data including program content of a certain length of time.
  • the download request receiving unit 604 is configured to receive a download request of the client 204, obtain a name of the streaming program required by the client 204, and a slice number;
  • the sending unit 605 is configured to read related piecemeal streaming media data buffered by the buffer unit 603 according to the related information of the download request of the client 204 output by the download request receiving unit 604, and the fragmented stream is The media data is output to the client 204 that issued the download request.
  • the issuance requesting unit 606 is configured to send a publishing request to the index server 201 according to the program name and the number of the segmented streaming media data generated by the streaming media data generating unit 602, where the publishing request includes the fragmented streaming media data. Relevant information such as the name of the program and its number.
  • the monitoring unit 607 is configured to monitor data traffic status of the data collection unit 601 from the media server 202, and the collection server 203 and the media server 202.
  • the connection status is sent, and the monitoring result is sent to the judging unit 608.
  • the determining unit 608 is configured to receive the monitoring result output by the monitoring unit 607, and determine, according to the monitoring result, whether the data flow is too small or too intermittent, and if yes, output a judgment result that needs to switch the release point to the switching instruction.
  • Unit 609 If a certain number of publishing points have been switched on the same media server 202, the normal data stream cannot be obtained; or the monitoring result indicates that the collecting server 203 and the media server 202 cannot be normally connected, the determining unit 608 outputs the need to switch the media server. The result is judged, and the judgment result is output to the command unit 609.
  • the switching instruction unit 609 is configured to receive the determination result output by the determining unit 608.
  • the instruction to switch the publishing point is sent to the media server 202 according to the result, and the instruction may be
  • the instruction to switch to the publishing point on the same media server may also be an instruction to switch to a publishing point on a different media server; if the received judgment result is to switch the media server, directly issue a switch to the publishing point on another media server. instruction.
  • the collection server 203 can monitor the collection traffic and determine whether the distribution point or the media server needs to be switched according to the monitoring result, that is, the dynamic data transmission source is switched.
  • the data collection unit 601, the streaming media data generation unit 602, the cache unit 603, the download request receiving unit 604, the sending unit 605, and the transmission request unit 606 are all functional units in the prior art.
  • the difference from the prior art is that the monitoring unit 607, the traffic status determining unit 608, and the switching instruction unit 609 are configured to implement monitoring of the collected media data and to implement switching of the publishing point according to the monitoring result, thereby ensuring collection.
  • the continuation of the streaming media data issued by the server 203 enables the client 204 to obtain a good streaming media use effect.

Abstract

A living broadcast system of peer-to-peer stream media includes the index server (201) and the clients (204), further includes:the media server (202) for providing multiple issuing points as the stream data source;the gathering server (203), for gathering the stream media data from one of multiple issuing points, which is issued by the index server (201) and is requested by the clients (204) for downloading, and switching to another issuing point when the data flow of the stream media data gathered from the said issuing point is abnormal. A living broadcast method of peer-to-peer stream media and a gathering server (203) are also disclosed.

Description

对等连接流媒体直播系统及其方法、 采集服务器  Peer-to-peer connection streaming media live broadcast system and method thereof, acquisition server
技术领域 Technical field
本发明是涉及流媒体技术, 尤其是涉及一种对等连接流媒体直播系 统以及一种对等连接流媒体直播方法, 本发明还涉及一种用于上述系统 的采集服务器。 发明背景  The present invention relates to streaming media technologies, and in particular, to a peer-to-peer connected streaming media live broadcast system and a peer-to-peer connected streaming media live broadcast method, and to an acquisition server for the above system. Background of the invention
计算机网络发展演化过程是在集中和分布之间摆动。 早期的计算机 使用模式是众多用户共享大型计算机, 以后发展了个人计算机, 从集中 走向分布。 在互联网上存在类似情况, 开始采用客户机(浏览器) -服 务器方式, 使用网络上集中的服务器。 进一步发展将走向分布式, 集中 的服务器将变成分布的, 每一个用户终端既是客户机又是服务器, 这就 是对等连接(peer to peer, 筒称 P2P )模式。  The evolution of computer networks evolves between concentrating and distributing. The early computer usage model was that many users shared large computers, and later developed personal computers, from centralized to distributed. A similar situation exists on the Internet, starting with the client (browser)-server approach, using a centralized server on the network. Further development will move toward distributed, centralized servers will become distributed, each user terminal is both a client and a server, which is a peer-to-peer (P2P) mode.
近年来, 互联网上 P2P业务发展迅速, 已经成为宽带互联网业务的 主流。 P2P技术将各个用户终端互相结合成一个网络,共享其中的带宽, 共同处理其中的信息。 与传统的客户机一一服务器模式不同, P2P工作 方式中,每一个用户终端既是客户机又是服务器。以共享下载文件为例, 下载同一个文件的众多用户终端中的每一个用户终端只需要下载文件 的部分片段, 然后互相交换, 最终每个用户都能得到完整的文件。  In recent years, P2P services on the Internet have developed rapidly and have become the mainstream of broadband Internet services. P2P technology combines user terminals into one network, shares the bandwidth, and processes the information together. Unlike the traditional client-one server model, in the P2P mode of operation, each user terminal is both a client and a server. Taking a shared download file as an example, each of a plurality of user terminals that download the same file only needs to download a partial segment of the file and then exchange each other, and finally each user can obtain a complete file.
P2P流媒体直播服务是一种基于互联网采用 P2P模式的直播服务, 一般用来实现在网络上同步观看流媒体节目, P2P流媒体直播工具在互 联网上得到了广泛的应用和认可。 P2P流媒体直播通过用户间共享数据, 减轻了服务提供方的负载, 节约了提供服务的成本, 同时 P2P流媒体直 播服务具有很好的用户参与性, 成为未来流媒体发展的一个方向。 图 1示出现有 P2P流媒体直播系统。 The P2P streaming media live broadcast service is a live broadcast service based on the Internet using P2P mode. It is generally used to synchronously watch streaming media programs on the network. The P2P streaming media live broadcast tool has been widely applied and recognized on the Internet. The P2P streaming media broadcasts the data sharing between users, which reduces the load of the service provider and saves the cost of providing services. At the same time, the P2P streaming media live broadcast service has good user participation and becomes a direction for the development of streaming media in the future. FIG. 1 shows an existing P2P streaming media live broadcast system.
在现有的 P2P流媒体直播系统中, 包括用于保存每个采集服务器的 信息、 以及对应每个节目保存最近一段时间请求下载该节目的客户端信 息的索引服务器 101; 该系统还包括用于从节目源获得节目数据的媒体 服务器 102, 该媒体服务器 102可以将其他网络节点的存储设备或者自 身的存储设备上存储的节目播放出来, 该媒体服务器 102也可以是一个 音像播放器, 从光碟等存储介质上读取节目并转化为数据流播出; 该系 统还具有用于生成流媒体分片数据的采集服务器 103 , 采集服务器 103 从所述媒体服务器 102采集媒体数据流, 并把媒体数据流分片成为流媒 体数据分片, 以及对应该流媒体类型生成相应的流媒体头数据, 将上述 数据分发给系统中的客户端 104; P2P流媒体直播系统中的各个客户端 104 (图中示出四个客户端 104A-104D ), 根据从索引服务器 101获得的 节目信息, 直接从所述采集服务器 103下载所需要的节目, 或者下载同 一个节目的各个客户端 104相互之间进行信息交互, 从下载同一节目的 其他客户端 104处下载所需节目的流媒体分片数据。 具体过程是: 通过 媒体服务器 102建立一个媒体数据的发布点, 采集服务器 103从该发布 点采集流媒体数据, 并把媒体数据分片, 然后把自己拥有流媒体数据的 信息发布到索引服务器 101; 客户端 104向索引服务器 101请求下载需 要的节目, 从索引服务器 101获取提供该节目的采集服务器 103的信息 以及其他正在下载同一节目的客户端 104信息; 该客户端 104根据上述 信息, 连接相关的采集服务器 103或者其他客户端 104, 向它们请求下 载分片的流媒体数据; 通过上述过程, 各客户端 104最终获得所需节目 的流媒体数据。  In the existing P2P streaming media live broadcast system, including an index server 101 for storing information of each collection server, and client information for each program to save the latest download request for downloading the program; the system further includes a media server 102 that obtains program data from a program source. The media server 102 can play a program stored on a storage device of another network node or a storage device of the same, and the media server 102 can also be an audio player, a CD player, or the like. The program is read on the storage medium and converted into a stream for broadcast; the system also has an acquisition server 103 for generating streaming media fragmentation data, the collection server 103 collects the media data stream from the media server 102, and streams the media data stream The fragmentation becomes a streaming media data fragment, and corresponding streaming media header data is generated corresponding to the streaming media type, and the foregoing data is distributed to the client 104 in the system; each client 104 in the P2P streaming media live broadcast system (shown in the figure) Four clients 104A-104D), obtained from the index server 101 Program information, downloading the required program directly from the collection server 103, or downloading information between the respective clients 104 of the same program, and downloading the streaming media of the desired program from other clients 104 that download the same program. Fragmentation data. The specific process is: the media server 102 establishes a publishing point of the media data, the collecting server 103 collects the streaming media data from the publishing point, and segments the media data, and then publishes the information that owns the streaming media data to the index server 101; The client 104 requests the index server 101 to download the required program, acquires information of the collection server 103 providing the program from the index server 101, and other client 104 information that is downloading the same program; the client 104 connects the relevant according to the above information. The collection server 103 or other client 104 requests them to download the fragmented streaming media data; through the above process, each client 104 finally obtains the streaming media data of the desired program.
上述 P2P流媒体直播系统的缺点在于: 首先, 采集服务器 103从媒 体服务器 102采集媒体数据并把数据分片, 观众下载的流媒体数据都是 直接或间接来自采集服务器 103分发的流媒体数据分片, 当媒体服务器 102 的发布点由于各种原因暂时或永久不能提供正常的媒体数据时, 采 集服务器 103将无法采集媒体数据, 进而无法给用户提供媒体的分片数 据, 造成用户观看流媒体节目发生断断续续的现象或无法观看; 其次, 当媒体服务器 102和采集服务器 103之间的网络连接性能下降或不可用 时, 如出现大量的非本系统数据抢占了网络带宽, 或由于网络设备出现 故障造成网络故障等情况时, 都会造成采集服务器 103不能从媒体服务 器采集媒体数据, 从而影响用户的观看。 The disadvantages of the above P2P streaming media live broadcast system are: First, the collection server 103 collects media data from the media server 102 and segments the data, and the streaming media data downloaded by the viewer is Directly or indirectly from the streaming media data fragment distributed by the collection server 103. When the publishing point of the media server 102 temporarily or permanently fails to provide normal media data for various reasons, the collection server 103 cannot collect the media data, and thus cannot provide the user. Providing fragmentation data of the media, causing the user to watch the streaming program to be intermittent or unable to view; secondly, when the network connection performance between the media server 102 and the collection server 103 is degraded or unavailable, such as a large amount of non-system data When the network bandwidth is preempted, or the network device fails due to a network device failure, the collection server 103 cannot collect media data from the media server, thereby affecting the user's viewing.
随着 P2P流媒体直播方式在各领域的广泛应用, 很好地解决上述问 题的要求越来越迫切, 本专利的发明人正是针对上述问题, 经过仔细研 究和探索, 提出了下面的解决方案。 发明内容  With the widespread application of P2P streaming media live broadcast in various fields, the requirements for solving the above problems are becoming more and more urgent. The inventors of this patent are aiming at the above problems. After careful research and exploration, the following solutions are proposed. . Summary of the invention
针对上述缺陷, 本发明实施例解决的技术问题在于, 提供一种对等 连接流媒体直播系统, 该系统可以为观众提供持续的流媒体数据, 使观 众能够获得更为流畅的欣赏效果。 本发明实施例还提供一种对等连接流 媒体直播方法以及一种用于上述系统的采集服务器。  The technical problem solved by the embodiment of the present invention is to provide a peer-to-peer connected streaming media live broadcast system, which can provide continuous streaming media data to the viewer, so that the viewer can obtain a more smooth viewing effect. The embodiment of the invention further provides a peer-to-peer connection streaming media live broadcast method and an acquisition server for the above system.
本发明实施例提供的对等连接流媒体直播系统, 包括索引服务器以 及客户端, 进一步包括: 媒体服务器, 用于提供多个发布点作为流媒体 数据的来源; 采集服务器, 用于从所述多个发布点中的一个发布点采集 流媒体数据并通过索引服务器发布, 供所述客户端请求下载, 并在从所 述发布点采集流媒体数据的数据流量异常时, 切换到另一个发布点。  The peer-to-peer connection streaming media live broadcast system provided by the embodiment of the present invention includes an index server and a client, and further includes: a media server, configured to provide multiple publishing points as a source of streaming media data; and an collecting server, configured to One of the publishing points collects the streaming media data and publishes it through the index server for the client to request to download, and switches to another publishing point when the data traffic of the streaming media data is abnormal from the publishing point.
本发明实施例还提供了一种对等连接流媒体直播系统, 包括索引服 务器以及客户端, 进一步包括: 多个媒体服务器, 每个媒体服务器用于 提供一个或多个发布点作为流媒体数据的来源; 采集服务器, 用于从一 个所述媒体服务器中的一个发布点采集流媒体数据并通过索引服务器 发布, 供所述客户端请求下载, 并在从所述发布点采集流媒体数据的数 据流量异常时, 切换到位于另一个媒体服务器上的发布点。 The embodiment of the present invention further provides a peer-to-peer connection streaming media live broadcast system, including an index server and a client, further comprising: a plurality of media servers, each media server for providing one or more publishing points as streaming media data. Source; acquisition server, used to One of the media servers collects streaming media data and publishes it through an index server for the client to request to download, and when the data traffic of the streaming media data is abnormal from the publishing point, switch to another one. The publishing point on the media server.
本发明实施例还提供了一种对等连接流媒体直播方法,该方法包括: 提供多个发布点作为流媒体数据的来源; 从所述多个发布点中的一个发 布点采集流媒体数据, 并通过索引服务器发布, 供客户端请求下载; 其 中, 在从所述发布点采集流媒体数据的数据流量异常时, 切换到另一个 发布点。  The embodiment of the present invention further provides a peer-to-peer connection streaming media live broadcast method, the method comprising: providing a plurality of publishing points as a source of streaming media data; collecting streaming media data from one of the plurality of publishing points, And being issued by the index server for the client to request to download; wherein, when the data traffic of collecting the streaming media data from the publishing point is abnormal, switching to another publishing point.
本发明实施例还提供一种用于上述对等连接流媒体直播系统的采集 服务器, 包括数据采集单元、 流媒体数据生成单元、 緩存单元、 下载请 求接收单元、 发送单元、 发布请求单元, 其特征在于, 还包括监测单元、 判断单元和切换指令单元, 其中: 所述监测单元, 用于监测所述采集单 元向媒体服务器采集媒体数据的数据流量状况, 并发送监测结果给所述 判断单元; 所述判断单元, 用于接收所述监测单元输出的监测结果, 并 根据该监测结果, 判断所述数据流量是否异常, 若是, 则输出需要切换 发布点的判断结果给所述切换指令单元; 所述切换指令单元, 用于接收 所述判断单元输出的判断结果, 当该判断结果是需要切换发布点时, 向 媒体服务器发出切换发布点的指令。  The embodiment of the present invention further provides an acquisition server for the peer-to-peer connected streaming media live broadcast system, which includes a data collection unit, a streaming media data generating unit, a cache unit, a download request receiving unit, a sending unit, and a publishing request unit, and features thereof. The monitoring unit further includes a monitoring unit, a determining unit, and a switching instruction unit, where: the monitoring unit is configured to monitor the data traffic status of the media data collected by the collecting unit to the media server, and send the monitoring result to the determining unit; The determining unit is configured to receive the monitoring result output by the monitoring unit, and determine, according to the monitoring result, whether the data flow is abnormal, and if yes, output a determination result that needs to switch the release point to the switching instruction unit; The switching instruction unit is configured to receive the determination result output by the determining unit, and when the determination result is that the publishing point needs to be switched, issue an instruction to switch the publishing point to the media server.
与现有技术相比, 本发明实施例具有以下优点:  Compared with the prior art, the embodiment of the invention has the following advantages:
1、在本发明实施例提供的对等连接流媒体直播系统中,具有多个流 媒体数据发布点, 并且该系统的采集服务器能够监测自己从媒体服务器 获取流媒体数据的状况, 当从该媒体服务器获取流媒体数据的流量明显 过慢或者过于断续时, 可以动态切换流媒体数据发布点, 从而解决了由 于发布点不稳定造成流媒体数据发布不正常, 以致影响观看的问题。  The peer-to-peer live streaming media live broadcast system provided by the embodiment of the present invention has multiple streaming media data publishing points, and the collecting server of the system can monitor the status of obtaining streaming media data from the media server, when the media is obtained from the media. When the server obtains the traffic of the streaming media data is too slow or too intermittent, the streaming data publishing point can be dynamically switched, thereby solving the problem that the streaming media data is not properly released due to the instability of the publishing point, thereby affecting the viewing problem.
2、本发明实施例提供的对等连接流媒体直播系统的优选方案中,通 过切换到另一台媒体服务器上的发布点, 避免媒体服务器本身的硬件故 障和网络故障造成的流媒体数据提供故障, 从而获得稳定的流媒体数 据, 为观众提供持续的流媒体数据。 附图简要说明 2. In the preferred solution of the peer-to-peer connected streaming media live broadcast system provided by the embodiment of the present invention, Switching to a publishing point on another media server avoids the hardware server failure of the media server itself and the network data failure caused by the network failure, thereby obtaining stable streaming media data and providing continuous streaming data to the viewer. BRIEF DESCRIPTION OF THE DRAWINGS
图 1是现有技术的对等连接流媒体直播系统的系统结构示意图; 图 2是本发明第一实施例提供的对等连接流媒体直播系统的系统结 构示意图;  1 is a schematic structural diagram of a system of a peer-to-peer connected streaming media live broadcast system according to a first embodiment of the present invention; FIG. 2 is a schematic diagram of a system structure of a peer-to-peer connected streaming media live broadcast system according to a first embodiment of the present invention;
图 3 是本发明第一实施例中流媒体数据的发布和请求观看的流程 图;  3 is a flow chart showing the distribution and request viewing of streaming media data in the first embodiment of the present invention;
图 4是本发明第一实施例中客户端实现流媒体数据下载和观看的流 程图;  4 is a flow chart of the client implementing streaming media data downloading and viewing in the first embodiment of the present invention;
图 5是本发明第一实施例中采集服务器切换发布源的流程图; 图 6是本发明第一实施例提供的采集服务器功能框图。 实施本发明的方式  FIG. 5 is a flow chart of the collection server switching release source in the first embodiment of the present invention; FIG. 6 is a functional block diagram of the collection server according to the first embodiment of the present invention. Mode for carrying out the invention
为使本发明的上述目的、 特征和优点能够更加明显易懂, 下面结合 附图对本发明的具体实施例进行说明。  The above described objects, features and advantages of the present invention will become more apparent from the aspects of the appended claims.
请参看图 2, 根据本发明实施例的对等连接流媒体直播系统包括索 引服务器 201、 媒体服务器 202、 采集服务器 203、 客户端 204。 其中媒 体服务器 202可以具有多个, 图 2中示出媒体服务器 202A、 媒体服务 器 202B两个。 客户端 204也可以具有多个, 图 2中示出 204A、 204B、 204C、 204D四个客户端。 该系统中采集服务器 203也可以有多个, 由 于对于描述该实施例无关, 所以图 2只示出一个采集服务器 203。  Referring to FIG. 2, a peer-to-peer connected live streaming system according to an embodiment of the present invention includes an index server 201, a media server 202, an acquisition server 203, and a client 204. The media server 202 may have multiple, and the media server 202A and the media server 202B are shown in FIG. The client 204 can also have multiple clients, and four clients 204A, 204B, 204C, 204D are shown in FIG. There may also be multiple acquisition servers 203 in the system, and as shown in Figure 2, only one acquisition server 203 is shown.
所述索引服务器 201用于为各个节目保存所有提供该节目流媒体数 据的采集服务器 202的信息,以及正在下载该节目的客户端 204的信息。 当某个客户端 204需要下载某个节目时, 它会向索引服务器 202发出下 载请求, 该下载请求中包括该客户端 204的网络信息以及请求下载的节 目名称。 此时, 索引服务器 201会返回其保存的正在发布该节目的采集 服务器 203以及正在下载该节目的其他客户端 204的网络信息, 所述请 求下载节目的客户端 204根据该信息从其他客户端 204以及采集服务器 203下载所需的节目。 也就是说, 索引服务器 202负责管理下载节目的 各个客户端 204和发布节目的采集服务器 203的相关信息, 它不为客户 端 204提供内容下载, 自身也不下载节目。 所述相关信息包括网络信息 和状态信息, 网络信息指客户端 204以及采集服务器 203所处的网络位 置, 包括所属运营商网络以及地理位置; 状态信息是指下载的节目名称 以及下载节目的流媒体数据分片的编号。 这些信息可以在请求下载节目 的客户端 204选择从何处下载分片流媒体数据时作为选择的依据。 The index server 201 is configured to save all the programs to provide the program streaming media for each program. The information of the collection server 202 is based on the information of the client 204 that is downloading the program. When a client 204 needs to download a program, it sends a download request to the index server 202, which includes the network information of the client 204 and the name of the program requested to be downloaded. At this time, the index server 201 returns the network information of the saved collection server 203 that is publishing the program and other clients 204 that are downloading the program, and the client 204 requesting to download the program is from the other client 204 according to the information. And the collection server 203 downloads the desired program. That is, the index server 202 is responsible for managing the related information of the various clients 204 that download the program and the collection server 203 that issues the program. It does not provide content download for the client 204, nor does it download the program itself. The related information includes network information and status information, where the network information refers to the network location where the client 204 and the collection server 203 are located, including the network of the operator and the geographic location; the status information refers to the downloaded program name and the streaming media of the downloaded program. The number of the data slice. This information can be used as a basis for selection when the client 204 requesting to download the program selects where to download the tiled streaming media data.
所述媒体服务器 202是各种媒体数据的数据来源, 用于将各种记录 介质上的节目转化为数字信息并输出, 或者采集存储在其他网络节点上 的媒体数据并输出。 例如, 媒体服务器 202可以是 Windows 2003 Media Server软件工具, 该软件工具可以从网络上各种网络节点采集各种媒体 数据并发布。 所述网络节点可以是存储有媒体数据的服务器, 也可以是 能够从存储介质读取媒体数据的影像设备。 该软件工具在某个网络节点 获取媒体数据并发布, 该节点称为一个发布点。 所谓发布点, 实际上就 是媒体数据的一个来源。 此外, 媒体服务器 202本身也可以是能够从存 储介质读取媒体数据的影像设备, 这些影像设备将存储在光碟、 磁带等 介质上的媒体数据播放出来。 网络上可以具备多个媒体服务器, 图 2示 出该网络上的两个媒体服务器 202A、 202B , 每个媒体服务器 202都可 以建立多个发布点。 本发明提供的对等连接流媒体直播系统与现有技术 的一个区别在于, 本系统中可以从两个以上的发布点获得媒体数据, 这 些发布点可以在不同的媒体服务器 202上, 也可以是同一个媒体服务器 202上的不同的发布点。 具体到本实施例提供的系统, 其不仅具有多个 媒体服务器 202, 而且每个媒体服务器 202上具有多个发布点。 The media server 202 is a data source of various media data, and is used for converting and outputting programs on various recording media into digital information, or collecting media data stored on other network nodes and outputting the data. For example, the media server 202 can be a Windows 2003 Media Server software tool that can collect and publish various media data from various network nodes on the network. The network node may be a server that stores media data, or may be an image device that can read media data from a storage medium. The software tool acquires media data and publishes it at a network node, which is called a publishing point. The so-called publishing point is actually a source of media data. Further, the media server 202 itself may be an image device capable of reading media data from a storage medium, and the image devices play media data stored on a medium such as a compact disc or a magnetic tape. There may be multiple media servers on the network. Figure 2 shows two media servers 202A, 202B on the network, each of which may establish multiple publishing points. Peer-to-peer connected streaming media live broadcast system provided by the present invention and prior art One difference is that media data can be obtained from more than two publishing points in the system. These publishing points can be on different media servers 202 or different publishing points on the same media server 202. Specifically, the system provided by this embodiment has not only a plurality of media servers 202, but also a plurality of publishing points on each media server 202.
所述采集服务器 203的作用在于从媒体服务器 202采集媒体数据, 并将媒体数据分片成为流媒体数据分片, 同时将描述流媒体格式的媒体 头数据与所述流媒体数据分片结合, 形成完整的分片流媒体数据。 该采 集服务器 203向所述索引服务器 201发出发布申请, 将其发布的节目的 相关信息交由所述索引服务器 201发布, 以便客户端 204使用。 所述采 集服务器 203在网络上的地位与客户端 204并无不同, 可以视为一种特 殊的客户端。 本实施例中, 该采集服务器 203与现有技术的采集服务器 有一定区别, 该采集服务器 203能够监测其从媒体服务器 202获取媒体 数据的数据流量状况, 当从该媒体服务器 202获取媒体数据的流量明显 过慢或者过于断续时, 该采集服务器 203能够向所述媒体服务器 202发 出指令, 要求其切换到同一媒体服务器上另一个发布点或者切换到另一 媒体服务器上的发布点, 从新的发布点获得所需节目的媒体数据。 在切 换到同一媒体服务器上另一发布点的情况下, 在无法使该媒体服务器 202更新发布点或者更新的发布点仍然无法使数据传输流畅时, 该采集 服务器 203可转向另一个媒体服务器 202, 例如, 从媒体服务器 202A 转向媒体服务器 202B。 在上述切换发布点或者媒体服务器 202的过程 中, 该采集服务器 203同时更新媒体头数据并发布, 以便新的数据能够 被下载该数据的客户端 204使用。 为了使切换发布点引起的媒体头数据 变化能够被客户端 204识别, 采集服务器 203优选地为每一种媒体头数 据提供一个严格增序的编号, 当更新到新的发布点时, 就会获得增大的 媒体头数据编号。 所述客户端 204将根据编号增大的情况, 确定自己需 要采用新的流媒体头数据。 所述媒体头数据提供严格增序编号的意义在 于, 可以避免流媒体头数据编号混淆, 实际上也可以采用严格降序等方 式来获得同样的效果。 The function of the collection server 203 is to collect the media data from the media server 202, and slice the media data into pieces of the streaming media data, and combine the media header data describing the streaming media format with the streaming media data to form a fragment. Complete fragmented streaming data. The collection server 203 issues a release request to the index server 201, and the related information of the published program is distributed to the index server 201 for use by the client 204. The location of the collection server 203 on the network is no different from that of the client 204 and can be regarded as a special client. In this embodiment, the collection server 203 is different from the prior art collection server. The collection server 203 can monitor the data traffic status of the media data obtained from the media server 202, and obtain the traffic of the media data from the media server 202. When it is obviously too slow or too intermittent, the collection server 203 can issue an instruction to the media server 202 to switch to another publishing point on the same media server or switch to a publishing point on another media server, from a new release. Click to get the media data of the desired program. In the case of switching to another publishing point on the same media server, the collection server 203 may switch to another media server 202 when the media server 202 cannot update the publishing point or the updated publishing point still fails to make the data transmission smooth. For example, from media server 202A to media server 202B. In the process of switching the publishing point or media server 202 described above, the collection server 203 simultaneously updates the media header data and publishes it so that the new data can be used by the client 204 that downloaded the data. In order for the media header data changes caused by the switch release point to be recognized by the client 204, the collection server 203 preferably provides a strictly ascending number for each media header data, and when updated to a new publishing point, Increased media header data number. The client 204 will determine that it needs to be based on the increase in the number. To adopt new streaming header data. The significance of the media header data providing strict ascending numbers is that the streaming media header data number confusion can be avoided, and in fact, strict descending order can be used to obtain the same effect.
所述客户端 204是网络上需要读取播放流媒体数据的网络节点, 该 网络节点在网络上具有多个。 客户端 204需要某个流媒体节目时, 向所 述索引服务器 201发出下载请求,获得正在发布该节目的采集服务器 203 以及正在下载该节目的其他客户端 204的相关信息, 包括网络信息和状 态信息。 该请求下载节目的客户端 204根据上述信息, 向相关采集服务 器 203和客户端 204请求下载节目。 下载开始后, 请求下载节目的客户 端 204获得采集服务器 203发布该节目的相关信息, 以及和其他客户端 204交互下载该节目的信息, 请求下载节目的客户端 204维护并保存上 述信息, 并根据上述信息确定其从何处下载分片流媒体数据。 在开始下 载一个节目时, 请求下载节目的客户端 204下载获得该节目的流媒体数 据对应的流媒体头数据, 由于流媒体头数据与节目来源相关, 因此, 当 所述采集服务器 203改变发布点时, 需要重新下载新的流媒体头数据。 该请求下载节目的客户端 204读取流媒体数据分片中的信息, 以及对应 该流媒体数据分片的流媒体头数据, 不断解码各个流媒体数据分片并实 现流媒体播放。 一旦出现切换发布点的情况, 则流媒体头数据的编号将 增大,请求下载节目的客户端 204据此得知需要采用新的流媒体头数据, 并采用新的流媒体头数据进行解码。  The client 204 is a network node on the network that needs to read and play streaming media data, and the network node has multiple networks on the network. When the client 204 needs a certain streaming program, the download request is sent to the index server 201 to obtain the related information of the collecting server 203 that is publishing the program and other clients 204 that are downloading the program, including network information and status information. . The client 204 requesting to download the program requests the related collection server 203 and the client 204 to download the program based on the above information. After the download starts, the client 204 requesting to download the program obtains the relevant information of the program published by the collection server 203, and interacts with other clients 204 to download the information of the program, and the client 204 requesting to download the program maintains and saves the above information, and according to The above information determines where to download the fragmented streaming media data. When starting to download a program, the client 204 requesting to download the program downloads the streaming media header data corresponding to the streaming media data of the program. Since the streaming media header data is related to the program source, when the collecting server 203 changes the publishing point. When you need to re-download the new streaming header data. The client 204 requesting to download the program reads the information in the streaming media data fragment and the streaming media header data corresponding to the streaming media data fragment, and continuously decodes each streaming media data fragment and implements streaming media playback. Once the handover point is changed, the number of streaming header data will increase, and the client 204 requesting to download the program knows that new streaming header data needs to be used, and the new streaming header data is used for decoding.
以下为了更为充分地说明本系统的工作原理, 对照流程图, 对该系 统的工作过程进行说明。  In order to more fully explain the working principle of the system, the working process of the system will be described with reference to the flowchart.
请参看图 3 , 该图为本实施例中流媒体数据的发布和请求观看的流 程图。  Please refer to FIG. 3 , which is a flow chart of the distribution and request viewing of streaming media data in the embodiment.
步骤 S301 , 媒体服务器 202建立发布点。 媒体服务器 202可以从网络上获得媒体数据的发布源, 并建立发布 点, 媒体服务器 202可以随时从该发布源读取数据。 Step S301, the media server 202 establishes a publishing point. The media server 202 can obtain the publishing source of the media data from the network and establish a publishing point, and the media server 202 can read the data from the publishing source at any time.
步骤 S302, 采集服务器 203从发布点采集数据。  In step S302, the collection server 203 collects data from the publishing point.
采集服务器 203通过所述媒体服务器 202的一个发布点获得媒体数 据, 并对该数据进行处理, 形成完整的流媒体数据。 所述处理包括: 将 该流媒体数据分片以及加入相应的流媒体头数据。 所述采集服务器 203 拥有的数据包括: 分片緩存的一定时间长度的流媒体数据分片, 对于每 一片流媒体数据, 都有相应的描述流媒体数据格式的流媒体头数据, 该 流媒体头数据中包括流媒体数据的编码格式。 采集服务器 203可以维护 多个流媒体头数据, 对于每一种流媒体头数据, 为其维护一个严格增序 或降序的整数编号。  The collection server 203 obtains media data through a publishing point of the media server 202, and processes the data to form complete streaming media data. The processing includes: fragmenting the streaming media data and adding corresponding streaming media header data. The data owned by the collection server 203 includes: a streaming media data fragment of a certain length of time of the fragmentation buffer, and for each piece of streaming media data, a corresponding streaming media header data describing the streaming media data format, the streaming media header The data includes the encoding format of the streaming media data. The collection server 203 can maintain a plurality of streaming header data, for which each of the streaming header data is maintained in a strictly ascending or descending integer number.
步骤 S303 , 采集服务器 203向所述索引服务器 201请求发布节目, 假设节目名为 X。  Step S303, the collection server 203 requests the index server 201 to issue a program, assuming that the program name is X.
采集服务器 203请求发布节目时, 向所述索引服务器 201提供所发 布节目的节目名称以及分片流媒体数据编号等状态信息, 以及该采集服 务器 203的网络信息。 所述索引服务器 201对应于该节目名称记录上述 信息。  When the collection server 203 requests to issue a program, the index server 201 is provided with the program name of the distributed program and the status information such as the fragmented streaming media data number, and the network information of the collection server 203. The index server 201 records the above information corresponding to the program name.
步骤 S304, 客户端 204A向索引服务器 201请求观看节目名为 X的 节目。  Step S304, the client 204A requests the index server 201 to watch the program whose program name is X.
客户端 204A向所述索引服务器 201提出请求观看某个节目的请求, 该请求中包含该客户端 204A 的网络信息。 索引服务器 201 向客户端 204A返回采集服务器 203 的相关信息, 以及下载同一节目的其他客户 端 204的网络信息。 索引服务器 201对应于所述节目 X记录该客户端 204A的网络信息, 以便在其他客户端 204要求下载节目 X时, 可以向 它们提供该信息。 请参看图 4, 该图示出客户端实现流媒体数据的下载和观看的流程。 该流程图是图 3所示流程图的后续过程。 The client 204A makes a request to the index server 201 to request viewing of a program containing the network information of the client 204A. The index server 201 returns the relevant information of the collection server 203 to the client 204A, and downloads the network information of the other clients 204 of the same program. The index server 201 records the network information of the client 204A corresponding to the program X so that when other clients 204 request to download the program X, the information can be provided to them. Please refer to FIG. 4, which shows the flow of downloading and viewing of streaming media data by the client. This flow chart is a subsequent process of the flow chart shown in FIG.
步骤 S401 ,客户端 204A维护自己下载观看的每个节目的状态信息。 所述状态信息包括: 该客户端 204A所緩存的流媒体数据分片的编 号, 这些分片对应的流媒体头数据及其编号, 以及下载相同节目的其他 客户端信息, 该客户端信息包括网络信息以及状态信息。  In step S401, the client 204A maintains state information of each program that is downloaded and viewed by itself. The status information includes: a number of the streaming media data fragments buffered by the client 204A, corresponding streaming media header data and their numbers, and other client information for downloading the same program, the client information including the network Information and status information.
步骤 S402, 下载相同节目的客户端 204之间交互各自緩存的分片流 媒体数据编号, 以及发布相同节目的采集服务器 203緩存的分片流媒体 数据编号。 客户端 204A对应于各个客户端 204和采集服务器 203保存 获得到的上述信息。  Step S402: The client 204 downloading the same program exchanges the respective fragmented stream media data numbers and the fragmented stream media data numbers buffered by the collection server 203 that issues the same program. The client 204A stores the above obtained information corresponding to each client 204 and collection server 203.
步骤 S403 , 客户端 204A根据该客户端 204A緩存的流媒体数据分 片的编号, 以及其他下载相同节目的客户端 204緩存的流媒体数据分片 编号, 以及发布相同节目的采集服务器 203的流媒体数据分片编号, 调 度决定从某个具体的客户端 204或者采集服务器 203下载分片流媒体数 据。  Step S403, the client 204A, according to the number of the streaming media data fragment cached by the client 204A, and the streaming media data fragment number buffered by the client 204 that downloads the same program, and the streaming media of the collection server 203 that issues the same program. The data fragment number, the scheduling decision to download the fragmented streaming media data from a specific client 204 or the collection server 203.
步骤 S404, 客户端 204A向其他的客户端 204或者采集服务器 203 提出下载请求, 包括请求的流媒体数据的分片编号, 以及不大于该分片 编号的已下载分片的最大流媒体头数据编号。  Step S404, the client 204A submits a download request to the other client 204 or the collection server 203, including the fragment number of the requested streaming media data, and the maximum streaming media header data number of the downloaded fragment that is not larger than the fragment number. .
步骤 S405 ,所述其它客户端 204或者采集服务器 203收到来自客户 端 204A的下载请求, 如果发现自己拥有对应的分片, 则发送该分片给 对方; 如果发现自己緩存的对应该分片的流媒体头数据的编号大于请求 包中的流媒体头数据编号, 那么在发送流流媒体数据片之前, 还应该向 对方发送流媒体头数据。  Step S405, the other client 204 or the collection server 203 receives the download request from the client 204A, and if it finds that it has the corresponding fragment, sends the fragment to the other party; if it finds that the cache is corresponding to the fragmentation If the number of the streaming media header data is greater than the streaming media header data number in the request packet, the streaming media header data should also be sent to the other party before the streaming media data slice is sent.
步骤 S406, 客户端 204A使用下载回来的流媒体头数据里包含的编 码格式信息, 对下载回来的各流媒体数据分片进行解码观看。 请参看图 5 , 该图示出在发布流媒体数据时, 采集服务器 203切换 发布点的流程。 Step S406, the client 204A uses the encoding format information included in the downloaded streaming media header data to decode and view the downloaded streaming media data fragments. Referring to FIG. 5, the figure shows the flow of the collection server 203 switching the publishing point when the streaming media data is released.
步骤 S501 , 采集服务器 203从媒体服务器 202采集流媒体数据。 步骤 S502,采集服务器 203在从媒体服务器 202采集流媒体数据的 时候, 检测流媒体数据发布点工作状况, 判断工作状况是否异常。 若工 作状况异常, 则进行下一步骤。 否则, 继续正常工作。  In step S501, the collection server 203 collects streaming media data from the media server 202. Step S502: When collecting the streaming media data from the media server 202, the collecting server 203 detects the working status of the streaming media data publishing point, and determines whether the working status is abnormal. If the working condition is abnormal, proceed to the next step. Otherwise, continue to work normally.
可以为采集服务器 203设定工作状况是否正常的标准。 一个可行的 标准是: 如果发现实时码率连续 5秒钟低于 1 kbps或者不能正确连接媒 体服务器 203的发布点,那么则认为媒体服务器 203的发布点工作异常。  A criterion for determining whether the working condition is normal can be set for the collection server 203. A feasible criterion is: If the real-time code rate is found to be less than 1 kbps for 5 seconds or the connection point of the media server 203 is not correctly connected, then the publishing point of the media server 203 is considered to be abnormal.
步骤 S503 , 切换到备用发布点。 该备用发布点可以是同一台媒体服 务器 203上的另一个媒体数据来源, 或者是在另一台媒体服务器 203建 立的备用发布点。 所述备用发布点为事先已经准备好的发布点。 当在同 一台媒体服务器上经过若干次切换发布点后, 仍然无法获得正常的数据 流时; 或者该媒体服务器无法正常连接时, 则可以切换到另一台媒体服 务器上的发布点。  Step S503, switching to the alternate publishing point. The alternate publishing point can be another source of media data on the same media server 203 or an alternate publishing point established on another media server 203. The alternate publishing point is a publishing point that has been prepared in advance. When the normal data stream is still not available after several times of switching the publishing point on the same media server; or when the media server cannot connect normally, you can switch to the publishing point on another media server.
经过上述切换后, 继续进行正常的流媒体数据发布和交互。  After the above switching, normal streaming media data distribution and interaction continue.
本实施例还提供一种采集服务器 203 , 该采集服务器 203能够实现 对从媒体服务器 202获得的媒体流量的监测, 当流量不正常时, 能够向 媒体服务器 202发出指令, 控制媒体服务器 202切换到备用发布点继续 进行媒体数据采集。 当一个媒体服务器多次切换发布点仍然无法获得正 常的数据流量时,则该采集服务器 203能够切换到新的媒体服务器 202。  The embodiment further provides an acquisition server 203, which can implement monitoring of the media traffic obtained from the media server 202. When the traffic is abnormal, the device can send an instruction to the media server 202 to control the media server 202 to switch to the standby. The publishing point continues the media data collection. When a media server still fails to obtain normal data traffic by switching the publishing point multiple times, the collection server 203 can switch to the new media server 202.
请参看图 6, 该图为所述采集服务器的原理框图。 如图所示, 所述 采集服务器 203 包括: 数据采集单元 601、 流媒体数据生成单元 602、 緩存单元 603、 下载请求接收单元 604、 发送单元 605、 发布请求单元 606、 监测单元 607、 判断单元 608、 切换指令单元 609。 所述数据采集单元 601用于从媒体服务器 202提供的发布点采集媒 体数据并输出。 Please refer to FIG. 6, which is a schematic block diagram of the acquisition server. As shown in the figure, the collection server 203 includes: a data collection unit 601, a streaming media data generation unit 602, a cache unit 603, a download request receiving unit 604, a sending unit 605, a publishing request unit 606, a monitoring unit 607, and a determining unit 608. And switching the instruction unit 609. The data collection unit 601 is configured to collect and output media data from a publishing point provided by the media server 202.
所述流媒体数据生成单元 602接收所述数据采集单元 601输出的媒 体数据, 并将其分片, 生成分片的流媒体节目数据, 并对该数据分片进 行编号; 该流媒体数据生成单元 602还根据所述数据采集单元 601输出 的媒体数据的类型, 生成相应的媒体头数据, 对于每一种媒体头数据, 该流媒体数据生成单元 602给予其严格增序或降序的整数编号, 以便在 由于切换发布点而引起媒体头数据变化时, 予以区别; 所述媒体头数据 使客户端 204获得该数据后, 能够依据该媒体头数据对所述节目内容的 分片流媒体数据进行解码, 实现对流媒体节目的播出; 上述分片的流媒 体节目数据与流媒体头数据结合, 获得完整的分片流媒体数据并输出。  The streaming media data generating unit 602 receives the media data output by the data collecting unit 601, and fragments the pieces, generates fragmented streaming media program data, and numbers the data fragments; the streaming media data generating unit The 602 further generates corresponding media header data according to the type of the media data output by the data collection unit 601. For each media header data, the streaming media data generating unit 602 gives the strict integer or descending integer number thereof, so that When the media header data changes due to the switching of the publishing point, the media header data is obtained. After the media header data obtains the data, the client 204 can decode the fragmented streaming media data of the program content according to the media header data. The broadcast of the streaming media program is realized; the streaming program data of the above segment is combined with the streaming media header data to obtain complete fragmented streaming media data and output.
所述緩存单元 603用于接收流媒体数据生成单元 602输出的分片流 媒体数据, 并緩存包含一定时间长度节目内容的若干片分片流媒体数 据。  The buffer unit 603 is configured to receive the fragmented streaming media data output by the streaming media data generating unit 602, and buffer a plurality of pieces of fragmented streaming media data including program content of a certain length of time.
所述下载请求接收单元 604, 用于接收客户端 204的下载请求, 获 得客户端 204所需的流媒体节目的名称以及分片编号;  The download request receiving unit 604 is configured to receive a download request of the client 204, obtain a name of the streaming program required by the client 204, and a slice number;
所述发送单元 605 , 用于根据所述下载请求接收单元 604输出的客 户端 204的下载请求的相关信息, 读取所述緩存单元 603緩存的相关分 片流媒体数据, 并将该分片流媒体数据输出到发出下载请求的所述客户 端 204。  The sending unit 605 is configured to read related piecemeal streaming media data buffered by the buffer unit 603 according to the related information of the download request of the client 204 output by the download request receiving unit 604, and the fragmented stream is The media data is output to the client 204 that issued the download request.
所述发布请求单元 606, 用于根据流媒体数据生成单元 602生成的 分片流媒体数据的节目名称及其编号,向索引服务器 201发出发布请求, 该发布请求包括所述分片流媒体数据的节目名称及其编号等相关信息。  The issuance requesting unit 606 is configured to send a publishing request to the index server 201 according to the program name and the number of the segmented streaming media data generated by the streaming media data generating unit 602, where the publishing request includes the fragmented streaming media data. Relevant information such as the name of the program and its number.
所述监测单元 607 , 用于监测数据采集单元 601从媒体服务器 202 采集媒体数据的数据流量状况, 以及采集服务器 203与媒体服务器 202 的连接状况, 并发送监测结果给判断单元 608。 The monitoring unit 607 is configured to monitor data traffic status of the data collection unit 601 from the media server 202, and the collection server 203 and the media server 202. The connection status is sent, and the monitoring result is sent to the judging unit 608.
所述判断单元 608 , 用于接收监测单元 607输出的监测结果, 并根 据该监测结果, 判断所述数据流量是否过小或者过于断续, 若是, 则输 出需要切换发布点的判断结果给切换指令单元 609。 如果在同一媒体服 务器 202上已经切换过一定数量的发布点, 均无法获得正常的数据流; 或者监测结果表明采集服务器 203与媒体服务器 202无法正常连接, 则 该判断单元 608输出需要切换媒体服务器的判断结果, 并将判断结果输 出给指令单元 609。  The determining unit 608 is configured to receive the monitoring result output by the monitoring unit 607, and determine, according to the monitoring result, whether the data flow is too small or too intermittent, and if yes, output a judgment result that needs to switch the release point to the switching instruction. Unit 609. If a certain number of publishing points have been switched on the same media server 202, the normal data stream cannot be obtained; or the monitoring result indicates that the collecting server 203 and the media server 202 cannot be normally connected, the determining unit 608 outputs the need to switch the media server. The result is judged, and the judgment result is output to the command unit 609.
所述切换指令单元 609, 用于接收所述判断单元 608输出的判断结 果,当该判断结果是需要切换发布点时,则根据该结果向媒体服务器 202 发出切换发布点的指令, 该指令可以是切换到同一媒体服务器上发布点 的指令, 也可以是切换到不同媒体服务器上发布点的指令; 若所接收的 判断结果是切换媒体服务器时, 则直接发出切换到另一个媒体服务器上 发布点的指令。  The switching instruction unit 609 is configured to receive the determination result output by the determining unit 608. When the determination result is that the publishing point needs to be switched, the instruction to switch the publishing point is sent to the media server 202 according to the result, and the instruction may be The instruction to switch to the publishing point on the same media server may also be an instruction to switch to a publishing point on a different media server; if the received judgment result is to switch the media server, directly issue a switch to the publishing point on another media server. instruction.
上述采集服务器 203与现有技术的采集服务器 103相比, 能够进行 采集流量的监测, 并根据监测结果判断是否需要进行发布点或者媒体服 务器的切换, 也就是实现动态切换数据发布源。  Compared with the collection server 103 of the prior art, the collection server 203 can monitor the collection traffic and determine whether the distribution point or the media server needs to be switched according to the monitoring result, that is, the dynamic data transmission source is switched.
在采集服务器中,上述数据采集单元 601、流媒体数据生成单元 602、 緩存单元 603、 下载请求接收单元 604、 发送单元 605、 发送请求单元 606都是现有技术中具有的功能单元,本实施例与现有技术的区别在于, 增加了监测单元 607、 流量状况判断单元 608、 切换指令单元 609, 用于 实现对采集媒体数据的流量的监测和根据监测结果实现对发布点的切 换, 从而保证采集服务器 203发布的流媒体数据的连续, 使客户端 204 获得良好的流媒体使用效果。  In the collection server, the data collection unit 601, the streaming media data generation unit 602, the cache unit 603, the download request receiving unit 604, the sending unit 605, and the transmission request unit 606 are all functional units in the prior art. The difference from the prior art is that the monitoring unit 607, the traffic status determining unit 608, and the switching instruction unit 609 are configured to implement monitoring of the collected media data and to implement switching of the publishing point according to the monitoring result, thereby ensuring collection. The continuation of the streaming media data issued by the server 203 enables the client 204 to obtain a good streaming media use effect.
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域 的普通技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干 改进和润饰, 这些改进和润饰也应视为本发明的保护范围。 The above description is only a preferred embodiment of the present invention, it should be noted that the technical field is Many modifications and refinements can be made by those skilled in the art without departing from the principles of the invention, and such modifications and refinements are also considered to be within the scope of the invention.

Claims

权利要求书 Claim
1、 一种对等连接流媒体直播系统, 包括索引服务器以及客户端, 其 特征在于, 进一步包括:  A peer-to-peer connection streaming media live broadcast system, comprising an index server and a client, wherein the method further comprises:
媒体服务器, 用于提供多个发布点作为流媒体数据的来源; 采集服务器, 用于从所述多个发布点中的一个发布点采集流媒体数 据并通过索引服务器发布, 供所述客户端请求下载, 并在从所述发布点 采集流媒体数据的数据流量异常时, 切换到另一个发布点。  a media server, configured to provide a plurality of publishing points as a source of streaming media data; an collecting server, configured to collect streaming media data from one of the plurality of publishing points and publish the information through the index server for the client to request Download, and switch to another publishing point when the data traffic of the streaming media data is abnormal from the publishing point.
2、 根据权利要求 1所述的对等连接流媒体直播系统, 其特征在于, 所述对等连接流媒体直播系统中具有多个所述媒体服务器;  The peer-to-peer connected streaming media live broadcast system according to claim 1, wherein the peer-to-peer connected streaming media live broadcast system has a plurality of the media servers;
所述采集服务器进一步在监测到正在使用的媒体服务器无法正常连 接或者在该媒体服务器中多次切换发布点后数据流量仍然异常时, 切换 到位于另一个媒体服务器上的发布点。  The collection server further switches to a publishing point located on another media server after detecting that the media server being used cannot be properly connected or the data traffic is still abnormal after switching the publishing point multiple times in the media server.
3、根据权利要求 1或 2所述的对等连接流媒体直播系统,其特征在 于, 所述媒体服务器是能够搜集网络节点存储的流媒体数据, 并将搜集 的流媒体数据转化为数据流发布的软件工具; 或者, 所述媒体服务器是 能够从存储介质读取流媒体数据并播放的影像设备。  The peer-to-peer connected streaming media live broadcast system according to claim 1 or 2, wherein the media server is capable of collecting streaming media data stored by the network node, and converting the collected streaming media data into a data stream for publishing. Or a software device; or the media server is an image device capable of reading and playing streaming media data from a storage medium.
4、根据权利要求 1或 2所述的对等连接流媒体直播系统,其特征在 于, 所述采集服务器进一步为每一个发布点的流媒体数据生成对应的媒 体头数据, 并且在切换发布点时, 根据切换后发布点的流媒体数据格式 发布新的媒体头数据。  The peer-to-peer connected streaming media live broadcast system according to claim 1 or 2, wherein the collecting server further generates corresponding media header data for the streaming media data of each publishing point, and when switching the publishing point , the new media header data is released according to the streaming media data format of the post-switching publishing point.
5、 根据权利要求 4所述的对等连接流媒体直播系统, 其特征在于, 所述采集服务器进一步对每一种媒体头数据进行编号;  5. The peer-to-peer connected streaming media live broadcast system according to claim 4, wherein the collecting server further numbers each type of media header data;
所述客户端根据媒体头数据的所述编号, 确定是否需要更新到新的 媒体头数据。 The client determines whether it is necessary to update to the new media header data according to the number of the media header data.
6、 根据权利要求 5所述的对等连接流媒体直播系统, 其特征在于, 所述采集服务器对每一种媒体头数据的编号采用增序或降序的形式。 The peer-to-peer connected live streaming media system according to claim 5, wherein the collecting server uses the format of each media header data in an ascending or descending order.
7、根据权利要求 1或 2所述的对等连接流媒体直播系统,其特征在 于, 所述采集服务器采集媒体数据的流量异常是指实时码率在一定时间 内连续低于预定值或者不能正确连接媒体服务器的发布点。  The peer-to-peer connected streaming media live broadcast system according to claim 1 or 2, wherein the abnormality of the traffic collected by the collecting server for the media data means that the real-time code rate is continuously lower than a predetermined value within a certain period of time or cannot be correct. Connect to the publishing point of the media server.
8、 一种对等连接流媒体直播系统, 包括索引服务器以及客户端, 其 特征在于, 进一步包括:  8. A peer-to-peer connection streaming media live broadcast system, comprising an index server and a client, wherein the method further comprises:
多个媒体服务器, 每个媒体服务器用于提供一个或多个发布点作为 流媒体数据的来源;  Multiple media servers, each of which is used to provide one or more publishing points as a source of streaming media data;
采集服务器, 用于从一个所述媒体服务器中的一个发布点采集流媒 体数据并通过索引服务器发布, 供所述客户端请求下载, 并在从所述发 布点采集流媒体数据的数据流量异常时, 切换到位于另一个媒体服务器 上的发布点。  An collection server, configured to collect streaming media data from a publishing point of one of the media servers and publish the data through an index server, where the client requests downloading, and when data traffic of the streaming media data is collected from the publishing point is abnormal , switch to a publishing point located on another media server.
9、 根据权利要求 8所述的对等连接流媒体直播系统, 其特征在于, 所述媒体服务器是能够搜集网络节点存储的流媒体数据, 并将搜集的流 媒体数据转化为数据流发布的软件工具; 或者, 所述媒体服务器是能够 从存储介质读取流媒体数据并播放的影像设备。  The peer-to-peer connected streaming media live broadcast system according to claim 8, wherein the media server is capable of collecting streaming media data stored by the network node, and converting the collected streaming media data into a data stream publishing software. Or the media server is an image device capable of reading and playing streaming media data from a storage medium.
10、根据权利要求 8所述的对等连接流媒体直播系统,其特征在于, 所述采集服务器进一步为每一个发布点的流媒体数据生成对应的媒体 头数据, 并且在切换发布点时, 根据切换后发布点的流媒体数据格式发 布新的媒体头数据。  The peer-to-peer connected live streaming media system according to claim 8, wherein the collecting server further generates corresponding media header data for the streaming media data of each publishing point, and when switching the publishing point, according to The streaming media data format of the publishing point after the switch is released to release new media header data.
11、根据权利要求 10所述的对等连接流媒体直播系统,其特征在于, 所述采集服务器进一步对每一种媒体头数据进行编号;  The peer-to-peer connected streaming media live broadcast system according to claim 10, wherein the collecting server further numbers each type of media header data;
所述客户端根据媒体头数据的所述编号, 确定是否需要更新到新的 媒体头数据。 The client determines whether it is necessary to update to the new media header data according to the number of the media header data.
12、根据权利要求 11所述的对等连接流媒体直播系统,其特征在于, 所述采集服务器对每一种媒体头数据的编号采用增序或降序的形式。 The peer-to-peer connected live streaming media system according to claim 11, wherein the collecting server uses an order of increasing or descending order for each type of media header data.
13、根据权利要求 8所述的对等连接流媒体直播系统,其特征在于, 所述采集服务器采集媒体数据的流量异常是指实时码率在一定时间内 连续低于预定值或者不能正确连接媒体服务器的发布点。  The peer-to-peer live streaming media live broadcast system according to claim 8, wherein the abnormality of the traffic collected by the collecting server for the media data means that the real-time code rate is continuously lower than a predetermined value within a certain period of time or cannot be correctly connected to the media. The publishing point of the server.
14、 一种对等连接流媒体直播方法, 其特征在于, 该方法包括: 提供多个发布点作为流媒体数据的来源;  14. A peer-to-peer connection streaming media live broadcast method, the method comprising: providing a plurality of publishing points as a source of streaming media data;
从所述多个发布点中的一个发布点采集流媒体数据, 并通过索引服 务器发布, 供客户端请求下载;  Collecting streaming media data from one of the plurality of publishing points, and publishing the data through the index server for the client to request to download;
其中, 在从所述发布点采集流媒体数据的数据流量异常时, 切换到 另一个发布点。  Wherein, when the data flow of collecting the streaming media data from the publishing point is abnormal, switching to another publishing point.
15、根据权利要求 14所述的方法, 其特征在于, 所述切换到另一个 发布点的步骤为: 切换到与正在使用的发布点位于同一媒体服务器上的 另一个发布点。  The method according to claim 14, wherein the step of switching to another publishing point is: switching to another publishing point located on the same media server as the publishing point being used.
16、根据权利要求 15所述的方法,其特征在于,该方法进一步包括: 所述采集服务器在监测到正在使用的媒体服务器无法正常连接或者在 该媒体服务器中多次切换发布点后数据流量仍然异常时, 切换到位于另 一个媒体服务器上的发布点。  The method according to claim 15, wherein the method further comprises: the collecting server still detects that the media server being used cannot be connected normally or switches the publishing point multiple times in the media server. When it is abnormal, switch to a publishing point located on another media server.
17、根据权利要求 14所述的方法, 其特征在于, 所述切换到另一个 发布点的步骤为: 切换到与正在使用的发布点位于不同媒体服务器上的 另一个发布点。  17. The method of claim 14, wherein the step of switching to another publishing point is: switching to another publishing point on a different media server than the publishing point being used.
18、根据权利要求 14 ~ 17中任一项所述的方法, 其特征在于, 该方 法进一步包括: 为每一个发布点的流媒体数据生成对应的媒体头数据, 并且在切换发布点时, 根据切换后发布点的流媒体数据格式发布新的媒 体头数据。 The method according to any one of claims 14 to 17, wherein the method further comprises: generating corresponding media header data for the streaming media data of each publishing point, and when switching the publishing point, according to The streaming media data format of the publishing point after the switch is released to release new media header data.
19、根据权利要求 18所述的方法,其特征在于,该方法进一步包括: 对每一种媒体头数据进行编号; 19. The method of claim 18, further comprising: numbering each of the media header data;
所述客户端根据媒体头数据的所述编号, 确定是否需要更新到新的 媒体头数据。  The client determines whether it is necessary to update to the new media header data based on the number of the media header data.
20、根据权利要求 19所述的方法, 其特征在于, 采用增序或降序的 形式对每一种媒体头数据进行编号。  20. A method according to claim 19, wherein each of the media header data is numbered in an ascending or descending form.
21、根据权利要求 14 ~ 17中任一项所述的方法, 其特征在于, 所述 数据流量异常是指实时码率在一定时间内连续低于预定值或者不能正 确连接媒体服务器的发布点。  The method according to any one of claims 14 to 17, wherein the data traffic abnormality refers to a publishing point in which the real-time code rate is continuously lower than a predetermined value for a certain period of time or cannot be correctly connected to the media server.
22、 一种用于对等连接流媒体直播系统的采集服务器, 包括数据采 集单元、 流媒体数据生成单元、 緩存单元、 下载请求接收单元、 发送单 元、 发布请求单元, 其特征在于, 还包括监测单元、 判断单元和切换指 令单元, 其中:  An acquisition server for a peer-to-peer connected streaming media live broadcast system, comprising: a data collection unit, a streaming media data generating unit, a buffer unit, a download request receiving unit, a sending unit, and a publishing request unit, wherein the monitoring server further includes monitoring Unit, judgment unit, and switching instruction unit, where:
所述监测单元, 用于监测所述采集单元向媒体服务器采集媒体数据 的数据流量状况, 并发送监测结果给所述判断单元;  The monitoring unit is configured to monitor the data traffic status of the media data collected by the collecting unit to the media server, and send the monitoring result to the determining unit;
所述判断单元, 用于接收所述监测单元输出的监测结果, 并根据该 监测结果, 判断所述数据流量是否异常, 若是, 则输出需要切换发布点 的判断结果给所述切换指令单元;  The determining unit is configured to receive a monitoring result output by the monitoring unit, and determine, according to the monitoring result, whether the data flow is abnormal, and if yes, output a determination result that needs to switch a publishing point to the switching instruction unit;
所述切换指令单元, 用于接收所述判断单元输出的判断结果, 当该 判断结果是需要切换发布点时, 向媒体服务器发出切换发布点的指令。  The switching instruction unit is configured to receive a determination result output by the determining unit, and when the determination result is that the publishing point needs to be switched, issue an instruction to switch the publishing point to the media server.
23、根据权利要求 22所述的采集服务器, 其特征在于, 所述切换发 布点的指令为: 在同一媒体服务器上切换发布点的指令、 或者在不同媒 体服务器上切换发布点的指令。  The collection server according to claim 22, wherein the instruction to switch the distribution point is: an instruction to switch a publishing point on the same media server, or an instruction to switch a publishing point on a different media server.
24、 根据权利要求 22所述的采集服务器, 其特征在于,  24. The acquisition server of claim 22, wherein:
在同一媒体服务器上切换过若干发布点后仍无法获得正常的数据 流、 或者该媒体服务器无法正常连接时, 所述判断单元输出需要切换媒 体服务器的判断结果给所述切换指令单元; After switching to several publishing points on the same media server, normal data cannot be obtained. When the flow, or the media server is unable to connect normally, the determining unit outputs a determination result that needs to switch the media server to the switching instruction unit;
所述切换指令单元接收到所述切换媒体服务器的判断结果, 则发出 切换到另一个媒体服务器上的发布点的指令。  The switching instruction unit receives the judgment result of the switching media server, and issues an instruction to switch to a publishing point on another media server.
PCT/CN2007/070606 2006-09-20 2007-08-31 Living broadcast system and method of peer-to-peer stream media, and gathering server WO2008040199A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610127820.2 2006-09-20
CN200610127820.2A CN101068155B (en) 2006-09-20 2006-09-20 Coordinate connection stream media direct broadcasting system and collection server thereof

Publications (1)

Publication Number Publication Date
WO2008040199A1 true WO2008040199A1 (en) 2008-04-10

Family

ID=38880599

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/070606 WO2008040199A1 (en) 2006-09-20 2007-08-31 Living broadcast system and method of peer-to-peer stream media, and gathering server

Country Status (2)

Country Link
CN (1) CN101068155B (en)
WO (1) WO2008040199A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101243071B1 (en) 2007-12-27 2013-03-13 후아웨이 테크놀러지 컴퍼니 리미티드 Source switching method, system and device
CN105592318A (en) * 2014-10-21 2016-05-18 中兴通讯股份有限公司 System, device and method for realizing HLS channel replaying service
US10057337B2 (en) 2016-08-19 2018-08-21 AvaSure, LLC Video load balancing system for a peer-to-peer server network

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686228B (en) * 2008-09-27 2013-12-11 中兴通讯股份有限公司 Multimedia slicing switching method and system based on content slicing
CN102055786B (en) * 2009-11-06 2014-12-24 腾讯科技(深圳)有限公司 File download method and server, download client and system adopting same
CN102075338B (en) * 2009-11-25 2015-05-13 突触计算机系统(上海)有限公司 Distributed network-based live broadcasting method and device
CN102215240B (en) * 2010-04-02 2013-11-20 中国移动通信集团公司 Streaming media signalling sending method and equipment as well as point-to-point streaming media system
CN102088620B (en) * 2010-12-01 2014-06-18 中兴通讯股份有限公司南京分公司 Method for downloading media file in content distribution network and client
CN103313094A (en) * 2012-03-14 2013-09-18 上海鱼游网络科技有限公司 Multimedia playing method and system based on streaming media
CN102664806A (en) * 2012-04-26 2012-09-12 重庆网力视界科技有限公司 Streaming media distribution method and device
CN103780921B (en) * 2014-01-17 2017-05-24 上海聚力传媒技术有限公司 Live video information playing method and device
CN103997410B (en) * 2014-05-23 2018-06-22 北京鸿达以太文化发展有限公司 The virtual live broadcast system of multi-medium data and method of facing moving terminal
JP6528528B2 (en) * 2015-04-30 2019-06-12 セイコーエプソン株式会社 Network system, control method of network system, and printer
CN105871990A (en) * 2015-12-14 2016-08-17 乐视云计算有限公司 Download data scheduling method and device
CN105450675B (en) * 2016-01-25 2021-07-30 杭州施强教育科技有限公司 Method for selecting CDN service node by client in streaming media playing
CN108156481A (en) * 2016-12-02 2018-06-12 深圳市优朋普乐传媒发展有限公司 A kind of detection method and device of live source
CN106656593B (en) * 2016-12-19 2020-04-14 北京华清伟业技术有限公司 Method and system for streaming media live broadcast recording redundancy hot standby
CN112243139B (en) * 2019-07-17 2021-08-10 广州朗国电子科技有限公司 Program distribution synchronization method and system of multimedia terminal
CN111770349A (en) * 2020-05-28 2020-10-13 微梦创科网络科技(中国)有限公司 Method and system for responding to live broadcast traffic burst
CN112689152B (en) * 2020-12-16 2023-05-26 创盛视联数码科技(北京)有限公司 Scheduling method, scheduling device, electronic equipment and storage medium
CN113612890A (en) * 2021-09-22 2021-11-05 维沃移动通信有限公司 Call processing method and call processing device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050216559A1 (en) * 2004-03-26 2005-09-29 Microsoft Corporation Method for efficient content distribution using a peer-to-peer networking infrastructure
CN1710505A (en) * 2005-07-08 2005-12-21 北京影立驰技术有限公司 Digital copyright protection method and system
CN1816053A (en) * 2006-03-10 2006-08-09 清华大学 Flow-media direct-broadcasting P2P network method based on conversation initialization protocol

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040088868A (en) * 2003-04-14 2004-10-20 양정환 Apparatus and method for deliverying digital contents
CN100559776C (en) * 2005-01-20 2009-11-11 杨金钰 A kind of stream media system
CN100405795C (en) * 2005-02-24 2008-07-23 广东省电信有限公司研究院 Service system for distributed reciprocal flow media and realizing method for requesting programm

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050216559A1 (en) * 2004-03-26 2005-09-29 Microsoft Corporation Method for efficient content distribution using a peer-to-peer networking infrastructure
CN1710505A (en) * 2005-07-08 2005-12-21 北京影立驰技术有限公司 Digital copyright protection method and system
CN1816053A (en) * 2006-03-10 2006-08-09 清华大学 Flow-media direct-broadcasting P2P network method based on conversation initialization protocol

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101243071B1 (en) 2007-12-27 2013-03-13 후아웨이 테크놀러지 컴퍼니 리미티드 Source switching method, system and device
CN105592318A (en) * 2014-10-21 2016-05-18 中兴通讯股份有限公司 System, device and method for realizing HLS channel replaying service
EP3190794A4 (en) * 2014-10-21 2018-04-11 ZTE Corporation System, device and method for implementing hls channel playback service, and storage medium
CN105592318B (en) * 2014-10-21 2020-05-19 中兴通讯股份有限公司 System, equipment and method for realizing HLS channel review service
US10057337B2 (en) 2016-08-19 2018-08-21 AvaSure, LLC Video load balancing system for a peer-to-peer server network

Also Published As

Publication number Publication date
CN101068155A (en) 2007-11-07
CN101068155B (en) 2010-06-09

Similar Documents

Publication Publication Date Title
WO2008040199A1 (en) Living broadcast system and method of peer-to-peer stream media, and gathering server
JP4920220B2 (en) Receiver-driven system and method in peer-to-peer network
JP4676833B2 (en) System and method for distributed streaming of scalable media
JP4718122B2 (en) Media distribution device
JP5058468B2 (en) Method for erasure resistant encoding of streaming media, media having computer-executable instructions for performing the method, and system
KR101072966B1 (en) Method, device and system for distributing file data
US20080016201A1 (en) Methods and apparatus for transferring data
WO2009021374A1 (en) An integrating video service peer to peer networks system
KR20030056701A (en) Apparatus and method for providing multimedia streaming service by using point-to-point connection
KR20040048363A (en) Peer-to-peer content broadcast transfer mechanism
KR20110116204A (en) Server-side support for seamless rewind and playback of video streaming
WO2004010266A2 (en) System and method for highly-scalable real-time and time-based data delivery using server clusters
JP4172259B2 (en) Information processing apparatus and method, and computer program
JP2003506765A (en) Method and apparatus for distributing data using a distributed storage system
WO2007025474A1 (en) Network communication system and method for downloading the file
EP2404431B1 (en) Methods and arrangements for prioritization in a peer-to-peer network
WO2004049667A1 (en) Information processing device, information processing method, and computer program
US7428271B2 (en) Network device and data transmission method for efficient data transmission and reception in mobile ad hoc network environment
WO2017128902A1 (en) Streaming media multicast system and method using multiple ring topology most networks
US20020147827A1 (en) Method, system and computer program product for streaming of data
WO2013071517A1 (en) Media stream sending method and server
JP2004220183A (en) Information processor and information processing method, and computer program
JP2004221756A (en) Information processing apparatus and information processing method, and computer program
WO2024098815A1 (en) Data transmission processing method and device, storage medium, and electronic device
JP2002084321A (en) Method and mechanism for using faster data transferable client as substitute of server in real time data transmission from server

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: PUNO GENERATED?

122 Ep: pct application non-entry in european phase

Ref document number: 07785487

Country of ref document: EP

Kind code of ref document: A1