The present application relates generally to streaming of data, or media, in a communication system.
Peer-to-peer (P2P) is a content distribution solution in a communication network. It provides an alternative solution to the traditional client-server based approach. In a client-server based approach, centralized servers play an important role in the exchange of media content between different network entities, user terminals, and/or the like. In a P2P network, peer nodes or participants, may act simultaneously as both clients and servers. In a P2P network, peer nodes may be connected using ad hoc connections. An example application of P2P technology is file sharing.
In a communication network, media delivery methods comprise downloading, uploading, streaming, and/or the like. When using downloading or uploading, a receiving device may display the media content after the media transfer is completed. In the case of streaming, received media or data is usually displayed at the end-user device while the media is being delivered or before the transfer is complete. An end-user of a streaming application may avoid long start up delays since streaming eliminates the need to store the entire content on the user device.
Inspired by P2P file sharing technologies, real-time P2P streaming technologies are emerging as a new framework for streaming multimedia content.
Various aspects of the invention are set out in the claims.
In accordance with an example embodiment of the present invention, an apparatus, comprising a processor configured to assign at least one of a plurality of real time transport protocol data units to at least one of at least two peer to peer partial real-time transport protocol streaming sessions, based at least in part on at least one timestamp associated with the at least one of the plurality of real time protocol data units. The plurality of real time transport protocol data units, are associated with the real time transport protocol media stream.
In accordance with another example embodiment of the present invention, a method comprises assigning at least one of a plurality of real time transport protocol data units to at least one of at least two peer to peer partial real-time transport protocol streaming sessions, based at least in part on at least one timestamp associated with the at least one of the plurality of real time protocol data units. The plurality of real time transport protocol data units, are associated with a real time transport protocol media stream.
In accordance with an example embodiment of the present invention, an apparatus, comprising a processor configured to receive information related to at least two peer to peer partial real-time transport protocol streaming sessions. The at least two peer to peer partial real time transport protocol streaming sessions being associated with a real time transport protocol media stream. The processor is also configured to receive at least one of the at least two peer to peer partial real time transport protocol streaming sessions.
In accordance with another example embodiment of the present invention, a method comprises receiving information related to at least two peer to peer partial real-time transport protocol streaming sessions. The at least two peer to peer partial real time transport protocol streaming sessions being associated with a real time transport protocol media stream. The method also comprises receiving at least one of the at least two peer to peer partial real time transport protocol streaming sessions.
In accordance with another example embodiment of the present invention, a computer program product comprising a computer-readable medium bearing computer program code embodied therein for use with a computer, the computer program code comprises code for assigning at least one of a plurality of real time transport protocol data units to at least one of at least two peer to peer partial real time transport protocol streaming sessions, based at least in part on at least one timestamp associated with the at least one of the plurality of real time protocol data units. The plurality of real time transport protocol data units are associated with a real time transport protocol media stream.
In accordance with another example embodiment of the present invention, a computer program product comprising a computer-readable medium bearing computer program code embodied therein for use with a computer, the computer program code comprises code for receiving information related to at least two peer to peer partial real time transport protocol streaming sessions. The at least two peer to peer partial real time transport protocol streaming sessions are associated with a real time transport protocol media stream. The computer program code also comprises code for receiving at least one of the at least two peer to peer partial real time transport protocol streaming sessions.
For a more complete understanding of example embodiments of the present invention, reference is now made to the following descriptions taken in connection with the accompanying drawings in which:
An example embodiment of the present invention and its potential advantages are best understood by referring to
P2P technology is gaining popularity as a framework for real-time streaming of multimedia content. Real-time P2P streaming may enable new use cases and business models for end-users, network providers, and/or the like. P2P streaming technology allows streaming of multimedia content by an end-user, to one or more other users, in real-time without the need for dedicated servers, e.g., streaming servers. Multimedia content may be streamed to an end-user device, or a consuming peer 110 through one or more other peers 110. In a peer to peer network 100, content delivery may be managed by the peers 110 without a dedicated server, for example, to setup, manage and/or maintain communication channels and/or transfer data associated with a multimedia streaming application.
The communication resources of a P2P network 100 are usually distributed over multiple peer nodes 110. Real-time P2P streaming technology is inherently scalable allowing, for example, a large amount of multimedia content and a large number of content providers, e.g., end-users. Real-time P2P streaming may also have the potential to support broadcasting applications since any peer 110 in a peer to peer network 100 may become an independent broadcaster.
In an architecture characterized by single source peer, the risk of interruptions in data transfer may increase. In
P2P streaming may present new challenges to existing content distribution mechanisms and protocols. For example, peers 110 may dynamically join and/or leave a P2P network 100. A peer 110 may receive streaming data from one or more source peers 110. If one or more source peers leave the P2P network 100, the receiving peer 110 may need to re-select its corresponding source peers 110. A peer 110 may have uplink bandwidth, used to transmit media content to one or more other peers 110, and/or downlink bandwidth, used to receive media content from one or more other peers 110. A peer 110 may have an asymmetric access network connection, e.g., with uplink bandwidth different from downlink bandwidth. Some peers 110 may not, for example, have enough uplink bandwidth to serve another peer 110 with a complete data stream, e.g., a video stream. Another example of a challenge associated with real-time P2P streaming is delay constraint on session start-up. Users of P2P streaming applications may not be tolerant to very long start-up delays, for example, in the range of one or more minutes. Long time delays, when starting a P2P streaming session, may degrade quality of user experience.
The start-up delay may be affected, at least in part, by the number of hops, or connection links 120, between a source peer 110′ and a consuming peer 110. The number of hops between a source peer 110′ and a consuming peer 110 may be large, for example, in a P2P network 100 with single source peer architecture.
P2P file sharing applications make use of a content distribution approach with multiple source peers. A file is first partitioned into pieces or chunks, for example, of equal size. A peer connects to source peers and requests missing pieces of the file in a random order. The process of downloading of file pieces may be slow and users may experience long download delays, for example, of several days. In streaming applications, however, long delays may not be acceptable.
A cluster 130 comprises a plurality of peers 110. A cluster 130 may be managed and/or maintained by a cluster leader (CL) 111. In an example embodiment, one CL 111 is assigned to each cluster 130. One or more backup cluster leaders (BCLs) 112 may also be assigned to each cluster 130. CLs 111 may manage peers 110 inside the cluster 130. For example, a CL 111 may assist a new joining peer 110 to couple, or connect, to one or more other peers 110 in the cluster 130. A CL 130 may be, for example, a mobile peer node with capabilities such as a high throughput access network connection, large memory, high CPU power, long expected battery lifetime, and/or the like. A CL may also be a fixed peer node, e.g., a desktop computer, in the P2P network 100.
According to an example embodiment of the invention, a peer 110 may perform periodic keep-alive messaging with the CL 111 and other peers 110, e.g., from which it receives or received RTP packets. A peer 110 may use keep-alive messaging to inform other peers 110 of its existence. In other words, keep-alive messaging allows peers to keep track of the status of other peers, e.g., whether other peers have left, or are still coupled to, the P2P network 100. The RTP may use user datagram protocol (UDP) and may not inform a source peer, for example, whether or not a receiving peer, e.g., peer 110, is still in the P2P network 100. However, the source peer may detect, the departure of a receiving peer 110 from the P2P network 100, for example, based on an interruption of keep-alive messages from the receiving peer 110. A source peer may then avoid unnecessary data transmission, e.g., to a receiving peer 110 that has left the P2P network 100.
According to an example embodiment of the invention, the P2P network 100 with clustered overlay architecture is scalable with the clusters 130 grouping the peers 110 based at least in part on their proximity. For example, when joining a P2P network 100, a peer 110 may select the CL 111 that is closest, e.g., to the joining peer 110. The selection of the closest CL 111 may be based on the joining peer's 110 best knowledge of locality, e.g., using round trip time (RTT) values between the joining peer 110 and one or more CLs 111. In an example embodiment of the invention, clusters 130 may be divided into different layers in order to improve cluster search performance, e.g., O(log(n)) instead of O(n), especially when the number of clusters is large. According to an example embodiment of the invention, the number of peers 110 in a cluster 130 may be limited or upper bounded. Limiting the number of peers 110 in a cluster 130 may prevent large processing overload on CLs 111. The scalability of the overlay P2P network may be sustained without degrading P2P service. For example, the clustered overlay P2P network may expand by creating new clusters 130 and preventing existing clusters 130 from expanding beyond a limit, e.g., an upper bound on the number of peers 110 in each cluster 130.
According to an example embodiment of the present invention, in a P2P multimedia streaming session, media content associated with a media stream, is compressed into real-time transport protocol (RTP) data units, or packets. A media stream, or RTP session, may be partitioned, or split, into at least two partial RTP streams, for example, at a primary source peer 110′. According to an example embodiment of the invention, the partitioning of a RTP session, into partial RTP streams, may be performed at the RTP data packets level. One or more peers 110 may request to receive one or more partial RTP streams. Partial RTP sessions are set-up for streaming RTP data units associated with partial RTP streams.
According to the example embodiment of
In an example embodiment of the invention, every partitioned piece 320 may start with an intra-coded picture in order to facilitate independent decoding of partial RTP streams or sessions 216, for example, in the presence of packet loss due to a partial RTP stream 216 not being received. Aligning pardoned pieces 320 with group-of-picture (GOP) boundaries may result in having an intra coded picture at the start of each partitioned piece 320.
A RTP data unit, or packet, 310 carries time information, e.g., timestamp (tRTP), indicating sampling instant of first octet of the same RTP data unit 310 within the corresponding RTP session 215. In an example embodiment, partitioned pieces 320 may have a time reference t0 aligned with RTP time reference, or origin of RTP time line. The origin of the RTP time line may be the playback time, or timestamp, of first RTP data packet 310 in the RTP stream 215. In other words, the start of the first pardoned piece 320 may be located at the origin of the RTP time line. In an alternative embodiment, the origin of the first partioned piece 320 may be located at any arbitrary point on the RTP time line. In case there is an offset between the origin of RTP timeline and the origin of the first partitioned piece 320, a signalling of the start time, e.g., representing the time when the streaming service is started, may be used. In an example embodiment, the origin of the stream may be signalled from a primary source peer 110′ to other peers 110 using RTP-Info header of a RTSP PLAY response message. In another example embodiment, the origin of the stream may be indicated in a media session description, e.g., session description protocol (SDP) or a torrent file. A source peer may signal an offsetted origin to the connecting peers 110.
Table I lists a set of parameters associated with
According to the example embodiment of
The operator “mod” represents the mathematical modulo operation. In an example embodiment of the invention, every RTP data packet 310, in the RTP media session 215, is assigned to a partial RTP stream 216 using the RTP timestamp tRTP, the time duration TP of a partioned piece 320, the total number of RTP partial streams 216 N, and the parameter tO.
One of the benefits of defining partitioning pieces 320 based on time duration, e.g., playback time duration, may be that all packets may remain intact at the RTP layer. For example in video streaming, different RTP data packets 310 may correspond to content associated with different picture frames. In an example embodiment where the partitioning piece duration TP is set as a multiple of playback duration of one picture frame, each partitioning piece 320 comprises an integer number of RTP data packets. Partial RTP streams 216 may then be created, or generated, at the level of RTP data packets 310, therefore avoiding any segmentation of RTP data packets 310. Segmentation of RTP data packets 310, when creating partial RTP streams 216, may significantly increase the complexity of the implementation.
In one aspect of the invention, enhanced robustness may be achieved by assigning key RTP packets 310 to more than one partial RTP stream 216. Key RTP packets comprise RTP packets corresponding to, for example, intra coded picture data in video content, or other data that may help error concealment. Duplicate RTP packets may be removed upon reception.
A peer 110 may request the delivery of one or more partial streams from another peer 110. In an example embodiment, a partial stream is the finest granularity for media streaming. Thus in an example embodiment, a peer may not stream a fraction of a partial RTP stream 216. In an alternative embodiment, a fraction of a partial RTP stream may be streamed. The number of partial RTP streams 216 may be tuned to achieve the target bitrate of a partial RTP stream. It is desirable that each peer 110 in the P2P network 100 has enough uplink bandwidth to stream at least a single partial RTP stream. Compressed video content typically has variable bitrate, for example, an instantaneous decoder refresh (IDR), e.g., intra-coded, picture may result in more bits than an inter-coded picture. In an example embodiment of the invention, selection of the partitioning parameters, e.g., N and/or Tp, may be done in a way to avoid un-balanced partitioning. Unbalanced partitioning may happen if, for example, IDR pictures, which are significantly larger in size than other pictures fall into the same partial RTP stream 216. If desired, RTP data packets corresponding to IDR pictures may be assigned to the same partial RTP stream.
The number of partial RTP streams 216, N, may vary per RTP session 215. For example, if the bit rate of a RTP audio session 215 is already in the order of magnitude of a single partial RTP video stream, the RTP audio stream 215 may not be partitioned into partial RTP streams 216.
The number of partial RTP streams 216, N, may not be constant throughout the P2P network 100 of a P2P service. In an example embodiment, N may be changed at one or more forwarding peers 110 in the network. N may be determined depending on local metrics such as the available uplink and downlink bandwidths. However, choosing the same N throughout the network simplifies the design of the partitioning functionality.
According to an example embodiment of the invention, a single source peer may send multiple partial RTP streams 216 to a particular receiving peer. The multiple partial RTP streams may be streamed in a single RTP session 215 or in separate RTP sessions 215.
At block 420, at least one RTP data packet 310, of the RTP media stream 215, is assigned to at least one partial RTP session 216, for example by a primary source peer 110. According to an example embodiment of the invention, the assignment of RTP data packets 310 may be done according to the partitioning process, or procedure, described with reference to
At block 430, assigned RTP data packets 310 are transmitted, or sent, within their corresponding partial RTP session 216. For example, a peer 110 in the P2P network 100 may request one or more partial RTP streams 216. The one or more partial RTP streams 216 are transmitted to the requesting peers, for example by the primary source peer 110′.
According to an example embodiment of the invention, an apparatus, e.g., a primary source peer 110′, may comprise a memory unit to store media data associated with one or more RTP streaming sessions 215 of a multimedia streaming session 210. The apparatus may also comprise a processor configured to perform the method described in
According to an example embodiment of the invention, the method described in
According to an example embodiment of the invention, a peer 110, performing the method described in
According to an example embodiment of the invention, the method described in
In an example embodiment of the invention, special extensions to RTSP may be defined for setting up streaming of partial RTP streams 216. For example, the extensions may be used to signal partial RTP stream parameters from one peer 110 to another peer 110. Setting up of partial RTP streams 216 may be done with RTSP methods such as SETUP and PLAY. The SETUP method is extended to include the additional “P2P-Extension” feature tag in the “Require” header field. This feature tag makes it possible for a receiving peer 110 to detect that support for P2P extensions may be required. Example syntax for such a message is shown below:
The RTSP PLAY syntax may be extended as follows:
The parameter t0 may be optional, and so the RTP-Info header field in the example above may also be optional.
According to an example embodiment of the invention, clustered overlay P2P network operations may be implemented using an extended real time streaming protocol RTSP. RTSP methods may be extended to comprise one or more additional feature tags related to real-P2P extensions. For example a tag, e.g., ‘RTP2P-v1’ may be used in the ‘Require’ header field, to indicate support of RTSP extensions associated with real-time P2P applications and/or P2P network. In an example embodiment, this feature tag, i.e., ‘RTP2P-v1’, makes it possible for the receiving peer to detect that support for the real-time P2P extensions is desired. RTSP messages may also comprise a header field associated with peer identification (PID), e.g., a ‘Peer-Id’ header field. The header field associated with PID may indicate the source of the message comprising the header field associated with PID, e.g., an identification of the source peer. Other additional header fields may be added depending on the type of message.
When a peer 110 wants to join the P2P overlay network a peer identifier (PID) may be requested from SDS 140. The request for the peer identifier (PID) may be performed using an OPTIONS RTSP message. The OPTIONS RTSP message may comprise a tag indicating PID, e.g., ‘NewPeerld’, in a header field of the OPTIONS RTSP message, e.g., ‘Cluster’ header field. Before receiving PID, the peer may set the value of PID to −1 in the OPTIONS RTSP message. A response message comprising a unique PID is returned by SDS 140. In an example embodiment, the response message may be a 200 OK RTSP message with a header field associated with PID, e.g., ‘New-Peer-Id’ header field. In an example embodiment, the PID may be an unsigned integer value. The value zero may be reserved for the SDS 140. Examples of the OPTIONS and 200 OK RTSP messages are shown below.
When joining a selected cluster 130, a peer may receive an initial list of potential source peers, e.g., peers 110 from which media data may be acquired. In an example embodiment, the initial list is received from CL 111 of the selected cluster 130. According to an example embodiment of the invention, CL 111 may send only a subset of peers 110, for example if the number of peers 110 in the cluster 130 is large. If desired, CL 111 may send a comple list of peers in the selected cluster 130. CL 111 may also add new peers 110 joining the cluster 130 to its peer list. According to another example embodiment of the invention, proximity testing in source peer selection, e.g., within a selected cluster 130, may be optional since cluster selection procedure may guarantee that peers 110, within a cluster 130, are close to each other. If desired, the joining peer 110 may test selected source peers, for example, until suitable ones are found. The joining peer may also receive updates of the list of potential source peers while performing periodical keep-alive messaging. Thus, in an example embodiment, the list of potential source peers, for a peer 110 consuming a P2P service, may then be kept up-to-date during the service.
According to an example embodiment of the invention, SDS 140 is informed of CL 111 creation, departure and/or change by sending an OPTIONS RTSP message, to SDS 140. The OPTIONS RTSP message comprises a tag, e.g., ‘update’, in the ‘Cluster’ header field. The OPTIONS RTSP message with the ‘update’ tag allows maintaining an up-to-date cluster 130 list at SDS 140. In an example embodiment, the CL 111 is a functional entity in the network and may also participate as a peer 110 at the same time, e.g., by receiving and sending media data. Below is an example of OPTIONS and 200 OK RTSP messages used for cluster update;
According to example embodiment of the invention, a peer 110, or a primary source peer 110′, may create a P2P service by sending an ANNOUNCE RTSP message to the SDS 140. An example of ANNOUNCE RTSP message describing a live streaming service is shown below;
In the example ANNOUNCE RTSP message, a ‘Client-Port’ header field indicates the port number to be used in the overlay communication. The service is described using the session description protocol (SDP). Two SDP attributes, ‘service-type’ and ‘partial-info’ may be used to signal the service information. The ‘service-type’ attribute defines the type for the service. The ‘partial-info’ attribute may comprise an identifier for the RTP streaming session and parameters associated with partitioning of RTP session.
As a response to an ANNOUNCE RTSP message a 200 OK RTSP message may be sent by the SDS 140. The 200 OK RTSP message comprises ‘Cluster-Id’ and/or ‘Service-Id’ header fields to describe IDs for the initial cluster and the newly created service, respectively. A 301 Moved Permanently response message may also be sent, for example, to the creating peer, if the SDS 140 has been moved to another location. In a redirection case, a ‘Location’ header may be used to inform the creating peer about the new location of SDS 140. Receiving any other message type, e.g., not the 200 OK RTSP message may be interpreted as a failed P2P service creation. The 200 OK RTSP message sent by SDS 140 may be interpreted as the P2P service is successfully created. An example 200 OK RTSP message sent as a response to a session creation request is shown below;
For a successfully created P2P service, an initial cluster 130 may be created by selecting a CL 111. In an example embodiment, a first peer joining the service may be assigned to be a CL 111 by the SDS 140. According to another example embodiment, the original data source, e.g., primary source peer 110′, may be the first CL 111 in the service. The CL 111 may wait for other peers 110 to join the service. As new peers join the service, BCLs 112 may be assigned by the CL 111. In an example embodiment, the assignment of BCLs 112 may be achieved with an OPTIONS RTSP message with, for example, ‘backup’ tag in the ‘Cluster’ header field. If a peer accepts the BCL assignment it may send a 200 OK message. If a peer does not accept the BCL assignment, it may send a 403 Forbidden message. Example messages sent in a successful BCL assignment are shown below.
If a CL 111 is leaving the P2P network it may be replaced by one of the BCLs 112, in the same cluster 130 as the CL 111. In an example embodiment, in a cluster 130 without an active CL 111, new peers may not be accepted into the cluster 130. Peers 110 in a cluster 130 may not be able to discover new peers 110 joining the same cluster 130 during the CL change. BCL 112 may send a GET_PARAMETER request message to CL 111. If BCL does not receive a response from CL 111 it may conclude that the CL 111 has left the cluster 130. The BCL may contact SDS 140 using an OPTIONS message requesting to replace the CL 111. In case there is more than one BCL 112 in a cluster, the BCL whose OPTIONS message is received first may be assigned as the new CL 111. Peers joining the cluster may use the new assigned CL 111. Other BCLs 112, in the cluster 130, may receive a 301 Moved Permanently message comprising information about the new assigned CL 111. The other BCLs may send an OPTIONS message with, for example, a ‘join_bcl’ tag in the ‘Cluster’ header field to the new assigned CL 111 and keep the BCL role. If the old CL 111 has not left the cluster 130 but has had connectivity issues, the OPTIONS message may be redirected to the new CL 111 by the SDS 140. The old CL 111 may become a BCL 112, according to an example embodiment. Example messages sent in the CL 111 replacement are shown below;
In an example embodiment, a peer 110 realizing that CL 111 is not available may try to couple to BCLs in the same cluster. If a BCL has replaced the old CL, the replacing BCL may respond with a 200 OK message. If the BCL did not replace the CL, the BCL may send a 301 Moved Permanently response message with, for example, a ‘Location’ header indicating the location of the last known CL. In case none of BCLs respond to the peer, the peer may send a query to SDS 140 and request a new cluster 130.
A cluster 130 may grow too large to be handled by a single CL 111. In such a situation, the cluster may split into, for example, two separate clusters. In an example embodiment, the CL of the large splitting cluster may assign one of its BCLs to become a new CL in one of the separate clusters. The CL may also redirect a number of peers 110 to the newly assigned CL. In an example embodiment, cluster splitting may be performed using an OPTIONS message with, for example, a ‘split’ tag in the ‘Cluster’ header field. A BCL may respond with a 200 OK message. The BCL may become the CL of the newly created cluster 130. The cluster leader of the large splitting cluster, may send a REDIRECT message to peers 110 assigned to the new cluster. The REDIRECT message may contain the location of the CL of the newly created cluster 130, for example, in a ‘Location’ header field and an ID of the newly created cluster in the ‘Cluster-Id’ header field. Redirected peers 110 may join the new cluster, for example by sending an OPTIONS message to the new cluster leader. Redirected peers 110 may also respond to the splitting CL with a 200 OK message. Example messages sent in the cluster splitting procedure are shown below;
Overlay couplings between CLs 111, of different clusters 130, may be created, for example, by sending an OPTIONS message with a ‘join_neighbor’ tag in the ‘Cluster’ header field and receiving a 200 OK response message. CL to CL coupling may be used to exchange cluster information between neighboring clusters 130. Example OPTIONS and 200 OK messages sent in a CL neighbor joining procedure are shown below;
In an example embodiment, merging of two clusters may be performed, for example, if one, or both, of the two clusters become small, e.g., having a small number of peers 110. If the number of peers in a cluster 130 is small, a peer joining the same cluster 130 may have a very short list of potential source peers. A small number of potential source peers in a cluster 130 may degrade the reliability of the P2P network. For example, one or more of the peers in the cluster 130 may leave the P2P service and therefore fewer resources may be available in the cluster 130 for data transfer between peers. In an example embodiment, in order to initiate a merging of two clusters, a REDIRECT message may be sent to peers in a first cluster. The REDIRECT message may comprise the ID of a second cluster and the location of the CL 111 of the second cluster. Peers in the first cluster may confirm the cluster change by a 200 OK message. Peers in the first cluster may join the second cluster, for example, by sending cluster-join messages, e.g., OPTIONS message, to the CL of the second cluster. Peers in the first cluster may receive a response to the cluster-join messages, e.g., OK 200 message. If a peer in the first cluster does not receive any response from the CL of the second cluster, or it receives a 403 Bad Request message, it may send a 403 Bad Request message to the CL of the first cluster and wait for further instructions. In an example embodiment, the CL of the first cluster may join the second cluster as a BCL. For example, the CL of the first cluster may send a RTSP OPTIONS message with a, e.g., ‘join_bcl’, tag in the ‘Cluster’ header field, to the CL of the second cluster. Example messages sent in a successful cluster merging procedure are shown below;
Overlay network couplings may be maintained using, for example, GET\_PARAMETER and 200 OK messages between peers. GET\_PARAMETER and 200 OK messages may also be used as keep-alive messages. Keep-alive messages between CLs of neighboring clusters may be used to exchange information about neighboring clusters. Keep-alive messages between a CL 111, of a cluster 130, and a BCL 112, in the same cluster, may be used to deliver cluster information from the CL 111 to the BCL 112. Example GET_PARAMETER and 200 OK keep-alive messages sent between peers 110 are shown below;
In an example embodiment, a peer 110 participating in a P2P service may send an OPTIONS message to the SDS 140, for example, in order to get a list of available services in the P2P network 100. SDS 140 may respond with a 200 OK RTSP message comprising service list information. The 200 OK RTSP message may comprise, for example, only general information of the services in order to decrease the message size. In an example embodiment, the information may be expressed as Extensible Markup Language (XML) fragments. Example messages sent a service list retrieval operation are shown below.
In order to join to a P2P service, a peer 110 may retrieve the P2P service information from the SDS 140. In an example embodiment, the peer sends a DESCRIBE message to the SDS 140. SDS 140 may respond with a 200 OK RTSP message. According to an example embodiment, the 200 OK RTSP message may comprise, for example, a partial list of available clusters, in case the number of available clusters is large. If desired, the response message may comprise a full list of available clusters. The response message may use multipart MIME since it may deliver both SDP of the service and the list of available clusters, i.e., in an XML format. Example DESCRIBE and 200 OK messages are shown below;
According to an example embodiment, the peer may send a GET_PARAMETER message, for example, every CL associated with a cluster in the received list of available clusters. The GET_PARAMETER message may be used for the purpose of RTT calculation. The peer may stop a counter, used to calculate RTT, when a 200 OK RTSP message is received. The peer selects the cluster, for the desired service, associated with the CL from which the 200 OK RTSP message was received. Example GET_PARAMETER and 200 OK messages are shown below;
In example embodiment, the peer may send an OPTIONS message with a ‘join_peer’ tag in the ‘Cluster’ header field to the CL of the cluster. An initial peer list, of peers in the cluster, may be received in a response message, e.g., a 200 OK RTSP message. In an example embodiment, the initial peer list may be a random subset of the peers in the cluster, for example, if the number of peers in the cluster is large. If desired the initial peer list may comprise all peers in the cluster. The peer may request data from peers listed in the received initial peer list using, for example, a SETUP message. The SETUP message handles configuring UDP port numbers for RTP reception using a ‘Transport’ header field. Requested data may be associated, for example, with a plurality of partial streams. In an example embodiment, few peers may respond by accepting the request for data, for example, less than a target number of requested partial streams. The peer may repeat requesting data, for example, from peers that accepted to deliver the request, until the target number of partial streams is reached. For example, one or more peers, in the received initial peer list, may accept to deliver more than one partial stream per single peer. In an example embodiment, if a peer in the received initial peer list is not responding it may be removed from a internal “known peer” list and no repeated requests are sent to the non-responding peer. The peer may also respond to receiving the requested partial streams, e.g., audio and/or video streams, with a 200 OK RTSP message. Example messages exchanged between the requesting peer, CL and other peers are shown below;
In an example embodiment, a peer 110 may leave the P2P network 100 according to one of two types of departures; controlled departure or uncontrolled departure. In a controlled departure a peer may inform CL and other peers, e.g., other peers having data transfer with the leaving peer, about the departure. The peer may send an OPTIONS message with a ‘leave’, tag in the ‘Cluster’ header field to the CL. The peer may also send a TEARDOWN message to the other peers having data transfer with the leaving peer. Thus peers, sending data to the leaving peer, may terminate the RTP session(s) associated with the leaving peer. Also peers, that were receiving data from the leaving peer, may select other peer(s) instead of leaving peer. The TEARDOWN message may also be sent if a peer notices that there is a loop in the data delivery for some partial stream. Example messages associated with a departure of a peer are shown below;
In an example embodiment, uncontrolled departure may be noticed, for example by CL and other peers sending data to the leaving peer, if keep-alive messages are not received from the leaving peer within some time interval. A peer receiving data from the leaving peer may notice uncontrolled departure if no data packets are received from the leaving peer within a time interval. The value of the time interval may be defined, e.g., at the receiving peer. The receiving peer may replace the leaving peer with another peer, for example, within a duration associated with a reception buffer in order to avoid interruption.
Names corresponding to header fields, tags, and/or the like, e.g., ‘join_bcl’, ‘join_neighbor’, ‘split’, ‘backup’, ‘Cluster’, and/or the like, are listed as examples. Other names may also be used. These names are not to be interpreted in a restrictive way.
Without in any way limiting the scope, interpretation, or application of the claims appearing below, it is possible that a technical effect of one or more of the example embodiments disclosed herein may be an efficient scalable peer to peer streaming system allowing P2P streaming application with good quality of experience. Another possible technical effect of one or more of the example embodiments disclosed herein may be a reliable real time peer to peer streaming technology. Another technical effect of one or more of the example embodiments disclosed herein may be an effective real time peer to peer streaming system.
Embodiments of the present invention may be implemented in software, hardware, application logic or a combination of software, hardware and application logic. The software, application logic and/or hardware may reside on computer, mobile device or mobile chipset. If desired, part of the software, application logic and/or hardware may reside on, part of the software, application logic and/or hardware may reside on computer, and part of the software, application logic and/or hardware may reside on a mobile device. The application logic, software or an instruction set is preferably maintained on any one of various conventional computer-readable media. In the context of this document, a “computer-readable medium” may be any media or means that can contain, store, communicate, propagate or transport the instructions for use by or in connection with an instruction execution system, apparatus, or device.
If desired, the different functions discussed herein may be performed in any order and/or concurrently with each other. Furthermore, if desired, one or more of the above-described functions may be optional or may be combined.
Although various aspects of the invention are set out in the independent claims, other aspects of the invention comprise any combination of features from the described embodiments and/or the dependent claims with the features of the independent claims, and not solely the combinations explicitly set out in the claims.
It is also noted herein that while the above describes example embodiments of the invention, these descriptions should not be viewed in a limiting sense. Rather, there are several variations and modifications which may be made without departing from the scope of the present invention as defined in the appended claims.
This application claims priority to U.S. Application No. 61/081,359 filed on Jul. 16, 2008.
Number | Date | Country | |
---|---|---|---|
61081359 | Jul 2008 | US |