CN109257335A - It keeps back the method for source link, return source method, relevant apparatus and storage medium - Google Patents
It keeps back the method for source link, return source method, relevant apparatus and storage medium Download PDFInfo
- Publication number
- CN109257335A CN109257335A CN201810961255.2A CN201810961255A CN109257335A CN 109257335 A CN109257335 A CN 109257335A CN 201810961255 A CN201810961255 A CN 201810961255A CN 109257335 A CN109257335 A CN 109257335A
- Authority
- CN
- China
- Prior art keywords
- source
- time
- link
- source link
- procedure
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1069—Session establishment or de-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/80—Responding to QoS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/222—Secondary servers, e.g. proxy server, cable television Head-end
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
- H04N21/64322—IP
Abstract
The present embodiments relate to field of communication technology, discloses a kind of method for keeping back source link, returns source method, relevant apparatus and storage medium.In the present invention, the method for keeping back source link comprises determining that back source link in the communication quality returned in source procedure;After this Hui Yuan, however, it is determined that return source link in the communication quality returned in source procedure and indicate back that source link is stablized, source link will be returned and be set to reusable time source link;Keep reusable time source link.In the realization, server can carry out Hui Yuan by reusable time source link, save back the creation time of source link, and then shorten initial screen time, improve the viewing experience of terminal user.
Description
Technical field
The present embodiments relate to field of communication technology, in particular to a kind of method for keeping back source link, return source method,
Relevant apparatus and storage medium.
Background technique
Currently, the direct broadcast service of the overwhelming majority, which provides manufacturer, all selects content distributing network (Content Delivery
Network, CDN) or cloud service provider be broadcast live acceleration.With development in science and technology, terminal user is continuous to live streaming quality requirement
It is promoted, requirement of the terminal user to live streaming quality shields that fast, Caton rate is low higher headed by transformation from can broadcasting for beginning
Requirement.
However, it is found by the inventors that at least there are the following problems in the prior art: in the process of edge node server Hui Yuan
In, it needs to create transmission control protocol (Transmission Control Protocol, TCP) chain with upstream node server
It connects, temporarily creating back source link will affect the initial screen time of live streaming and the viewing experience of terminal user.
Summary of the invention
Embodiment of the present invention is designed to provide a kind of method for keeping back source link, returns source method, relevant apparatus
And storage medium, make it possible to carry out Hui Yuan by reusable time source link, saves back the creation time of source link, in turn
Initial screen time is shortened, the viewing experience of terminal user is improved.
In order to solve the above technical problems, embodiments of the present invention provide a kind of method for keeping back source link, including
Following steps: determine back source link in the communication quality returned in source procedure;After this Hui Yuan, however, it is determined that return source link and exist
The communication quality returned in source procedure indicates back that source link is stablized, and will return source link and is set to reusable time source link;Holding can answer
Return source link.
Embodiments of the present invention additionally provide a kind of time source method, comprising: judge whether there is reusable Hui Yuanlian
Road;If it is determined that in the presence of reusable time source link Hui Yuan is passed through;If it is determined that being not present, a upstream server is selected, with selection
Upstream server create back source link, pass through creation return source link Hui Yuan.
Embodiments of the present invention additionally provide a kind of device for keeping back source link, comprising: determining module and holding mould
Block, determining module and holding module coupling, the method for keeping back source link referred to for executing above embodiment.
Embodiments of the present invention additionally provide a kind of time source device, comprising: judgment module, first processing module and second
Processing module, judgment module, first processing module and Second processing module coupling, time referred to for executing above embodiment
Source method.
Embodiments of the present invention additionally provide a kind of server, comprising: at least one processor;And at least one
The memory of a processor communication connection;Wherein, memory is stored with the instruction that can be executed by least one processor, instructs quilt
At least one processor executes so that at least one processor be able to carry out that above embodiment refers to keep back source link
Method.
Embodiments of the present invention additionally provide a kind of server, comprising: at least one processor;And at least one
The memory of a processor communication connection;Wherein, memory is stored with the instruction that can be executed by least one processor, instructs quilt
At least one processor executes, so that at least one processor is able to carry out time source method that above embodiment refers to.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate
The method for keeping back source link that above embodiment refers to is realized when machine program is executed by processor.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate
Time source method that above embodiment refers to is realized when machine program is executed by processor.
In terms of existing technologies, server is to time source link in the communication matter returned in source procedure for embodiment of the present invention
Amount is monitored, and the stable source link that returns of communication quality is set to reusable time source link, keeps the reusable Hui Yuan
Link, so that server when going back to source next time, can carry out Hui Yuan by reusable time source link, save back source link
Creation time shortens initial screen time.Since reusable time source link is the stable link of communication quality, pass through communication quality
The stable source link that returns carries out Hui Yuan, can guarantee the transmission quality of this Hui Yuan, improve the viewing experience of terminal user.
In addition, during keeping reusable time source link, the method that keeps back source link further include: determination can answer
Return communication quality of the source link in non-time source procedure;If it is determined that reusable time source link is logical in non-time source procedure
Letter quality indicates that reusable time source link is unstable, disconnects reusable time source link.In the realization, communication matter is disconnected in time
Reusable time unstable source link is measured, in case server is returned by reusable time unstable source link of communication quality
Source further ensures the stability of server Hui Yuan.
In addition, keeping reusable time source link, specifically include: periodically sending test data packet to reusable Hui Yuanlian
The corresponding upstream server in road;Wherein, upstream server receives test data packet, and returns to response corresponding with test data packet
Data packet;Receive response data packet.
In addition, determining communication quality of the reusable time source link in non-time source procedure, specifically include: according to test number
According to the sending time of packet and the receiving time of response data packet, response of the reusable time source link in non-time source procedure is determined
Time;According to response time of the reusable time source link in non-time source procedure, determine reusable time source link at non-time
Communication quality in source procedure.In the realization, communication quality of the reusable time source link in non-time source procedure is supervised
Control, so as to disconnect in time it is unstable return source link, avoid maintaining unstable and return the wasting of resources caused by the link of source.
In addition, returning singal reporting code of the source link in the communication quality returned in source procedure according to time source link in time source procedure
Data determine;Wherein, singal reporting code data include at least one of code rate, delay time, frame per second and response time.
In addition, determining back that source link in the communication quality returned in source procedure, specifically includes: obtaining back source link and returning source mistake
Code rate, time source link in journey are in the delay time returned in source procedure, time source link in the frame per second and Hui Yuanlian returned in source procedure
Road is in the response time returned in source procedure;According to return source link return source procedure in code rate, return source link return source procedure in
Code rate weight, return source link in the delay time returned in source procedure, return source link in the delay time returned in source procedure
Weight, the weight for returning frame per second of the source link in the frame per second returned in source procedure, time source link in time source procedure, time source link are returning
The weight of response time and time source link in the response time returned in source procedure in source procedure determines back that source link is returning source mistake
Communication quality in journey;Wherein, the sum of the weight of code rate, the weight of delay time, the weight of frame per second and the weight of response time
It is 1.In the realization, the communication quality of source link is assessed back from code rate, delay time, frame per second and response time four dimensions, is made
The communication quality for returning source link for obtaining server assessment can more fully react the real quality of this time source link.
In addition, one upstream server of selection, specifically includes: determining the communication quality of each upstream server respectively;Choosing
Select the best upstream server of communication quality.In the realization, server is sufficiently examined when creating link with upstream server
The transmission quality of upstream server is considered, so that the communication quality for returning source link of creation is more secure.
In addition, determining the communication quality of each upstream server respectively, specifically include: being directed to each upstream server, into
The following operation of row: according to the communication quality of the corresponding all times source links of upstream server, the communication matter of upstream server is determined
Amount.
In addition, returning the communication quality of source link according to code rate information, Delay, frame per second information and the response for returning source link
At least one of time singal reporting code data determine.
In addition, after time source link Hui Yuan by creation, the method for Hui Yuan further include: determine creation returns source link
In the communication quality returned in source procedure;After this Hui Yuan, however, it is determined that the source link that returns of creation is returning leading in source procedure
Believe that the source link that returns of quality instruction creation is stablized, the source link that returns of creation is set to reusable link, keeps the Hui Yuanlian of creation
Road.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys
The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove
Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is the flow chart of the method for keeping back source link of first embodiment of the invention;
Fig. 2 is the flow chart of the method for keeping back source link of second embodiment of the invention;
Fig. 3 is the flow chart for returning source method of third embodiment of the invention;
Fig. 4 is the flow chart for returning source method of four embodiment of the invention;
Fig. 5 is the management framework schematic diagram of the server of four embodiment of the invention;
Fig. 6 is the structural schematic diagram of the device for keeping back source link of fifth embodiment of the invention;
Fig. 7 is the structural schematic diagram for returning source device of sixth embodiment of the invention;
Fig. 8 is the structural schematic diagram of the server of seventh embodiment of the invention;
Fig. 9 is the structural schematic diagram of the server of eighth embodiment of the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention
In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details
And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of methods for keeping back source link, are applied to server, for example, content
The node server of distribution network.As shown in Figure 1, the holding return source link method the following steps are included:
Step 101: determining back source link in the communication quality returned in source procedure.
Specifically, server monitors the corresponding all times source links of the server in real time or periodically is returning source mistake
Singal reporting code data in journey determine back the communication of source link according to source link is returned in the singal reporting code data returned in source procedure
Quality.Singal reporting code data can be code rate, delay time, frame per second and any one in the response time or any combination.Its
In, the response time can be transmission control protocol/confirmation character (Transmission Control Protocol/
Acknowledgement, TCP/ACK) response time.
It is clear to illustrate, in present embodiment, illustrate to keep Hui Yuan so that server returns the monitoring of source link to one as an example
The method of link, in practical application, server all times source links corresponding to the server are all monitored.
In the specific implementation, server is to time source link in code rate, delay time, frame per second and the response time returned in source procedure
In any one singal reporting code data be monitored.When server is monitored to code rate of the source link in time source procedure is returned
When, the average bit rate of server period statistics transmission, and by the code rate and data of the average bit rate in this period and a upper period
The original stream bit rate of stream carries out various dimensions comparative analysis, to determine the fluctuation range of the code rate of this time source link.Server according to
The fluctuation range of the code rate of this time source link determines this time source link in the communication quality returned in source procedure.For example, working as the Hui Yuan
The code rate fluctuation of link is smaller, and when code rate is generally higher, then it is assumed that this time source link is in the good communication quality returned in source procedure.
When server is monitored delay time of time source link in time source procedure, the period of server period statistical time stamp
The difference of the mechanical periodicity value of changing value and system time, as time source link in the delay time returned in source procedure.Server
According to source link is returned in the delay time returned in source procedure, determine back source link in the communication quality returned in source procedure.For example, working as
When the delay time of this time source link is less than preset delay time, then it is assumed that this time source link is in the communication matter returned in source procedure
It measures.When server is to source link is returned when the frame per second returned in source procedure is monitored, the period counts the frame per second of transmission, and should
With the carrying out various dimensions comparative analysis of the frame per second and original frame per second in the frame per second in period and a upper period, determines the fluctuation range of frame per second.
Server determines back source link in the communication quality returned in source procedure according to the fluctuation situation of frame per second.For example, working as this time source link
Frame per second fluctuation range it is smaller, and frame per second average value it is larger when, then it is assumed that return source link return source procedure in communication matter
It measures.When server is to source link is returned when being monitored the TCP/ACK response time returned in source procedure, to the past of TCP message
Returning the time is monitored, and then determines the TCP/ACK response time.When network fluctuates, the TCP/ACK response time can increase
Add.Therefore, a threshold value can be set in server, when the TCP/ACK response time being greater than the threshold value, it is believed that wave occurs in network
Dynamic, the communication quality of this time source link is bad.Wherein, threshold value can be configured according to the requirement to network stabilization.
It is another in the specific implementation, server to return source link return source procedure in code rate, delay time, frame per second and response
Time is monitored, and establishes Data Analysis Model, to determine the matter of server according to aforementioned four singal reporting code data
Amount.Specifically, server obtains back source link when the code rate returned in source procedure, returning delay of the source link in time source procedure
Between, return source link return source procedure in frame per second and return source link return source procedure in response time, according to return source link exist
Return source procedure in code rate, return source link return source procedure in code rate weight, return source link return source procedure in delay
Time, return source link return source procedure in delay time weight, return source link return source procedure in frame per second, return source link
In the response time returned in source procedure and source link is returned in returning source procedure in the weight for the frame per second returned in source procedure, time source link
Response time weight, determine back source link return source procedure in communication quality.Wherein, the weight of code rate, delay time
Weight, the weight of frame per second and the weight of response time and be 1.
Step 102: after this Hui Yuan, however, it is determined that return source link in the communication quality returned in source procedure and indicate Hui Yuan
Link is stablized, and will return source link and is set to reusable time source link.
Specifically, if returning source link in the good communication quality returned in source procedure, then it is assumed that this time source link is stablized.If returning
Source link is bad in the communication quality returned in source procedure, then it is assumed that this time source link is unstable.
Step 103: keeping reusable time source link.
Specifically, server return source link stop data send after, according to return source link return source procedure in
Communication quality judges whether this time source link be stable in returning source procedure.If returning source link in the communication matter returned in source procedure
Amount indicates back that source link is stablized, this time source link is set to reusable time source link, and keep the available time source link.
In the specific implementation, server keeps mechanism (session) by session, kept to source link is returned.Specifically
It says, server periodically sends test data packet (PING data packet) to the corresponding upstream server of reusable time source link.On
It swims server and receives test data packet (PING data packet), and return to number of responses corresponding with test data packet (PING data packet)
According to packet (PONG data packet).Server receives response data packet (PONG data packet).Server periodically sends test data
Packet and response data packet, to keep this time source link.
It should be noted that it will be understood by those skilled in the art that after being re-used when reusable time source link, due to
The reusable time source chain road has existed data transmission, and server can not retransmit test data packet.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the method for keeping back source link provided in present embodiment, server is to time source link
It is monitored in the communication quality returned in source procedure, and the stable source link that returns of communication quality is set to reusable Hui Yuanlian
Road keeps the reusable time source link, so that server when going back to source next time, can be carried out by reusable time source link
Hui Yuan saves back the creation time of source link, shortens initial screen time.Since reusable time source link is that communication quality is steady
Fixed link carries out Hui Yuan by the stable source link that returns of communication quality, can guarantee the transmission quality of this Hui Yuan, improve
The viewing experience of terminal user.
Second embodiment of the present invention is related to a kind of method for keeping back source link.Present embodiment is in the first embodiment party
It is further improved on the basis of formula, specific improvements are as follows: during keeping back source link, to time source link non-
The communication quality returned in source procedure is monitored.
Specifically, as shown in Fig. 2, in the present embodiment, include step 201 to step 205, wherein step 201 to
Step 203 is roughly the same to step 103 with the step 101 in first embodiment respectively, and details are not described herein again.It is main below to be situated between
Continue difference:
Step 201 is executed to step 203.
Step 204: determining communication quality of the reusable time source link in non-time source procedure.
Specifically, server when keeping back source link, can continue to send test data packet, and receive test data packet
Corresponding response data packet.For server according to the sending time of test data packet and the receiving time of response data packet, determination can
Response time of the source link in non-time source procedure is returned in multiplexing, and according to reusable time source link in non-time source procedure
Response time determines communication quality of the reusable time source link in non-time source procedure.
Step 205: if it is determined that communication quality of the reusable time source link in non-time source procedure indicates reusable time
Source link is unstable, disconnects reusable time source link.
Specifically, if communication quality of the reusable time source link in non-time source procedure indicates reusable Hui Yuanlian
When road is unstable, illustrating the problems such as this time source link is likely to occur network fluctuation, server disconnects the reusable time source link,
In order to avoid server selects this time source link, the unstable situation of transmission quality occurs when going back to source next time.
It should be noted that it will be understood by those skilled in the art that server, which can monitor in real time, to answer in practical application
Communication quality of the source link in non-time source procedure is returned, can also periodically monitor reusable time source link at non-time
Communication quality in source procedure.
It is noted that server supervises communication quality of the reusable time source link in non-time source procedure
Control, so as to disconnect in time it is unstable return source link, avoid maintaining unstable and return the wasting of resources caused by the link of source.
It should be noted that it will be understood by those skilled in the art that being that server is avoided not to be re-used in the presence of excessive
Reusable time source link, causes the wasting of resources of server, server can periodically delete exceed the time limit not to be re-used can
Source link is returned in multiplexing.
It should be noted that it will be understood by those skilled in the art that being requested to illustrate, by step 204 in present embodiment
Subsequent step with step 205 as step 203, in practical application, step 203 and step 204 and step 205 can simultaneously into
Row, conditioning step 203, step 204 and step 205 do not execute sequence to present embodiment.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the method for the holding link provided in present embodiment, server are being returned to source link is returned
Communication quality in source procedure is monitored, and the stable source link that returns of communication quality is set to reusable time source link, is protected
The reusable time source link is held, so that server when going back to source next time, can carry out Hui Yuan by reusable time source link,
The creation time for saving back source link, shortens initial screen time.Since reusable time source link is that communication quality is stable
Link carries out Hui Yuan by the stable source link that returns of communication quality, can guarantee the transmission quality of this Hui Yuan, improve terminal
The viewing experience of user.In addition to this, server carries out communication quality of the reusable time source link in non-time source procedure
Monitoring, to disconnect unstable time source link in time, in order to avoid the reusable Hui Yuan that server is unstable by communication quality
Link Hui Yuan further ensures the stability of server Hui Yuan, also avoids maintaining unstable and returns money caused by the link of source
Source waste.
Third embodiment of the present invention is related to a kind of time source method, this time source method is applied to server, for example, content
The node server of distribution network.As shown in figure 3, this time source method the following steps are included:
Step 301: judging whether there is reusable time source link.
In the specific implementation, can first inquire when server needs go back to source currently with the presence or absence of reusable time source link, if really
It is fixed to exist, step 302 is executed, otherwise, executes step 303.
It should be noted that it will be understood by those skilled in the art that server can exist in determination can in practical application
After time source link of multiplexing, before reusable time source link Hui Yuan, according to the reusable time source link in non-Hui Yuan
Communication quality in the process detects the stability of the reusable time source link.If the reusable time source link
Stablize, then Hui Yuan is re-created if the reusable time source link is unstable by the reusable time source link Hui Yuan
Link.
Step 302: passing through reusable time source link Hui Yuan.
In the specific implementation, server detects the presence of a plurality of reusable time source link, then a communication quality is selected most
Reusable time good source link carries out Hui Yuan.
Step 303: one upstream server of selection creates back source link with the upstream server of selection, passes through creation
Return source link Hui Yuan.
Specifically, server creates back source link after not inquiring reusable time source link, with upstream server,
Hui Yuan is carried out by the source link that returns of creation.
Compared with prior art, what present embodiment provided returns source method, and when returning upstream server drawing stream, server is first
Inquiry whether there is reusable time source link, however, it is determined that there are reusable time source link, server can pass through the Hui Yuanlian
The direct Hui Yuan in road does not need the new time source link of creation, saves round-trip delay (Round-Trip Time, RTT), shorten
Initial screen time improves the live streaming viewing experience of user.
4th embodiment of the invention be related to it is a kind of return source method, present embodiment is to third embodiment into one
Step refinement, specifically illustrates step 303, and illustrate other correlation steps.Specifically, as shown in figure 4, in present embodiment
In, return source method the following steps are included:
Step 401: judging whether there is reusable time source link.
Specifically, server executes step 402 if it is determined that there is no not reusable time source link, if server is true
It is fixed to there is not reusable time source link, execute step 404.
Step 402: determining the communication quality of each upstream server respectively, select the upstream service that communication quality is best
Device.
Step 403: creating back source link with the upstream server of selection, link Hui Yuan in source is returned by creation.It holds later
Row step 405.
Specifically, being directed to each upstream server, server is according to the corresponding all times source links of upstream server
Communication quality determines the communication quality of upstream server.In the specific implementation, server collects server in real time or periodically
Every return source link communication quality, and obtain every return the corresponding upstream server of source link address information.Server
According to the address information of the corresponding upstream server of each of the links, the communication quality and upstream server pair of this time source link are established
It should be related to.Server establishes Data Analysis Model according to the communication quality information of the corresponding all times source links of upstream server,
For multiple dimensional analysis such as code rate, delay time, frame per second and TCP/ACK response time upstream servers relative to this service
The communication quality of device.Determine that there is no the upstream services for when reusable time source link, selecting communication quality best in server
Device creates TCP connection with the best upstream server of the communication quality.
Step 404: passing through reusable time source link Hui Yuan.
Specifically, server is by reusable time source link or time source link of creation, upstream server is sent
Request message.The request message can be hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) and ask
Message is sought, the request message of other forms is also possible to.
Step 405: determining that this used returns source link in the communication quality returned in source procedure.
Specifically, this source link that returns used is time source link or the reusable time source link created.
It should be noted that the communication quality for returning source link can be according to code rate information, the Delay, frame for returning source link
At least one of rate information and response time singal reporting code data determine, determine back the specific method of the communication quality of source link
Can be with reference to the description in first embodiment and second embodiment about the method for the communication quality for determining back source link, this
Place repeats no more.
Step 406: after this Hui Yuan, however, it is determined that return source link in the communication quality returned in source procedure and indicate Hui Yuan
Link is stablized, and will return source link and is set to reusable time source link, keeps reusable time source link.
Wherein, server is according to time source link in the communication quality returned in source procedure, it is determined whether sets this time source link
First embodiment of the invention and second can be referred in fact for reusable time source link, and the method for keeping back source link
The description of relevant portion in mode is applied, details are not described herein again.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the method for keeping back source link provided in present embodiment is drawn returning upstream server
When stream, server is first inquired with the presence or absence of reusable time source link, however, it is determined that there are reusable time source links, and server can
By this time direct Hui Yuan of source link, do not need creation it is new return source link, save round-trip delay (Round-Trip Time,
RTT), initial screen time is shortened, the live streaming viewing experience of user is improved.If server, which does not determine, is not present reusable Hui Yuan
Link selects a better upstream service according to the communication quality of corresponding time source link of the upstream server of current statistic
Device carries out Hui Yuan, improves the entire stability for returning source link.
It should be noted that it will be understood by those skilled in the art that in practical application, it can be by embodiments of the present invention
The source method of returning that the method for keeping back source link referred to can cooperate embodiments of the present invention to refer to executes.When the two cooperates
When execution, the management framework schematic diagram of server is as shown in Figure 5.Server receives the singal reporting code data of each time source link,
And Data Analysis Model is established, to determine each time source link respectively according to the singal reporting code data of each time source link
Communication quality.Server regularly updates the communication quality of each upstream server according to the communication quality of each time source link, with
When just creating back source link, optimal upstream server is selected to carry out Hui Yuan.Server receives the letter of reusable time source link
Breath, the information of reusable time source link refer to the identification information and communication quality of reusable time source link.Server is regular
The information of all reusable time source links is updated, so as to of reusable time current source link of server timely learning
The quality of several and each reusable time source link.Server is in receives link inquiry instruction, that is, when needing go back to source, looks into
The information of reusable time current source link is ask, and determines the communication quality of reusable time current source link.Server
If inquiring reusable time stable source link, Hui Yuan is carried out by this time source link.If server does not inquire surely
Reusable time fixed source link, then select optimal upstream server, creates back source link with the upstream server, passes through wound
The source link that returns built carries out Hui Yuan.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent
It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed
Core design with process is all in the protection scope of the patent.
Fifth embodiment of the invention is related to a kind of device for keeping back source link, as shown in fig. 6, comprising determining that module
601 couple with holding module 602, determining module 601 and holding module 602, the holding referred to for executing above embodiment
The method for returning source link.Determining module 601 is used to determine back source link in the communication quality returned in source procedure.Keep module 602
For after this Hui Yuan, however, it is determined that module 601 determines back that source link indicates Hui Yuan in the communication quality returned in source procedure
Link is stablized, and will return source link and is set to reusable time source link;Keep reusable time source link.
It is not difficult to find that present embodiment is system embodiment corresponding with first embodiment, present embodiment can be with
First embodiment is worked in coordination implementation.The relevant technical details mentioned in first embodiment still have in the present embodiment
Effect, in order to reduce repetition, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in
In first embodiment.
It is noted that each module involved in present embodiment is logic module, and in practical applications, one
A logic unit can be a physical unit, be also possible to a part of a physical unit, can also be with multiple physics lists
The combination of member is realized.In addition, in order to protrude innovative part of the invention, it will not be with solution institute of the present invention in present embodiment
The technical issues of proposition, the less close unit of relationship introduced, but this does not indicate that there is no other single in present embodiment
Member.
Sixth embodiment of the invention is related to a kind of time source device, as shown in fig. 7, comprises: at judgment module 701, first
Module 702 and Second processing module 703 are managed, judgment module 701, first processing module 702 and Second processing module 703 couple,
Time source method referred to for executing above embodiment.Judgment module 701 is for judging whether there is reusable Hui Yuanlian
Road.First processing module 702 is used to determine in judgment module 701 there are after reusable time source link, pass through reusable time
Source link Hui Yuan.Second processing module 703 is used to determine in judgment module 701 there is no after reusable time source link, select
One upstream server creates back source link with the upstream server of selection, returns source link Hui Yuan by creation.
It is not difficult to find that present embodiment is system embodiment corresponding with third embodiment, present embodiment can be with
Third embodiment is worked in coordination implementation.The relevant technical details mentioned in third embodiment still have in the present embodiment
Effect, in order to reduce repetition, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in
In third embodiment.
It is noted that each module involved in present embodiment is logic module, and in practical applications, one
A logic unit can be a physical unit, be also possible to a part of a physical unit, can also be with multiple physics lists
The combination of member is realized.In addition, in order to protrude innovative part of the invention, it will not be with solution institute of the present invention in present embodiment
The technical issues of proposition, the less close unit of relationship introduced, but this does not indicate that there is no other single in present embodiment
Member.
Seventh embodiment of the invention is related to a kind of server, as shown in figure 8, including at least one processor 801;With
And the memory 802 with the communication connection of at least one processor 801;Wherein, be stored with can be by least one for memory 802
The instruction that device 801 executes is managed, instruction is executed by least one processor 801, so that at least one processor 801 is able to carry out
State the method for keeping back source link that embodiment refers to.
Eighth embodiment of the invention is related to a kind of server, as shown in figure 9, including at least one processor 901;With
And the memory 902 with the communication connection of at least one processor 901;Wherein, be stored with can be by least one for memory 902
The instruction that device 901 executes is managed, instruction is executed by least one processor 901, so that at least one processor 901 is able to carry out
State time source method that embodiment refers to.
The server referred in seventh embodiment of the invention and the 8th embodiment include: one or more processors with
And memory, it takes a processor as an example in Fig. 8 and Fig. 9.Processor, memory can be connected by bus or other modes
Connect, Fig. 8 in Fig. 9 for being connected by bus.Memory can be used as a kind of non-volatile computer readable storage medium storing program for executing
In storage non-volatile software program, non-volatile computer executable program and module.Processor is stored in by operation
Non-volatile software program, instruction and module in memory, at the various function application and data of equipment
Reason realizes that above-mentioned holding returns the method for source link or returns source method.
Memory may include storing program area and storage data area, wherein storing program area can storage program area, extremely
Application program required for a few function;It storage data area can the Save option list etc..In addition, memory may include high speed
Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or
Other non-volatile solid state memory parts.In some embodiments, it includes remotely located relative to processor that memory is optional
Memory, these remote memories can pass through network connection to external equipment.The example of above-mentioned network includes but is not limited to
Internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more module stores in memory, when being executed by one or more processor, executes above-mentioned
The method for keeping back source link or time source method in any means embodiment.
The said goods can be performed the application embodiment provided by method, have the corresponding functional module of execution method and
Beneficial effect, the not technical detail of detailed description in the present embodiment, reference can be made to method provided by the application embodiment.
Ninth embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.Computer
The method for keeping back source link that above embodiment refers to is realized when program is executed by processor.
Tenth embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.Computer
Time source method that above embodiment refers to is realized when program is executed by processor.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make
It obtains an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) executes side described in each embodiment of the application
The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention,
And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.
Claims (17)
1. a kind of method for keeping back source link characterized by comprising
Determine back source link in the communication quality returned in source procedure;
After this Hui Yuan, however, it is determined that described time source link is in described time source link of the communication quality instruction returned in source procedure
Stablize, described time source link is set to reusable time source link;
Keep the reusable time source link.
2. the method according to claim 1 for keeping back source link, which is characterized in that keeping the reusable Hui Yuan
During link, the method for keeping back source link further include:
Determine communication quality of the reusable time source link in non-time source procedure;
If it is determined that communication quality of the reusable time source link in non-time source procedure indicates the reusable Hui Yuanlian
Road is unstable, disconnects the reusable time source link.
3. the method according to claim 1 for keeping back source link, which is characterized in that described to be kept for described reusable time
Source link, specifically includes:
Test data packet is periodically sent to the corresponding upstream server of the reusable time source link;Wherein, the upstream clothes
Business device receives the test data packet, and returns to response data packet corresponding with the test data packet;
Receive the response data packet.
4. the method according to claim 3 for keeping back source link, which is characterized in that described reusable time of the determination
Communication quality of the source link in non-time source procedure, specifically includes:
According to the receiving time of the sending time of the test data packet and the response data packet, determine described reusable time
Response time of the source link in non-time source procedure;
According to response time of the reusable time source link in non-time source procedure, the reusable time source link is determined
Communication quality in non-time source procedure.
5. the method according to claim 1 for keeping back source link, which is characterized in that described time source link is returning source procedure
In communication quality return source link according to described and determined in the singal reporting code data returned in source procedure;Wherein, the singal reporting code
Data include at least one of code rate, delay time, frame per second and response time.
6. the method according to claim 1 for keeping back source link, which is characterized in that the determination returns source link in Hui Yuan
Communication quality in the process, specifically includes:
Obtain it is described return source link return in source procedure code rate, described time source link return in source procedure delay time, institute
Source link is stated back in the frame per second and described time source link returned in source procedure in the response time returned in source procedure;
The weight of code rate according to described time source link in the code rate, described time source link returned in source procedure in time source procedure,
The weight of delay time of the described time source link in the delay time, described time source link returned in source procedure in time source procedure,
The weight of frame per second of the described time source link in the frame per second, described time source link returned in source procedure in time source procedure, the Hui Yuan
Link return source procedure in response time and described time source link return source procedure in response time weight, determine described in
Source link is returned in the communication quality returned in source procedure;Wherein, the weight of the code rate, the weight of the delay time, the frame
The weight of rate and the weight of the response time and be 1.
7. one kind returns source method characterized by comprising
Judge whether there is reusable time source link;
If it is determined that in the presence of the reusable time source link Hui Yuan is passed through;
If it is determined that being not present, a upstream server is selected, source link is created back with the upstream server of selection, passes through creation
Return source link Hui Yuan.
8. according to claim 7 time source method, which is characterized in that one upstream server of the selection specifically includes:
The communication quality of each upstream server is determined respectively;
The upstream server for selecting communication quality best.
9. according to claim 8 time source method, which is characterized in that the communication for determining each upstream server respectively
Quality specifically includes:
It for each upstream server, performs the following operation: according to the logical of the corresponding all times source links of the upstream server
Believe quality, determines the communication quality of the upstream server.
10. according to claim 9 time source method, which is characterized in that the communication quality of described time source link is according to Hui Yuan
At least one of code rate information, Delay, frame per second information and the response time of link singal reporting code data determine.
11. according to any one of claims 7 to 10 time source method, which is characterized in that in the returning by creation
After the link Hui Yuan of source, the method for the Hui Yuan further include:
Determine the creation returns source link in the communication quality returned in source procedure;
After this Hui Yuan, however, it is determined that the source link that returns of the creation indicates the wound in the communication quality returned in source procedure
The source link that returns built is stablized, and the source link that returns of the creation is set to reusable link, keep the creation returns source link.
12. a kind of device for keeping back source link characterized by comprising determining module and holding module, the determining module
It is coupled with the holding module, for the method for keeping back source link described in any one of perform claim requirement 1 to 6.
13. one kind returns source device characterized by comprising judgment module, first processing module and Second processing module, it is described
Judgment module, the first processing module and Second processing module coupling require any one of 7 to 11 institutes for perform claim
That states returns source method.
14. a kind of server characterized by comprising at least one processor;And
The memory being connect at least one described processor communication;Wherein, be stored with can be by described at least one for the memory
The instruction that a processor executes, described instruction is executed by least one described processor, so that at least one described processor energy
It is enough to execute such as the method as claimed in any one of claims 1 to 6 for keeping back source link.
15. a kind of server characterized by comprising at least one processor;And
The memory being connect at least one described processor communication;Wherein, be stored with can be by described at least one for the memory
The instruction that a processor executes, described instruction is executed by least one described processor, so that at least one described processor energy
It is enough to execute such as described in any item times source methods of claim 7 to 11.
16. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located
Reason device realizes the method described in any one of claims 1 to 6 for keeping back source link when executing.
17. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located
It manages and realizes time source method described in any one of claim 7 to 11 when device executes.
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 true CN109257335A (en) | 2019-01-22 |
CN109257335B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112671718A (en) * | 2020-12-03 | 2021-04-16 | 网宿科技股份有限公司 | Switching method of return link, server and storage medium |
CN113132403A (en) * | 2021-04-27 | 2021-07-16 | 北京百度网讯科技有限公司 | Back-source method and device for content distribution network |
CN114760508A (en) * | 2022-04-18 | 2022-07-15 | 北京金山云网络技术有限公司 | Data source returning processing method, server, electronic equipment and storage medium |
WO2023071468A1 (en) * | 2021-10-25 | 2023-05-04 | 中兴通讯股份有限公司 | Live broadcasting method, content distribution service device, and storage medium |
Citations (10)
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 |
CN103051709A (en) * | 2012-12-20 | 2013-04-17 | 新浪网技术(中国)有限公司 | Data transmission path determination method, network node and content delivery network system |
CN103731398A (en) * | 2012-10-11 | 2014-04-16 | 北京百度网讯科技有限公司 | Data access method, system and device based on CDN |
CN105812255A (en) * | 2016-05-06 | 2016-07-27 | 网宿科技股份有限公司 | Source return line selection method and device |
CN105871975A (en) * | 2015-11-17 | 2016-08-17 | 乐视云计算有限公司 | Method and device for selecting source server |
CN106034073A (en) * | 2015-03-20 | 2016-10-19 | 网宿科技股份有限公司 | Multipath transmission optimization method based on content distribution network |
CN107249136A (en) * | 2017-06-07 | 2017-10-13 | 北京潘达互娱科技有限公司 | Method for connecting network 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 |
-
2018
- 2018-08-22 CN CN201810961255.2A patent/CN109257335B/en active Active
Patent Citations (10)
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 |
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 |
CN106034073A (en) * | 2015-03-20 | 2016-10-19 | 网宿科技股份有限公司 | Multipath transmission optimization method based on content distribution network |
CN105871975A (en) * | 2015-11-17 | 2016-08-17 | 乐视云计算有限公司 | Method and device for selecting source server |
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 |
CN107249136A (en) * | 2017-06-07 | 2017-10-13 | 北京潘达互娱科技有限公司 | Method for connecting network and device |
CN108429682A (en) * | 2018-02-26 | 2018-08-21 | 湖南科技学院 | A kind of optimization method and system of network transmission link |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112671718A (en) * | 2020-12-03 | 2021-04-16 | 网宿科技股份有限公司 | Switching method of return link, server and storage medium |
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 |
WO2023071468A1 (en) * | 2021-10-25 | 2023-05-04 | 中兴通讯股份有限公司 | Live broadcasting 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 |
Also Published As
Publication number | Publication date |
---|---|
CN109257335B (en) | 2021-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109257335A (en) | It keeps back the method for source link, return source method, relevant apparatus and storage medium | |
CN1331333C (en) | Parallel information delivery method based on peer-to-peer enabled distributed computing technology and the system thereof | |
CN101317370B (en) | Method and management agent for event notifications correlation | |
CA2365253C (en) | System and method for providing internet broadcasting data based on hierarchical structure | |
CN104519036A (en) | Method and device for sending service request message | |
CN105338061A (en) | Lightweight message oriented middleware realization method and system | |
CN103024699B (en) | A kind of note transmission method and a kind of information resources station entity | |
CN111654321B (en) | Satellite network management method and device and electronic equipment | |
US20150229733A1 (en) | Web caching method and system for content distribution network | |
CN113438129B (en) | Data acquisition method and device | |
CN109963169A (en) | A kind of code-transferring method, server and computer readable storage medium | |
Chen et al. | Minimizing age-of-information for fog computing-supported vehicular networks with deep Q-learning | |
CN112073128A (en) | Communication equipment performance test method and device | |
CN110705893A (en) | Service node management method, device, equipment and storage medium | |
CN105208004B (en) | A kind of data storage method based on OBD equipment | |
RU2407170C2 (en) | Method for interface adaptation of television internet protocol with stream data storage device | |
CN114185582A (en) | Automobile software online upgrading system and method based on QUIC protocol | |
CN112463413A (en) | Method and system for station terminal data interaction | |
CN110380967B (en) | SSE technology-based server message pushing method | |
CN116261065A (en) | Communication method, equipment and storage medium based on message queue telemetry transmission protocol | |
US20210014117A1 (en) | Terminal device management method, server, and terminal device for managing terminal devices in local area network | |
CN114584573A (en) | Node machine information synchronization method based on long polling mechanism | |
CN106230619B (en) | Data sending and receiving method and device, and data transmission method and system | |
CN114489730A (en) | Remote upgrading method, terminal equipment and computer readable storage medium | |
CN115102905A (en) | ECN (engineering-centric networking) waterline adjusting 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 |