WO2009006820A1 - Method and system for providing media flow during swith of media servers - Google Patents
Method and system for providing media flow during swith of media servers Download PDFInfo
- Publication number
- WO2009006820A1 WO2009006820A1 PCT/CN2008/071494 CN2008071494W WO2009006820A1 WO 2009006820 A1 WO2009006820 A1 WO 2009006820A1 CN 2008071494 W CN2008071494 W CN 2008071494W WO 2009006820 A1 WO2009006820 A1 WO 2009006820A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- media
- function entity
- stream
- media stream
- delivery function
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/16—Analogue secrecy systems; Analogue subscription systems
- H04N7/173—Analogue secrecy systems; Analogue subscription systems with two-way working, e.g. subscriber sending a programme selection signal
- H04N7/17309—Transmission or handling of upstream communications
- H04N7/17336—Handling of requests in head-ends
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/10—Architectures or entities
- H04L65/1016—IP multimedia subsystem [IMS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/612—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23116—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving data replication, e.g. over plural servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44209—Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47202—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/61—Network physical structure; Signal processing
- H04N21/6106—Network physical structure; Signal processing specially adapted to the downstream path of the transmission network
- H04N21/6125—Network physical structure; Signal processing specially adapted to the downstream path of the transmission network involving transmission via Internet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/61—Network physical structure; Signal processing
- H04N21/6156—Network physical structure; Signal processing specially adapted to the upstream path of the transmission network
- H04N21/6175—Network physical structure; Signal processing specially adapted to the upstream path of the transmission network involving transmission via Internet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64723—Monitoring of network processes or resources, e.g. monitoring of network load
- H04N21/6473—Monitoring network processes errors
Definitions
- the present invention relates to the field of Internet Protocol Multimedia Subsystem (IMS), and in particular, to a method and system for providing media streams in a media server handover process in an IMS network.
- IMS Internet Protocol Multimedia Subsystem
- the media streaming service or the Internet Television (IPTV) service is a new business that has developed rapidly in recent years.
- These two services utilize streaming technology to transmit multimedia files, including video and audio files, on a packet-switched network, such as an IMS network.
- These file contents do not require user equipment (UE, User Equipment) to be completely downloaded upon access. It can be played immediately.
- UE user equipment
- the key technology for the implementation of these two services is streaming technology.
- Streaming technology processes the contents of continuous video and audio files and stores them on the server in the packet switching network, so that the UE can access the server. Download the contents of the file, while listening to the contents of the file, you do not need to wait until the entire file content is downloaded before you can watch the contents of the file.
- IMS In the 3GPP Release 5 (R5, Release) phase, IMS was introduced.
- the IMS is superimposed on the packet domain network, and is controlled by a Call Control Function (CSCF), a Media Gateway Control Function (MGCF), a Media Resource Function (MRF), and a Home Subscriber Server. (HSS, Home Subscriber Server) and other functional entities.
- the CSCF can be divided into three logical entities: the service CSCF (S-CSCF), the proxy CSCF (P-CSCF), and the query CSCF (I-CSCF).
- S-CSCF is a service switching center of the IMS, performs session control, maintains session state, is responsible for managing UE information, and generates charging information.
- the P-CSCF is an access point for the UE to access the IMS, completes UE registration, and is responsible for quality of service (QoS) control and security management;
- the I-CSCF is responsible for interworking between IMS domains, managing the allocation and selection of S-CSCFs, hiding network topology and configuration, and generating billing data.
- the MGCF controls the gateway to implement interworking between the IMS and other networks.
- MRF provides media resources.
- the HSS stores subscription data, configuration information, and the like of the UE.
- the IMS network mainly uses the Session Initiation Protocol (SIP) and the Diameter protocol.
- SIP Session Initiation Protocol
- Diameter protocol Diameter protocol
- SIP is an application layer control protocol that can be used to establish, modify, and terminate multimedia sessions or conferences. SIP also supports inviting participants to participate in existing sessions, such as multiparty conferences.
- the Real Time Streaming Protocol is an application-level protocol that controls the transmission of real-time data and is mainly used for real-time data transmission of media stream services or Internet Protocol TV services.
- RTSP provides an extensible framework for real-time data such as controlled delivery of audio and video as well as on-demand delivery.
- the purpose of the RTSP is to control multiple data transfer sessions, provide a method of selecting a transport channel, and provide a method based on the RTP selective transport mechanism.
- the IMS-based IPTV service provides IPTV services under the overall IMS architecture, making full use of existing registration, authentication, routing, session control and establishment, service triggering, charging, and end-to-end QoS guarantee mechanisms in the IMS network.
- the bearer resource needs to be reserved for the transmission of the media stream.
- FIG. 1 is a schematic diagram of a service function architecture of an IMS-based IPTV service according to the prior art, in which an IPTV media function entity (IPTV Media Funct ion) is responsible for controlling and delivering media streams through the IMS to the UE.
- IPTV Media Funct ion IPTV Media Funct ion
- I PT V Me d i a Func t i on can be decomposed into a media control function entity (MCF, Media Control Funct ion) and a media delivery function entity (MDF, Media Del ivery Funct ion) from a functional perspective.
- MDF Media Control Funct ion
- the MDF is usually a media server that transmits media streams to the UE under the control of the MCF.
- the MCF can also receive and process playback control operation commands sent by the UE.
- IPTV Service Control Funct ions are used to process the IPTV Media Functation for the UE when receiving the IPTV service request sent by the UE through the IMS core (Core), and the IMS Core may reserve the IPTV service for the UE. Resources.
- An IPTV service is a service that provides multimedia content to a UE, such as a live TV service or a video on demand service.
- a UE such as a live TV service or a video on demand service.
- the video on demand service when the size of the media content is relatively large, it needs to be stored in a large amount.
- the media server In order to improve the speed of media content retrieval, the same media content may also be stored in different media servers.
- the UE can perform video cassette recording (VCR, Video Cas set te Recording) operations, such as fast forward, rewind, pause, and locate operations, and then send playback control operation commands, control The media stream transmitted by the IPTV media function entity. If the media content to be played is not on the current media server during normal playback or when the UE performs VCR operation, etc., it is necessary to switch to the new media server.
- VCR Video Cas set te Recording
- the media renegotiation method to perform media server switching, and then provide media stream by the switched media server, that is, when the media server needs to be switched, the UE and the switched media server are re-executed through the IMS Core.
- negotiation between media parameters After the negotiation is completed, the switched media server provides the UE with a media stream including media content.
- the session control function of the IMS Core is used to perform the operation of changing the session to re-switch the media parameters between the UE and the switched media server, and the switched media server is the UE.
- the above method for providing a media stream in a handover process of a media server has a problem of reducing the response speed of the IMS network, because the media stream
- the playback control is directly processed between the UE and the MCF, and the session control for performing media re-negotiation is processed by the SIP signaling of the IMS Core. Therefore, the process of switching the media server by the media re-negotiation mode is relatively large, and After the resource reservation in the IMS network is required, the media stream can be provided by the switched media server. These will affect the response speed of the IMS network. In severe cases, the media stream will be interrupted and the user experience of receiving the media stream through the UE will be affected. .
- the embodiment of the invention provides a method for providing a media stream in a media server handover process, which can implement the media server handover process without affecting the IMS network response speed. For the media stream, it does not cause interruption of the media stream.
- the embodiment of the present invention further provides a system for providing a media stream in a media server handover process, which can provide a media stream during a media server handover process without affecting the IMS network response speed, and does not cause interruption of the media stream. .
- the media delivery function entity that provides the media stream for the user device is switched by the first media delivery function entity to the second media delivery function entity;
- the media stream provided by the second media delivery function entity for the user equipment is sent by the first media delivery function entity agent.
- a system for providing a media stream in a media server switching process where the media server is a media delivery function entity, the system includes: a first media delivery function entity, a second media delivery function entity, and a media control function entity, where
- a media control function entity configured to control the first media delivery function entity and the second media delivery function entity when the media delivery function entity providing the media stream for the user is switched by the first media delivery function entity to the second media delivery function entity;
- a second media delivery function entity configured to send the media stream provided by the user equipment to the first media delivery function entity under the control of the media control function entity
- a first media delivery function entity configured to send, by the media control function entity, the media stream received from the second media delivery function entity to the user equipment.
- the media delivery function entity that provides the media stream for the user device is switched by the first media delivery function entity to the second media delivery function entity;
- the second media delivery function entity uses the media control function entity to pre-allocate the media stream
- the body parameter sends the media stream.
- a system for providing a media stream in a media server switching process where the media server is a media delivery function entity, the system includes: a first media delivery function entity, a second media delivery function entity, and a media control function entity, where
- the media delivery function entity for providing a media stream for the user equipment is switched by the first media delivery function entity to the second media delivery function entity, and the second media delivery function entity is allocated with the first media delivery function entity After sending the same media parameter of the media stream, sending to the second media delivery function entity;
- a second media delivery function entity configured to send the media stream to the user equipment by using the media parameter received from the media control function entity.
- the media function entity that provides the media stream for the user equipment is switched by the first media function entity to the second media function entity, and the media stream provided by the second media function entity for the user equipment is sent by the first media function entity.
- a system for providing a media stream in a media server switching process where the media server is a media function entity, the system includes: a first media function entity and a second media function entity, where
- a first media function entity configured to send, by the proxy, the media stream received from the second media function entity to the user equipment.
- the method and system provided by the embodiments of the present invention do not perform the renegotiation process between the UE and the switched media server through the IMS Core when the media stream is provided during the media server handover process.
- the manner in which the media server that is currently serving the UE is proxyed to the media server to which the UE is switched, or the media server that is currently serving the UE is allocated to the switched media server.
- the media stream parameter is provided by the server in the same manner as the media stream parameter, so that the media stream parameter of the media stream sent to the UE is kept unchanged during the media server handover process.
- the embodiment of the present invention does not use the renegotiation process between the UE and the switched media server through the IMS Core as in the prior art, the switching to the media server is performed only on the network side, and does not need to be mutually negotiated with the UE.
- the media stream is provided during the media server switching process without affecting the response speed of the IMS network, and does not cause interruption of the media stream.
- FIG. 1 is a schematic diagram of a service function architecture of an IMS-based IPTV service according to the prior art
- FIG. 2 is a schematic structural diagram of a media stream proxy mode for implementing media server handover according to an embodiment of the present invention
- FIG. 3 is a flowchart of a method for implementing media server handover by a media stream proxy mode according to an embodiment of the present invention
- FIG. 4 is a source of a media stream according to an embodiment of the present invention
- FIG. 5 is a flowchart of a method for implementing media server switching by using a source IP address and a port number centralized management manner of a media stream according to an embodiment of the present invention
- FIG. 6 is a schematic structural diagram of a media server switching implemented by a play control and a media proxy mode according to an embodiment of the present invention
- FIG. 7 is a flowchart of a method for implementing media server switching by using a playback control and a media proxy mode according to an embodiment of the present invention
- FIG. 8 is a schematic structural diagram of media server switching by using a media proxy mode of an RTP level proxy according to an embodiment of the present invention.
- FIG. 9 is a flowchart of a method for implementing media server switching by using a media proxy mode of an RTP level proxy according to an embodiment of the present invention.
- FIG. 10 is a flowchart of a method for implementing media server switching by using a media proxy mode of an application level proxy according to an embodiment of the present invention
- FIG. 11 is a network architecture diagram of a media server for switching a media server by using a centralized management mode of a media stream source IP address and a port number according to a specific embodiment of the present invention
- FIG. 12 is a flowchart of a method for switching a media server by using a centralized management mode of a media stream source IP address and a port number according to a specific embodiment of the present invention
- FIG. 13 is a schematic structural diagram of media server switching by using a play control and a media proxy mode according to an embodiment of the present invention
- FIG. 14 is a flowchart of a method for implementing media server switching by using a play control and a media proxy method according to an embodiment of the present invention.
- the media stream is not interrupted.
- the media stream is provided for the UE.
- the renegotiation process between the UE and the switched media server is not performed, and only the network side performs the handover process of the media server that provides different media streams, and the media stream parameters of the media stream sent to the UE are not maintained. change.
- the media stream parameter may be a source IP address and a port number of the media stream, and the media parameter of the media stream is used to describe the source IP address and port number of the media stream.
- the reason for the media server switching in the process of providing the media stream may be multiple, and may be: 1) the media content indicated by the UE sending the play control command is not on the media server currently providing the media stream for the UE; 2)
- the media server that provides the media stream by the UE causes the media server that needs to switch to the backup to provide the media stream to the UE due to the network failure or the self-failure; 3) when the media content requested by the UE is relatively large, it is separately stored on several media servers, Switching is performed by several media servers to provide the UE with a media stream of uninterrupted media content.
- the embodiment of the present invention uses the above reason 1), that is, because the media content indicated by the UE sending the play control command is not on the media server that currently provides the media stream to the UE, the media server switch occurs when the media stream is provided for detailed description.
- the embodiments of the present invention provide three types of solutions to keep the source IP address and port number of the media stream in the IPTV service unchanged.
- the three modes are media stream proxy mode and media stream respectively.
- Centralized management of source IP address and port number, as well as playback control and media generation The three methods are described in detail below.
- FIG. 2 is a schematic diagram of a network structure for providing a media stream in a media server handover process according to an embodiment of the present invention, where the entity involved includes an MCF, an MDF, and a UE.
- the UE is an IPTV terminal, and is configured to receive a media stream that is sent by the MDF.
- the MDF1 is an MDF that currently provides a media stream for the UE
- the MDF2 is an MDF that provides a media stream for the UE after the handover.
- the UE and the MCF exchange information through the play control interface.
- the interface can use RTSP.
- the MCF exchanges information with the MDF1 and the MDF2 through the media control interface.
- the MDF1 and the UE exchange information through the media transmission interface.
- other MDFs can also perform information interaction with the MDF1 through the media proxy interface, such as MDF3 and MDF4, and perform information interaction with the MDF1 through the
- the UE accesses the MCF through the play control interface, and sends a play control command to perform playback control operations, such as fast forward, fast reverse, and positioning operations.
- the MCF controls the MDF1 to transmit the required media stream to the UE through the media control interface, and the media stream is transmitted through the media transport interface between the MDF1 and the UE.
- MDF1 does not have the media content required by the UE
- other MDFs having the media content such as MDF2
- the MDF1 sends the media content to the UE through the media delivery interface proxy.
- FIG. 3 is a flowchart of a method for providing a media stream in a media server handover process according to an embodiment of the present invention. It is assumed that a media content is currently provided by the UE as MDF1, and after the handover, media content is provided to the UE as MDF2, and the control is performed.
- the MCF is switched between the MDFs and the specific steps are as follows: Step 301: When the IPTV service is provided for the UE, the MCF selects the MDF1 and controls the MDF1 to send the media stream of the media content required by the UE to the UE.
- the media content information is carried by the MCF, and the MCF determines the MDF having the corresponding media content according to the media content information, and controls the determined MDF to send the media stream corresponding to the media content to the UE.
- Step 303 The UE performs a VCR operation in the process of receiving the media stream sent by the MDF1, that is, sends a play control command to the MCF, and the MCF determines that the media stream needs to be switched to the MDF2 according to the media content information carried in the command, and the MDF2 has a corresponding Media content.
- Step 304 The MCF controls the MDF1 proxy to send the media stream of the MDF2 to the UE.
- Step 305 Under the control of the MCF, the MDF1 obtains the media stream of the proxy from the MDF2 and sends the media stream to the UE. In the process of sending the media stream, the MDF1 still uses the original source IP address and port number (IP1 and
- Step 306 The IPTV service provided for the UE ends, and the MCF controls the MDF1 and the MDF2 to release the media sending resources respectively, and stops the media agent and the media from being sent.
- the MCF controls the MDF1 to stop the media stream in the proxy MDF2, and the MDF1 performs the media stream proxy of the MDF3. Same as the media stream process in proxy MDF2.
- the second solution is to centrally manage the source IP address and port number of the media stream.
- FIG. 4 is a schematic structural diagram of a source IP address and a port number centralized management manner of a media stream to implement media server handover according to an embodiment of the present invention, where the entities involved include an MCF, an MDF, and a UE.
- the UE is an IPTV terminal, and is configured to receive a media stream that is sent by the MDF.
- the MDF1 is an MDF that currently provides a media stream for the UE
- the MDF2 is an MDF that provides a media stream for the UE after the handover.
- the UE and the MCF exchange information through the play control interface.
- the interface can use the RTSP.
- the MCF exchanges information with the MDF1 and the MDF2 through the media control interface.
- the MDF1 and the UE exchange information through the media transmission interface.
- MDF2 The information exchanges with the UE through the media delivery interface.
- other MDFs may also perform information interaction with the UE through the media delivery interface, such as MDF 3 and MDF4, and perform information interaction with the UE through the media delivery interface.
- the MCF controls the MDF1 or the MDF2 to transmit the media stream to the UE through the media control interface, and is responsible for allocating the source IP address and port number used by the MDF1 or the MDF2 to transmit the media stream to the UE, that is, the current time of the UE.
- the source IP address and port number of the media stream allocated to the MDF1 or MDF2 in the IPTV service remain unchanged.
- the MDF sends the media stream with the media content it needs to the UE through the media delivery interface using the source IP address and port number assigned by the MCF.
- FIG. 5 is a schematic diagram of a method for implementing media server switching by using a source IP address and a port number centralized management manner of a media stream according to an embodiment of the present invention. It is assumed that the media content is currently provided by the UE as MDF1, and after the handover, the media content is provided to the UE as MDF2, and the control is performed. The MCF is switched between the MDFs. The specific steps are as follows: Step 501: When the IPTV service is provided for the UE, the MCF selects the MDF1 and allocates the source IP address and port number used by the IPTV service to send the media stream. IP1 and Por tl , which control the MDF1 to use the assigned IP address and port number for the UE to transport the media stream in this IPTV service.
- Step 502 The MDF1 allocates a media sending resource under the control of the MCF, and sends a media stream to the UE.
- the source IP address and port number of the media stream use the IP address and port number assigned by the MCF, respectively, IP1 and Por t L
- Step 503 The UE performs a VCR operation in the process of receiving the media stream sent by the MDF1, that is, sends a play control command to the MCF, and the MCF determines that the media stream needs to be switched to the MDF2 according to the media content information carried in the command, and the MDF2 has a corresponding Media content.
- Step 504 The MCF controls the MDF2 to send the media stream of the media content required by the UE to the UE.
- the source IP address and port number of the media stream use the IP address and port number assigned by the MCF, which are IP1 and Por t l respectively.
- Step 505 The MCF controls the MDF1 to release the media transmission resource allocated to the UE, and controls the MDF1 to stop sending the media stream to the UE, that is, the use of the IP1 and the Por t l is stopped.
- Step 506 The IPTV service provided for the UE ends.
- the MCF controls the MDF2 to release the media transmission resource allocated to the UE, and stops sending the media stream to the UE.
- the IP address and port number assigned by the MCF that is, IP1 and Por 11 are also released, and may be provided.
- the UE is used when applying for the IPTV service next time or when other UEs apply for the I PTV service.
- the MDF3 is required.
- the media content is provided to the UE, and the MCF controls the MDF3 to use the IP address and port number assigned to the IPTV service, that is, IP1 and p 0 rt1 to send the media stream of the media content required by the UE to the UE, and instructs the MDF2 to release the allocation for the UE.
- the media sends a resource, and controls the MDF2 to stop sending the media stream to the UE.
- FIG. 6 is a schematic diagram of a structure of a media server switching by using a playback control and a media proxy mode according to an embodiment of the present invention.
- the network entity includes an IPTV media function entity, an SCF (Servicing Control Function Entity), and a UE.
- the IPTV media function entity includes the MCF and the MDF.
- the MCF and the MDF are logical functional entities. In actual deployment, they may be the same physical entity. In this case, when the MDF is switched, the MCF needs to be switched.
- media stream renegotiation not only the media stream of the IPTV service of the UE is transmitted with the unchanged source IP address and port number, but also the playback control parameters for playing control need to remain unchanged. Therefore, the proxy can be used. The way to achieve.
- the IPTV media function entity 1 in FIG. 6 is an IPTV media function entity that currently provides a media stream for the UE, and the IPTV media function entity 1 is an IPTV media function entity that provides a media stream for the UE after handover.
- the UE is an IPTV terminal.
- the UE and the IPTV media function entity 1 respectively exchange control information and media streams through the media play control interface and the media transfer interface.
- the media play control interface can use RTSP, and the media transfer interface can use real-time transport protocol (RTP, Rea).
- RTP real-time transport protocol
- l-Time Transpor t Protocol 0 In the process of using the IPTV service, the UE can perform playback control operations such as fast forward, rewind, locate, and pause through the media playback control interface.
- the SCF and the IPTV media function entity exchange information through the media management interface, and the SCF requests the IPTV media function entity to play the control resource and the media transmission resource to process the UE's play control and transmit the required media stream
- the IPTV media function entity 1 receives the playback control command post processing of the UE through the play control interface, and the IPTV media function entity 1 transmits the media stream to the UE through the media transmission interface.
- the IPTV media function entity 1 and the IPTV media function entity 1 respectively perform control information and media stream interaction through the play control proxy interface and the media proxy interface, and there is no UE on the IPTV media function entity 1
- the IPTV media function entity 2 having the media content sends the media stream including the media content to the IPTV media function entity 1 through the media proxy interface, and the IPTV media function entity 1 sends the IPTV media function entity 2 to send Give the UE.
- the IPTV media function entity 1 is also responsible for the play control agent between the UE and the IPTV media function entity 2, and the play control command sent by the UE is forwarded by the IPTV media function entity 1 to the play control agent interface between the IPTV media function entity 2 and the IPTV media function entity 2
- the IPTV media function entity 2 the play control response message of the IPTV media function entity 2 will also be forwarded by the IPTV media function entity 1 to the UE according to the play control parameters previously allocated for the media stream.
- FIG. 7 is a flowchart of a method for implementing media server switching in a playback control and media proxy mode according to an embodiment of the present invention.
- the network entity involved includes a UE, an IPTV media function entity 1 that provides media streams for the UE, and a media stream for the UE after handover.
- the specific steps of the IPTV media function entity 2 and the SCF are as follows:
- the SCF selects the IPTV media function entity 1 to provide a media stream for the UE, and instructs the IPTV media function entity 1 to process the play control of the UE and send the media stream of the media content required by the UE to the UE.
- Step 702 The IPTV media function entity 1 allocates a play control resource and a media sending resource to the UE under the instruction of the service control function, and assumes that the source IP address and port number of the sent media stream are IP1 and Portl, respectively, and the source IP address of the play control. And the port numbers are IP2 and Port2 respectively, and the allocated play control resources and media transmission resource information are sent to the UE through the service control function.
- the IPTV media function entity 1 obtains the received media stream address of the UE from the service control function, and sends the media stream sent to the UE to the address.
- the source IP address and port number used by the media stream are IP1 and Port1, respectively.
- the IPTV media function entity 1 listens to the play control commands sent by the UE on IP2 and Port2.
- the IPTV media function entity 1 can obtain or directly query the related database to locate the information of the media content requested by the command in the IPTV media function entity 2 through the SCF, and can also obtain the information in the IPTV media function entity 2 by using other methods in the prior art. .
- Step 704 The IPTV media function entity 1 requests the IPTV media function entity 1 to proxy the media content requested by the command and the agent for playing control.
- Step 7 05 The IPTV media function entity 1 forwards the play control command of the UE to the IPTV media function entity 2, and forwards the play control response message of the IPTV media function entity 2 to the UE, and the source IP address and port number of the play control are still IP2 respectively. And Por t 2.
- Step 706 The PTV media function entity 2 sends the media stream of the command request media content to the IPTV media function entity 1, and the IPTV media function entity 1 forwards the media stream to the UE.
- the source IP address and port number still used are IP1 and Por t L respectively.
- Step 707 When the current IPTV service provided for the UE ends, the service control function instructs the IPTV media function entity 1 to release the play control resource and the media sending resource, and the IPTV media function entity 1 instructs the IPTV media in addition to releasing the resource allocated by the UE for the UE.
- the functional entity 2 releases the playback control resource and the media transmission resource allocated to the UE.
- the IPTV media function entity 1 stops the playback control of the proxy IPTV media function entity 2 and The media stream, in turn, delegates the playback control and media stream of the IPTV media function entity 3, but it is worth noting that the source IP address and port number of the media stream are still IP1 and Por tl respectively; the source IP address of the playback control and The port numbers are still I P2 and Por t 2, respectively.
- the media proxy mode of the RTP-level proxy is used.
- This embodiment uses a media proxy mode, which is a specific embodiment of an IMS-based IPTV service.
- the network architecture is as shown in FIG. 8.
- the UE, the IMS Core, and the SCF are existing entities in the system architecture of the existing IMS-based IPTV service, and no new modifications and requirements are required in the embodiment of the present invention.
- the embodiments of the present invention mainly modify the MCF and the MDF in the system architecture of the IMS-based IPTV service.
- the UE uses an existing service interaction process, such as a SIP interaction process, to interact with the SCF through the IMS Core to establish an IPTV service, and the SCF selects the MCF, and then the MCF selects an MDF having the media content requested by the UE. .
- the UE uses the RTSP to perform the VCR operation, that is, sends a play control command to the MCF. If the media content requested by the command is not on the MDF currently providing the media stream for the UE, the MCF selects another media content with the command request.
- the MDF provides a media stream for the UE, and provides a media stream in a manner of providing an MDF proxy for the media stream for the UE, and does not change the source IP address and port number of the media stream sent by the IPTV service.
- interfaces that need to be added or modified include: Interface C1 between MCF and MDF and Interface M1 between MDFs.
- FIG. 9 is a flowchart of a method for switching a media server by using a media proxy mode of an RTP-level proxy according to a specific embodiment of the present invention, where the network entity includes a UE, an IMS Core, an SCF, an MCF, and an MDF1 that currently provides a media stream for the UE, and a handover.
- the MDF2 is provided for the UE, the specific steps are as follows: Step 901: After the user selects a certain program through the electronic program guide, the UE sends a SIP access (INVITE) message to the IMS Core, and carries the media content information corresponding to the selected program. UE information.
- SIP access IMS Core
- Step 902 The IMS Core routes the S IP INVITE message sent by the UE to the SCF.
- Step 903 The SCF performs, according to the media content information and the UE information carried in the message, whether the UE has the right to obtain the media stream corresponding to the media content identifier, and performs authentication and charging.
- Step 904 After the SCF authenticates and charges the UE, the SCF selects a corresponding MCF for the UE according to the media content information carried in the message.
- selecting the corresponding MCF according to the media content information carried in the message is the prior art, which is not the focus of the protection of the embodiment of the present invention, and is not described here.
- Step 905 The SCF sends a SIP INVITE message to the selected MCF, carrying the media content information and UE information.
- the UE information may include information such as the location of the UE.
- Step 906 After receiving the message sent by the SCF, the MCF selects, according to the media content information carried in the message, the MDF of the media stream corresponding to the information, which is assumed to be MDF1.
- Step 907 The MCF requests the MDF1 to apply for the media sending resource, to send the media stream to the UE, and the MDF1 returns the media sending resource information allocated for the media stream.
- the media sending resource information may be described by a Session Description Protocol (SDP), including the source IP address and port number of the sending media stream, and is determined to be IP1 and PortL.
- SDP Session Description Protocol
- Step 908 The MCF establishes an RTSP session with the UE for VCR control.
- Step 909 The MCF returns a SIP 200 message to the SCF, and carries the media sending resource information of the media stream and the established RTSP session information.
- Step 910 The SCF routes the received SIP 200 message through the IMS Core.
- Step 911 The UE receives the S IP 200 message.
- Step 912 The UE returns a SIP ACK message and carries the UE information.
- the UE information can be described by using SDP.
- Step 913 After receiving the SIP ACK message of the UE, the IMS Core reserves, for the UE, a bearer resource for transmitting the media stream according to the SDP description of the UE side and the MDF side.
- Step 914 The SIP ACK message is routed to the SCF.
- Step 915 The SCF sends the received SIP ACK message to the MCF.
- Step 916 The MCF acquires UE information according to the SIP ACK message, and controls the MDF1 to send, to the UE, a media stream that includes media content corresponding to the media content information requested by the UE.
- Step 917 Under the control of the MCF, the MDF1 sends the RTP packet encapsulating the media stream to the UE.
- RTCP is a real-time transmission control protocol, which is used simultaneously with RTP to feed back some information transmitted by the RTP to the peer end, such as packet loss of RTP.
- the RTCP message is not a protocol for playback control.
- the RTCP message is a media stream transmission control message.
- Step 919 The RTCP message sent by the MDF is sent to the UE for processing.
- Step 920 During the process of the user enjoying the program, perform a VCR operation, such as fast forward or rewind.
- the RTSP message of the VCR operation is sent to the MCF, which carries the media content information to be requested, including the media content identifier.
- the RTSP message is a playback control message.
- Step 921 The MCF detects that the media content to be requested by the message is not on the MDF1, and then selects the MDF2 having the media content to be requested by the message.
- Step 922 The MCF requests the MDF1 to request the media stream of the media content information that the MDF2 should request to carry, and the MDF1 returns the receiving IP address and port number of the RTP packet that is ready to receive the bearer media stream sent by the MDF2, and is determined to be IP2 and Port. 2.
- the proxy used is an RTP-level proxy.
- Step 923 The MCF sends a request message for requesting the media transmission resource to the MDF2, and prepares to send the media stream of the media content requested by the UE to the MDF1, where the message carries the media content information and the destination IP address and port number of the MDF1 ready to receive the media stream (IP2 and Por t 2).
- Step 924 The MDF2 carries the media stream including the media content corresponding to the media content information carried by the message in the RTP packet according to the request message sent by the MCF, and sends the data stream to the destination IP address and port number of the MDF1 ready to receive the media stream.
- Step 925 The MDF1 reprocesses the RTP packet that carries the media stream received from the MDF2, and packages it into an IP packet, and sends the packet to the UE by using the original source IP address and port number (IP1 and Por t l ).
- Step 926 The RTCP message sent by the UE is sent to the MDF1 for processing.
- Step 927 The RTCP message sent by the MDF1 is sent to the UE for processing.
- Step 928 The user ends the viewing of the program and sends a S IP BYE message.
- Step 929 The S IP BYE message is routed to the SCF through the IMS Core.
- Step 930 The SCF sends a S IP BYE message to the MCF.
- Step 931 The MCF instructs the MDF2 to release the media transmission resource allocated to the UE.
- Step 932 The MCF instructs the MDF1 to release the media transmission resource allocated for the UE.
- Step 933 the MCF returns a S IP 200 message.
- Step 934 The SCF sends an S IP 200 message to the IMS Core.
- Step 935 The IMS Core receives the SIP 200 message, and releases the reserved bearer media stream resource.
- Step 936 The UE receives the SIP 200 message, and the IPTV service ends.
- Embodiment 2 A media proxy method using an application level proxy
- the media agent uses the RTP-level proxy, that is, the proxy MDF2 sends the RTP packet carrying the media stream to the MDF1, which is processed by the MDF1 and then re-encapsulated into an IP packet and sent to the UE.
- the media agent uses an application-level proxy, that is, the MTF2 sends the RTP packet that is not the media stream to the MDF1, but sends the media stream directly to the MDF1, for example, using the file transfer protocol (FTP, Fi le The Transfer Protocol method is sent, and the MDF1 directly uses the media stream to assemble the RTP packet.
- the MTF2 sends the RTP packet that is not the media stream to the MDF1, but sends the media stream directly to the MDF1, for example, using the file transfer protocol (FTP, Fi le The Transfer Protocol method is sent, and the MDF1 directly uses the media stream to assemble the RTP packet.
- FTP file transfer protocol
- the specific embodiment 2 is completely consistent with the network logical architecture in the specific embodiment 1.
- the large flow is basically the same, but the interaction between the MCF and the MDF1, the MDF2, and the MDF1 and the MDF2 is different, and the process shown in FIG. The figure lists the differences.
- Step 1022 The MCF requests the MDF1 to proxy the media stream corresponding to the media content information that the MDF2 should request, and the MDF1 returns the receiving IP address and port number of the IP packet ready to receive the MDF2 media stream, and is assumed to be IP2 and Por t2.
- Step 1023 The MCF sends a request message for requesting the media transmission resource to the MDF2, and prepares to send the media content requested by the UE to the MDF1, where the message carries the media content information and the destination IP address and port number of the MDF1 ready to receive the media stream (IP2 and Port 2) ) 0
- Step 1024 The MDF2 sends, according to the request message sent by the MCF, the media stream corresponding to the media content information carried by the message to the destination IP address and port number of the MDF1 carried by the message.
- FTP can be used when sending media streams.
- Step 1025 The MDF1 encapsulates the media stream received from the MDF2 into an RTP packet, using the original The source IP address and port number (IP1 and Portl) are sent to the UE.
- IP1 and Portl The source IP address and port number
- steps 1022 to 1025 need to be replaced with steps 922 to 925 in FIG. 9, and other steps can be implemented as shown in FIG.
- Embodiment 3 Media stream source IP address and port number centralized management manner
- the MCF is used to centrally manage the source IP address and port number of the media stream sent by the UE in the current IPTV service provided for the UE.
- the source IP address and port number of the media stream are managed and allocated by the MCF.
- the MDF sends the RTP packet carrying the media stream to the UE
- the source IP address and port number sent by the media stream use the IP address and port number assigned by the MCF.
- the IP address used by the MDF is not its own IP address.
- the RTCP message sent by the UE to the MDF using the IP address as the destination address will not be directly routed to the MDF.
- the entity will be responsible for the entity that has the IP address.
- the entity needs to know which MDF the RTCP message is forwarded to, and needs to establish the correspondence between the original receiving IP address and port number of the RTCP message and the actual receiving IP address and port number.
- the entity is called an RTCP proxy entity.
- the RTCP proxy entity may be an MCF.
- MCF MCF
- the use of MCF as the RTCP proxy is a good choice because it does not require the introduction of new entities and interfaces in the IMS-based IPTV service network architecture, and the MCF already has the IP address of the MDF that actually provides the media stream for the UE and The port number, that is, it can be known to which MDF the RTCP message sent by the UE is transmitted.
- the RTCP proxy entity may also be other entities, but the correspondence between the original IP receiving address and port number of the RTCP message and the actual receiving IP address and port number must be pre-established in the entity.
- FIG. 11 is a schematic diagram of a network architecture for implementing a switching media server in a centralized management manner of a media stream source IP address and port number according to a specific embodiment of the present invention.
- the MDF2 does not interact with the MDF1 but directly passes the RTP.
- the /RTCP interface exchanges information with the UE and directly transmits the media stream to the UE.
- the IP address and port number of the media stream are allocated by the MCF, and the IPTV service is guaranteed to be unchanged in the process of providing the IPTV service to the UE. Switch). Therefore, the interface that needs to be added or modified in this embodiment includes: interface C2 between the MCF and the MDF.
- FIG. 12 is a flowchart of a method for switching a media server by using a media stream source IP address and port number centralized management mode according to a specific embodiment of the present invention, where the network entity includes a UE, an IMS Core, an SCF, an MCF, and currently provides a media stream for the UE.
- the MDF1 and the MDF2 for providing the media stream to the UE after the handover, the specific steps are as follows:
- Step 1201 After the user selects a certain program through the electronic program guide, the UE sends a SIP INVITE message to the IMS Core, and carries the media content information and the UE information corresponding to the selected program.
- Step 1202 The IMS Core routes the SIP INVITE message sent by the UE to the SCF.
- Step 1203 The SCF performs authentication and accounting on whether the UE has the right to obtain the media stream corresponding to the media content identifier.
- Step 1204 After the SCF authenticates and charges the UE, the SCF selects a corresponding MCF according to the media content identifier carried in the message.
- Step 1205 The SCF sends a SIP INVITE message to the selected MCF, carrying the media content information and the UE information.
- the UE information may include information such as the location of the UE.
- Step 1206 After receiving the message sent by the SCF, the MCF selects, according to the media content information carried in the message, the MDF of the media stream that provides the media content corresponding to the identifier, which is assumed to be MDF1, and is allocated for the current IPTV service transmission bearer.
- the IP address may not be the IP address of MDF1 itself, but may be the IP address of another entity, such as the IP address of the MCF.
- Step 1207 The MCF requests the MDF1 to apply for the media sending resource, to send the media stream to the UE, and specifies the IP address and port number (IP1, Portl) allocated by the MCF as the source IP address and port number of the RTP packet for transmitting the bearer media stream. .
- IP1, Portl IP address and port number allocated by the MCF
- Step 1208 The MCF establishes an RTSP session with the UE for VCR control.
- Step 1209 The MCF returns a SIP 200 message to the SCF, and carries the media sending resource information of the media stream and the established RTSP session information.
- Step 1210 The SCF routes the received SIP 200 message through the IMS Core.
- Step 1211 The UE receives the SIP 200 message.
- Step 1212 The UE returns a S IP ACK message, and carries the UE information.
- the UE information can be described by using SDP.
- Step 1213 After receiving the SIP ACK message of the UE, the IMS Core reserves, for the UE, a bearer resource for transmitting the media stream according to the SDP description of the UE side and the MDF side.
- Step 1214 The IP ACK message is routed to the SCF.
- Step 1215 The SCF sends the received SIP ACK message to the MCF.
- Step 1216 The MCF acquires UE information according to the SIP ACK message, and controls the MDF1 to send a media stream corresponding to the media content information requested by the UE to the UE.
- Step 1217 Under the control of the MCF, the MDF1 sends the RTP packet encapsulating the media stream to the UE, and the source IP address and port number used in the RTP packet are IP1 and Por t l respectively.
- Step 1218 An RTP packet encapsulating the media stream is sent from the MDF1 to the UE.
- Step 1219 The RTCP message sent by the UE is sent to the entity whose IP address is IP1, which is assumed to be MCF, that is, the UE replies to the RTCP message to the source IP address of the sending media stream, and cannot directly go to MDF1, but routes to the IP address as IP1.
- IP1 which is assumed to be MCF
- MCF Mobility Management Function
- Step 1220 An entity whose IP address is IP1 forwards the RTCP message to MDF1.
- the entity with the IP address IP1 is the MCF, and the MCF forwards the RTCP message to the MDF1 according to the preset corresponding relationship.
- IP1 and Por t l are allocated by the MCF, the correspondence between IP1 and Por t l and MDF1 is stored.
- Step 1221 The RTCP message sent by the MDF1 is sent to the IPTV terminal.
- Step 1222 During the process of the user enjoying the program, perform a VCR operation, such as fast forward or rewind.
- the RTSP message of the VCR operation is sent to the MCF, which carries the media content information to be requested, including the media content identifier.
- the RTSP message is a playback control message.
- Step 1223 The MCF detects that the media content to be requested by the message is not on the MDF1, and then selects MDF2 with the media content to be requested by this message.
- Step 1224 The MCF sends a request message for requesting the media sending resource to the MDF2 to transmit the specified media content, and specifies the IP address and port number (IP1 and Portl) allocated by the MCF for the IPTV service as the source IP of the media stream. Address and port number.
- IP1 and Portl IP address and port number allocated by the MCF for the IPTV service
- Step 1225 The MCF instructs the MDF1 to release the media sending resource, and the MDF1 stops sending the media stream to the UE, and releases the use of the IP1 and the Port1.
- Step 1226 The MDF2 sends the media stream corresponding to the media content information carried by the message to the UE according to the request message sent by the MCF, and uses the IP address and port number (IP1 and Port1) specified by the MCF as the source of the media stream. IP address and port number.
- Step 1227 The RTCP message sent by the UE is sent to an entity whose IP address is IP1, which is assumed to be
- the MCF that is, the UE replies to the RTCP message to the source IP address of the sending media stream, cannot directly go to the MDF2, but is routed to the entity whose IP address is IP1, that is, the MCF.
- Step 1228 The entity whose IP address is IP1 forwards the RTCP message to MDF2.
- the entity with the IP address IP1 is the MCF, and the MCF forwards the RTCP message to the MDF2 according to the preset corresponding relationship.
- IP1 and Portl are allocated by the MCF, IP1 and the correspondence between Portl and MDF2 are stored.
- Step 1229 The RTCP message sent by the MDF2 is sent to the UE.
- Step 1230 The user ends the viewing of the program, and the UE sends a SIP BYE message.
- Step 1231 The SIP BYE message is routed to the SCF through the IMS Core.
- Step 1232 The SCF sends a SIP BYE message to the MCF.
- Step 1233 The MCF instructs the MDF2 to release the media transmission resource allocated to the UE.
- Step 1234 The MCF releases the IP address and port number assigned by the UE to the current IPTV service (IP1 and
- the IP address and port number can be assigned to other UEs or the UE to use in the next IPTV service.
- Step 1235 The MCF returns a SIP 200 message.
- Step 1236 The SCF sends a SIP 200 message to the IMS Core.
- Step 1237 The IMS Core receives the SIP 200 message, and releases the reserved bearer media stream resource.
- Step 1238 The UE receives the SIP 200 message, and the IPTV service ends.
- This embodiment uses a play control agent and a media proxy mode, which is a specific embodiment of an IMS-based IPTV service.
- the network architecture is shown in FIG. 13, where the UE, the IMS Core, and the SCF are existing IMS-based IPTV services.
- the existing entities in the system architecture do not make new modifications and requirements in the embodiments of the present invention.
- the embodiment of the present invention mainly modifies an IPTV media function entity in a system architecture of an IMS-based IPTV service.
- the UE uses an existing service interaction process, such as a SIP interaction process to interact with the SCF through the IMS Core, selects an IPTV media function entity, and establishes an IPTV service, including media playback control negotiation and media stream negotiation.
- the UE uses the RTSP to perform the VCR operation, that is, sends a play control command to the IPTV media function entity that currently provides the service to the UE. If the media content requested by the command is not on the IPTV media function entity currently serving the UE, The IPTV media function entity selects another new IPTV media function entity with the media content.
- the new IPTV media function entity cannot directly interact with the UE, but the IPTV media function entity currently serving the UE directly interacts with the UE, and the play control and the media stream are all represented by the IPTV media function entity currently serving the UE. Forwarding, so that the source IP address and port number of the sending media stream are unchanged in the current IPTV service of the UE.
- interfaces that need to be added or modified include: Interfaces C3 and M3 between the IPTV media function entities, respectively, complete the play control agent and the media stream agent.
- FIG. 14 is a flowchart of a method for implementing a switching media server by using a play control agent and a media proxy manner according to a fourth embodiment of the present invention, where the network entity includes a UE, an IMS Core, an SCF, and an IPTV media function entity that currently provides a media stream for the UE. 1 and the IPTV media function entity 2 that provides the media stream to the UE after the handover, and the specific steps are as follows:
- Step 1401 After the user selects a certain program through the electronic program guide, the UE sends a SIP INVITE message to the IMS Core, and carries the media content information and the UE information corresponding to the selected program.
- Step 1402 The IMS Core routes the SIP INVITE message sent by the UE to the SCF.
- Step 1403 The SCF performs authentication and accounting on whether the UE has the right to obtain the media stream corresponding to the media content identifier.
- Step 1404 After the SCF authenticates and charges the UE, the SCF selects the corresponding IPTV media function entity 1 for the UE according to the media content information carried in the message.
- Step 1405 The SCF sends a SIP INVITE message to the IPTV media function entity 1 to carry the media content information and the UE information.
- the UE information may include information such as the location of the UE.
- Step 1406 The IPTV media function entity 1 allocates the media sending resource, and obtains the local media information, which can be described by using the SDP, and the local media addresses are IP1 and Por t l.
- Step 1407 The IPTV media function entity 1 allocates a play control resource, obtains an SDP description of the local broadcast control, and establishes an RTSP session with the UE.
- Step 1408 The IPTV media function entity 1 returns a SIP 200 message to the SCF, and carries an SDP description of the resource information and an SDP description of the play control information.
- Step 1409 The S IP 200 message is routed through the IMS Core.
- Step 1410 The UE receives the SDP description of the media stream sending resource information and the SIP 200 message of the SDP description of the play control information.
- Step 1411 The UE returns a S IP ACK message, and carries the UE information.
- the UE information is described by SDP.
- Step 1412 The IMS Core processes the SIP ACK message of the UE, and reserves, according to the SDP description of the UE side and the IPTV media function entity 1 side, the bearer resource to be used for transmitting the media stream.
- Step 1413 The S IP ACK message is routed to the SCF, and carries the UE information.
- Step 1414 The SCF processes the SIP ACK message, and sends a SIP ACK message to the IPTV media function entity 1 to carry the UE information.
- Step 1415 The IPTV media function entity 1 determines to send according to the UE information carried in the received message.
- the address of the media stream, the RTP packet carrying the media stream is transmitted to the UE, and the RTSP message is monitored.
- the RTSP message is the playback control command.
- Step 1416 The RTP packet carrying the media stream is sent from the IPTV media function entity 1 to the UE.
- Step 1417 The RTCP message sent by the UE is sent to the IPTV media function entity 1.
- Step 1418 The RTCP message sent by the IPTV media function entity 1 is sent to the UE for processing.
- Step 1419 During the process of the user enjoying the program, perform a VCR operation, such as fast forward or rewind.
- the RTSP message of the VCR operation is sent to the IPTV media function entity 1 and carries the media content information to be requested, such as the media content identifier.
- Step 1420 The IPTV media function entity 1 detects that there is no media content corresponding to the media content information carried by the message, and queries a database for saving the location of the media content or selects a media content carried by the corresponding message by using a prior art method.
- the IPTV media function entity of the media content of the information here assumed to be the IPTV media function entity 2.
- Step 1421 The IPTV media function entity 1 requests the IPTV media function entity 1 to play the broadcast control message and the media stream of the IPTV media function entity 1.
- Step 1422 The IPTV media function entity 1 applies for the local broadcast control resource and the media sending resource.
- Step 1423 The IPTV media function entity 2 returns the information of the IPTV media function entity 2 side playing control resource and the media sending resource to the IPTV media function entity 1, and the information may be described by using SDP.
- Step 1424 The IPTV media function entity 1 sends a media stream of the media content corresponding to the media content information carried by the message to the IPTV media function entity 1.
- Step 1425 The IPTV media function entity 1 reprocesses the media stream received from the IPTV media function entity 1 and then encapsulates the packet into an IP packet and sends the packet to the IPTV terminal.
- the source IP address and port number of the media stream still use the IP address and port number of the IP media functional entity 1.
- Step 1426 the IPTV media function entity 1 receives the RTCP message of the IPTV terminal, according to the destination.
- the IP address and port number identify that the proxy needs to be forwarded to the IPTV media functional entity 2.
- Step 1427 The RTCP message is forwarded from the IPTV media function entity 1 to the IPTV media function entity 2.
- Step 1428 The RTCP message of the IPTV media function entity 2 is sent to the IPTV media function entity 1.
- Step 1430 The user performs a VCR operation, and the UE sends an RTSP message to the IPTV media function entity 1.
- Step 1431 The IPTV media function entity 1 forwards the RTCP message to the IPTV media function entity 2.
- Step 1432 The RTSP message of the IPTV media function entity 1 is sent to the IPTV media function entity 1.
- Step 1433 The IPTV media function entity 1 forwards the RTSP message of the IPTV media function entity 1 to the UE.
- Step 1434 The user ends the viewing of the program, and sends a SIP BYE message.
- Step 1435 The S IP BYE message is routed to the SCF via the IMS Core.
- Step 1436 After processing the SIP BYE message, the SCF sends a SIP BYE message to the IPTV media function entity 1.
- Step 1437 The IPTV media function entity 1 instructs the IPTV media function entity 2 to release the play control resource and the media sending resource.
- Step 1438 The IPTV media function entity 1 releases its own playback control resource and media transmission resource.
- Step 1439 The IPTV media function entity 1 returns an S IP 200 message.
- Step 1440 The SCF sends a SIP 200 message to the IMS Core.
- Step 1441 The IMS Core receives the SIP 200 message, releases the reserved bearer resource, and sends the message to the UE.
- Step 1442 After the UE receives the SIP 200 message, the IPTV service ends.
- the IPTV media function entity 1 mediates the media stream sent by the IPTV media function entity 1. At the same time, you can also use the proxy mode of the RTP-level proxy or the application-level proxy for proxying.
- the embodiment of the present invention provides that when the IPTV service is used, the source IP address and port number of the media stream are kept unchanged if the media server needs to switch when the VCR operation is performed by the UE.
- the present invention can ensure that the UE and the second media server are not required to be re-negotiated between the switched media servers by maintaining the source IP address and the port number of the media stream unchanged, thereby improving the IMS-based IPTV.
- the service network provides the response speed of the media stream, and avoids the transmission delay of the media stream caused by the media server switching during the use of the IPTV service, and affects the user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Description
媒体服务器切换过程中提供媒体流的方法及系统 技术领域
本发明涉及因特网协议多媒体子系统(IMS, IP Multimedia Subsystem) 领域, 特别涉及一种在 IMS 网络中媒体服务器切换过程中提供媒体流的方法 及系统。
背景技术
媒体流业务或因特网协议电视 ( IPTV, IP Television) 业务是近几年迅 速发展的一种新业务。 这两种业务利用流式传输技术, 在包交换网络上, 如 IMS网络上传输多媒体文件, 包括视频和音频等文件内容, 这些文件内容不需 要用户设备(UE, User Equipment )在访问时完全下载就可以立即播放。 这 两种业务实现的关键技术就是流式传输技术, 而流式传输技术是把连续的视 频和音频等文件内容经过处理后存储在包交换网络中的服务器上, 使 UE可以 访问该服务器, 一边下载文件内容, 一边观看收听文件内容, 而不需要等整 个文件内容都下载后才可以观看收听文件内容。
在 3GPP版本 5 (R5, Release) 阶段, 引入了 IMS。 IMS叠加在分组域网络 之上, 由呼叫控制功能 (CSCF, Call Session Control Function), 媒体网 关控制功能(MGCF, Media Gateway Control Function ), 媒体资源功能(MRF, Media Resource Function )和归属签约用户服务器 ( HSS, Home Subscriber Server )等功能实体组成。 其中 CSCF又可以分为服务 CSCF ( S-CSCF )、 代理 CSCF ( P-CSCF )和查询 CSCF ( I-CSCF ) 三个逻辑实体。 S-CSCF是 IMS的业务 交换中心, 执行会话控制, 维持会话状态, 负责管理 UE信息, 产生计费信息 等; P-CSCF是 UE接入 IMS的接入点, 完成 UE注册, 负责服务质量(QoS)控 制和安全管理等; I-CSCF负责 IMS域之间的互通,管理 S-CSCF的分配和选择, 对外隐藏网络拓朴和配置, 产生计费数据等。 MGCF控制网关, 实现 IMS和其 它网络的互通。 MRF提供媒体资源。 HSS存储 UE的签约数据和配置信息等。
IMS 网络主要釆用会话发起协议(SIP, Ses s ion Ini t ia l Protocol ) 以及直 径 ( Diameter )协议等。
SIP是一个应用层的控制协议, 可以用来建立、 修改和终止多媒体会话或 会议, SIP也支持邀请参与者参加已经存在的会话, 比如多方会议。
实时流协议(RTSP, Rea l Time Streaming Protocol )是应用级协议, 控 制实时数据的发送, 主要用于媒体流业务或因特网协议电视业务的实时数据 发送。 RTSP提供一种可扩展框架, 进行实时数据, 如音频与视频的受控传送 以及点播传送。 RTSP 目的在于控制多个数据传送会话, 提供选择传送通道的 方法, 提供基于 RTP选择传输机制的方法。
基于 IMS的 IPTV业务就是在 IMS整体架构下提供 IPTV业务,充分利用 IMS 网络中已有的注册、 认证、 路由、 会话控制与建立、 业务触发、 计费、 端到 端 QoS保证等机制来为 UE提供媒体流业务及融合媒体流和实时会话业务的多 媒体业务。 也就是说, UE到内容的多媒体会话是通过 IMS已有的会话控制机 制来完成, 在建立会话过程中, 需要为媒体流的传送预留承载资源。
图 1为现有技术基于 IMS的 IPTV业务的业务功能架构示意图,其中, IPTV 媒体功能实体 ( IPTV Media Funct ion ) 负责通过 IMS到 UE的媒体流的控制 和交付。 I PT V Me d i a Func t i on从功能角度可以分解为媒体控制功能实体( MCF , Media Control Funct ion ) 和媒体交付功能实体 ( MDF , Media Del ivery Funct ion )。 MDF通常为一些媒体服务器, 在 MCF的控制下向 UE传输媒体流, MCF还能接收和处理由 UE发送的播放控制操作命令, 这些命令通常釆用 RTSP 实现, 例如媒体流的快进、 后退、 暂停和定位等操作命令。 IPTV业务控制功 能 ( IPTV Service Control Funct ions )用于在通过 IMS核心 (Core )接收 到 UE发送的 IPTV业务请求时, 为 UE选择 IPTV Media Funct ion进行处理, IMS Core可以为 UE的 IPTV业务预留资源。
IPTV业务是一种向 UE提供多媒体内容的业务, 例如直播电视业务或视频 点播业务。 在视频点播业务中, 当媒体内容的规模比较大时, 需要存放在多
个媒体服务器中, 并且为了提高媒体内容检索的速度, 同一个媒体内容也可 能分片存放在不同的媒体服务器上。 在视频点播业务的使用过程中, UE 可以 进行视频盒式录制 (VCR, Video Cas set te Recording )操作, 如进行快进、 快退、 暂停以及定位等操作, 即可发送播放控制操作命令, 控制 IPTV媒体功 能实体传输的媒体流。 如果在正常播放过程中或 UE进行 VCR操作等原因导致 需要播放的媒体内容不在当前媒体服务器上时, 则需要切换到新的媒体服务 器上。
但是, 目前没有明确给出如何在媒体服务器的切换过程中不间断提供媒体 流的技术。 业界通常的做法是釆用媒体重协商的方式, 进行媒体服务器的切 换后, 再由切换到的媒体服务器提供媒体流, 即需要切换媒体服务器时, 通 过 IMS Core重新进行 UE和切换到的媒体服务器之间的媒体参数协商, 协商 完成后,切换到的媒体服务器为 UE提供包括媒体内容的媒体流。对于基于 IMS 的 IPTV业务来说, 就是使用 IMS Core的会话控制功能进行更改会话的操作, 以重新在 UE与切换到的媒体服务器之间协商媒体参数后进行切换, 该切换到 的媒体服务器为 UE提供包括媒体内容的媒体流。
在实现本发明的过程中, 发明人发现现有技术中至少存在如下问题: 上述这种在媒体服务器的切换过程中提供媒体流的方法存在降低 IMS网络 的响应速度的问题, 原因是媒体流的播放控制是 UE与 MCF之间直接进行处理 的, 而进行媒体重协商的会话控制是通过 IMS Core的 SIP信令处理的, 因此, 进行媒体重协商方式切换媒体服务器所经过的环节比较多,并需要重新在 IMS 网络中进行资源预留后, 才能由切换到的媒体服务器提供媒体流, 这些都会 影响 IMS网络的响应速度, 严重时会造成媒体流的中断, 影响通过 UE接收媒 体流的用户体验。
发明内容
本发明实施例提供一种媒体服务器切换过程中提供媒体流的方法, 该方法 能够在不影响 IMS 网络响应速度的情况下, 实现在媒体服务器切换过程中提
供媒体流, 不造成媒体流的中断。
本发明实施例还提供一种媒体服务器切换过程中提供媒体流的系统, 该系 统能够在不影响 IMS 网络响应速度的情况下, 实现在媒体服务器切换过程中 提供媒体流, 不造成媒体流的中断。
根据上述目的, 本发明实施例的技术方案是这样实现的:
一种媒体服务器切换过程中提供媒体流的方法, 所述媒体服务器为媒体交 付功能实体, 该方法包括:
为用户设备提供媒体流的媒体交付功能实体由第一媒体交付功能实体切 换到第二媒体交付功能实体;
第二媒体交付功能实体为用户设备提供的媒体流, 由第一媒体交付功能实 体代理发送。
一种媒体服务器切换过程中提供媒体流的系统, 所述媒体服务器为媒体交 付功能实体, 该系统包括: 第一媒体交付功能实体、 第二媒体交付功能实体、 媒体控制功能实体, 其中,
媒体控制功能实体, 用于在为用户提供媒体流的媒体交付功能实体由第一 媒体交付功能实体切换到第二媒体交付功能实体时, 控制第一媒体交付功能 实体和第二媒体交付功能实体;
第二媒体交付功能实体, 用于在媒体控制功能实体的控制下将为用户设备 提供的媒体流发送给第一媒体交付功能实体;
第一媒体交付功能实体, 用于在媒体控制功能实体的控制下代理发送从第 二媒体交付功能实体接收的媒体流给用户设备。
一种媒体服务器切换过程中提供媒体流的方法, 所述媒体服务器为媒体交 付功能实体, 该方法包括:
为用户设备提供媒体流的媒体交付功能实体由第一媒体交付功能实体切 换到第二媒体交付功能实体;
第二媒体交付功能实体使用媒体控制功能实体为该媒体流预先分配的媒
体参数发送媒体流。
一种媒体服务器切换过程中提供媒体流的系统, 所述媒体服务器为媒体交 付功能实体, 该系统包括: 第一媒体交付功能实体、 第二媒体交付功能实体、 媒体控制功能实体, 其中,
媒体控制功能实体, 用于为用户设备提供媒体流的媒体交付功能实体由第 一媒体交付功能实体切换到第二媒体交付功能实体时, 为第二媒体交付功能 实体分配与第一媒体交付功能实体发送媒体流的相同媒体参数后, 发送给第 二媒体交付功能实体;
第二媒体交付功能实体, 用于使用从媒体控制功能实体接收的媒体参数发 送媒体流给用户设备。
一种媒体服务器切换过程中提供媒体流的方法, 所述媒体服务器为媒体功 能实体, 该方法包括:
为用户设备提供媒体流的媒体功能实体由第一媒体功能实体切换到第二 媒体功能实体, 第二媒体功能实体为用户设备提供的媒体流, 由第一媒体功 能实体代理发送。
一种媒体服务器切换过程中提供媒体流的系统, 所述媒体服务器为媒体功 能实体, 该系统包括: 第一媒体功能实体、 第二媒体功能实体, 其中,
第二媒体功能实体, 用于为用户设备提供媒体流的媒体功能实体由第一媒 体功能实体切换到第二媒体功能实体时, 将为用户设备提供的媒体流发送给 第一媒体功能实体;
第一媒体功能实体, 用于代理发送从第二媒体功能实体接收的媒体流给用 户设备。
从上述方案可以看出, 本发明实施例提供的方法及系统, 在进行媒体服务 器切换过程中提供媒体流时, 不通过 IMS Core进行 UE和切换到的媒体服务 器之间的重协商过程, 而釆用当前为 UE服务的媒体服务器代理切换到的媒体 服务器的方式、 或者釆用给切换到的媒体服务器分配与当前为 UE服务的媒体
服务器相同的媒体流参数的方式, 提供媒体流, 从而在媒体服务器切换过程 中保持给 UE发送的媒体流的媒体流参数不变。 由于本发明实施例不像现有技 术那样釆用通过 IMS Core进行 UE和切换到的媒体服务器之间的重协商过程, 对于媒体服务器的切换只是在网络侧进行, 而不需要与 UE进行交互协商, 实 现了在不影响 IMS 网络响应速度的情况下实现在媒体服务器切换过程中提供 媒体流, 不造成媒体流的中断。
附图说明
图 1为现有技术基于 IMS的 IPTV业务的业务功能架构示意图;
图 2为本发明实施例媒体流代理方式实现媒体服务器切换的结构示意图; 图 3为本发明实施例媒体流代理方式实现媒体服务器切换的方法流程图; 图 4为本发明实施例媒体流的源 IP地址和端口号集中管理方式实现媒体 服务器切换的结构示意图;
图 5为本发明实施例媒体流的源 IP地址和端口号集中管理方式实现媒体 服务器切换的方法流程图;
图 6为本发明实施例播放控制及媒体代理方式实现媒体服务器切换的结构 示意图;
图 7为本发明实施例播放控制及媒体代理方式实现媒体服务器切换的方法 流程图;
图 8为本发明具体实施例一釆用 RTP级代理的媒体代理方式实现媒体服务 器切换的结构示意图;
图 9为本发明具体实施例一釆用 RTP级代理的媒体代理方式实现媒体服务 器切换的方法流程图;
图 10 为本发明具体实施例二釆用应用级代理的媒体代理方式实现媒体服 务器切换的方法流程图;
图 11为本发明具体实施例三釆用媒体流源 IP地址和端口号集中管理方式 实现切换媒体服务器的网络架构图;
图 12为本发明具体实施例三釆用媒体流源 IP地址和端口号集中管理方式 实现切换媒体服务器的方法流程图;
图 13 为本发明具体实施例四釆用播放控制及媒体代理方式实现媒体服务 器切换的结构示意图;
图 14 为本发明具体实施例四釆用播放控制及媒体代理方式实现媒体服务 器切换的方法流程图。
具体实施方式
为了在不影响 IMS网络响应速度的情况下实现在媒体服务器切换过程中提 供媒体流, 不造成媒体流的中断, 本发明实施例在基于 IMS的 IPTV业务使用 过程中, 当为 UE提供媒体流的媒体服务器发生切换时, 不进行 UE和切换到 的媒体服务器之间的重协商过程, 只在网络侧进行提供不同媒体流的媒体服 务器的切换过程, 保持给 UE发送的媒体流的媒体流参数不变。 在本发明实施 例中, 媒体流参数可以为媒体流的源 IP地址和端口号, 以下釆用媒体流的媒 体参数为媒体流的源 IP地址和端口号进行详细说明。
在提供媒体流的过程中发生媒体服务器切换的原因可以有多种,可以是 1 ) 由于 UE发送播放控制命令所指示的媒体内容不在当前为 UE提供媒体流的媒 体服务器上; 2 ) 由于当前为 UE提供媒体流的媒体服务器由于网络故障或自 身故障, 而导致需要切换到备份的媒体服务器为 UE提供媒体流; 3 ) 当 UE请 求的媒体内容比较大时, 分别存储到几个媒体服务器上, 由几个媒体服务器 进行切换, 为 UE提供不间断媒体内容的媒体流。
本发明实施例釆用上述原因 1 ), 即由于 UE发送播放控制命令所指示的媒 体内容不在当前为 UE提供媒体流的媒体服务器上, 而导致在提供媒体流时发 生媒体服务器切换进行详细说明。
具体地, 本发明实施例提供了三种类型的解决方式保持给 UE提供媒体流 在本次 IPTV业务中的源 IP地址和端口号不变, 这三种方式分别是媒体流代 理方式、 媒体流的源 IP地址和端口号集中管理方式、 以及播放控制及媒体代
理方式, 以下分别对这三种解决方式进行详细的说明。
第一种解决方式, 媒体流代理方式
图 2为本发明实施例媒体流代理方式实现在媒体服务器切换过程中提供媒 体流的网络结构示意图, 涉及到的实体包括 MCF、 MDF以及 UE。 其中, UE为 IPTV终端,用于接收 MDF发送的媒体流; MDF1是当前为 UE提供媒体流的 MDF , MDF2是切换后为 UE提供媒体流的 MDF。 UE和 MCF之间通过播放控制接口进行 信息交互, 该接口可以釆用 RTSP , MCF分别和 MDF1 以及 MDF2之间通过媒体 控制接口进行信息交互, MDF1和 UE之间通过媒体传送接口进行信息交互, MDF1 和 MDF2之间通过媒体代理接口进行信息交互。 在本实施例中, 其他 MDF也可 以通过媒体代理接口和 MDF1进行信息交互, 如 MDF3以及 MDF4等分别通过媒 体代理接口和 MDF1进行信息交互。
在基于 IMS的 IPTV业务使用过程中, UE通过播放控制接口访问 MCF , 发 送播放控制命令进行播放控制操作, 如快进、 快退以及定位等操作。 MCF接收 到 UE发送的播放控制命令后, 通过媒体控制接口控制 MDF1向 UE传送所需要 的媒体流, 该媒体流通过 MDF1和 UE之间的媒体传送接口传送。 当 MDF1没有 UE所需要的媒体内容时, 具有该媒体内容的其他 MDF , 如 MDF2在 MCF1的控 制下通过媒体代理接口将该媒体内容发送给 MDF1 ,由 MDF1通过媒体传送接口 代理发送给 UE。
图 3为本发明实施例媒体流代理方式实现在媒体服务器切换过程中提供媒 体流的方法流程图, 假设当前为 UE提供媒体内容的为 MDF1 , 切换后为 UE提 供媒体内容的为 MDF2 , 控制进行 MDF之间切换的为 MCF , 其具体步骤为: 步骤 301、 MCF在为 UE提供 IPTV业务时, 选择 MDF1 , 控制 MDF1为 UE发 送 UE所需要的媒体内容的媒体流。
在 UE向 MCF请求 IPTV业务时, 会携带媒体内容信息, MCF根据该媒体内 容信息确定具有对应媒体内容的 MDF , 控制所确定 MDF向 UE发送对应媒体内 容的媒体流。
步骤 302、 MDF1在 MCF的控制下, 分配媒体发送资源, 向 UE发送 UE所需 要的媒体内容的媒体流。
在本步骤中, 假定发送媒体流使用的源 IP地址以及端口号分别为 IP1和 Por t L
步骤 303、 UE在接收 MDF1发送的媒体流过程中, 进行 VCR操作, 即向 MCF 发送播放控制命令, MCF根据该命令携带的媒体内容信息确定需要切换到 MDF2 进行媒体流的传输, MDF2具有对应的媒体内容。
步骤 304、 MCF控制 MDF1代理发送 MDF2的媒体流, 发送给 UE。
步骤 305、 MDF1在 MCF的控制下, 从 MDF2获取代理的媒体流, 发送给 UE , 在发送媒体流的过程中, MDF1 仍然使用原有的源 IP 地址和端口号 (IP1 和
Por t l )。
步骤 306、 为 UE提供的 IPTV业务结束, MCF控制 MDF1和 MDF2分别释放 媒体发送资源, 停止媒体代理和媒体发送。
在上述实施例中,如果在步骤 305之后, UE又进行了 VCR操作, 需要 MDF3 为 UE提供媒体内容, 则 MCF控制 MDF1停止代理 MDF2中的媒体流, MDF1进行 MDF3的媒体流代理, 处理的过程与代理 MDF2中的媒体流过程相同。
第二种解决方式, 媒体流的源 IP地址和端口号集中管理方式
图 4为本发明实施例媒体流的源 IP地址和端口号集中管理方式实现媒体 服务器切换的结构示意图, 涉及到的实体包括 MCF、 MDF 以及 UE。 其中, UE 为 IPTV终端, 用于接收 MDF发送的媒体流; MDF1是当前为 UE提供媒体流的 MDF , MDF2是切换后为 UE提供媒体流的 MDF。 UE和 MCF之间通过播放控制接 口进行信息交互, 该接口可以釆用 RTSP , MCF分别和 MDF1 以及 MDF2之间通 过媒体控制接口进行信息交互, MDF1和 UE之间通过媒体传送接口进行信息交 互, MDF2 和 UE之间通过媒体传送接口进行信息交互。 在本实施例中, 其他 MDF也可以和 UE之间通过媒体传送接口进行信息交互, 如 MDF 3以及 MDF4等 分别和 UE之间通过媒体传送接口进行信息交互。
在本实施例中, MCF通过媒体控制接口, 控制 MDF1或 MDF2向 UE传送媒体 流, 且负责分配 MDF1或 MDF2向 UE传送媒体流时所使用的源 IP地址和端口 号, 即在 UE的本次 IPTV业务中分配给 MDF1或 MDF2发送媒体流的源 IP地址 和端口号保持不变。 MDF在 MCF的控制下, 使用 MCF分配的源 IP地址和端口 号通过媒体传送接口向 UE发送具有其需要的媒体内容的媒体流。
图 5为本发明实施例媒体流的源 IP地址和端口号集中管理方式实现媒体 服务器切换的方法示意图,假设当前为 UE提供媒体内容的为 MDF1 , 切换后为 UE提供媒体内容的为 MDF2 ,控制进行 MDF之间切换的为 MCF , 其具体步骤为: 步骤 501、 MCF在为 UE提供 IPTV业务时, 选择 MDF1 , 并分配本次 IPTV业 务发送媒体流所使用的源 IP地址和端口号, 假设为 IP1和 Por t l , 控制 MDF1 在本次 IPTV业务中为 UE传输媒体流使用该分配的 IP地址和端口号。
步骤 502、 MDF1在 MCF的控制下分配媒体发送资源, 向 UE发送媒体流, 媒体流的源 IP地址和端口号使用 MCF分配的 IP地址和端口号, 分别为 IP1 和 Por t L
步骤 503、 UE在接收 MDF1发送的媒体流过程中, 进行 VCR操作, 即向 MCF 发送播放控制命令, MCF根据该命令携带的媒体内容信息确定需要切换到 MDF2 进行媒体流的传输, MDF2具有对应的媒体内容。
步骤 504、 MCF控制 MDF2向 UE发送 UE所需媒体内容的媒体流, 媒体流的 源 IP地址和端口号使用 MCF分配的 IP地址和端口号, 分别为 IP1和 Por t l。
步骤 505、 MCF控制 MDF1释放为 UE分配的媒体发送资源, 控制 MDF1停止 向 UE发送媒体流, 即停止 IP1和 Por t l的使用。
步骤 506、 为 UE提供的 IPTV业务结束, MCF控制 MDF2释放为 UE分配的 媒体发送资源, 停止向 UE发送媒体流, MCF分配的 IP地址和端口号, 即 IP1 和 Por 11也被释放,可以提供给 UE在下次申请 IPTV业务时或其他 UE申请 I PTV 业务时使用。
在本实施例中, 在步骤 505之后, 如果 UE又进行了 VCR操作, 需要 MDF3
为 UE提供媒体内容, 则 MCF控制 MDF3使用分配给本次 IPTV业务的 IP地址 和端口号, 即 IP1和 p0r t l向 UE发送 UE所需要媒体内容的媒体流, 并指示 MDF2释放为 UE分配的媒体发送资源, 控制 MDF2停止为 UE发送媒体流。
第三种解决方式, 播放控制及媒体代理方式
图 6为本发明实施例播放控制及媒体代理方式实现媒体服务器切换的结构 示意图, 涉及的网络实体包括 IPTV 媒体功能实体、 SCF (Serv ice Control Funct ion,业务控制功能实体)和 UE。 IPTV媒体功能实体包括 MCF和 MDF, MCF 和 MDF 为逻辑功能实体, 实际部署中, 可能是同一个物理实体, 在这种情况 下, 当 MDF切换时, 实际上 MCF也需要进行切换, 在不进行媒体流重新协商 的情况下, 不仅仅 UE本次 IPTV业务的媒体流发送釆用不变的源 IP地址和端 口号, 进行播放控制的播放控制参数也需要保持不变, 因此, 可以釆用代理 的方式实现。
图 6中的 IPTV媒体功能实体 1是当前为 UE提供媒体流的 IPTV媒体功能 实体, IPTV媒体功能实体 1是切换后为 UE提供媒体流的 IPTV媒体功能实体。 UE为 IPTV终端。 UE和 IPTV媒体功能实体 1之间通过媒体播放控制接口和媒 体传送接口分别进行控制信息和媒体流的交互, 媒体播放控制接口可以釆用 RTSP , 媒体传送接口可以釆用实时传输协议 (RTP , Rea l-Time Transpor t Protocol )0 在 IPTV业务使用过程中, UE可以通过媒体播放控制接口进行播 放控制操作, 如快进、 快退、 定位以及暂停等操作。 SCF和 IPTV媒体功能实 体之间通过媒体管理接口进行信息交互, SCF向 IPTV媒体功能实体申请播放 控制资源和媒体发送资源, 以处理 UE的播放控制和向 UE传送所需要的媒体 流。
在具体实现中, IPTV媒体功能实体 1通过播放控制接口接收 UE的播放控 制命令后处理, IPTV媒体功能实体 1通过媒体传送接口向 UE传送媒体流。 IPTV 媒体功能实体 1和 IPTV媒体功能实体 1之间通过播放控制代理接口和媒体代 理接口分别进行控制信息和媒体流的交互,当 IPTV媒体功能实体 1上没有 UE
所需要的媒体内容时, 具有该媒体内容的 IPTV媒体功能实体 2将包括该媒体 内容的媒体流通过媒体代理接口发送给 IPTV媒体功能实体 1 ,由 IPTV媒体功 能实体 1代理 IPTV媒体功能实体 2发送给 UE。 IPTV媒体功能实体 1还负责 UE与 IPTV媒体功能实体 2之间的播放控制代理, UE发送的播放控制命令, 将由 IPTV媒体功能实体 1通过与 IPTV媒体功能实体 2之间的播放控制代理 接口转发给 IPTV媒体功能实体 2 , IPTV媒体功能实体 2的播放控制响应消息 也将由 IPTV媒体功能实体 1按照预先为该媒体流分配的播放控制参数转发给 UE。
图 7为本发明实施例播放控制及媒体代理方式实现媒体服务器切换的方法 流程图, 涉及的网络实体包括 UE、 当前为 UE提供媒体流的 IPTV媒体功能实 体 1、 切换后为 UE提供媒体流的 IPTV媒体功能实体 2以及 SCF, 其具体步骤 为:
步骤 701、 SCF在为 UE建立 IPTV业务过程中, 选择 IPTV媒体功能实体 1 为 UE提供媒体流, 指示 IPTV媒体功能实体 1处理 UE的播放控制和向 UE发 送 UE所需媒体内容的媒体流。
步骤 702、 IPTV媒体功能实体 1在业务控制功能的指示下, 为 UE分配播 放控制资源和媒体发送资源,假定发送媒体流的源 IP地址和端口号分别为 IP1 和 Portl , 播放控制的源 IP地址和端口号分别为 IP2和 Port2 , 将分配的播 放控制资源和媒体发送资源信息通过业务控制功能发送给 UE。
IPTV媒体功能实体 1从业务控制功能中得到 UE的接收媒体流地址,将发 送给 UE的媒体流发送到该地址上, 媒体流使用的源 IP地址和端口号分别为 IP1和 Portl。
IPTV媒体功能实体 1在 IP2和 Port2上监听 UE发送的播放控制命令。 步骤 703、 UE在接收 IPTV媒体功能实体 1发送的媒体流过程中进行 VCR 操作, 即发送播放控制命令给 IPTV媒体功能实体 1 , 携带请求的媒体内容信 息。 IPTV媒体功能实体 1接收到后判断自身没有该命令请求的媒体内容, 则
获取具有该命令请求的媒体内容的 IPTV媒体功能实体 2中的该媒体内容。 在本步骤中, IPTV媒体功能实体 1可以通过 SCF获取或直接查询相关数据 库定位到该命令请求的媒体内容存在 IPTV媒体功能实体 2中的信息, 还可以 釆用现有技术中的其他方法获取到。
步骤 704、 IPTV媒体功能实体 1向 IPTV媒体功能实体 1请求代理该命令 请求的媒体内容以及播放控制的代理。
步骤 7 05、 IPTV媒体功能实体 1转发 UE的播放控制命令给 IPTV媒体功能 实体 2 , 将 IPTV媒体功能实体 2的播放控制响应消息转发给 UE , 播放控制的 源 IP地址和端口号仍然分别为 IP2和 Por t 2。
步骤 706、 I PTV媒体功能实体 2 将该命令请求媒体内容的媒体流发送给 IPTV媒体功能实体 1 , 由 IPTV媒体功能实体 1转发给 UE , IPTV媒体功能实 体 1向 UE发送代理的媒体流时, 釆用的源 IP地址和端口号仍然分别为 IP1 和 Por t L
步骤 707、 为 UE提供的本次 IPTV业务结束时, 业务控制功能指示 IPTV媒 体功能实体 1释放播放控制资源和媒体发送资源, IPTV媒体功能实体 1除释 放自身为 UE分配的资源外, 指示 IPTV媒体功能实体 2释放为 UE分配的播放 控制资源和媒体发送资源。
在本实施例中, 步骤 706之后, 如果 UE又进行了 VCR操作, 需要使用新 的 IPTV媒体功能实体 3进行媒体流的传输, 则 IPTV媒体功能实体 1停止代 理 IPTV媒体功能实体 2的播放控制和媒体流,转而代理 IPTV媒体功能实体 3 的播放控制和媒体流, 但是, 值得注意的是, 媒体流发送的源 IP地址和端口 号仍然分别为 IP1和 Por t l ; 播放控制的源 IP地址和端口号仍然分别为 I P2 和 Por t 2。
以下几个具体实施例分别对上述三种解决方式进行举例说明。
具体实施例一, 釆用 RTP级代理的媒体代理方式
本实施例釆用媒体代理方式, 是基于 IMS的 IPTV业务的一个具体实施例,
其网络构架如图 8所示, 其中 UE、 IMS Core和 SCF是现有基于 IMS的 IPTV 业务的系统架构中已有的实体, 在本发明实施例中不做新的修改和要求。 本 发明实施例主要针对基于 IMS的 IPTV业务的系统架构中的 MCF以及 MDF进行 修改。
在图 8中, UE釆用已有的业务交互过程, 如 SIP交互过程通过 IMS Core 与 SCF进行交互, 建立 IPTV业务, 具体由 SCF选择 MCF, 再由 MCF选择一个 具有 UE请求的媒体内容的 MDF。 IPTV业务建立后, UE使用 RTSP进行 VCR操 作, 即向 MCF发送播放控制命令, 如果该命令请求的媒体内容不在当前为 UE 提供媒体流的 MDF上时, MCF选择另一个具有该命令请求的媒体内容的 MDF为 UE提供媒体流,提供媒体流的方式为当前为 UE提供媒体流的 MDF代理的方式, 且不更改本次 IPTV业务的媒体流发送的源 IP地址和端口号。
因此, 需要新增或修改的接口包括: MCF和 MDF之间的接口 C1以及 MDF之 间的接口 Ml。
图 9为本发明具体实施例一釆用 RTP级代理的媒体代理方式切换媒体服务 器的方法流程图, 涉及的网络实体包括 UE、 IMS Core 、 SCF、 MCF、 当前为 UE提供媒体流的 MDF1以及切换后为 UE提供媒体流的 MDF2 , 其具体步骤为: 步骤 901、 用户通过电子节目单选择某个节目后, UE向 IMS Core发送 SIP 访问 (INVITE ) 消息, 携带被选择节目对应的媒体内容信息以及 UE信息。
步骤 902、 IMS Core将 UE发送的 S IP INVITE消息路由到 SCF。
步骤 903、 SCF根据该消息携带的媒体内容信息和 UE信息, 对 UE是否有 权获取对应该媒体内容标识的媒体流, 进行鉴权计费。
步骤 904、 SCF对 UE进行鉴权计费通过后, 根据该消息携带的媒体内容信 息为 UE选择对应的 MCF。
在本步骤中,根据该消息携带的媒体内容信息选择对应的 MCF为现有技术, 不是本发明实施例保护的重点, 这里不再累述。
步骤 905、 SCF向选择的 MCF发送 S IP INVITE消息, 携带媒体内容信息和
UE信息。
在本步骤中, UE信息可以包括 UE位置等信息。
步骤 906、 MCF接收到 SCF发送的消息后, 根据该消息携带的媒体内容信 息为 UE选择提供该信息对应的媒体流的 MDF, 假设为 MDF1。
步骤 907、 MCF向 MDF1请求申请媒体发送资源, 以向 UE发送媒体流, MDF1 返回为媒体流分配的媒体发送资源信息。
在本步骤中, 媒体发送资源信息可以釆用会话描述协议 ( SDP, Session Description Protocol )描述, 包括发送媒体流的源 IP地址和端口号, 殳定 为 IP1和 PortL
步骤 908、 MCF建立与 UE之间的用于 VCR控制的 RTSP会话。
步骤 909、 MCF向 SCF返回 SIP 200消息, 携带媒体流的媒体发送资源信 息和建立的 RTSP会话信息。
步骤 910、 SCF将接收到的 SIP 200消息经 IMS Core路由。
步骤 911、 UE接收到该 S I P 200消息。
步骤 912、 UE返回 SIP ACK消息, 携带 UE信息。
在本步骤中, UE信息可以釆用 SDP描述。
步骤 913、 IMS Core接收到 UE的 SIP ACK消息后, 根据 UE侧以及 MDF侧 的 SDP描述, 为 UE预留用于传送媒体流的承载资源。
步骤 914、 SIP ACK消息路由到 SCF。
步骤 915、 SCF将接收到的 SIP ACK消息发送到 MCF。
步骤 916、 MCF根据该 SIP ACK消息获取 UE信息, 控制 MDF1向 UE发送包 括对应 UE请求的媒体内容信息的媒体内容的媒体流。
步骤 917、 在 MCF的控制下, MDF1将封装有媒体流的 RTP包发送到 UE。 步骤 918、 UE发送的 RTCP消息发送到 MDF处理。
RTCP是实时传输控制协议, 是与 RTP同时使用的, 用于向对端反馈 RTP传 送的一些信息, 例如 RTP的丟包情况等, 该 RTCP消息不是播放控制的协议。
RTCP消息为媒体流传输控制消息。
步骤 919、 MDF发送的 RTCP消息将发送到 UE处理。
步骤 920、 用户欣赏节目的过程中, 进行 VCR操作, 例如快进或快退等。 VCR操作的 RTSP消息发送到 MCF , 该消息携带要请求媒体内容信息, 包括媒 体内容标识等。
RTSP消息为播放控制消息。
步骤 921、 MCF检测得到该消息要请求的媒体内容不在 MDF1上, 则选择具 有该消息要请求的媒体内容的 MDF2。
步骤 922、 MCF向 MDF1请求代理 MDF2对应该请求携带的媒体内容信息的 媒体流, MDF1返回准备接收 MDF2发送的承载媒体流的 RTP包的接收 IP地址 和端口号, ^叚定为 IP2以及 Por t 2。
在本步骤中, 釆用的代理为 RTP级代理。
步骤 923、 MCF向 MDF2发送申请媒体发送资源的请求消息, 准备发送 UE 请求的媒体内容的媒体流给 MDF1 ,消息中携带媒体内容信息和 MDF1准备接收 媒体流的目的 IP地址和端口号 ( IP2和 Por t 2 )。
步骤 924、 MDF2根据 MCF发送的请求消息, 将包括对应该消息携带的媒体 内容信息的媒体内容的媒体流承载在 RTP包, 发送到 MDF1准备接收媒体流的 目的 IP地址和端口号上。
步骤 925、 MDF1将从 MDF2接收到的承载媒体流的 RTP包重新处理, 打包 为 IP包, 使用原来的源 IP地址和端口号 ( IP1和 Por t l )发送给 UE。
步骤 926、 UE发送的 RTCP消息将发送到 MDF1处理。
步骤 927、 MDF1发送的 RTCP消息将发送到 UE处理。
步骤 928、 用户结束节目的观看, 发送 S IP BYE消息。
步骤 929、 S IP BYE消息通过 IMS Core路由到 SCF。
步骤 930、 SCF将 S IP BYE消息发送到 MCF。
步骤 931、 MCF指示 MDF2释放为 UE分配的媒体发送资源。
步骤 932、 MCF指示 MDF1释放为 UE分配的媒体发送资源。
步骤 933、 MCF返回 S IP 200消息。
步骤 934、 SCF发送 S IP 200消息到 IMS Core。
步骤 935、 IMS Core接收到 SIP 200消息, 释放预留的承载媒体流资源。 步骤 936、 UE接收到 SIP 200消息, 本次 IPTV业务结束。
具体实施例二, 釆用应用级代理的媒体代理方法
在具体实施例一中, 媒体代理使用的是 RTP级代理, 即被代理的 MDF2发 送承载媒体流的 RTP包给 MDF1 , 由 MDF1处理后重新封装为 IP包发送给 UE。
在具体实施例二中, 媒体代理使用应用级的代理, 即 MDF2发送给 MDF1的 不是承载媒体流的 RTP包, 而是将媒体流直接发送给 MDF1 , 例如釆用文件传 输协议 ( FTP, Fi le Transfer Protocol )方式等发送, 由 MDF1 直接使用媒 体流组装 RTP包发送。
因此, 具体实施例二与具体实施例一中的网络逻辑架构完全一致, 大的流 程也基本一致, 只是 MCF与 MDF1、 MDF2以及 MDF1和 MDF2之间的交互有所不 同, 图 10所示的流程图列举了不同之处。
步骤 1022、 MCF向 MDF1请求代理 MDF2对应该请求携带的媒体内容信息的 媒体流, MDF1返回准备接收 MDF2媒体流的 IP包的接收 IP地址和端口号,假 定为 IP2以及 Por t2。
步骤 1023、 MCF向 MDF2发送申请媒体发送资源的请求消息, 准备发送 UE 请求的媒体内容给 MDF1 ,消息中携带媒体内容信息和 MDF1准备接收媒体流的 目的 IP地址和端口号 ( IP2和 Por t 2 )0
步骤 1024、 MDF2根据 MCF发送的请求消息, 将对应该消息携带的媒体内 容信息的媒体流发送到该消息携带的 MDF1准备接收媒体流的目的 IP地址和 端口号上。
发送媒体流时可以釆用 FTP方式。
步骤 1025、 MDF1将从 MDF2接收到的媒体流的封装为 RTP包, 使用原来的
源 IP地址和端口号 ( IP1和 Portl )发送给 UE。
在本实施例中,只需要将步骤 1022 ~ 1025替换了图 9中的步骤 922 ~ 925 , 其他的步骤如图 10所示即可实现具体实施例二。
具体实施例三, 媒体流源 IP地址和端口号集中管理的方式
本实施例使用 MCF在为 UE提供的本次 IPTV业务中, 集中管理为 UE发送 媒体流的源 IP地址和端口号。 媒体流的源 IP地址和端口号都是由 MCF集中 管理和分配, MDF发送承载媒体流的 RTP包给 UE时,媒体流发送的源 IP地址 和端口号使用 MCF分配的 IP地址和端口号, 而不能使用 MDF 自己的 IP地址 和端口号。 由于 MDF使用的 IP地址不是其本身的 IP地址, UE使用该 IP地址 作为目的地址发送给 MDF的 RTCP消息, 将不能直接路由给 MDF, 将路由到实 际具有该 IP地址的实体, 该实体需要负责转发 UE发送的 RTCP消息给对应的 MDF。 因此, 该实体需要获知 RTCP消息转发给哪一个 MDF, 需要建立 RTCP消 息原接收 IP地址和端口号与实际接收 IP地址和端口号的对应关系, 这里将 该实体称为 RTCP代理实体。
在具体实现中, RTCP代理实体可以为 MCF。 使用 MCF作为该 RTCP代理是 一个很好的选择, 因为这样不需要在基于 IMS的 IPTV业务网络构架中引入新 的实体和接口, 而且 MCF上已经具有真正为 UE提供媒体流的 MDF的 IP地址 和端口号,也就是可以获知 UE发送的 RTCP消息传输给哪一个 MDF。当然, RTCP 代理实体也可以为其他的实体,但是必须在该实体中预先建立 RTCP消息原 IP 接收地址和端口号与实际接收 IP地址和端口号之间的对应关系。
图 11为本发明具体实施例三釆用媒体流源 IP地址和端口号集中管理方式 实现切换媒体服务器的网络架构图, 与具体实施例一不同, MDF2不与 MDF1进 行信息交互, 而直接通过 RTP/RTCP接口与 UE进行信息交互, 将媒体流直接 传输给 UE (媒体流的媒体发送 IP地址和端口号由 MCF分配, 且保证在本次为 UE提供 IPTV业务的过程中不变, 即使 MDF已经切换)。 因此, 本实施例需要 新增或修改的接口包括: MCF和 MDF之间的接口 C2。
图 12为本发明具体实施例三釆用媒体流源 IP地址和端口号集中管理方式 切换媒体服务器的方法流程图, 涉及的网络实体包括 UE、 IMS Core 、 SCF、 MCF、 当前为 UE提供媒体流的 MDF1以及切换后为 UE提供媒体流的 MDF2 , 其 具体步骤为:
步骤 1201、用户通过电子节目单选择某个节目后, UE向 IMS Core发送 SIP INVITE消息, 携带被选择节目对应的媒体内容信息和 UE信息。
步骤 1202、 IMS Core将 UE发送的 SIP INVITE消息路由到 SCF。
步骤 1203、 SCF对 UE是否有权获取对应该媒体内容标识的媒体流, 进行 鉴权计费。
步骤 1204、 SCF对 UE进行鉴权计费通过后, 根据该消息携带的媒体内容 标识为 UE选择对应的 MCF。
步骤 1205、 SCF向选择的 MCF发送 SIP INVITE消息, 携带媒体内容信息 和 UE信息。
在本步骤中, UE信息可以包括 UE位置等信息。
步骤 1206、 MCF接收到 SCF发送的消息后, 根据该消息携带的媒体内容信 息为 UE选择提供该标识对应的媒体内容的媒体流的 MDF, 假设为 MDF1 , 并分 配用于本次 IPTV业务发送承载媒体流的 RTP包的源 IP地址和端口号, 假设 为 IP1和 PortL
该 IP地址可能不是 MDF1本身的 IP地址, 可能为其他实体的 IP地址, 例 如 MCF的 IP地址。
步骤 1207、 MCF向 MDF1请求申请媒体发送资源, 以向 UE发送媒体流, 并 指定使用 MCF分配的 IP地址和端口号( IP1 , Portl )作为发送承载媒体流的 RTP包的源 IP地址和端口号。
步骤 1208、 MCF建立与 UE之间的用于 VCR控制的 RTSP会话。
步骤 1209、 MCF向 SCF返回 SIP 200消息, 携带媒体流的媒体发送资源信 息和建立的 RTSP会话信息。
步骤 1210、 SCF将接收到的 SIP 200消息经 IMS Core路由。
步骤 1211、 UE接收到该 SIP 200消息。
步骤 1212、 UE返回 S IP ACK消息, 携带 UE信息。
在本步骤中, UE信息可以釆用 SDP描述。
步骤 1213、 IMS Core接收到 UE的 SIP ACK消息后, 根据 UE侧以及 MDF 侧的 SDP描述, 为 UE预留用于传送媒体流的承载资源。
步骤 1214、 S IP ACK消息路由到 SCF。
步骤 1215、 SCF将接收到的 SIP ACK消息发送到 MCF。
步骤 1216、 MCF根据该 SIP ACK消息获取 UE信息, 控制 MDF1向 UE发送 对应 UE请求的媒体内容信息的媒体流。
步骤 1217、 在 MCF的控制下, MDF1将封装有媒体流的 RTP包发送到 UE, 在 RTP包中使用的源 IP地址和端口号分别为 IP1和 Por t l。
步骤 1218、 封装有媒体流的 RTP包从 MDF1发送到 UE。
步骤 1219、 UE发送的 RTCP消息将发送到 IP地址为 IP1的实体, 假定为 MCF, 即 UE向发送媒体流的源 IP地址回复 RTCP消息, 不能直接到 MDF1 , 而 是要路由到 IP地址为 IP1的实体上, 即 MCF。
步骤 1220、 IP地址为 IP1的实体, 转发 RTCP消息给 MDF1。
在本步骤中, 具有 IP地址 IP1的实体为 MCF, MCF根据预先设置的对应关 系, 将 RTCP消息转发给 MDF1。 这里, 由于 IP1和 Por t l是由 MCF分配的, 所 以存储有 IP1和 Por t l与 MDF1之间的对应关系。
步骤 1221、 MDF1发送的 RTCP消息, 发送到 IPTV终端。
步骤 1222、 用户欣赏节目的过程中, 进行 VCR操作, 例如快进或快退等。 VCR操作的 RTSP消息发送到 MCF , 该消息携带要请求媒体内容信息, 包括媒 体内容标识等。
RTSP消息为播放控制消息。
步骤 1223、 MCF检测得到该消息要请求的媒体内容不在 MDF1上, 则选择
具有该消息要请求的媒体内容的 MDF2。
步骤 1224、 MCF向 MDF2发送申请媒体发送资源的请求消息, 以传送指定 的媒体内容,并指定使用 MCF为本次 IPTV业务已分配的 IP地址和端口号( IP1 和 Portl )作为媒体流的源 IP地址和端口号。
步骤 1225、MCF指示 MDF1释放媒体发送资源, MDF1停止向 UE发送媒体流, 释放对 IP1和 Portl的使用。
步骤 1226、 MDF2根据 MCF发送的请求消息, 将对应该消息携带的媒体内 容信息的媒体流承载在 RTP包发送给 UE,使用 MCF指定的 IP地址和端口号( IP1 和 Portl )作为媒体流的源 IP地址和端口号。
步骤 1227、 UE发送的 RTCP消息将发送到 IP地址为 IP1的实体, 假定为
MCF, 即 UE向发送媒体流的源 IP地址回复 RTCP消息, 不能直接到 MDF2 , 而 是要路由到 IP地址为 IP1的实体上, 即 MCF。
步骤 1228、 IP地址为 IP1的实体, 转发 RTCP消息给 MDF2。
在本步骤中, 具有 IP地址 IP1的实体为 MCF, MCF根据预先设置的对应关 系, 将 RTCP消息转发给 MDF2。 这里, 由于 IP1和 Portl是由 MCF分配的, 所 以存储有 IP1和 Portl与 MDF2之间的对应关系。
步骤 1229、 MDF2发送的 RTCP消息, 发送到 UE。
步骤 1230、 用户结束节目的观看, UE发送 SIP BYE消息。
步骤 1231、 SIP BYE消息通过 IMS Core路由到 SCF。
步骤 1232、 SCF将 SIP BYE消息发送到 MCF。
步骤 1233、 MCF指示 MDF2释放为 UE分配的媒体发送资源。
步骤 1234、 MCF释放为 UE本次 IPTV业务分配的 IP地址和端口号( IP1和
Portl ) , 该 IP地址和端口号可以分给其他 UE或该 UE在下次 IPTV业务中使 用。
步骤 1235、 MCF返回 SIP 200消息。
步骤 1236、 SCF发送 SIP 200消息到 IMS Core。
步骤 1237、 IMS Core接收到 SIP 200消息, 释放预留的承载媒体流资源。 步骤 1238、 UE接收到 SIP 200消息, 本次 IPTV业务结束。
具体实施例四, 播放控制代理及媒体代理方式
本实施例釆用播放控制代理及媒体代理方式, 是基于 IMS的 IPTV业务的 一个具体实施例, 其网络架构如图 13所示, 其中 UE、 IMS Core和 SCF是现 有基于 IMS的 IPTV业务的系统架构中已有的实体, 在本发明实施例中不做新 的修改和要求。 本发明实施例主要针对基于 IMS的 IPTV业务的系统架构中的 IPTV媒体功能实体进行修改。
在图 13中, UE釆用已有的业务交互过程, 如 SIP交互过程通过 IMS Core 与 SCF进行交互, 选择 IPTV媒体功能实体, 建立 IPTV业务, 包括媒体播放 控制的协商和媒体流的协商。 IPTV业务建立后, UE使用 RTSP进行 VCR操作, 即向当前为 UE提供服务的 IPTV媒体功能实体发送播放控制命令, 如果该命 令请求的媒体内容不在当前为 UE提供服务的 IPTV媒体功能实体上时,该 IPTV 媒体功能实体选择另一个具有该媒体内容的新 IPTV媒体功能实体。该新 IPTV 媒体功能实体不能与 UE直接交互, 而是由当前为 UE提供服务的 IPTV媒体功 能实体直接与 UE进行交互,播放控制及媒体流均由当前为 UE提供服务的 IPTV 媒体功能实体进行代理转发, 从而在 UE的本次 IPTV业务中实现发送媒体流 的源 I P地址和端口号不变。
因此, 需要新增或修改的接口包括: IPTV媒体功能实体之间的接口 C3和 M3, 分别完成播放控制代理和媒体流代理。
图 14 为本发明具体实施例四釆用播放控制代理及媒体代理方式实现切换 媒体服务器的方法流程图, 涉及的网络实体包括 UE、 IMS Core 、 SCF、 当前 为 UE提供媒体流的 IPTV媒体功能实体 1以及切换后为 UE提供媒体流的 IPTV 媒体功能实体 2 , 其具体步骤为:
步骤 1401、用户通过电子节目单选择某个节目后, UE向 IMS Core发送 SIP INVITE消息, 携带被选择节目对应的媒体内容信息和 UE信息。
步骤 1402、 IMS Core将 UE发送的 SIP INVITE消息路由到 SCF。
步骤 1403、 SCF对 UE是否有权获取对应该媒体内容标识的媒体流, 进行 鉴权计费。
步骤 1404、 SCF对 UE进行鉴权计费通过后, 根据该消息携带的媒体内容 信息为 UE选择对应的 IPTV媒体功能实体 1。
步骤 1405、 SCF向 IPTV媒体功能实体 1发送 SIP INVITE消息, 携带媒体 内容信息和 UE信息。
在本步骤中, UE信息可以包括 UE位置等信息。
步骤 1406、 IPTV媒体功能实体 1分配媒体发送资源, 获取本端媒体信息, 可以釆用 SDP进行描述, 支设本端媒体地址为 IP1和 Por t l。
步骤 1407、 IPTV媒体功能实体 1分配播放控制资源, 获取本端播放控制 的 SDP描述, 建立与 UE之间建立 RTSP会话。
在本步骤中, 假设本端媒体播放控制地址为 IP2以及 Por t2。
步骤 1408、 IPTV媒体功能实体 1向 SCF返回 SIP 200消息, 携带媒体发 送资源信息的 SDP描述和播放控制信息的 SDP描述。
步骤 1409、 S IP 200消息经过 IMS Core路由。
步骤 1410、 UE接收到携带媒体流发送资源信息的 SDP描述和播放控制信 息的 SDP描述的 SIP 200消息。
步骤 1411、 UE返回 S IP ACK消息, 携带 UE信息。
在本步骤中, UE信息釆用 SDP描述。
步骤 1412、 IMS Core处理 UE的 SIP ACK消息, 根据 UE侧和 IPTV媒体功 能实体 1侧的 SDP描述, 为 UE预留将用于传送媒体流的承载资源。
步骤 1413、 S IP ACK消息路由到 SCF , 携带 UE信息。
步骤 1414、 SCF处理 SIP ACK消息, 发送 SIP ACK消息到 IPTV媒体功能 实体 1 , 携带 UE信息。
步骤 1415、 IPTV媒体功能实体 1根据接收到消息携带的 UE信息确定发送
媒体流的地址, 向 UE传送承载媒体流的 RTP包, 并监听是否有 RTSP消息。 在本步骤中, RTSP消息就是播放控制命令。
步骤 1416、 承载媒体流的 RTP包从 IPTV媒体功能实体 1发送到 UE。
步骤 1417、 UE发送的 RTCP消息发送到 IPTV媒体功能实体 1。
步骤 1418、 IPTV媒体功能实体 1发送的 RTCP消息发送到 UE处理。
步骤 1419、 用户欣赏节目的过程中, 进行 VCR操作, 例如快进或快退等。
VCR操作的 RTSP消息发送到 IPTV媒体功能实体 1上,携带要请求的媒体内容 信息, 如媒体内容标识等。
步骤 1420、 IPTV媒体功能实体 1检测到自身没有对应于该消息携带的媒 体内容信息的媒体内容, 查询保存媒体内容位置的数据库或釆用现有技术的 方法, 选择具有对应该消息携带的媒体内容信息的媒体内容的 IPTV媒体功能 实体, 这里假设为 IPTV媒体功能实体 2。
步骤 1421、 IPTV媒体功能实体 1向 IPTV媒体功能实体 1请求代理 IPTV 媒体功能实体 1的播放控制消息和媒体流。
步骤 1422、 IPTV媒体功能实体 1 申请本端的播放控制资源和媒体发送资 源。
步骤 1423、 IPTV媒体功能实体 2向 IPTV媒体功能实体 1返回 IPTV媒体 功能实体 2侧播放控制资源和媒体发送资源的信息, 该信息可以釆用 SDP进 行描述。
步骤 1424、 IPTV媒体功能实体 1向 IPTV媒体功能实体 1发送对应该消息 携带的媒体内容信息的媒体内容的媒体流。
步骤 1425、 IPTV媒体功能实体 1将从 IPTV媒体功能实体 1接收到的媒体 流, 重新处理后封装为 IP包发送给 IPTV终端。
在本步骤中, 媒体流的源 IP地址和端口号仍然使用 IP媒体功能实体 1的 IP地址和端口号。
步骤 1426、 IPTV媒体功能实体 1接收到 IPTV终端的 RTCP消息, 根据目
的 IP地址和端口号, 识别出需要代理转发给 IPTV媒体功能实体 2。
步骤 1427、 RTCP消息从 IPTV媒体功能实体 1代理转发给 IPTV媒体功能 实体 2。
步骤 1428、 IPTV媒体功能实体 2的 RTCP消息发送给 IPTV媒体功能实体 1。 步骤 1429、 IPTV媒体功能实体 1将来自 IPTV媒体功能实体 1的 RTCP消 息发送给 UE。
步骤 1430、 用户进行 VCR操作, UE发送 RTSP消息发送给 IPTV媒体功能 实体 1。
步骤 1431、 IPTV媒体功能实体 1转发 RTCP消息给 IPTV媒体功能实体 2。 步骤 1432、 IPTV媒体功能实体 1的 RTSP消息发送给 IPTV媒体功能实体 1。 步骤 1433、 IPTV媒体功能实体 1转发 IPTV媒体功能实体 1的 RTSP消息 给 UE。
步骤 1434、 用户结束节目的观看, 发送 SIP BYE消息。
步骤 1435、 S IP BYE消息经 IMS Core路由到 SCF。
步骤 1436、 SCF处理 SIP BYE消息后, 发送 SIP BYE消息给 IPTV媒体功 能实体 1。
步骤 1437、 IPTV媒体功能实体 1指示 IPTV媒体功能实体 2释放播放控制 资源和媒体发送资源。
步骤 1438、 IPTV媒体功能实体 1释放自身的播放控制资源和媒体发送资 源。
步骤 1439、 IPTV媒体功能实体 1返回 S IP 200消息。
步骤 1440、 SCF发送 SIP 200消息到 IMS Core。
步骤 1441、 IMS Core接收到 SIP 200消息, 释放预留的承载资源, 将该 消息发送给 UE。
步骤 1442、 UE接收到 SIP 200消息后, 本次 IPTV业务结束。
在图 14中, IPTV媒体功能实体 1代理 IPTV媒体功能实体 1发送的媒体流
时, 也可以釆用 RTP级代理或应用级代理的代理方式进行代理。
综上所述, 本发明实施例提供了在 IPTV业务使用过程中, 在 UE进行 VCR 操作等原因导致媒体服务器需要切换的情况下, 保持媒体流发送的源 IP地址 和端口号保持不变。 本发明通过保持媒体流发送的源 IP地址和端口号保持不 变的方案, 可以保证不需要进行 UE和第二媒体服务器, 即切换后的媒体服务 器之间进行再次协商, 提高了基于 IMS的 IPTV业务的网络提供媒体流的响应 速度, 避免 IPTV业务使用过程中由于媒体服务器切换而导致的媒体流的传输 延迟, 而影响的用户感受。
以上是对本发明具体实施例的说明, 在具体的实施过程中可对本发明的方 法进行适当的改进, 以适应具体情况的具体需要。 因此可以理解, 根据本发 明的具体实施方式只是起示范作用, 并不用以限制本发明的保护范围。
Claims
权 利 要求 书
1、 一种媒体服务器切换过程中提供媒体流的方法, 其特征在于, 所述媒体 服务器为媒体交付功能实体, 该方法包括:
为用户设备提供媒体流的媒体交付功能实体, 由第一媒体交付功能实体切换 到第二媒体交付功能实体;
第二媒体交付功能实体为用户设备提供的媒体流, 由第一媒体交付功能实体 代理发送。
1、 如权利要求 1 所述的媒体服务器切换过程中提供媒体流的方法, 其特征 在于, 所述代理发送是由媒体控制功能实体控制进行的, 所述媒体控制功能实 体管辖第一媒体交付功能实体和第二媒体交付功能实体。
3、 如权利要求 1或 1所述的媒体服务器切换过程中提供媒体流的方法, 其 特征在于, 所述代理包括: 实时传输协议包级代理、 内容级代理。
4、 如权利要求 1或 1所述的媒体服务器切换过程中提供媒体流的方法, 其 特征在于, 所述代理发送包括:
第二媒体交付功能实体将为用户设备提供的媒体流发送给第一媒体交付功 能实体, 第一媒体交付功能实体使用预先为该媒体流分配的媒体参数发送该媒 体流, 所述为该媒体流分配的媒体参数与第一媒体交付功能实体为用户设备提 供的媒体流所分配的媒体参数相同。
5、 一种媒体服务器切换过程中提供媒体流的系统, 其特征在于, 所述媒体 服务器为媒体交付功能实体, 该系统包括: 第一媒体交付功能实体、 第二媒体 交付功能实体、 媒体控制功能实体, 其中,
媒体控制功能实体, 用于在为用户提供媒体流的媒体交付功能实体由第一媒 体交付功能实体切换到第二媒体交付功能实体时, 控制第一媒体交付功能实体 和第二媒体交付功能实体;
第二媒体交付功能实体, 用于在媒体控制功能实体的控制下将为用户设备提 供的媒体流发送给第一媒体交付功能实体;
第一媒体交付功能实体, 用于在媒体控制功能实体的控制下代理发送从第二 媒体交付功能实体接收的媒体流给用户设备。
6、 一种媒体服务器切换过程中提供媒体流的方法, 其特征在于, 所述媒体 服务器为媒体交付功能实体, 该方法包括:
为用户设备提供媒体流的媒体交付功能实体由第一媒体交付功能实体切换 到第二媒体交付功能实体;
第二媒体交付功能实体使用媒体控制功能实体为该媒体流预先分配的媒体 参数发送媒体流。
7、 如权利要求 6 所述的媒体服务器切换过程中提供媒体流的方法, 其特征 在于, 所述媒体控制功能实体为该媒体流预先分配的媒体参数保持不变, 与第 一媒体交付功能实体发送媒体流所使用的媒体参数相同。
8、 一种媒体服务器切换过程中提供媒体流的系统, 其特征在于, 所述媒体 服务器为媒体交付功能实体, 该系统包括: 第一媒体交付功能实体、 第二媒体 交付功能实体、 媒体控制功能实体, 其中,
媒体控制功能实体, 用于为用户设备提供媒体流的媒体交付功能实体由第一 媒体交付功能实体切换到第二媒体交付功能实体时, 为第二媒体交付功能实体 分配与第一媒体交付功能实体发送媒体流的相同媒体参数后, 发送给第二媒体 交付功能实体;
第二媒体交付功能实体, 用于使用从媒体控制功能实体接收的媒体参数发送 媒体流给用户设备。
9、 一种媒体服务器切换过程中提供媒体流的方法, 其特征在于, 所述媒体 服务器为媒体功能实体, 该方法包括:
为用户设备提供媒体流的媒体功能实体由第一媒体功能实体切换到第二媒 体功能实体, 第二媒体功能实体为用户设备提供的媒体流, 由第一媒体功能实 体代理发送。
10、 如权利要求 9所述的媒体服务器切换过程中提供媒体流的方法, 其特征
在于, 所述代理发送为:
第二媒体功能实体将为用户设备提供的媒体流发送给第一媒体功能实体, 第 一媒体功能实体使用预先为该媒体流分配的媒体参数发送该媒体流, 所述为该 媒体流分配的媒体参数与第一媒体功能实体为用户设备提供的媒体流所分配的 媒体参数相同。
11、 如权利要求 9所述的媒体服务器切换过程中提供媒体流的方法, 其特征 在于, 该方法进一步包括:
第二媒体功能实体为用户设备提供的播放控制响应消息, 由第一媒体功能实 体代理发送。
12、 如权利要求 9所述的媒体服务器切换过程中提供媒体流的方法, 其特征 在于, 所述方法还包括:
所述第一媒体功能实体接收到的用户设备发送的播放控制消息后, 将所述播 放控制消息发送给第二媒体功能实体;
所述第一媒体功能实体将接收到的第二媒体功能实体处理播放控制消息后 生成的播放控制响应消息, 利用预先为该媒体流分配的播放控制参数将所述播 放控制响应消息发送给用户设备。
1 3、 一种媒体服务器切换过程中提供媒体流的系统, 其特征在于, 所述媒体 服务器为媒体功能实体, 该系统包括: 第一媒体功能实体、 第二媒体功能实体, 其中,
第二媒体功能实体, 用于为用户设备提供媒体流的媒体功能实体由第一媒体 功能实体切换到第二媒体功能实体时, 将为用户设备提供的媒体流发送给第一 媒体功能实体;
第一媒体功能实体, 用于代理发送从第二媒体功能实体接收的媒体流给用户 设备。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200710128416.1A CN101340428A (zh) | 2007-07-05 | 2007-07-05 | 媒体服务器切换过程中提供媒体流的方法及系统 |
| CN200710128416.1 | 2007-07-05 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2009006820A1 true WO2009006820A1 (en) | 2009-01-15 |
Family
ID=40214383
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2008/071494 Ceased WO2009006820A1 (en) | 2007-07-05 | 2008-06-30 | Method and system for providing media flow during swith of media servers |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN101340428A (zh) |
| WO (1) | WO2009006820A1 (zh) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103929436B (zh) * | 2014-05-06 | 2017-06-06 | 北京邮电大学 | 一种限制ims网络中反复媒体协商的方法 |
| EP3176987B1 (en) * | 2014-09-10 | 2019-10-02 | Sony Corporation | Communication control device, communication control method and communication system |
| CN104811827A (zh) | 2015-04-20 | 2015-07-29 | 中兴通讯股份有限公司 | 报文发送方法、码流处理方法及装置 |
| US10341128B2 (en) * | 2016-03-12 | 2019-07-02 | Wipro Limited | Method and system for optimizing usage of network resources in a communication network |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050114472A1 (en) * | 2003-10-27 | 2005-05-26 | Wai-Tian Tan | Methods and systems for dynamically configuring a network component |
| WO2006066889A1 (en) * | 2004-12-23 | 2006-06-29 | Siemens S.P.A. | Method and system to minimize the switching delay between two rtp multimedia streaming sessions |
| US20060182052A1 (en) * | 2005-02-15 | 2006-08-17 | Samsung Electronics Co.; Ltd | System for providing internet protocol broadcast services and a method thereof |
| CN1859525A (zh) * | 2005-12-29 | 2006-11-08 | 华为技术有限公司 | 一种实现流媒体切换的方法及流媒体服务器 |
| CN101083605A (zh) * | 2007-08-01 | 2007-12-05 | 华为技术有限公司 | 一种媒体源快速切换的方法、系统和装置 |
-
2007
- 2007-07-05 CN CN200710128416.1A patent/CN101340428A/zh active Pending
-
2008
- 2008-06-30 WO PCT/CN2008/071494 patent/WO2009006820A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050114472A1 (en) * | 2003-10-27 | 2005-05-26 | Wai-Tian Tan | Methods and systems for dynamically configuring a network component |
| WO2006066889A1 (en) * | 2004-12-23 | 2006-06-29 | Siemens S.P.A. | Method and system to minimize the switching delay between two rtp multimedia streaming sessions |
| US20060182052A1 (en) * | 2005-02-15 | 2006-08-17 | Samsung Electronics Co.; Ltd | System for providing internet protocol broadcast services and a method thereof |
| CN1859525A (zh) * | 2005-12-29 | 2006-11-08 | 华为技术有限公司 | 一种实现流媒体切换的方法及流媒体服务器 |
| CN101083605A (zh) * | 2007-08-01 | 2007-12-05 | 华为技术有限公司 | 一种媒体源快速切换的方法、系统和装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101340428A (zh) | 2009-01-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100579209C (zh) | 基于ngn网络实现时移电视业务的方法及系统、媒体资源设备 | |
| CN101547189B (zh) | 一种CoD业务的建立方法,系统和装置 | |
| US8046479B2 (en) | Media channel management | |
| US8307049B2 (en) | Method and device for obtaining media description information of IPTV services | |
| WO2010115331A1 (zh) | 内容定位方法及内容分发网络节点 | |
| WO2007093126A1 (en) | A streaming media network system, a realization method and a enable entity of streaming media service | |
| WO2009024092A1 (en) | Method and system for controlling the authorization of service resource | |
| CN101026617B (zh) | 一种ims网络中媒体资源调度方法 | |
| CN101378491B (zh) | 一种实现画中画视频的方法、系统及实体装置 | |
| WO2008134955A1 (en) | Method, system and apparatus for applying terminal capability information in iptv service | |
| CA2653227A1 (en) | Method and apparatuses for establishing a session between a client terminal and a media supply system to transport a unicast media stream over an ip network | |
| WO2011015015A1 (zh) | 内容上行方法及内容交付功能实体 | |
| WO2009006820A1 (en) | Method and system for providing media flow during swith of media servers | |
| CN101415250B (zh) | Ip互联网络电视系统中会话建立的方法、系统及实体 | |
| CN101378401B (zh) | 业务资源授权控制的方法、系统和设备 | |
| WO2009003408A1 (en) | Media stream switching method, system and equipment in time-shift television service | |
| CN101114985B (zh) | 编解码转换系统及方法 | |
| CN101998145A (zh) | 一种提高移动终端单播服务质量的内容分发方法及系统 | |
| CN101426124B (zh) | 下一代通信网络中交互式网络电视系统的时移方法 | |
| WO2008098504A1 (en) | Method and system for providing multicast service and device for providing multicast service parameter | |
| CN101483532B (zh) | 一种媒体流复制的方法、系统及设备 | |
| CN101662407A (zh) | 附着到对等网络及获取iptv内容的方法、系统和装置 | |
| CN101662654A (zh) | 基于ims的网络电视系统及该系统的实现方法和装置 | |
| WO2009012714A1 (en) | A method and a device for controlling streaming media | |
| WO2009043241A1 (fr) | Procédé, système et dispositif permettant à une entité prestataire de services de réguler un flux multimédia |
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: 08757888 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 08757888 Country of ref document: EP Kind code of ref document: A1 |