CN114095759A - Streaming media redirection method and related device - Google Patents

Streaming media redirection method and related device Download PDF

Info

Publication number
CN114095759A
CN114095759A CN202010770104.6A CN202010770104A CN114095759A CN 114095759 A CN114095759 A CN 114095759A CN 202010770104 A CN202010770104 A CN 202010770104A CN 114095759 A CN114095759 A CN 114095759A
Authority
CN
China
Prior art keywords
media server
service
taken over
idle
media
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.)
Granted
Application number
CN202010770104.6A
Other languages
Chinese (zh)
Other versions
CN114095759B (en
Inventor
洪家明
关义俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hytera Communications Corp Ltd
Original Assignee
Hytera Communications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hytera Communications Corp Ltd filed Critical Hytera Communications Corp Ltd
Priority to CN202010770104.6A priority Critical patent/CN114095759B/en
Publication of CN114095759A publication Critical patent/CN114095759A/en
Application granted granted Critical
Publication of CN114095759B publication Critical patent/CN114095759B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2405Monitoring of the internal components or processes of the server, e.g. server load
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2404Monitoring of server processing errors or hardware failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/27Server based end-user applications
    • H04N21/274Storing end-user multimedia data in response to end-user request, e.g. network recorder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network 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/63Control 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/64Addressing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network 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/63Control 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/643Communication protocols

Abstract

The application discloses a streaming media redirection method and a related device, wherein the method comprises the following steps: determining a media server to be taken over; the method comprises the steps of taking over the service of a media server to be taken over, wherein the service of the media server to be taken over at least comprises service data stored by the media server to be taken over and other types of services established by the media server to be taken over; and sending a redirection request to a terminal related to the service through an RTCP protocol so that the terminal takes an idle media server as a new target media server of the service, wherein the idle media server is a media server of which the service processing resource meets the set condition. The streaming media redirection method can rapidly complete service recovery when the media server is abnormal or needs to perform service transfer, and ensures stable data interaction when the media server is abnormal or performs service transfer, thereby improving user experience.

Description

Streaming media redirection method and related device
Technical Field
The present application relates to the field of communications, and in particular, to a method and a related apparatus for redirecting streaming media.
Background
When streaming media is transmitted, situations may occur that a media server needs to transfer a service of the media server itself, or the media server is abnormal due to abnormal reasons such as power failure and hardware damage, and further data interaction between the media server and a terminal is blocked or suspended, and stable data interaction cannot be guaranteed.
Disclosure of Invention
The technical problem mainly solved by the application is to provide a streaming media redirection method and a related device which can ensure stable data interaction when a media server is abnormal or service transfer is carried out.
In order to solve the technical problem, the application adopts a technical scheme that: provided is a streaming media redirection method, comprising:
determining a media server to be taken over;
taking over the service of the media server to be taken over, wherein the service of the media server to be taken over at least comprises service data stored by the media server to be taken over and other types of services established by the media server to be taken over;
and sending a redirection request to a terminal related to the service through an RTCP protocol so that the terminal takes an idle media server as a new target media server of the service, wherein the idle media server is a media server with service processing resources meeting set conditions.
In order to solve the above technical problem, another technical solution adopted by the present application is to provide a streaming media redirection method, where the method includes:
receiving a redirection request, wherein the redirection request is sent through an RTCP protocol;
and responding to the redirection request, and taking an idle media server as a new target media server of the corresponding service, wherein the idle media server is a media server of which the service processing resource meets the set condition.
In order to solve the above technical problem, another technical solution adopted by the present application is to provide a media server, including a processor, and a memory and a communication circuit coupled to the processor;
wherein the content of the first and second substances,
the communication circuit is used for communicating with other equipment;
the memory is used for storing a computer program;
the processor is adapted to run the computer program to perform the method as described above.
In order to solve the above technical problem, another technical solution adopted by the present application is to provide a communication terminal, including a processor, and a memory and a communication circuit coupled to the processor; wherein the content of the first and second substances,
the communication circuit is used for communicating with other equipment;
the memory is used for storing a computer program;
the processor is adapted to run the computer program to perform the method as described above.
In order to solve the above technical problem, another technical solution adopted by the present application is to provide a communication system, including a plurality of connected media servers and a plurality of communication terminals; each communication terminal is respectively connected with at least one media server;
the media server is the media server as described above, and the communication terminal is the communication terminal as described above, so that when the communication system has a media server to be taken over, the idle media server takes over the service of the media server to be taken over, and redirection between the communication terminal having the service with the media server to be taken over is realized.
Compared with the prior art, according to the technical scheme provided by the application, after the media server to be replaced is determined, the service of the media server to be replaced is replaced, and the redirection request is sent to the communication terminal related to the service of the media server to be replaced through the RTCP protocol, so that the communication terminal takes the idle media server as a new target media server of the service, the service recovery is quickly completed when the media server is abnormal or needs to perform service transfer, stable data interaction is ensured when the media server is abnormal or performs service transfer, and further the user experience is improved.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of a media server according to the present application;
fig. 2 is a schematic structural diagram of an embodiment of a communication terminal according to the present application;
fig. 3 is a schematic structural diagram of an embodiment of a communication system according to the present application;
fig. 4 is a schematic flowchart illustrating an embodiment of a streaming media redirection method according to the present application;
fig. 5 is a schematic partial structural diagram of a redirection request in an embodiment of a streaming media redirection method according to the present application;
fig. 6 is a schematic flowchart of another embodiment of a streaming media redirection method according to the present application;
fig. 7 is a schematic flowchart illustrating an embodiment of a streaming media redirection method according to the present application;
fig. 8 is a schematic view of an application scenario in an embodiment of a streaming media redirection method according to the present application;
fig. 9 is a schematic view of an application scenario in another embodiment of a streaming media redirection method according to the present application;
fig. 10 is a schematic structural diagram of an embodiment of a storage medium according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Before describing the streaming media redirection method provided by the present application, a media server, a communication terminal (hereinafter, referred to as a terminal for short in some embodiments) and a communication system provided by the present application are first described.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an embodiment of a media server according to the present application. In the current embodiment, the media server 100 provided herein includes a processor 101, and a memory 102 and a communication circuit 103 coupled to the processor 101.
The communication circuit 103 is configured to communicate with other devices (not shown) under the control of the processor 101, so as to receive data or message instructions or send data or message instructions to the outside. Specifically, the media server 100 provided in the present application may communicate with an external communication terminal (not shown) or an external other media server (not shown), respectively, to perform data interaction.
The memory 102 is used for storing a computer program, and the computer program stored in the memory 102 can implement the method described in any one of the embodiments of fig. 4 to fig. 6 and the corresponding embodiments thereof when being executed by the processor 101.
The processor 101 is configured to execute the computer program stored in the memory 102 to perform the method as described in any one of the embodiments illustrated in fig. 4 to 6 and corresponding thereto.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an embodiment of a communication terminal according to the present application. In the present embodiment, the communication terminal 200 provided herein includes a processor 201, and a memory 202 and a communication circuit 203 coupled to the processor 201.
The communication circuit 203 is configured to communicate with other devices (not shown), and is configured to receive data or message instructions sent by the other devices or send data or message instructions to the other devices. Specifically, the communication terminal 200 provided in the present application may perform data interaction with an external media server (not shown), so as to complete transmission of streaming media data.
The memory 202 is used for storing a computer program, the computer program stored in the memory 202 may implement the method as described in figure 7 and any corresponding embodiment thereof when executed by the processor 201,
the processor 201 is configured to run a computer program for performing the method according to fig. 7 and any corresponding embodiment.
The application also provides a communication system, which comprises a plurality of media servers and a plurality of communication terminals, wherein the media servers and the communication terminals are connected, each communication terminal is respectively connected with at least one media server, and specifically, each communication terminal can be respectively connected with at least one media server through a core network and carries out data interaction.
Specifically, please refer to fig. 3, wherein fig. 3 is a schematic structural diagram of an embodiment of a communication system according to the present application. In the current embodiment, the communication system 300 includes several connected media servers 311, 312, 313, and 314, and a communication terminal 321, 322, and 323 connected to at least one media server.
The media server 311, the media server 312, the media server 313, and the media server 314 illustrated in fig. 3 are the media servers illustrated in fig. 1, the communication terminal 321, the communication terminal 322, and the communication terminal 323 illustrated in fig. 3 are the communication terminals illustrated in fig. 2, when a media server to be taken over exists in the communication system 300, an idle media server in the communication system 300 can take over the service of the media server to be taken over, and redirection between the communication terminals having service traffic with the media server to be taken over is realized, so as to provide stable data interaction for the communication terminals.
It should be noted that, in the communication system provided by the present application, each media server includes a plug-in for detecting the working state of itself or other media servers, and in the communication system, each media server sends a signaling through the plug-in according to a set period to detect itself or detect whether other media servers are abnormal, and when detecting that there is an abnormality in a media server, notifies the media server whose other service processing resources meet preset conditions or uses itself to take over the service of the abnormal media server, and realizes redirection between communication terminals having service to and from the abnormal media server. In the technical solution provided by the present application, an abnormal media server or a media server that needs to perform service transfer is defined as a media server to be taken over, and a media server that finally executes a service taking over the abnormal media server is defined as an idle media server.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating an embodiment of a streaming media redirection method according to the present application. In the present embodiment, an execution subject of the method provided by the present application is an idle media server, and in the present embodiment, the method provided by the present application includes:
s410: and determining a media server to be taken over.
As described above, in the communication system, each media server may detect itself or other media servers according to a set time period to determine whether there is an abnormality in the media server, and when it is determined that there is an abnormality in the media server, notify the media server whose service processing resource meets a preset condition or determine the abnormal media server as a media server to be replaced by itself. In an embodiment, the idle media server may directly detect that there is an abnormality in the media server, and determine that the media server with the abnormality is the media server to be taken over. In another embodiment, the second other media server may also detect that there is an abnormality in the media server, and notify the idle media server that the service processing resource meets the preset condition. The idle media server is a media server with current service processing resources meeting set conditions, and the set conditions comprise that the available service processing resources are greater than or equal to a preset value and the proportion of the available service processing resources to all the service processing resources is greater than or equal to a preset proportion. In other embodiments, when the number of the media servers whose service processing resources meet the preset condition is multiple, the transmission distance of the idle media servers is also considered when determining the idle media servers, for example, one media server closest to the transmission distance of the abnormal media server is selected as the idle media server from among all the media servers whose service processing resources meet the preset condition.
In another embodiment, when a certain media server in the communication system needs to perform data service transfer due to its own need or due to manual setting by an administrator, a notification may be sent by the media server to the outside to inform each media server in the system that itself needs to perform data service transfer, so that the media server whose service processing resource meets the preset condition in the communication system determines the media server as a media server to be replaced.
The media server to be taken over is a media server which needs to transfer services or is abnormal, and the idle media server is a media server which finally executes the services of taking over the abnormal media server. As described above, the idle media server is a media server whose service processing resources meet the set conditions.
In another embodiment, the idle media server is a media server that detects an abnormal media server and has its own service resources meeting a preset condition. In the present embodiment, the media server whose service processing resource meets the preset condition may be one of all normally operating media servers in the communication system that has the smallest operating pressure, the media server whose service processing resource meets the preset condition may also be one of the media servers that can utilize the most communication resources, or the media server whose service processing resource meets the preset condition may also be a completely idle standby media server that does not have any service in operation, it is understood that the preset condition may be set or changed according to actual needs, and is not limited herein.
In step S410, the idle media server may directly determine the media server to be taken over, or receive a service taking over notification sent by another media server in the communication system. The service taking-over notice is that other media servers which detect abnormal media servers or have service transfer to be carried out are sent to the media server of which the service resources accord with the preset conditions, so that the media server of which the service resources accord with the preset conditions determines the media server to be taken over, and then the service of the media server to be taken over is taken over.
S420: and taking over the service of the media server to be taken over.
And after the idle media server determines the media server to be taken over, further taking over the service of the media server to be taken over. Wherein, the service of the media server to be taken over at least comprises: the method comprises the steps that service data stored on a media server to be taken over and other types of services established by the media server to be taken over are at least obtained and stored.
Further, when the idle media server takes over the service of the media server to be taken over, the identification information of the communication terminal related to the service of the media server to be taken over is acquired, so as to inform the communication terminal with the service to the media server to be taken over to change the data interaction direction.
S430: and sending a redirection request to the terminal related to the service through the RTCP protocol so that the terminal takes the idle media server as a new target media server of the service.
After taking over the service of the media server to be taken over, sending a redirection request to the communication terminal related to the taken over service through the RTCP protocol, so that the communication terminal related to the taken over service takes the idle media server as a new target media server of the ongoing service.
Specifically, according to the acquired identification information of the communication terminal which is related to the service of the media server to be replaced, a redirection request is sent to the communication terminal related to the service through an RTCP protocol so as to inform the communication terminal of changing the data interaction direction, and then the idle media server is used as a new target media server of the service.
The redirection request comprises an effective load type, the value of the effective load type is a preset identifier, and the redirection request is used for informing the terminal to send the data stream of the service to a new target media server. Specifically, the redirection request with the payload type value as the preset identifier is used for notifying the terminal to send the data stream of the service to the new target media server.
Further, in another embodiment, the redirection request further includes address information of the target media server, for informing the terminal of the communication address of the target media server.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating a partial structure of a redirection request in an embodiment of a streaming media redirection method according to the present application. In the partial structure diagram of the redirect request illustrated in fig. 5, V is an abbreviation of version number for indicating a version number of the current request, i.e., for identifying a version of the RTCP protocol, P is called Padding, FMT is an abbreviation of feedback message type for indicating a feedback information type of the current redirect request, and PT is an abbreviation of payload type for indicating a current payload type. For example, in the current embodiment, when the payload type is PT (239) illustrated in fig. 5, the different payload types correspond to different signaling, and the different signaling is used to indicate that the current redirection request is used to notify the communication terminal that is sending the service with the media server to be taken over to send the data stream of the service to the new target media server.
Further, the address information includes an IP address and a real-time transport protocol port. With continuing reference to fig. 5, as illustrated in fig. 5, the New Media Server RTP IP is used to notify the IP address of the target Media Server that needs to be connected to the communication terminal that is to take over the transmission of the traffic from the Media Server, and the New Media Server RTP Port is used to notify the communication terminal of the real-time transport protocol Port, so that the communication terminal can transmit the data stream to the target Media Server corresponding to the IP address, and the traffic is reconstructed between the communication terminal and the target Media Server, so that the communication terminal performs data interaction with the target Media Server instead because the Media Server that is to take over performs data interaction.
Still further, the redirect request also includes the type of the target media server. Continuing to refer to fig. 5, the Team Type in fig. 5 is used to indicate the Type of the target media server for the terminal to change other relevant parameters according to actual needs.
According to the technical scheme provided by the application figure 4, after the idle media server determines the media server to be taken over in the communication system, the service of the media server to be taken over is taken over, and the redirection request is sent to the communication terminal related to the service of the media server to be taken over through the RTCP protocol, so that the communication terminal takes the idle media server as a new target media server of the service, the service recovery is quickly completed when the media server is abnormal or needs to perform service transfer, stable data interaction is ensured when the media server is abnormal or performs service transfer, and further, the user experience is improved.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating another embodiment of a streaming media redirection method according to the present application. In the current embodiment, the step S110 of the idle media server determining the media server to be taken over includes step S601 and step S602. The method comprises the following steps:
s601: the idle media server detects whether a first other media server connected with the idle media server needs to transfer services or is abnormal.
In the current embodiment, the idle media server detects whether the first other media server connected to the idle media server needs to transfer the service or has an abnormality. Wherein the first other media server is a media server connected to the media server performing the detection. The media server in the communication system detects whether the first other media server connected with the media server needs to transfer the service according to a set period. It should be noted that, when a certain media server detects that a first other media server connected to the certain media server is abnormal, it is detected that the first other media server connected to the certain media server needs to transfer a service, and then step S602 is executed, otherwise, step S601 is continuously executed.
Further, in the technical solution provided by the present application, the media server may further detect whether the media server itself is abnormal according to a set period, and when the media server detects that the media server itself is abnormal and the media server itself can still communicate with the outside, send a service taking-over notification requesting to take over the media server to the outside, so that the idle media server determines that the idle media server itself is the media server to be taken over.
Similarly, when it is detected that the administrator issues a setting instruction to the first other media server connected to the administrator to terminate the first other media server from providing the communication service to the external communication terminal, it is determined that the media server or the first other media server needs to transfer the service, and then step S602 is executed, otherwise, step S601 is continuously executed.
Further, in the technical solution provided by the present application, the media server may further detect whether there is a setting instruction sent to the media server by an administrator according to a set period, and when the media server detects that the administrator sends the setting instruction to the media server itself to terminate the media server providing a communication service to an external communication terminal, it is determined that the media server needs to transfer a service, and at this time, the media server may send a service-taking-over notification requesting to take over itself to the outside, so that the idle media server determines itself as the media server to be taken over.
S602: and taking the first other media server as a to-be-taken-over media server, and taking the first other media server as an idle media server when the self service processing resource is determined to meet the preset condition.
If the current detected media server detects that a first other media server needing service transfer or having abnormity exists, the current media server takes the first other media server as a to-be-replaced media server, and when the current media server determines that the service processing resource of the current media server meets the preset condition, the current media server takes the current media server as an idle media server to replace the service of the to-be-replaced media server, and then sends a redirection request to a service-related terminal through an RTCP protocol, so that the idle media server is taken as a new target media server of the service by the terminal.
In another embodiment, when the current media server determines that its own service resources do not satisfy the preset conditions, and when it is detected that there is a first other media server that needs to transfer a service or has an abnormality, the current media server sends a service taking-over notification to the outside, so that the media servers whose own service resources meet the preset conditions in the communication system are used as idle media servers, and then take over the service of the media server to be taken over.
Further, in another embodiment, before the idle media server determines to take over the media server in step S110, the method may further include: and receiving a service succession notification.
The service taking-over notice is generated when the second other media server detects that the service needing to be transferred or the abnormal media server to be taken over exists, and is sent to the idle media server of which the other service processing resources in the communication system meet the preset conditions by the second other media server. It should be noted that, in the current embodiment, the second media server that detects that there is a to-be-replaced media server that needs to transfer a service or is abnormal and the idle media server that finally replaces the to-be-replaced media server are not the same media server.
The media server whose service processing resource meets the preset condition may be the media server with the minimum operating pressure among all the media servers that normally operate in the communication system, the media server whose service processing resource meets the preset condition may also be the media server that can utilize the most communication resources, or the media server whose service processing resource meets the preset condition may also be a completely idle standby media server that does not have any service in operation, it is understood that the preset condition of the service processing resource may be set or changed according to actual needs, and the specific details are not limited herein.
S603: and taking over the service of the media server to be taken over.
S604: and sending a redirection request to the terminal related to the service through the RTCP protocol so that the terminal takes the idle media server as a new target media server of the service.
In the current embodiment, steps S603 and S604 are the same as steps S420 and S430 illustrated in fig. 4, and refer to the description of the relevant parts above, which is not detailed here.
Referring to fig. 7, fig. 7 is a flowchart illustrating a method for redirecting streaming media according to an embodiment of the present application. In the present embodiment, an execution subject of the method provided by the present application is a communication terminal, and the method includes:
s710: a redirect request is received.
Wherein the redirection request is sent to the terminal via the RTCP protocol.
Further, in an embodiment, step S710 includes: the terminal receives a redirection request sent by an idle media server through an RTCP protocol.
When the terminal related to the service of the media server to be taken over receives the redirection request sent by the idle media server through the RTCP protocol, whether the redirection of the streaming media service is needed or not is further judged based on the effective load type, namely the PT value, in the redirection request.
The redirection request comprises an effective load type, and the value of the effective load type comprises a preset identifier to indicate that the redirection request is used for notifying that the data stream of the corresponding service is sent to the new target media server. The data structure of the redirection request may be as described in fig. 5 and its corresponding embodiments, and is not described in detail here.
When the value of the payload type is the preset identifier, it indicates that the current redirection request is used for notifying the terminal to send the data stream of the corresponding service to the new target media server. As an embodiment, the preset flag includes 239. When the PT value in the received redirection request is 239, the communication terminal treats the idle media server as a new target media server for the corresponding service in response to the redirection request. It is understood that, in other embodiments, other types of identifiers may be set according to actual requirements and requirements of a communication protocol to inform the terminal of redirecting the streaming media.
Further, in another embodiment, the redirection request further includes address information of the target media server, and the terminal may obtain the address information of the target media server by parsing the redirection request.
S720: the idle media server is treated as a new target media server for the corresponding service in response to the redirect request.
The idle media server is a media server with service processing resources meeting set conditions, and the redirection request comprises address information of a target media server. After receiving the redirection request sent by the idle media server through the RTCP protocol, the terminal further establishes connection with the target media server based on the address information of the target media server included in the redirection request, so as to change to continue data service interaction with the target media server.
Further, regarding the idle media server as a new target media server for the corresponding service in response to the redirection request, the method includes:
and changing the address information of the target media server corresponding to the service into the address information in the redirection request in response to the redirection request.
Wherein, the corresponding service is a service related to the media server to be taken over. Therefore, after receiving the redirection request, the communication terminal responds to the redirection request, changes the address information of the target media server into the address information in the redirection request so as to determine a new target media server, and further changes the service interaction related to the media server to be taken over into the service interaction with the new target media server.
Further, the address information includes an IP address and a real-time transport protocol port. And the terminal responds to the redirection request and changes the address information of the target media server corresponding to the service into the address information in the redirection request.
Please refer to fig. 8 and fig. 9 simultaneously, where fig. 8 is a schematic view of an application scenario in an embodiment of a streaming media redirection method of the present application, and fig. 9 is a schematic view of an application scenario in another embodiment of the streaming media redirection method of the present application.
In the present embodiment, in the communication system 800, the media server 811, the media server 812, the media server 813 and the media server 814 include a cluster plug-in, a receiving and sending plug-in and other plug-ins for other functions, and the media server 811, the media server 812, the media server 813 and the media server 814 may each detect itself and/or other media servers connected to itself based on the cluster plug-in to determine whether to transfer traffic or whether an abnormality occurs.
In the diagram illustrated in fig. 8, the communication terminal 821, the communication terminal 822, and the communication terminal 823 are all in the presence of a streaming related service with the media server 811. As illustrated in fig. 9, when the media server 811 is detected to be abnormal by the media server 812 (in other embodiments, the media server 811 may also be detected to be abnormal by the media server 811, the media server 813, and the media server 814), the media server 811 is a standby media server. Upon determining that the media server 813 in the communication system 800 is a media server whose service resources satisfy the preset condition, the media server 813 may be a free media server, and determines the media server 811 as its own media server to take over, and takes over the service of the media server 811, and further sends a redirection request to the communication terminal 821, the communication terminal 822 and the communication terminal 823 related to the presence service of the media server 811 through the RTCP protocol, so that the communication terminal 821, the communication terminal 822, and the communication terminal 823 can use the media server 813 as a new target media server for the service, re-transmit the service data originally scheduled to be transmitted to the media server 811 to the media server 813, or the media server 813 sends the service data to be sent to each communication terminal by the media server 811, and then completes the redirection process of the whole streaming media. According to the technical scheme, when the media server providing the communication service for the external terminal is abnormal in the communication system, stable data interaction between the communication terminal and the media server is ensured, and user experience is improved.
Please refer to fig. 10, where fig. 10 is a schematic structural diagram of an embodiment of a storage medium according to the present application. The storage medium 1000 stores program data 1001, and the program data 1001 when executed implements the streaming media redirection method described above and the methods described in the various embodiments. Specifically, the storage medium 1000 may be one of a memory, a personal computer, a server, a network device, or a usb disk.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method for redirecting streaming media is characterized by comprising the following steps:
determining a media server to be taken over;
taking over the service of the media server to be taken over, wherein the service of the media server to be taken over at least comprises service data stored by the media server to be taken over and other types of services established by the media server to be taken over;
and sending a redirection request to a terminal related to the service through an RTCP protocol so that the terminal takes an idle media server as a new target media server of the service, wherein the idle media server is a media server with service processing resources meeting set conditions.
2. The method of claim 1,
the redirection request comprises an effective load type, the value of the effective load type is a preset identifier, and the redirection request is used for informing a terminal to send the data stream of the service to a new target media server.
3. The method of claim 2, wherein the redirect request includes address information of the target media server, the address information including an IP address and a real-time transport protocol port;
the redirect request also includes a type of the target media server.
4. The method according to claim 1, wherein the media server to be taken over is a media server that needs to transfer traffic or has an abnormality.
5. The method of claim 4, wherein determining the media server to take over comprises:
the idle media server detects whether a first other media server connected with the idle media server needs to transfer services or is abnormal;
if a first other media server needing to transfer services or having abnormity exists, taking the first other media server as the media server to be taken over;
or, the determining the media server to be taken over includes:
the idle media server receives a service taking-over notice, wherein the service taking-over notice is generated when a second other media server detects that a service needing to be transferred or an abnormal media server to be taken over exists, and the second other media server sends the service taking-over notice to the idle media server with service processing resources meeting preset conditions.
6. A method for redirecting streaming media is characterized by comprising the following steps:
receiving a redirection request, wherein the redirection request is sent through an RTCP protocol;
and responding to the redirection request, and taking an idle media server as a new target media server of the corresponding service, wherein the idle media server is a media server of which the service processing resource meets the set condition.
7. The method of claim 6, wherein the redirection request comprises a payload type and a value of the payload type is a preset identifier, and the redirection request is used for notifying the terminal to send a data stream of a corresponding service to a new target media server.
8. A media server comprising a processor and memory and communication circuitry coupled to the processor; wherein the content of the first and second substances,
the communication circuit is used for communicating with other equipment;
the memory is used for storing a computer program;
the processor is configured to run the computer program to perform the method of any of claims 1 to 5.
9. A communication terminal comprising a processor and memory and communication circuitry coupled to the processor; wherein the content of the first and second substances,
the communication circuit is used for communicating with other equipment;
the memory is used for storing a computer program;
the processor is configured to run the computer program to perform the method of any of claims 6 to 7.
10. A communication system is characterized by comprising a plurality of connected media servers and a plurality of communication terminals; each communication terminal is respectively connected with at least one media server;
the media server is the media server in claim 8, and the communication terminal is the communication terminal in claim 9, so that when the communication system has a media server to be taken over, an idle media server takes over the service of the media server to be taken over, and redirection between the communication terminal having the service with the media server to be taken over is realized.
CN202010770104.6A 2020-08-03 2020-08-03 Stream media redirection method and related device Active CN114095759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010770104.6A CN114095759B (en) 2020-08-03 2020-08-03 Stream media redirection method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010770104.6A CN114095759B (en) 2020-08-03 2020-08-03 Stream media redirection method and related device

Publications (2)

Publication Number Publication Date
CN114095759A true CN114095759A (en) 2022-02-25
CN114095759B CN114095759B (en) 2024-01-12

Family

ID=80295136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010770104.6A Active CN114095759B (en) 2020-08-03 2020-08-03 Stream media redirection method and related device

Country Status (1)

Country Link
CN (1) CN114095759B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000029745A (en) * 1998-07-10 2000-01-28 Ntt Data Corp Fault detection method, computer system, and constitution apparatus and storage medium thereof
CN1495634A (en) * 2002-06-27 2004-05-12 上海汉唐科技有限公司 Server clustering load balancing method and system
CN101383734A (en) * 2008-10-20 2009-03-11 华为技术有限公司 State detecting method, system and apparatus
WO2010118594A1 (en) * 2009-04-15 2010-10-21 中兴通讯股份有限公司 Method, systme and home stream media server for implementing video on demand service
WO2011150699A1 (en) * 2010-06-01 2011-12-08 中兴通讯股份有限公司 Resource control method for stream media server, and stream media server
CN102355600A (en) * 2011-07-20 2012-02-15 中兴通讯股份有限公司 Media redirection system and method thereof
CN104469539A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 A cooperation buffering method, streaming media managing subsystem and server
CN107105049A (en) * 2017-05-10 2017-08-29 腾讯科技(深圳)有限公司 Data migration method and device
CN107231333A (en) * 2016-03-24 2017-10-03 中兴通讯股份有限公司 The method of media server backup, apparatus and system
CN109308223A (en) * 2018-09-17 2019-02-05 平安科技(深圳)有限公司 A kind of response method and equipment of service request
CN110769040A (en) * 2019-10-10 2020-02-07 北京达佳互联信息技术有限公司 Access request processing method, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000029745A (en) * 1998-07-10 2000-01-28 Ntt Data Corp Fault detection method, computer system, and constitution apparatus and storage medium thereof
CN1495634A (en) * 2002-06-27 2004-05-12 上海汉唐科技有限公司 Server clustering load balancing method and system
CN101383734A (en) * 2008-10-20 2009-03-11 华为技术有限公司 State detecting method, system and apparatus
WO2010118594A1 (en) * 2009-04-15 2010-10-21 中兴通讯股份有限公司 Method, systme and home stream media server for implementing video on demand service
WO2011150699A1 (en) * 2010-06-01 2011-12-08 中兴通讯股份有限公司 Resource control method for stream media server, and stream media server
CN102355600A (en) * 2011-07-20 2012-02-15 中兴通讯股份有限公司 Media redirection system and method thereof
CN104469539A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 A cooperation buffering method, streaming media managing subsystem and server
CN107231333A (en) * 2016-03-24 2017-10-03 中兴通讯股份有限公司 The method of media server backup, apparatus and system
CN107105049A (en) * 2017-05-10 2017-08-29 腾讯科技(深圳)有限公司 Data migration method and device
CN109308223A (en) * 2018-09-17 2019-02-05 平安科技(深圳)有限公司 A kind of response method and equipment of service request
CN110769040A (en) * 2019-10-10 2020-02-07 北京达佳互联信息技术有限公司 Access request processing method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李军;倪宏;王玲芳;陈君;: "流媒体系统中基于请求迁移的任务调度算法", 吉林大学学报(工学版), no. 03 *

Also Published As

Publication number Publication date
CN114095759B (en) 2024-01-12

Similar Documents

Publication Publication Date Title
CN112534776B (en) Method and apparatus for detecting network function failure and restart in a network environment
CN102739411B (en) The service of proof is provided
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
CN112398689B (en) Network recovery method and device, storage medium and electronic equipment
CN109542659A (en) Using more activating methods, equipment, data center's cluster and readable storage medium storing program for executing
CN111131443B (en) Task pushing method and system
US11251981B2 (en) Communication method and apparatus
CN103312593B (en) A kind of message distributing system and method
WO2023216968A1 (en) Traffic transmission method and apparatus, device, and storage medium
CN108156024B (en) Method, system and storage medium for detecting availability based on distributed website
CN112422684A (en) Target message processing method and device, storage medium and electronic device
CN108551571B (en) Monitoring video distribution method, device and system and distribution server
CN109302435B (en) Message publishing method, device, system, server and computer readable storage medium
CN114095759B (en) Stream media redirection method and related device
CN113824595B (en) Link switching control method and device and gateway equipment
CN110572350B (en) Method and equipment for carrying out IMS service registration
CN103607324B (en) Data processing method for Java message service, Java message client and server
CN113472644B (en) Path addressing method and network service system
US11252607B2 (en) Communication system management and performance reporting
CN103841085A (en) Method and device for implementation of web real-time communication
US10263915B2 (en) Method for processing event between controller and network device
CN114268938A (en) Method, device, equipment and storage medium for managing user front equipment
CN113542324A (en) Message pushing method and device
KR20120128031A (en) System and method for providing push service
WO2022041923A1 (en) Network slice connection method, terminal, and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant