CN109257335B - Method for maintaining back source link, back source method, related device and storage medium - Google Patents

Method for maintaining back source link, back source method, related device and storage medium Download PDF

Info

Publication number
CN109257335B
CN109257335B CN201810961255.2A CN201810961255A CN109257335B CN 109257335 B CN109257335 B CN 109257335B CN 201810961255 A CN201810961255 A CN 201810961255A CN 109257335 B CN109257335 B CN 109257335B
Authority
CN
China
Prior art keywords
source
link
returning
reusable
communication quality
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
CN201810961255.2A
Other languages
Chinese (zh)
Other versions
CN109257335A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201810961255.2A priority Critical patent/CN109257335B/en
Publication of CN109257335A publication Critical patent/CN109257335A/en
Application granted granted Critical
Publication of CN109257335B publication Critical patent/CN109257335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • 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/21Server components or server architectures
    • H04N21/222Secondary servers, e.g. proxy server, cable television Head-end
    • 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
    • H04N21/64322IP

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention relates to the technical field of communication, and discloses a method for maintaining a source returning link, a source returning method, a related device and a storage medium. In the invention, the method for maintaining the back source link comprises the following steps: determining the communication quality of a back source link in a back source process; after the source returning is finished, if the communication quality of the source returning link in the source returning process indicates that the source returning link is stable, setting the source returning link as a reusable source returning link; a reusable back source link is maintained. In the realization, the server can return the source through the reusable return source link, so that the creation time of the return source link is saved, the first screen time is further shortened, and the watching experience of a terminal user is improved.

Description

Method for maintaining back source link, back source method, related device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for maintaining a source returning link, a source returning method, a related apparatus, and a storage medium.
Background
Currently, most live broadcast service providers select a Content Delivery Network (CDN) or a cloud service provider to accelerate live broadcast. With the development of science and technology, the requirements of terminal users on live broadcast quality are continuously improved, and the requirements of terminal users on live broadcast quality are changed from the beginning that the live broadcast cannot be carried out to higher requirements of fast first screen, low pause rate and the like.
However, the inventors found that at least the following problems exist in the prior art: in the process of returning the source of the edge node server, a Transmission Control Protocol (TCP) link needs to be created with the upstream node server, and the temporary creation of the source return link affects the live broadcast first screen time and the viewing experience of the terminal user.
Disclosure of Invention
Embodiments of the present invention provide a method for maintaining a source returning link, a source returning method, a related apparatus, and a storage medium, so that a source returning can be performed through a reusable source returning link, thereby saving the creation time of the source returning link, further shortening the first screen time, and improving the viewing experience of a terminal user.
To solve the above technical problem, an embodiment of the present invention provides a method for maintaining a back source link, including the following steps: determining the communication quality of a back source link in a back source process; after the source returning is finished, if the communication quality of the source returning link in the source returning process indicates that the source returning link is stable, setting the source returning link as a reusable source returning link; a reusable back source link is maintained.
The embodiment of the invention also provides a source returning method, which comprises the following steps: judging whether a reusable back source link exists or not; if the source link is determined to exist, returning the source through the reusable source return link; and if the link does not exist, selecting an upstream server, creating a back source link with the selected upstream server, and returning to the source through the created back source link.
The embodiment of the invention also provides a device for maintaining a back source link, which comprises: a determining module and a maintaining module, coupled to each other, for performing the method for maintaining the back-to-source link mentioned in the above embodiments.
An embodiment of the present invention further provides a source returning device, including: the source returning device comprises a judging module, a first processing module and a second processing module, wherein the judging module, the first processing module and the second processing module are coupled and are used for executing the source returning method mentioned in the above embodiment.
An embodiment of the present invention further provides a server, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of maintaining a return link as set forth in the above embodiments.
An embodiment of the present invention further provides a server, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the back-to-source method mentioned in the above embodiments.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the method for maintaining a back source link mentioned in the above embodiments.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the source returning method mentioned in the above embodiment.
Compared with the prior art, the method and the device have the advantages that the server monitors the communication quality of the source return link in the source return process, the source return link with stable communication quality is set as the reusable source return link, and the reusable source return link is maintained, so that the server can return the source through the reusable source return link when returning the source next time, the creation time of the source return link is saved, and the first screen time is shortened. Because the reusable source returning link is a link with stable communication quality, the source returning is carried out through the source returning link with stable communication quality, the transmission quality of the source returning at this time can be ensured, and the watching experience of a terminal user is improved.
In addition, in the process of maintaining the reusable back source link, the method for maintaining the back source link further comprises the following steps: determining the communication quality of the reusable back source link in a non-back source process; and if the communication quality of the reusable back source link in the non-back source process indicates that the reusable back source link is unstable, disconnecting the reusable back source link. In the implementation, the reusable source returning link with unstable communication quality is disconnected in time, so that the server is prevented from returning the source through the reusable source returning link with unstable communication quality, and the stability of the server source returning is further ensured.
In addition, maintaining a reusable back-source link specifically includes: periodically sending a test data packet to an upstream server corresponding to the reusable return source link; the upstream server receives the test data packet and returns a response data packet corresponding to the test data packet; a response packet is received.
In addition, determining the communication quality of the reusable back source link in the non-back source process specifically comprises the following steps: determining the response time of the reusable back source link in the non-back source process according to the sending time of the test data packet and the receiving time of the response data packet; and determining the communication quality of the reusable back source link in the non-back source process according to the response time of the reusable back source link in the non-back source process. In the implementation, the communication quality of the reusable source returning link in the non-source returning process is monitored, so that the unstable source returning link is disconnected in time, and resource waste caused by maintaining the unstable source returning link is avoided.
In addition, the communication quality of the back source link in the back source process is determined according to the communication index data of the back source link in the back source process; wherein the communication index data includes at least one of a code rate, a delay time, a frame rate, and a response time.
In addition, determining the communication quality of the back-source link in the back-source process specifically includes: acquiring code rate of a source returning link in a source returning process, delay time of the source returning link in the source returning process, frame rate of the source returning link in the source returning process and response time of the source returning link in the source returning process; determining the communication quality of the back source link in the back source process according to the code rate of the back source link in the back source process, the weight of the code rate of the back source link in the back source process, the delay time of the back source link in the back source process, the weight of the delay time of the back source link in the back source process, the frame rate of the back source link in the back source process, the weight of the frame rate of the back source link in the back source process, the response time of the back source link in the back source process and the weight of the response time of the back source link in the back source process; wherein the sum of the weight of the code rate, the weight of the delay time, the weight of the frame rate and the weight of the response time is 1. In the implementation, the communication quality of the back-source link is evaluated from four dimensions, namely code rate, delay time, frame rate and response time, so that the communication quality of the back-source link evaluated by the server can reflect the real quality of the back-source link more comprehensively.
In addition, selecting an upstream server specifically includes: respectively determining the communication quality of each upstream server; the upstream server with the best communication quality is selected. In the implementation, when the server creates a link with an upstream server, the transmission quality of the upstream server is fully considered, so that the communication quality of the created back-source link is more guaranteed.
In addition, the determining the communication quality of each upstream server specifically includes: for each upstream server, the following operations are performed: and determining the communication quality of the upstream server according to the communication quality of all the back source links corresponding to the upstream server.
In addition, the communication quality of the source return link is determined according to at least one communication index data of code rate information, time delay information, frame rate information and response time of the source return link.
In addition, after returning to the source through the created back-source link, the method for returning to the source further comprises: determining the communication quality of the created back-source link in the back-source process; after the source returning is finished, if the communication quality of the created source returning link in the source returning process indicates that the created source returning link is stable, the created source returning link is set to be a reusable link, and the created source returning link is maintained.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a flow chart of a method of maintaining a back source link according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a method of maintaining a back source link according to a second embodiment of the present invention;
FIG. 3 is a flow chart of a method of returning a source according to a third embodiment of the present invention;
FIG. 4 is a flow chart of a method of returning a source according to a fourth embodiment of the present invention;
FIG. 5 is a diagram illustrating a management architecture of a server according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for maintaining a return link according to a fifth embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a source returning device according to a sixth embodiment of the present invention;
fig. 8 is a schematic configuration diagram of a server according to a seventh embodiment of the present invention;
fig. 9 is a schematic configuration diagram of a server according to an eighth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the invention relates to a method of maintaining a back-source link for use with a server, such as a node server of a content distribution network. As shown in fig. 1, the method for maintaining a back source link includes the following steps:
step 101: and determining the communication quality of the back source link in the back source process.
Specifically, the server monitors communication index data of all back-source links corresponding to the server in the back-source process in real time or periodically, and determines the communication quality of the back-source links according to the communication index data of the back-source links in the back-source process. The communication index data may be any one or any combination of a code rate, a delay time, a frame rate, and a response time. The response time may be a Transmission Control Protocol/Acknowledgement (TCP/ACK) response time.
For clarity, in this embodiment, a method for maintaining a back source link is described by taking monitoring of a back source link by a server as an example, and in practical application, the server monitors all back source links corresponding to the server.
In the concrete implementation, the server monitors any one communication index data of code rate, delay time, frame rate and response time of the source returning link in the source returning process. When the server monitors the code rate of the source returning link in the source returning process, the server periodically counts the transmitted average code rate, and performs multi-dimensional comparison analysis on the average code rate of the period, the code rate of the previous period and the original stream code rate of the data stream to determine the fluctuation range of the code rate of the source returning link. And the server determines the communication quality of the back source link in the back source process according to the fluctuation range of the code rate of the back source link. For example, when the code rate fluctuation of the back-source link is small and the code rate is generally high, the communication quality of the back-source link in the back-source process is considered to be good. When the server monitors the delay time of the source returning link in the source returning process, the server periodically counts the difference value between the periodic variation value of the timestamp and the periodic variation value of the system time, and the difference value is used as the delay time of the source returning link in the source returning process. And the server determines the communication quality of the back-source link in the back-source process according to the delay time of the back-source link in the back-source process. For example, when the delay time of the back-source link is less than the preset delay time, the communication quality of the back-source link in the back-source process is considered to be good. When the server monitors the frame rate of the source returning link in the source returning process, the frame rate of transmission is counted periodically, and multidimensional comparison analysis is carried out on the frame rate of the period, the frame rate of the previous period and the original frame rate to determine the fluctuation range of the frame rate. And the server determines the communication quality of the back-source link in the back-source process according to the fluctuation condition of the frame rate. For example, when the fluctuation range of the frame rate of the back-source link is small and the average value of the frame rates is large, the communication quality of the back-source link in the back-source process is considered to be good. When the server monitors the response time of the TCP/ACK in the back source process of the back source link, the round-trip time of the TCP message is monitored, and the response time of the TCP/ACK is further determined. TCP/ACK response time increases when network fluctuations occur. Therefore, the server may set a threshold value, and when the TCP/ACK response time is greater than the threshold value, it is considered that the network fluctuates and the communication quality of the back-to-source link is not good. Wherein the threshold value can be set according to the requirement of network stability.
In another specific implementation, the server monitors the code rate, the delay time, the frame rate and the response time of the source returning link in the source returning process, and establishes a data analysis model so as to determine the quality of the server according to the four communication index data. Specifically, the server obtains a code rate of the source returning link in the source returning process, a delay time of the source returning link in the source returning process, a frame rate of the source returning link in the source returning process and a response time of the source returning link in the source returning process, and determines the communication quality of the source returning link in the source returning process according to the code rate of the source returning link in the source returning process, the weight of the code rate of the source returning link in the source returning process, the delay time of the source returning link in the source returning process, the weight of the delay time of the source returning link in the source returning process, the frame rate of the source returning link in the source returning process, the weight of the frame rate of the source returning link in the source returning process, the response time of the source returning link in the source returning process and the weight of the response time of the source returning link in the source returning process. Wherein the sum of the weight of the code rate, the weight of the delay time, the weight of the frame rate and the weight of the response time is 1.
Step 102: and after the source returning is finished, if the communication quality of the source returning link in the source returning process indicates that the source returning link is stable, setting the source returning link as a reusable source returning link.
Specifically, if the communication quality of the back-source link in the back-source process is good, the back-source link is considered to be stable. And if the communication quality of the back source link in the back source process is not good, the back source link is considered to be unstable.
Step 103: a reusable back source link is maintained.
Specifically, after the return-source link stops data transmission, the server determines whether the return-source link is stable in the return-source process according to the communication quality of the return-source link in the return-source process. And if the communication quality of the back source link in the back source process indicates that the back source link is stable, setting the back source link as a reusable back source link, and keeping the usable back source link.
In a specific implementation, the server maintains the back-to-source link through a session maintenance mechanism (session). Specifically, the server periodically sends test packets (PING packets) to the upstream server corresponding to the reusable back-to-source link. The upstream server receives the test packet (PING packet) and returns a response packet (PONG packet) corresponding to the test packet (PING packet). The server receives a response packet (PONG packet). The server periodically sends test and response packets to maintain the back-to-source link.
It should be noted that, as will be understood by those skilled in the art, after the reusable back-source link is reused, the server may not send the test packet any more since there is already data transmission on the reusable back-source link.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention.
Compared with the prior art, according to the method for maintaining the source return link, the server monitors the communication quality of the source return link in the source return process, the source return link with stable communication quality is set as the reusable source return link, and the reusable source return link is maintained, so that the server can return the source through the reusable source return link when returning the source next time, the creation time of the source return link is saved, and the first screen time is shortened. Because the reusable source returning link is a link with stable communication quality, the source returning is carried out through the source returning link with stable communication quality, the transmission quality of the source returning at this time can be ensured, and the watching experience of a terminal user is improved.
A second embodiment of the invention is directed to a method of maintaining a back source link. The embodiment is further improved on the basis of the first embodiment, and the specific improvements are as follows: and monitoring the communication quality of the back source link in a non-back source process in the process of maintaining the back source link.
Specifically, as shown in fig. 2, the present embodiment includes steps 201 to 205, wherein steps 201 to 203 are substantially the same as steps 101 to 103 in the first embodiment, and are not repeated herein. The following mainly introduces the differences:
step 201 to step 203 are executed.
Step 204: and determining the communication quality of the reusable back-source link in a non-back-source process.
Specifically, the server continuously transmits the test data packet and receives the response data packet corresponding to the test data packet while maintaining the return link. And the server determines the response time of the reusable source returning link in the non-source returning process according to the sending time of the test data packet and the receiving time of the response data packet, and determines the communication quality of the reusable source returning link in the non-source returning process according to the response time of the reusable source returning link in the non-source returning process.
Step 205: and if the communication quality of the reusable back source link in the non-back source process indicates that the reusable back source link is unstable, disconnecting the reusable back source link.
Specifically, if the communication quality of the reusable back-source link in the non-back-source process indicates that the reusable back-source link is unstable, it indicates that the back-source link may have network fluctuation and other problems, and the server disconnects the reusable back-source link, so as to avoid the situation that the transmission quality is unstable when the server selects the back-source link at the next back-source.
It should be noted that, as can be understood by those skilled in the art, in practical applications, the server may monitor, in real time, the communication quality of the reusable back-source link in the non-back-source process, or may periodically monitor the communication quality of the reusable back-source link in the non-back-source process.
It is worth mentioning that the server monitors the communication quality of the reusable return link in the non-return-source process, so as to disconnect the unstable return link in time and avoid resource waste caused by maintaining the unstable return link.
It should be noted that, as will be understood by those skilled in the art, in order to avoid the server from having too many reusable back-source links that are not multiplexed, and causing resource waste of the server, the server may periodically delete the reusable back-source links that are not multiplexed for the time period.
It should be noted that, as will be understood by those skilled in the art, step 204 and step 205 are taken as subsequent steps of step 203 in this embodiment to illustrate the request, and in practical applications, step 203, step 204 and step 205 may be performed simultaneously, and this embodiment does not limit the execution order of step 203, step 204 and step 205.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention.
Compared with the prior art, according to the method for maintaining the link, provided by the embodiment, the server monitors the communication quality of the source return link in the source return process, the source return link with stable communication quality is set as the reusable source return link, and the reusable source return link is maintained, so that the server can return the source through the reusable source return link when returning the source next time, the creation time of the source return link is saved, and the first screen time is shortened. Because the reusable source returning link is a link with stable communication quality, the source returning is carried out through the source returning link with stable communication quality, the transmission quality of the source returning at this time can be ensured, and the watching experience of a terminal user is improved. In addition, the server monitors the communication quality of the reusable source returning link in the non-source returning process so as to disconnect the unstable source returning link in time, so that the server is prevented from returning the source through the reusable source returning link with unstable communication quality, the stability of the server source returning is further ensured, and the resource waste caused by maintaining the unstable source returning link is also avoided.
A third embodiment of the present invention relates to a source returning method, which is applied to a server, for example, a node server of a content distribution network. As shown in fig. 3, the back source method includes the following steps:
step 301: it is determined whether there is a reusable back-source link.
In a specific implementation, when the server needs to return to the source, it is first queried whether there is a reusable return-to-source link, if yes, step 302 is executed, otherwise, step 303 is executed.
It should be noted that, as can be understood by those skilled in the art, in practical applications, the server may detect the stability of the reusable back-source link according to the communication quality of the reusable back-source link in the non-back-source process, after determining that the reusable back-source link exists and before returning to the source through the reusable back-source link. And if the reusable back source link is stable, returning to the source through the reusable back source link, and if the reusable back source link is unstable, recreating the back source link.
Step 302: and returning to the source through the reusable back source link.
In a specific implementation, when the server detects that a plurality of reusable back source links exist, a reusable back source link with the best communication quality is selected for back source.
Step 303: and selecting an upstream server, creating a back source link with the selected upstream server, and returning to the source through the created back source link.
Specifically, after the reusable back source link is not queried, the server creates a back source link with the upstream server, and performs back source through the created back source link.
Compared with the prior art, according to the source returning method provided by the embodiment, when the upstream server pulls the stream, the server firstly inquires whether the reusable source returning link exists, if the reusable source returning link exists, the server can directly return the source through the source returning link without creating a new source returning link, so that Round-Trip Time (RTT) is saved, the first screen Time is shortened, and the live broadcast viewing experience of a user is improved.
The fourth embodiment of the present invention relates to a method for returning source, and this embodiment is a further refinement of the third embodiment, specifically describes step 303, and describes other related steps. Specifically, as shown in fig. 4, in the present embodiment, the source returning method includes the following steps:
step 401: it is determined whether there is a reusable back-source link.
Specifically, if the server determines that there is no non-reusable back-source link, step 402 is executed, and if the server determines that there is a non-reusable back-source link, step 404 is executed.
Step 402: the communication quality of each upstream server is determined respectively, and the upstream server with the best communication quality is selected.
Step 403: and creating a back source link with the selected upstream server, and returning to the source through the created back source link. Step 405 is then performed.
Specifically, for each upstream server, the server determines the communication quality of the upstream server according to the communication quality of all back-source links corresponding to the upstream server. In a specific implementation, the server collects the communication quality of each back-source link of the server in real time or periodically, and acquires the address information of the upstream server corresponding to each back-source link. The server establishes the corresponding relation between the communication quality of the source return link and the upstream server according to the address information of the upstream server corresponding to each link. The server establishes a data analysis model according to the communication quality information of all back-source links corresponding to the upstream server, and analyzes the communication quality of the upstream server relative to the server according to multiple dimensions such as code rate, delay time, frame rate, TCP/ACK response time and the like. And when the server determines that the reusable back source link does not exist, selecting the upstream server with the best communication quality, and establishing a TCP connection with the upstream server with the best communication quality.
Step 404: and returning to the source through the reusable back source link.
Specifically, the server sends a request message to an upstream server through a reusable back-source link or a created back-source link. The request message may be a hypertext Transfer Protocol (HTTP) request message, or may be a request message in other forms.
Step 405: and determining the communication quality of the back source link used at this time in the back source process.
Specifically, the source link used this time is a created source link or a reusable source link.
It should be noted that the communication quality of the source-return link may be determined according to at least one communication index data of code rate information, delay information, frame rate information, and response time of the source-return link, and the specific method for determining the communication quality of the source-return link may refer to the description of the method for determining the communication quality of the source-return link in the first embodiment and the second embodiment, and is not described herein again.
Step 406: after the source returning is finished, if the communication quality of the source returning link in the source returning process indicates that the source returning link is stable, the source returning link is set as a reusable source returning link, and the reusable source returning link is kept.
The method for determining whether to set the back-source link as a reusable back-source link according to the communication quality of the back-source link in the back-source process and maintaining the back-source link may refer to the description of relevant parts in the first embodiment and the second embodiment of the present invention, and details are not repeated here.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention.
Compared with the prior art, according to the method for maintaining the back-source link, when the back-upstream server pulls the stream, the server firstly queries whether the reusable back-source link exists, and if the reusable back-source link exists, the server can directly return the source through the back-source link without creating a new back-source link, so that Round-Trip Time (RTT) is saved, the first screen Time is shortened, and the live broadcast viewing experience of a user is improved. If the server does not determine that the reusable back source link does not exist, a better upstream server is selected for back source according to the communication quality of the back source link corresponding to the upstream server counted currently, and the stability of the whole back source link is improved.
It should be noted that, in practical applications, the method for maintaining the back source link mentioned in the embodiments of the present invention may be performed in cooperation with the back source method mentioned in the embodiments of the present invention, as will be understood by those skilled in the art. When the two are executed together, the management architecture diagram of the server is shown in fig. 5. And the server receives the communication index data of each return source link and establishes a data analysis model so as to respectively determine the communication quality of each return source link according to the communication index data of each return source link. And the server regularly updates the communication quality of each upstream server according to the communication quality of each back source link so as to select the optimal upstream server for back source when creating the back source link. The server receives the information of the reusable back source link, wherein the information of the reusable back source link refers to the identification information and the communication quality of the reusable back source link. The server regularly updates the information of all the reusable back source links, so that the server can timely know the number of the current reusable back source links and the quality of each reusable back source link. When the server receives a link query instruction, namely when the link needs to be returned to the source, the server queries the information of the current reusable return-to-source link and determines the communication quality of the current reusable return-to-source link. And if the server queries the stable reusable back source link, performing back source through the back source link. And if the server does not inquire the stable reusable back source link, selecting the optimal upstream server, creating the back source link with the upstream server, and performing back source through the created back source link.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fifth embodiment of the present invention relates to an apparatus for maintaining a back source link, as shown in fig. 6, including: a determining module 601 and a maintaining module 602, wherein the determining module 601 and the maintaining module 602 are coupled to execute the method for maintaining the back source link mentioned in the above embodiments. The determining module 601 is used for determining the communication quality of the back source link in the back source process. The maintaining module 602 is configured to set the source return link as a reusable source return link if the determining module 601 determines that the communication quality of the source return link in the source return process indicates that the source return link is stable after the source return is finished this time; a reusable back source link is maintained.
It should be understood that this embodiment is a system example corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A sixth embodiment of the present invention relates to a source return apparatus, as shown in fig. 7, including: the determining module 701, the first processing module 702, and the second processing module 703 are coupled to each other, and configured to execute the source returning method in the foregoing embodiment. The determining module 701 is configured to determine whether a reusable back-source link exists. The first processing module 702 is configured to return to the source through the reusable back-source link after the determining module 701 determines that the reusable back-source link exists. The second processing module 703 is configured to select an upstream server after the determining module 701 determines that there is no reusable back-source link, create a back-source link with the selected upstream server, and back-source through the created back-source link.
It should be understood that this embodiment is a system example corresponding to the third embodiment, and that this embodiment can be implemented in cooperation with the third embodiment. The related technical details mentioned in the third embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the third embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
The seventh embodiment of the present invention relates to a server, as shown in fig. 8, including at least one processor 801; and a memory 802 communicatively coupled to the at least one processor 801; the memory 802 stores instructions executable by the at least one processor 801, and the instructions are executed by the at least one processor 801, so that the at least one processor 801 can execute the method for maintaining the back source link according to the above embodiments.
An eighth embodiment of the present invention is directed to a server, as shown in fig. 9, including at least one processor 901; and, memory 902 communicatively connected to at least one processor 901; the memory 902 stores instructions executable by the at least one processor 901, and the instructions are executed by the at least one processor 901, so that the at least one processor 901 can execute the back source method mentioned in the above embodiments.
The server mentioned in the seventh and eighth embodiments of the present invention includes: one or more processors and memory, one processor being exemplified in fig. 8 and 9. The processor and the memory may be connected by a bus or other means, and fig. 8 and 9 illustrate the connection by a bus. The memory, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor executes various functional applications of the device and data processing, i.e., implements the above-described method of maintaining a return link or return method, by executing non-volatile software programs, instructions, and modules stored in the memory.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store a list of options, etc. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the external device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory and, when executed by the one or more processors, perform the method of maintaining a back-to-source link or back-to-source method of any of the above-described method embodiments.
The product can execute the method provided by the embodiment of the application, has corresponding functional modules and beneficial effects of the execution method, and can refer to the method provided by the embodiment of the application without detailed technical details in the embodiment.
A ninth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, implements the method of maintaining a back source link as set forth in the above embodiments.
A tenth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, implements the back-to-source method mentioned in the above embodiments.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (17)

1. A method of maintaining a back source link, comprising:
determining the communication quality of a back source link in a back source process;
the determining the communication quality of the back source link in the back source process includes:
acquiring a code rate of the source returning link in a source returning process, a delay time of the source returning link in the source returning process, a frame rate of the source returning link in the source returning process and a response time of the source returning link in the source returning process;
determining the communication quality of the back source link in the back source process according to the code rate of the back source link in the back source process, the delay time of the back source link in the back source process, the frame rate of the back source link in the back source process and the response time of the back source link in the back source process;
after the source returning is finished, if the communication quality of the source returning link in the source returning process indicates that the source returning link is stable, setting the source returning link as a reusable source returning link;
maintaining the reusable back-source link; the maintaining the reusable back source link includes: the server maintains the back source link through a session maintenance mechanism.
2. The method of claim 1, wherein in maintaining the reusable back-source link, the method further comprises:
determining the communication quality of the reusable back source link in a non-back source process;
and if the communication quality of the reusable back source link in the non-back source process is determined to indicate that the reusable back source link is unstable, disconnecting the reusable back source link.
3. The method according to claim 1, wherein the maintaining the reusable back-source link specifically includes:
periodically sending a test data packet to an upstream server corresponding to the reusable back source link; the upstream server receives the test data packet and returns a response data packet corresponding to the test data packet;
and receiving the response data packet.
4. The method according to claim 3, wherein the determining the communication quality of the reusable back-source link in a non-back-source process specifically comprises:
determining the response time of the reusable source returning link in the non-source returning process according to the sending time of the test data packet and the receiving time of the response data packet;
and determining the communication quality of the reusable back source link in the non-back-source process according to the response time of the reusable back source link in the non-back-source process.
5. The method for maintaining the back-source link according to claim 1, wherein the communication quality of the back-source link in the back-source process is determined according to the communication index data of the back-source link in the back-source process; wherein the communication index data comprises at least one of a code rate, a delay time, a frame rate, and a response time.
6. The method according to claim 1, wherein the determining the communication quality of the back source link in the back source process according to the code rate of the back source link in the back source process, the delay time of the back source link in the back source process, the frame rate of the back source link in the back source process, and the response time of the back source link in the back source process specifically includes:
determining the communication quality of the back source link in the back source process according to the code rate of the back source link in the back source process, the weight of the code rate of the back source link in the back source process, the delay time of the back source link in the back source process, the weight of the delay time of the back source link in the back source process, the frame rate of the back source link in the back source process, the weight of the frame rate of the back source link in the back source process, the response time of the back source link in the back source process and the weight of the response time of the back source link in the back source process; wherein a sum of the weight of the code rate, the weight of the delay time, the weight of the frame rate, and the weight of the response time is 1.
7. A method of returning a source, comprising:
judging whether a reusable back source link exists, wherein the reusable back source link is determined based on the method for maintaining the back source link according to any one of claims 1-6;
if the source link is determined to exist, returning the source through the reusable source link;
and if the link does not exist, selecting an upstream server, creating a back source link with the selected upstream server, and returning to the source through the created back source link.
8. The method according to claim 7, wherein the selecting an upstream server specifically includes:
respectively determining the communication quality of each upstream server;
the upstream server with the best communication quality is selected.
9. The method according to claim 8, wherein the determining the communication quality of each upstream server respectively comprises:
for each upstream server, the following operations are performed: and determining the communication quality of the upstream server according to the communication quality of all back source links corresponding to the upstream server.
10. The source returning method of claim 9, wherein the communication quality of the source returning link is determined according to at least one communication index data of code rate information, delay information, frame rate information and response time of the source returning link.
11. The method of any one of claims 7 to 10, wherein after the returning to the source through the created returning to the source link, the method of returning to the source further comprises:
determining the communication quality of the created back-source link in the back-source process;
after the source returning is finished, if the communication quality of the created source returning link in the source returning process indicates that the created source returning link is stable, the created source returning link is set to be a reusable link, and the created source returning link is maintained.
12. An apparatus for maintaining a back source link, comprising: a determination module and a holding module, coupled to perform the method of holding a back source link of any of claims 1 to 6.
13. A feed back device, comprising: a determining module, a first processing module and a second processing module, coupled to perform the source returning method of any one of claims 7 to 11.
14. A server, comprising: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of maintaining a back source link as claimed in any one of claims 1 to 6.
15. A server, comprising: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the back source method of any one of claims 7 to 11.
16. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the method of maintaining a back source link of any of claims 1 to 6.
17. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the back-source method according to any one of claims 7 to 11.
CN201810961255.2A 2018-08-22 2018-08-22 Method for maintaining back source link, back source method, related device and storage medium Active CN109257335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810961255.2A CN109257335B (en) 2018-08-22 2018-08-22 Method for maintaining back source link, back source method, related device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810961255.2A CN109257335B (en) 2018-08-22 2018-08-22 Method for maintaining back source link, back source method, related device and storage medium

Publications (2)

Publication Number Publication Date
CN109257335A CN109257335A (en) 2019-01-22
CN109257335B true CN109257335B (en) 2021-11-19

Family

ID=65050308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810961255.2A Active CN109257335B (en) 2018-08-22 2018-08-22 Method for maintaining back source link, back source method, related device and storage medium

Country Status (1)

Country Link
CN (1) CN109257335B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671718B (en) * 2020-12-03 2023-07-21 网宿科技股份有限公司 Switching method of return source link, server and storage medium
CN113132403A (en) * 2021-04-27 2021-07-16 北京百度网讯科技有限公司 Back-source method and device for content distribution network
CN116033191A (en) * 2021-10-25 2023-04-28 中兴通讯股份有限公司 Live broadcast method, content distribution service device, and storage medium
CN114760508A (en) * 2022-04-18 2022-07-15 北京金山云网络技术有限公司 Data source returning processing method, server, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7299291B1 (en) * 2000-05-18 2007-11-20 Akamai Technologies, Inc. Client-side method for identifying an optimum server
CN102843257A (en) * 2012-08-15 2012-12-26 无锡北邮感知技术产业研究院有限公司 Path estimating method and device
CN105812255A (en) * 2016-05-06 2016-07-27 网宿科技股份有限公司 Source return line selection method and device
CN106034073A (en) * 2015-03-20 2016-10-19 网宿科技股份有限公司 Multipath transmission optimization method based on content distribution network
CN107517228A (en) * 2016-06-15 2017-12-26 阿里巴巴集团控股有限公司 Dynamic accelerating method and device in a kind of content distributing network
CN108429682A (en) * 2018-02-26 2018-08-21 湖南科技学院 A kind of optimization method and system of network transmission link

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731398A (en) * 2012-10-11 2014-04-16 北京百度网讯科技有限公司 Data access method, system and device based on CDN
CN103051709A (en) * 2012-12-20 2013-04-17 新浪网技术(中国)有限公司 Data transmission path determination method, network node and content delivery network system
CN105871975A (en) * 2015-11-17 2016-08-17 乐视云计算有限公司 Method and device for selecting source server
CN107249136A (en) * 2017-06-07 2017-10-13 北京潘达互娱科技有限公司 Method for connecting network and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7299291B1 (en) * 2000-05-18 2007-11-20 Akamai Technologies, Inc. Client-side method for identifying an optimum server
CN102843257A (en) * 2012-08-15 2012-12-26 无锡北邮感知技术产业研究院有限公司 Path estimating method and device
CN106034073A (en) * 2015-03-20 2016-10-19 网宿科技股份有限公司 Multipath transmission optimization method based on content distribution network
CN105812255A (en) * 2016-05-06 2016-07-27 网宿科技股份有限公司 Source return line selection method and device
CN107517228A (en) * 2016-06-15 2017-12-26 阿里巴巴集团控股有限公司 Dynamic accelerating method and device in a kind of content distributing network
CN108429682A (en) * 2018-02-26 2018-08-21 湖南科技学院 A kind of optimization method and system of network transmission link

Also Published As

Publication number Publication date
CN109257335A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
CN109257335B (en) Method for maintaining back source link, back source method, related device and storage medium
US9325628B2 (en) Packet handling method, forwarding device and system
CN113438129B (en) Data acquisition method and device
CN104009938A (en) Method and system for long connections based on router level
CN109286957B (en) Switching method and device of return link, electronic equipment and storage medium
CN110431807A (en) The method, apparatus and system of IPTV service quality testing
CN103312593B (en) A kind of message distributing system and method
TW201737114A (en) Configuration information push method and device
CN108228625B (en) Push message processing method and device
US11012341B2 (en) Method for monitoring and controlling session traffic usage, server and storage medium
WO2017084618A1 (en) Method for monitoring node communication of shared storage cluster file system, and monitoring node
EP3057287A1 (en) Node allocation method, device and system
US10211995B2 (en) Background traffic downloading method, device, and system
CN110048906B (en) Method, system, device and server for judging node transmission quality
EP3286967A1 (en) Technique for scheduling transmission of content in an access network
US10348597B2 (en) Monitoring server, resolution server, request device, and node selection method
CN113342764A (en) Data synchronization method and device among different cloud servers
US20210014117A1 (en) Terminal device management method, server, and terminal device for managing terminal devices in local area network
EP3220671A1 (en) Group resource update processing method, device and system, and cse
CN108574615B (en) Content transmission method, device and system based on multipath MPTCP
CN114679570A (en) Video transmission method and device, storage medium and electronic device
CN109327398B (en) Method and device for preventing packet loss
CN111092741B (en) System and method for distributing files through multicast channel
CN110311750B (en) Data transmission method, system and server
CN114978789B (en) Intelligent sending method, device, server and medium of security information

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