CN114095759B - Stream media redirection method and related device - Google Patents

Stream media redirection method and related device Download PDF

Info

Publication number
CN114095759B
CN114095759B CN202010770104.6A CN202010770104A CN114095759B CN 114095759 B CN114095759 B CN 114095759B CN 202010770104 A CN202010770104 A CN 202010770104A CN 114095759 B CN114095759 B CN 114095759B
Authority
CN
China
Prior art keywords
media server
service
idle
media
replaced
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.)
Active
Application number
CN202010770104.6A
Other languages
Chinese (zh)
Other versions
CN114095759A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method for redirecting streaming media and a related device, wherein the method comprises the following steps: determining a media server to be replaced; the service of the media server to be replaced at least comprises service data stored by the media server to be replaced and other types of services established by the media server to be replaced; and sending a redirection request to a terminal related to the service through an RTCP protocol, so that the terminal takes the 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 the set conditions. The stream media redirection method provided by the invention can realize the rapid completion of service recovery when the media server is abnormal or service transfer is required, and ensures stable data interaction when the media server is abnormal or service transfer is required, thereby improving user experience.

Description

Stream media redirection method and related device
Technical Field
The present disclosure relates to the field of communications, and in particular, to a method and an apparatus for redirecting streaming media.
Background
When streaming media is transmitted, the media server may need to transfer own service, or the media server is abnormal due to abnormal reasons such as power failure and hardware damage, so that data interaction between the media server and the terminal is blocked or stopped, and stable data interaction cannot be ensured, so that a technical scheme is needed to solve the problem caused by the abnormal occurrence of the media server when the streaming media is transmitted, and provide more stable communication service for the terminal.
Disclosure of Invention
The technical problem to be solved mainly in the application is to provide a stream media redirection method and a related device capable of guaranteeing stable data interaction when a media server is abnormal or service transfer is carried out.
In order to solve the technical problems, one technical scheme adopted by the application is as follows: the method for redirecting the streaming media comprises the following steps:
determining a media server to be replaced;
the service of the media server to be replaced at least comprises service data stored by the media server to be replaced and other types of services established by the media server to be replaced;
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 problems, another technical solution adopted in the present application is to provide a method for redirecting streaming media, 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 the idle media server as a new target media server of the corresponding service, wherein the idle media server is a media server with service processing resources meeting the set conditions.
In order to solve the technical problem, another technical scheme adopted by the application is to provide a media server, which comprises a processor, a memory and a communication circuit, wherein the memory and the communication circuit are coupled with the processor;
wherein,
the communication circuit is used for communicating with other devices;
the memory is used for storing a computer program;
the processor is configured to run the computer program to perform the method as described above.
In order to solve the technical problem, another technical scheme adopted by the application is to provide a communication terminal, which comprises a processor, a memory and a communication circuit, wherein the memory and the communication circuit are coupled with the processor; wherein,
the communication circuit is used for communicating with other devices;
the memory is used for storing a computer program;
the processor is configured to run the computer program to perform the method as described above.
In order to solve the technical problem, another technical scheme adopted by the application is to provide a communication system, which comprises 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 media server to be replaced exists in the communication system, the idle media server replaces the service of the media server to be replaced, and redirection between the communication terminal and the communication terminal with the service of the media server to be replaced is realized.
Compared with the prior art, after the media server to be replaced is determined, the service of the media server to be replaced is replaced, and a 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 completed rapidly when the media server is abnormal or service transfer is required, stable data interaction is guaranteed when the media server is abnormal or service transfer is carried out, and the user experience is improved.
Drawings
FIG. 1 is a schematic diagram of a media server according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a communication terminal according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a communication system according to an embodiment of the present application;
FIG. 4 is a flow chart illustrating a method for redirecting streaming media according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a portion of a redirection request in an embodiment of a method for redirecting streaming media according to the present application;
FIG. 6 is a flow chart illustrating a method for redirecting streaming media according to another embodiment of the present application;
FIG. 7 is a flow chart illustrating a method for redirecting streaming media according to an embodiment of the present application;
fig. 8 is a schematic view of an application scenario in an embodiment of a method for redirecting streaming media;
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 diagram illustrating a storage medium according to an embodiment of 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 for purposes of illustration only and are not limiting. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may 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 may be included in at least one embodiment of the present application. The appearances of such phrases 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. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Before describing the method for redirecting streaming media provided in the present application, a media server, a communication terminal (hereinafter, simply referred to as a terminal in some embodiments) and a communication system provided in the present application are first described.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a media server according to an embodiment of 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 other external media servers (not shown), respectively, to perform data interaction.
The memory 102 is configured to store a computer program, and the computer program stored in the memory 102, when executed by the processor 101, may implement the method described in any one of the embodiments shown in fig. 4 to 6 and corresponding thereto.
The processor 101 is configured to execute a computer program stored in the memory 102 to perform the method as illustrated in any one of the following fig. 4 to 6 and corresponding embodiments thereof.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a communication terminal according to an embodiment of the present application. In the current 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.
Wherein the communication circuit 203 is configured to communicate with other devices (not shown), and is configured to receive data or message instructions sent by other devices, or send data or message instructions to 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 configured to store a computer program, which when executed by the processor 201, causes the memory 202 to implement a method as described in any one of the embodiments of figure 7 and corresponding thereto,
the processor 201 is configured to execute a computer program for performing the method according to any one of the embodiments shown in fig. 7 and corresponding thereto.
The application also provides a communication system, which comprises a plurality of connected media servers and a plurality of communication terminals, wherein each communication terminal is respectively connected with at least one media server, and concretely, each communication terminal can be respectively connected with at least one media server through a core network and can perform data interaction.
Specifically, referring to fig. 3, 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 communication terminals 321, 322 and 323 connected to at least one of the media servers.
Wherein, 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, and 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 the media server to be replaced exists in the communication system 300, the hollow media server in the communication system 300 can replace the service of the media server to be replaced, and the redirection between the communication terminals having service to and from the media server to be replaced can be realized, so as to provide stable data interaction for the communication terminals.
In the communication system provided by the present application, each media server includes a plug-in unit for detecting the working state of the media server or other media servers, and in the communication system, each media server sends signaling through the plug-in unit according to a set period to detect itself, or detect whether other media servers are abnormal, and when detecting that the existing media server is abnormal, notify other service processing resources to meet a preset condition, or replace the service of the abnormal media server by itself, and implement redirection between communication terminals to which the abnormal media server has service. In the technical solution provided in 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 replaced, a media server that ultimately executes a service that replaces the abnormal media server is defined as an idle media server, and for specific definition of the idle media server, please refer to the following description of the corresponding portion.
Referring to fig. 4, fig. 4 is a flow chart illustrating an embodiment of a method for redirecting streaming media according to the present application. In the current embodiment, the execution subject of the method provided by the present application is an idle media server, and in the current embodiment, the method provided by the present application includes:
s410: and determining the media server to be replaced.
In the communication system, as described above, each media server detects itself or other media servers according to a set time period, so as 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 directly determine that the abnormal media server is a media server to be replaced. 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 a media server to be replaced. 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 setting conditions, wherein the setting conditions comprise that the available service processing resources are larger than or equal to a preset value, and the proportion of the available service processing resources to all the service processing resources is larger than or equal to a preset proportion. In other embodiments, when the number of media servers whose service processing resources meet the preset conditions is plural, the transmission distance of the idle media server is also considered at the same time when determining the idle media server, for example, one media server closest to the transmission distance of the abnormal media server is selected as the idle media server from among the media servers whose service processing resources meet the preset conditions.
In another embodiment, when a certain media server in the communication system needs to perform data service transfer due to its own needs or manual setting of an administrator, a notification may be sent by the media server to inform each media server in the system that the media server needs to perform data service transfer, so that a media server in the communication system with a service processing resource meeting a preset condition determines the media server as a media server to be replaced.
The media server to be replaced is a media server needing to transfer the service or having abnormality, and the idle media server is a media server finally executing the service of replacing 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 that itself service resources satisfy a preset condition. In the present embodiment, the media server with the service processing resource meeting the preset condition may be one media server with the minimum operation pressure in all media servers in the communication system that normally operate, or the media server with the service processing resource meeting the preset condition may be one media server with the maximum available communication resource, or the media server with the service processing resource meeting the preset condition may be a completely idle standby media server without any service in operation, which 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 that the media server is to be replaced, or may receive a service replacement notification sent by another media server in the communication system. The service take-over notification is sent to the media server with the service resources meeting the preset conditions by other media servers with abnormal detection or service transfer need, so that the media server with the service resources meeting the preset conditions determines the media server to be taken over, and further takes over the service of the media server to be taken over.
S420: take over the traffic of the media server to take over.
After the idle media server determines the media server to take over, further taking over the service of the media server to take over. Wherein, the services of the grafted media server to be grafted at least comprise: the service data stored on the media server to be replaced and other types of services established by the media server to be replaced are at least obtained and stored.
Further, the idle media server takes over the service of the media server to be taken over, and at the same time, obtains the identification information of the communication terminal related to the service of the media server to be taken over, so as to inform the communication terminal having the service to and from the media server to be taken over to change the direction of data interaction.
S430: the redirection request is sent to the terminal associated with the service via the RTCP protocol so that the terminal takes the idle media server as a new target media server for the service.
After taking over the service of the media server to take over, a redirection request is transmitted via RTCP protocol to the communication terminal associated with the taken over service so that the communication terminal associated with the taken over service takes the idle media server as a new target media server for its ongoing service.
Specifically, according to the acquired identification information of the communication terminal 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 to change 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 a payload type, wherein the value of the payload type is a preset identification, 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 value of the payload type being the preset identity is used for informing 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 part of a redirection request in an embodiment of a method for redirecting streaming media. In the partial structure diagram of the redirection 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 a generic name of Padding, FMT is an abbreviation of feedback message type, which is a feedback information type indicating the current redirection request, and PT is an abbreviation of payload type for indicating a current payload type. Wherein different payload types correspond to different signaling, as in the current embodiment, when the payload type is PT (239) as illustrated in fig. 5, then the current redirection request is used to notify the communication terminal that is sending traffic with the media server to be replaced to send the data stream of the traffic to the new target media server.
Further, the address information includes an IP address and a real-time transport protocol port. With continued reference to fig. 5, as illustrated in fig. 5, new Media Server RTP IP is configured to notify an IP address of a target media server to which a communication terminal that is transmitting a service with the media server to be replaced needs to connect, new Media Server RTP Port is configured to notify a real-time transport protocol port of the communication terminal, so that the communication terminal can transmit a data stream to the corresponding target media server with the IP address, so that service reconstruction is completed between the communication terminal and the target media server, and further, the communication terminal performs data interaction with the target media server instead due to the data interaction with the media server to be replaced.
Still further, the redirect request also includes a type of the target media server. With continued reference to fig. 5, the Team Type in fig. 5 is used to indicate the Type of the target media server, so that the terminal can 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 replaced in the communication system, then the service of the media server to be replaced is replaced, and a redirection request is sent to the communication terminal related to the service of the media server to be replaced through an RTCP protocol, so that the communication terminal takes the idle media server as a new target media server of the service, the recovery of the service is completed rapidly when the media server is abnormal or the service is required to be transferred, and stable data interaction is ensured when the media server is abnormal or the service is transferred, thereby improving the experience of users.
Referring to fig. 6, fig. 6 is a flow chart illustrating another embodiment of a method for redirecting streaming media according to the present application. In the current embodiment, step S110 of the idle media server determining that the media server is to be replaced includes step S601 and step S602. The method comprises the following steps:
s601: the idle media server detects whether the first other media server connected with the idle media server needs to transfer service or is abnormal.
In the present embodiment, the idle media server detects whether the first other media server connected to itself needs to transfer the service or is abnormal. 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 the set period. It should be noted that, when a certain media server detects that an abnormality occurs in a first other media server connected to the certain media server, it detects that the first other media server connected to the certain media server needs to transfer services, and then step S602 is executed, otherwise, step S601 is executed continuously.
Further, in the technical scheme provided by the application, the media server also detects whether the media server is abnormal according to the set period, and when detecting that the media server is abnormal, and when the media server still can externally communicate, the media server externally sends a service take over notification requesting to take over the media server, so that the idle media server determines the media server as the media server to take 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 to provide the communication service for 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 scheme provided by the application, the media server also detects whether an administrator sends a setting instruction to the media server according to a set period, when the media server detects that the administrator sends the setting instruction to the media server to terminate the media server to provide communication service for an external communication terminal, the media server is judged to need to transfer service, and at the moment, the media server can send out a service take-over notification requesting to take over the media server to the outside, so that the idle media server determines the idle media server to be the media server to take over.
S602: and taking the first other media server as a media server to be replaced, and taking the first other media server as an idle media server when the service processing resource of the first other media server meets the preset condition.
If the currently detected media server detects that a first other media server needing to transfer the service or having an abnormality exists, the current media server takes the first other media server as a media server to be replaced, and takes the current media server as an idle media server to replace the service of the media server to be replaced when determining that the service processing resource of the current media server meets the preset condition, and then sends a redirection request to a terminal related to the service through an RTCP protocol, so that the terminal takes the idle media server as a new target media server of the service.
In another embodiment, when the current media server determines that the own service resource does not meet the preset condition, and detects that there is a first other media server that needs to transfer the service or is abnormal, the current media server sends a service take-over notification to the outside, so that the other media servers in the communication system with own service resources meeting the preset condition serve as idle media servers, and further take over the service of the media server to be taken over.
Therefore, in another embodiment, before the idle media server determines that the media server is to be replaced in step S110, the method further includes: and receiving a service succession notice.
The service succession notification is generated when the second other media server detects that the service to be transferred exists or an abnormal media server to be succession exists, and the second other media server sends the service succession notification to the idle media server of which other service processing resources in the communication system meet preset conditions. It should be noted that, in the present embodiment, the second media server that detects the presence of the to-be-replaced media server that needs to transfer the service or that is abnormal is not the same media server as the idle media server that eventually takes over the to-be-replaced media server.
The media server with the service processing resource meeting the preset condition may be one media server with the minimum operation pressure in all media servers in the communication system which normally operate, or the media server with the service processing resource meeting the preset condition may be one media server with the maximum available communication resources, or the media server with the service processing resource meeting the preset condition may be a completely idle standby media server without any service in operation, which is understood that the preset condition of the service processing resource may be set or changed according to the actual requirement, and is not limited in this embodiment.
S603: take over the traffic of the media server to take over.
S604: the redirection request is sent to the terminal associated with the service via the RTCP protocol so that the terminal takes the idle media server as a new target media server for the service.
In the present embodiment, step S603 and step S604 are the same as step S420 and step S430 illustrated in fig. 4, and reference is specifically made to the description of the relevant portions above, and detailed description thereof will not be repeated here.
Referring to fig. 7, fig. 7 is a flow chart illustrating an embodiment of a method for redirecting streaming media. In the current embodiment, an execution subject of the method provided in 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 RTCP protocol.
Further, in an embodiment, step S710 includes: the terminal receives a redirection request sent by the idle media server through the RTCP protocol.
When a terminal related to the media server service to be replaced receives a redirection request sent by an idle media server through an RTCP protocol, judging whether redirection of the streaming media service is needed or not further based on the effective load type in the redirection request, namely the PT value.
Wherein the redirect request includes a payload type and the value of the payload type includes a preset identification to indicate that the redirect request is to notify sending of the data stream of the corresponding service to the new target media server. The data structure of the redirection request is described with reference to fig. 5 and its corresponding embodiment, and is not described in detail herein.
When the value of the effective load type is a preset identification, the current redirection request is indicated to be used for informing the terminal to send the data stream of the corresponding service to a new target media server. In one embodiment, the preset identifier includes 239. When the PT value in the received redirect request is 239, the communication terminal regards the idle media server as a new target media server for the corresponding service in response to the redirect request. It can be appreciated that in other embodiments, other types of identifiers may be set to inform the terminal to redirect the streaming media according to the actual requirements and the requirements of the communication protocol.
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 the 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 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 the connection with the target media server to continue the data service interaction.
Further, responding to the redirection request, taking the idle media server as a new target media server of the corresponding service, comprising:
address information of a target media server of a corresponding service is changed to address information in the redirect request in response to the redirect request.
The corresponding service is a service related to the media server to be replaced. After receiving the redirection request, the communication terminal responds to the redirection request and 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 replaced into the service interaction with the new target media server.
Still further, the address information includes an IP address and a real-time transport protocol port. The terminal changes the address information of the target media server of the corresponding service to the address information in the redirection request in response to the redirection request.
Referring to fig. 8 and fig. 9, fig. 8 is a schematic view of an application scenario in an embodiment of a method for redirecting streaming media, and fig. 9 is a schematic view of an application scenario in another embodiment of a method for redirecting streaming media.
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 transmitting 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 can detect themselves and/or other media servers connected to themselves based on the cluster plug-in to determine whether to transfer traffic or whether to have an abnormality.
In the diagram illustrated in fig. 8, the communication terminal 821, the communication terminal 822, and the communication terminal 823 each have a streaming-related service with the media server 811. As illustrated in fig. 9, the abnormality of the media server 811 is detected by the media server 812 (in other embodiments, the abnormality of the media server 811 may be detected by the media server 811, the media server 813, and the media server 814), and the media server 811 is a media server to be replaced. Through determining that the media server 813 in the communication system 800 is a media server whose service resource meets the preset condition, the media server 813 may be used as an idle media server at this time, and the media server 811 may be determined as a to-be-replaced media server of its own, and the service of the media server 811 may be replaced, and further, a redirection request may be sent to the communication terminal 821, the communication terminal 822 and the communication terminal 823 related to the existence of the service in the media server 811 through the RTCP protocol, so that the communication terminal 821, the communication terminal 822 and the communication terminal 823 take the media server 813 as a new target media server of the service, and send the service data originally scheduled to be sent to the media server 811 to the media server 813 instead, or send the service data to be sent to each communication terminal by the media server 811 to each communication terminal by the media server 813, thereby completing the whole redirection procedure of the streaming media. According to the technical scheme, when the media server providing the communication business service for the external terminal in the communication system is abnormal, stable data interaction between the communication terminal and the media server is guaranteed, and user experience is improved.
Referring to fig. 10, 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, which 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, a usb disk, and the like.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the patent application, and all equivalent structures or equivalent processes using the descriptions and the contents of the present application or other related technical fields are included in the scope of the patent application.

Claims (9)

1. A method for redirecting streaming media, wherein an execution body of the method is an idle media server, the method comprising:
detecting whether a first other media server connected with the first other media server needs to transfer service or is abnormal, and if the first other media server needing to transfer service or is abnormal exists, taking the first other media server as a media server to be replaced; or receiving a service succession notice, wherein the service succession notice is generated when a second other media server detects that a service to be transferred exists or an abnormal media server to be succession exists, and the second other media server sends the service succession notice to the idle media server of which the service processing resource meets the preset condition;
the service of the media server to be replaced at least comprises service data stored by the media server to be replaced and other types of services established by the media server to be replaced;
and sending a redirection request to a terminal related to the service through an RTCP protocol, so that the terminal takes the 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, wherein the step of determining the position of the substrate comprises,
the redirection request comprises a payload type, the value of the payload type is a preset identification, 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 of claim 1, wherein the media server to take over is a media server that needs to transfer traffic or is abnormal.
5. A method for redirecting streaming media, the execution body of the method being a communication terminal, the method comprising:
receiving a redirection request, wherein the redirection request is sent by an idle media server through an RTCP protocol, and the redirection request is used for informing the communication terminal to send a data stream of a corresponding service to a new target media server;
and responding to the redirection request, and taking the idle media server as a new target media server of a corresponding service, wherein the idle media server is a media server with service processing resources meeting a set condition.
6. The method of claim 5, wherein the redirect request includes a payload type and the value of the payload type is a preset identification.
7. A media server comprising a processor and memory and communication circuitry coupled to the processor; wherein,
the communication circuit is used for communicating with other devices;
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 4.
8. A communication terminal comprising a processor, and a memory and communication circuitry coupled to the processor; wherein,
the communication circuit is used for communicating with other devices;
the memory is used for storing a computer program;
the processor being adapted to run the computer program to perform the method of any of claims 5 to 6.
9. A communication system 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;
wherein the media server is the media server of claim 7, and the communication terminal is the communication terminal of claim 8, so that when the media server to be taken over exists in the communication system, the idle media server takes over the service of the media server to be taken over, and the redirection between the communication terminal with the service of 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 CN114095759A (en) 2022-02-25
CN114095759B true 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
流媒体系统中基于请求迁移的任务调度算法;李军;倪宏;王玲芳;陈君;;吉林大学学报(工学版)(第03期);全文 *

Also Published As

Publication number Publication date
CN114095759A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
KR101891365B1 (en) Providing a witness service
JP4509545B2 (en) Reliable messaging system with configurable settings
US9049241B2 (en) Peer discovery and secure communication in failover schemes
US20090198797A1 (en) Network device provisioning using documents
CN101953139B (en) DHCP in response to Internet connectedness initializes
CN104813643A (en) Dockee-centric wireless docking
KR20080024481A (en) Method and system for the remote management of a machine via ip links of an ip multimedia subsystem, ims
US10367856B2 (en) Failover management of SIP based multimedia communication sessions
CN112398689B (en) Network recovery method and device, storage medium and electronic equipment
US20230199534A1 (en) Service producer health-check
CN112653577A (en) Network element management method, device and storage medium
WO2020044934A1 (en) Communication device, method, program, and recording medium
CN107508916B (en) Server link management method for intelligent robot
CN112788088A (en) Network communication control method of multi-edge cloud and edge operation system
CN114095759B (en) Stream media redirection method and related device
CN109120520B (en) Fault processing method and equipment
CN111294358A (en) Message processing method and device
CN113824595B (en) Link switching control method and device and gateway equipment
CN114302350B (en) Service provider failover method and device, electronic equipment and storage medium
WO2022083281A1 (en) Message transmission method and system, electronic device, and storage medium
CN113992740B (en) Middleware based on autonomous control and data transmission method
WO2015158058A1 (en) Method and system for implementing call saving and recovery
CN103841085A (en) Method and device for implementation of web real-time communication
CN102904735B (en) Method, device and system for recovering connection automatically
CN113542324A (en) Message pushing method and device

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