CN107172015A - Live video method for pushing and device - Google Patents
Live video method for pushing and device Download PDFInfo
- Publication number
- CN107172015A CN107172015A CN201710278543.3A CN201710278543A CN107172015A CN 107172015 A CN107172015 A CN 107172015A CN 201710278543 A CN201710278543 A CN 201710278543A CN 107172015 A CN107172015 A CN 107172015A
- Authority
- CN
- China
- Prior art keywords
- cdn node
- plug
- client
- flow
- address
- 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.)
- Pending
Links
Classifications
-
- 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/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/437—Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
-
- 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/64—Addressing
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the present invention provides a kind of live video method for pushing and device, and this method includes:When live video stream, which occurs, for main broadcaster's client pushes obstructed, the presently used CDN node of main broadcaster's client is detected;If presently used CDN node has abnormal, plug-flow CDN node is reacquired according to the default corresponding relation between the corresponding IP address of plug-flow CDN node IP address corresponding with main broadcaster's client, is normal according to the plug-flow CDN node that default corresponding relation is reacquired;Live video stream is pushed so far normal plug-flow CDN node by main broadcaster's client.Main broadcaster's client pushes live video stream to this normal plug-flow CDN node, also avoid main broadcaster's client because CDN node is abnormal and caused by main broadcaster's client plug-flow it is obstructed the problem of.
Description
Technical field
The present invention relates to net cast field, more particularly to a kind of live video method for pushing and device.
Background technology
With the development of the communication technology, increasing entertainment way, such as microblogging, mobile phone games, Internet video are occurred in that
It is live etc., wherein internet video live broadcasting due to its it is directly perceived, abundant in content the features such as, be particularly subject to the welcome of people.
In the prior art, typically live video stream is uploaded to CDN node by main broadcaster's client, and viewing client is again from this
Obtain live video stream at CDN node to be watched, that is to say realizes net cast.But actually pushed away in main broadcaster's client
During stream, the obstructed phenomenon of some plug-flows often occurs, and causes the reason for plug-flow is obstructed to be probably many-sided
, therefore, how to ensure the patency of main broadcaster's plug-flow, the problem of be urgent need to resolve.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of live video method for pushing and device, to improve main broadcaster client
Hold the patency of plug-flow.
The embodiment of the present invention provides a kind of live video method for pushing, including:
If the live video stream push of main broadcaster's client is obstructed, detect whether currently used CDN node is normal;
If the currently used CDN node is abnormal, plug-flow CDN node, the plug-flow CDN node correspondence are reacquired
IP address IP address corresponding with main broadcaster's client there is default corresponding relation;
Live video stream is sent to the plug-flow CDN node.
Alternatively, whether the currently used CDN node of the detection is normal, including:
If the corresponding IP address of main broadcaster's client IP address corresponding with the currently used CDN node does not have
Default corresponding relation, then the currently used CDN node is abnormal.
Alternatively, the reacquisition plug-flow CDN node, including:
Sent to server and obtain request, described obtain asks to include the corresponding IP address of main broadcaster's client;
The plug-flow address for N number of CDN node that the reception server is sent, the corresponding IP address of the N number of CDN node with it is described
The corresponding IP address of main broadcaster's client has default corresponding relation, and N takes 1 to default value;
The plug-flow CDN node is selected from N number of CDN node.
Alternatively, it is described to select the plug-flow CDN node from N number of CDN node, including:
Ping message is sent to N number of CDN node according to the plug-flow address of N number of CDN node respectively;
Receive the pong message that N number of CDN node is sent respectively;
Time and the reception time of the pong message are sent according to the ping message, N number of CDN sections are determined
Each self-corresponding message transmission time of point;
The CDN node selected from N number of CDN node corresponding to the most short message transmission time pushes away to be described
Flow CDN node.
Alternatively, after the reacquisition plug-flow CDN node, in addition to:
Bound according to plug-flow CDN node host corresponding to main broadcaster's client.
The embodiment of the present invention provides a kind of live video pusher, including:
Detection module, if the live video stream push for main broadcaster's client is obstructed, detects currently used CDN sections
Whether point is normal;
Acquisition module, if abnormal for the currently used CDN node, reacquires plug-flow CDN node, described to push away
Flowing the corresponding IP address of CDN node IP address corresponding with main broadcaster's client has default corresponding relation;
Sending module, for live video stream to be sent to the plug-flow CDN node.
Alternatively, the detection module specifically for:If the corresponding IP address of main broadcaster's client currently makes with described
The corresponding IP address of CDN node does not have default corresponding relation, then the currently used CDN node is abnormal.
Alternatively, the acquisition module includes:
Transmitting element, request is obtained for being sent to server, and described obtain asks to include main broadcaster's client pair
The IP address answered;
Receiving unit, the plug-flow address of the N number of CDN node sent for the reception server, N number of CDN node correspondence
IP address IP address corresponding with main broadcaster's client there is default corresponding relation, N takes 1 to default value;
Selecting unit, for selecting the plug-flow CDN node from N number of CDN node.
Alternatively, the selecting unit specifically for:
Ping message is sent to N number of CDN node according to the plug-flow address of N number of CDN node respectively;
Receive the pong message that N number of CDN node is sent respectively;
Time and the reception time of the pong message are sent according to the ping message, N number of CDN sections are determined
Each self-corresponding message transmission time of point;
The CDN node selected from N number of CDN node corresponding to the most short message transmission time pushes away to be described
Flow CDN node.
Alternatively, the device also includes:Binding module, for according to the plug-flow CDN node to main broadcaster's client
Corresponding host is bound.
Live video method for pushing and device provided in an embodiment of the present invention, are pushed away when live video stream occurs for main broadcaster's client
When sending obstructed, whether just main broadcaster's client detects the corresponding currently used CDN node in currently used plug-flow address immediately
Often.If detecting CDN node there is exception, according to the corresponding IP address of CDN node IP address corresponding with main broadcaster's client
Between default corresponding relation reacquire plug-flow CDN node.Due to the corresponding IP address of plug-flow CDN node that regains with
The corresponding IP address of main broadcaster's client in the presence of default corresponding relation, and this default corresponding relation particular content be can be with
Ensure that main broadcaster's client can regain normal plug-flow CDN node, therefore, can be ensured again using this corresponding relation
The plug-flow CDN node of acquisition is all normal.Live video stream is pushed so far normal plug-flow CDN node by main broadcaster's client,
Avoid because the live video stream that CDN node is caused extremely pushes slack situation, improve the logical of main broadcaster's client plug-flow
Smooth property.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of live video method for pushing embodiment one provided in an embodiment of the present invention;
Fig. 2 is the flow chart of live video method for pushing embodiment two provided in an embodiment of the present invention;
Fig. 3 is the structural representation of live video pusher embodiment one provided in an embodiment of the present invention;
Fig. 4 is the structural representation of live video pusher embodiment two provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is the purpose only merely for description specific embodiment, and is not intended to be limiting
The present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claims
It is also intended to including most forms, unless context clearly shows that other implications, " a variety of " generally comprise at least two, but not
Exclude and include at least one situation.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent
There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, individualism B these three
Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
It will be appreciated that though XXX may be described using term first, second, third, etc. in embodiments of the present invention, but
These XXX should not necessarily be limited by these terms.These terms are only used for XXX being distinguished from each other out.For example, not departing from implementation of the present invention
In the case of example scope, the first XXX can also be referred to as the 2nd XXX, similarly, and the 2nd XXX can also be referred to as the first XXX.
Depending on linguistic context, word as used in this " if ", " if " can be construed to " ... when " or
" when ... " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " such as
Fruit detection (condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when detection (statement
Condition or event) when " or " in response to detection (condition or event of statement) ".
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising, so that commodity or system including a series of key elements not only include those key elements, but also including without clear and definite
Other key elements listed, or also include for this commodity or the intrinsic key element of system.In the feelings of not more limitations
Under condition, the key element limited by sentence "including a ...", it is not excluded that in the commodity or system including the key element also
There is other identical element.
Fig. 1 is the flow chart of live video method for pushing embodiment one provided in an embodiment of the present invention, and the present embodiment is provided
The executive agent of the live video method for pushing client can be broadcast based on.As shown in figure 1, this method comprises the following steps:
Whether just S101, when the live video stream of main broadcaster's client pushes obstructed, detect currently used CDN node
Often, step S102 is performed if currently used CDN node is abnormal, otherwise terminated.
When the live video stream of main broadcaster's client pushes obstructed, main broadcaster's client detects that main broadcaster's client is worked as immediately
Whether the preceding CDN node used is normal.
It is alternatively possible to by detecting that the corresponding IP address of main broadcaster's client is corresponding with the current CDN node used
Whether there is default corresponding relation to judge whether the currently used CDN node of main broadcaster's client is normal between IP address.Work as master
When broadcasting the corresponding IP address of client IP address corresponding with currently used CDN node and not having default corresponding relation, then table
The bright presently used CND nodes of main broadcaster's client are abnormal.Alternatively, the default corresponding relation can specifically reflect client
Hold Virtual network operator and/or geography between corresponding IP address IP address corresponding with the plug-flow CDN node being being currently used
The correspondence of position.
Alternatively, can also by detect the packet loss between main broadcaster's client and the CDN node being being currently used come
Judge whether the currently used CDN node of main broadcaster's client is normal.Main broadcaster client is represented if packet loss is more than predetermined threshold value
The currently used CDN node in end is abnormal.
S102, reacquires plug-flow CDN node, the IP address IP address corresponding with main broadcaster's client of plug-flow CDN node
With default corresponding relation.
When main broadcaster's client detects currently used CDN node exception, main broadcaster's client can be sent to server
Request is obtained, the corresponding IP address of main broadcaster's client can be included in request.Server is according to the corresponding IP of main broadcaster's client
Default corresponding relation between location, and the corresponding IP address of CDN node IP address corresponding with main broadcaster's client is in numerous CDN
A CDN node, which is selected, in the way of being selected in node in random selection mode or according to default selection strategy is used as plug-flow CDN
Node, and the corresponding plug-flow address of the plug-flow CDN node is sent to main broadcaster's client.Main broadcaster's client receives this and selected again
Plug-flow CDN node, that is to say and reacquired a plug-flow CDN node.
Alternatively, the default corresponding relation can include the Virtual network operator belonging to the corresponding IP address of CDN node and master
Broadcast the corresponding relation between the Virtual network operator belonging to the corresponding IP address of client.Specifically, the corresponding IP address of CDN node
Virtual network operator belonging to affiliated Virtual network operator IP address corresponding with main broadcaster's client is identical.According to this corresponding relation,
Belonging to Virtual network operator IP address corresponding with main broadcaster's client belonging to the corresponding IP address of plug-flow CDN node of reacquisition
Virtual network operator be identical.For example, the Virtual network operator belonging to the corresponding IP address of live client is UNICOM, then again
Virtual network operator belonging to the corresponding IP address of plug-flow CDN node of acquisition is also UNICOM.
Alternatively, the default corresponding relation can include the position belonging to the corresponding IP address of CDN node and main broadcaster client
Hold the corresponding relation between the geographical position belonging to corresponding IP address.Specifically, the ground belonging to the corresponding IP address of CDN node
The geographical position managed belonging to the IP address corresponding with main broadcaster's client of position is same or like.According to this corresponding relation, obtain again
The geographical position belonging to the IP address corresponding with main broadcaster's client of geographical position belonging to the corresponding IP address of plug-flow CDN node taken
It is same or like to put, wherein can judge the plug-flow CDN node pair reacquired according to default geographical position relation
Whether the geographical position belonging to the IP address corresponding with main broadcaster's client of the geographical position belonging to IP address answered is close.For example,
When the position belonging to the corresponding IP address of main broadcaster's client is Beijing, the then corresponding IP address of plug-flow CDN node reacquired
Affiliated position is the Beijing-tianjin-hebei Region on Beijing or Beijing periphery.
Alternatively, the default corresponding relation can include the Virtual network operator and ground belonging to the corresponding IP address of CDN node
Manage the corresponding relation distinguished between the Virtual network operator belonging to the IP address corresponding with main broadcaster's client of position and geographical position.Profit
It is corresponding with main broadcaster's client with the Virtual network operator belonging to the corresponding IP address of plug-flow CDN node of this corresponding relation reacquisition
IP address belonging to Virtual network operator it is identical, and the geographical position belonging to the corresponding IP address of plug-flow CDN node and main broadcaster
Geographical position belonging to the corresponding IP address of client is close or identical.For example, when belonging to the corresponding IP address of main broadcaster's client
Virtual network operator be UNICOM, belonging positions are Beijing, then the net belonging to the corresponding IP address of plug-flow CDN node reacquired
Network operator is UNICOM and belonging positions are the Beijing-tianjin-hebei Region on Beijing or Beijing periphery.
S103, live video stream is sent to plug-flow CDN node.
Main broadcaster's client is regained after plug-flow CDN node, then main broadcaster's client stops pushing away to currently used CDN node
Send live video stream, and the plug-flow CDN node that live video stream is re-transmitted to regain.
In the present embodiment, when live video stream, which occurs, for main broadcaster's client pushes obstructed, main broadcaster's client is detected immediately
Whether the currently used corresponding CDN node in plug-flow address is normal.If detecting currently used CDN node there is exception,
Reacquired according to the default corresponding relation between the corresponding IP address of plug-flow CDN node IP address corresponding with main broadcaster's client
Plug-flow CDN node.Because the corresponding IP address of the plug-flow CDN node IP address corresponding with main broadcaster's client regained is to deposit
In default corresponding relation, and the particular content of this default corresponding relation is can to ensure that main broadcaster's client can be regained
Normal plug-flow CDN node.Therefore, it can ensure that the plug-flow CDN node regained is normal using this corresponding relation.
Live video stream pushes so far normal plug-flow CDN node by main broadcaster's client, it is to avoid due to CDN node cause extremely it is straight
The slack situation of pushing video streaming is broadcast, the patency of main broadcaster's client plug-flow is improved.
Fig. 2 is the flow chart of live video method for pushing embodiment two provided in an embodiment of the present invention, as shown in Fig. 2 should
Method comprises the following steps:
Whether just S201, when the live video stream of main broadcaster's client pushes obstructed, detect currently used CDN node
Often, if CDN node is abnormal, step S202 is performed, is otherwise terminated.
Above-mentioned steps S201 implementation procedure may refer to the associated description in embodiment as shown in Figure 1, will not be described here.
S202, sends to server and obtains request, and obtaining request includes the corresponding IP address of main broadcaster's client.
When the currently used CDN node of main broadcaster's client occurs abnormal, then sent to server and obtain request, to service
The corresponding IP address of main broadcaster's client and the corresponding IP address of default main broadcaster's client that device asks to include according to obtaining
With the corresponding relation of the IP address of plug-flow CDN node, based on broadcast client select predetermined number CDN node.
S203, the plug-flow address for N number of CDN node that the reception server is sent, the corresponding IP address of N number of CDN node and master
Broadcasting the corresponding IP address of client has default corresponding relation, and N takes 1 to default value.
N number of CDN node plug-flow address that main broadcaster's client the reception server is sent, and this N number of CDN node is server root
Chosen according to default corresponding relation and default selection strategy.
Similar to what is introduced in the step S102 of embodiment one, default corresponding relation is with can including the corresponding IP of CDN node
Location IP address corresponding with main broadcaster's client may belong to identical Virtual network operator, or the corresponding IP address of CDN node with
The corresponding IP address of main broadcaster's client may belong to same or like geographical position, or the corresponding IP address of CDN node
IP address corresponding with main broadcaster's client belongs to identical Virtual network operator and belongs to same or like geographical position.
Server is selected in numerous CDN nodes according to above-mentioned default corresponding relation meets the default corresponding relation
CDN node, it is when the CDN node number of the default corresponding relation of the satisfaction selected is less than default value, then all satisfactions is default
The corresponding plug-flow address of CDN node of corresponding relation is sent to main broadcaster's client, and it is corresponding that main broadcaster's client receives this CDN node
Plug-flow address.When the CDN node number of the default corresponding relation of the satisfaction selected is more than default value, then further according to default choosing
Select strategy and select N number of CDN node in the CDN node for meeting default corresponding relation, and by the corresponding plug-flow of N number of CDN node
Location is sent to main broadcaster's client, and N can be set according to the actual requirements.Main broadcaster's client receives this and selected according to selection strategy
The corresponding plug-flow address of N number of CDN node.
Alternatively, default selection strategy can be that random selection can also be light load in the current CDN node of selection
N number of CDN node.
S204, selects plug-flow CDN node from N number of CDN node.
, can be according to default selection strategy in main broadcaster's client from N number of after main broadcaster's client obtains N number of CDN node
A CDN node is selected in CDN node as plug-flow CDN node.
Alternatively, default selection strategy can be random selection strategy or according to CDN node quality optimum selecting plan
Slightly.
Specifically, if main broadcaster's client is selected according to CDN node quality optimum selecting strategy, an optimal quality is good to be pushed away
, it is necessary to carry out a delay detection respectively to N number of CDN node of acquisition during stream CDN node, that is to say detection main broadcaster's client and
Data transmission bauds between N number of CDN node.Specifically detection process is:Main broadcaster's client is respectively according to N number of CDN node correspondence
Plug-flow address send ping message to N number of CDN node, N number of CDN node is received after this ping message can be respectively to main broadcaster visitor
Family end returns to a pong message, and main broadcaster's client receives the pong that this N number of CDN node sends respectively in preset time and disappeared
Breath.Main broadcaster's client calculates the time interval between the transmission time of each ping message and the reception time of pong message, makees
For each self-corresponding message transmission time, this message transmission time, which that is to say, to be reflected between main broadcaster's client and CDN node
Data transmission bauds, message transmission time is more short, illustrates that data transmission bauds is faster.Main broadcaster's client is final from N number of CDN sections
Message transmission time most short CDN node is chosen in point and is used as plug-flow CDN node.
A kind of special circumstances are additionally, there are, when main broadcaster's client according to the corresponding plug-flow address of N number of CDN node to N number of
CDN node sends ping message, but main broadcaster's client does not receive any CDN among this N number of CDN node in preset time
The pong message that node is returned, this is also implied that can not all carry out data biography between main broadcaster's client and this N number of CND node
It is defeated.In such cases, main broadcaster's client gives up this N number of CND node, and using default one general plug-flow domain name, will be live
At pushing video streaming to the corresponding CDN node of the general plug-flow domain name.
S205, binds according to plug-flow CDN node host corresponding to main broadcaster's client.
Inside the corresponding domain name of plug-flow CDN node and IP address write-in main broadcaster's client that main broadcaster's client is selected
Host files, which that is to say, realizes the binding between plug-flow node host corresponding with main broadcaster's client, wherein, the host files
Inside there are the mapping relations between the corresponding domain name of plug-flow CDN node and IP address.When in the future main broadcaster accesses this plug-flow CDN again
During node, plug-flow node can be directly accessed according to the mapping relations stored in host files, the visit of main broadcaster's client can be improved
Ask the speed of CDN node.
S206, live video stream is sent to plug-flow CDN node.
Main broadcaster's client sends live video stream to the optimal plug-flow CDN node of quality, is pushed away with improving main broadcaster's client
The fluency of stream.
In the present embodiment, when main broadcaster's client detects currently used CDN node and has abnormal, main broadcaster's client meeting
Further screened for N number of CDN node that server is returned, quality can be obtained by the autonomous screening of main broadcaster's client
Optimal CDN node, using the optimal CDN node of quality as plug-flow CDN node, can improve main broadcaster's client-side live video
Flow the fluency pushed.Meanwhile, it is the corresponding domain name of plug-flow CDN node and IP address by the optimal CDN node of the quality of acquisition
Binding is carried out with the host files in main broadcaster's client to that is to say in write-in host files, so, when main broadcaster's client is visited again
When asking this plug-flow CDN node, the content according to described in host files can greatly improve main broadcaster's client and access plug-flow CDN sections
The speed of point.
Fig. 3 is the structural representation of live video pusher embodiment one provided in an embodiment of the present invention, such as Fig. 3 institutes
Show, the live video pusher includes:Detection module 11, acquisition module 12, sending module 13.
Detection module 11, if the live video stream push for main broadcaster's client is obstructed, detects currently used CDN
Whether node is normal.
Alternatively, if detection module 11 is specifically for the corresponding IP address of main broadcaster's client and currently used CDN node
Corresponding IP address does not have default corresponding relation, then currently used CDN node is abnormal.
Acquisition module 12, if abnormal for currently used CDN node, reacquires plug-flow CDN node, plug-flow CDN
The corresponding IP address of node IP address corresponding with main broadcaster's client has default corresponding relation.
Sending module 13, for live video stream to be sent to the plug-flow CDN node.
Fig. 3 shown devices can perform the method for embodiment illustrated in fig. 1, and the part that the present embodiment is not described in detail can join
Examine the related description to embodiment illustrated in fig. 1.In implementation procedure and the technique effect embodiment shown in Figure 1 of the technical scheme
Description, will not be repeated here.
Fig. 4 is the structural representation of live video pusher embodiment two provided in an embodiment of the present invention, such as Fig. 4 institutes
Show, on the basis of embodiment illustrated in fig. 3, the acquisition module 12 in the live video pusher can specifically include:Send single
Member 121, receiving unit 122, selecting unit 123, the live video pusher also include binding module 21.
Transmitting element 121, request is obtained for being sent to server, and obtaining request includes main broadcaster's client correspondence
IP address.
Receiving unit 122, the plug-flow address of the N number of CDN node sent for the reception server, N number of CDN node is corresponding
IP address IP address corresponding with main broadcaster's client has default corresponding relation, and N takes 1 to default value.
Selecting unit 123, for selecting plug-flow CDN node from N number of CDN node.
Wherein, selecting unit 123 to N number of CDN node specifically for sending respectively according to the plug-flow address of N number of CDN node
Ping message;Receive the pong message that N number of CDN node is sent respectively;According to the transmission time of ping message and pong message
The reception time, determine each self-corresponding message transmission time of N number of CDN node;Selected from N number of CDN node corresponding to most
The CDN node of short message transmission time is plug-flow CDN node.
Binding module 21, for being bound according to plug-flow CDN node host corresponding to main broadcaster's client.
Fig. 4 shown devices can perform the method for embodiment illustrated in fig. 2, and the part that the present embodiment is not described in detail can join
Examine the related description to embodiment illustrated in fig. 2.In implementation procedure and the technique effect embodiment shown in Figure 2 of the technical scheme
Description, will not be repeated here.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, the part shown as unit can be or may not be physics list
Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs
In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness
Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
Realized by the mode of general hardware platform necessary to add, naturally it is also possible to pass through hardware.Understood based on such, above-mentioned skill
The part that art scheme substantially contributes to prior art in other words can be embodied in the form of product, computer production
Product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are to cause one
Platform computer installation (can be personal computer, server, or network equipment etc.) performs each embodiment or embodiment
Some parts described in method.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (10)
1. a kind of live video method for pushing, it is characterised in that including:
If the live video stream push of main broadcaster's client is obstructed, detect whether currently used CDN node is normal;
If the currently used CDN node is abnormal, plug-flow CDN node is reacquired, the corresponding IP of the plug-flow CDN node
Address IP address corresponding with main broadcaster's client has default corresponding relation;
Live video stream is sent to the plug-flow CDN node.
2. according to the method described in claim 1, it is characterised in that whether the currently used CDN node of the detection is normal, bag
Include:
If the corresponding IP address of main broadcaster's client IP address corresponding with the currently used CDN node is without default
Corresponding relation, then the currently used CDN node is abnormal.
3. according to the method described in claim 1, it is characterised in that the reacquisition plug-flow CDN node, including:
Sent to server and obtain request, described obtain asks to include the corresponding IP address of main broadcaster's client;
The plug-flow address for N number of CDN node that the reception server is sent, N number of corresponding IP address of CDN node and the main broadcaster
The corresponding IP address of client has default corresponding relation, and N takes 1 to default value;
The plug-flow CDN node is selected from N number of CDN node.
4. method according to claim 3, it is characterised in that described to select the plug-flow from N number of CDN node
CDN node, including:
Ping message is sent to N number of CDN node according to the plug-flow address of N number of CDN node respectively;
Receive the pong message that N number of CDN node is sent respectively;
Time and the reception time of the pong message are sent according to the ping message, determine that N number of CDN node is each
Self-corresponding message transmission time;
The CDN node selected from N number of CDN node corresponding to the most short message transmission time is the plug-flow
CDN node.
5. method according to any one of claim 1 to 4, it is characterised in that the reacquisition plug-flow CDN node it
Afterwards, in addition to:
Bound according to plug-flow CDN node host corresponding to main broadcaster's client.
6. a kind of live video pusher, it is characterised in that including:
Detection module, if the live video stream push for main broadcaster's client is obstructed, detects that currently used CDN node is
It is no normal;
Acquisition module, if abnormal for the currently used CDN node, reacquires plug-flow CDN node, the plug-flow
The corresponding IP address of CDN node IP address corresponding with main broadcaster's client has default corresponding relation;
Sending module, for live video stream to be sent to the plug-flow CDN node.
7. device according to claim 6, it is characterised in that the detection module specifically for:If the main broadcaster client
Hold corresponding IP address IP address corresponding with the currently used CDN node not have default corresponding relation, then it is described to work as
The preceding CDN node used is abnormal.
8. device according to claim 6, it is characterised in that the acquisition module includes:
Transmitting element, request is obtained for being sent to server, and it is corresponding that the acquisition request includes main broadcaster's client
IP address;
Receiving unit, the plug-flow address of the N number of CDN node sent for the reception server, the corresponding IP of the N number of CDN node
Address IP address corresponding with main broadcaster's client has default corresponding relation, and N takes 1 to default value;
Selecting unit, for selecting the plug-flow CDN node from N number of CDN node.
9. device according to claim 8, it is characterised in that the selecting unit specifically for:
Ping message is sent to N number of CDN node according to the plug-flow address of N number of CDN node respectively;
Receive the pong message that N number of CDN node is sent respectively;
Time and the reception time of the pong message are sent according to the ping message, determine that N number of CDN node is each
Self-corresponding message transmission time;
The CDN node selected from N number of CDN node corresponding to the most short message transmission time is the plug-flow
CDN node.
10. according to any described devices of claim 6-9, it is characterised in that described device also includes:
Binding module, for being bound according to plug-flow CDN node host corresponding to main broadcaster's client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710278543.3A CN107172015A (en) | 2017-04-25 | 2017-04-25 | Live video method for pushing and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710278543.3A CN107172015A (en) | 2017-04-25 | 2017-04-25 | Live video method for pushing and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107172015A true CN107172015A (en) | 2017-09-15 |
Family
ID=59813336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710278543.3A Pending CN107172015A (en) | 2017-04-25 | 2017-04-25 | Live video method for pushing and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107172015A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108307198A (en) * | 2018-03-08 | 2018-07-20 | 广州酷狗计算机科技有限公司 | flow service node dispatching method, device and scheduling node |
CN109586969A (en) * | 2018-12-13 | 2019-04-05 | 平安科技(深圳)有限公司 | Content distributing network disaster recovery method, device, computer equipment and storage medium |
CN109639635A (en) * | 2018-11-05 | 2019-04-16 | 北京达佳互联信息技术有限公司 | CDN agency draws stream method, server, CDN and client |
CN109756756A (en) * | 2017-11-08 | 2019-05-14 | 阿里巴巴集团控股有限公司 | Video broadcasting method and video play device |
CN109819285A (en) * | 2017-11-21 | 2019-05-28 | 乐蜜有限公司 | A kind of live broadcasting method, device, electronic equipment and storage medium |
CN110446055A (en) * | 2019-07-29 | 2019-11-12 | 天闻数媒科技(湖南)有限公司 | A kind of live data streaming media service fault-tolerance approach and system |
CN111464759A (en) * | 2020-03-26 | 2020-07-28 | 广州虎牙科技有限公司 | Live broadcast directing method, device, storage medium and equipment |
CN112118222A (en) * | 2020-08-11 | 2020-12-22 | 深圳市欣博跃电子有限公司 | Data forwarding method and device, electronic equipment and storage medium |
CN113055693A (en) * | 2021-04-20 | 2021-06-29 | 上海哔哩哔哩科技有限公司 | Data processing method and device |
CN116233504A (en) * | 2023-04-10 | 2023-06-06 | 中国工商银行股份有限公司 | Live broadcast push flow method and device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101039329A (en) * | 2006-12-28 | 2007-09-19 | 中兴通讯股份有限公司 | Media delivery system of network TV system based on media delivery |
CN101087403A (en) * | 2007-05-31 | 2007-12-12 | 吴彬 | Distributed stream media order system based on P2P technology and implementation method for stream media program order |
CN102510530A (en) * | 2011-11-11 | 2012-06-20 | 深圳市同洲电子股份有限公司 | Program content distribution system, device and method |
US8756341B1 (en) * | 2009-03-27 | 2014-06-17 | Amazon Technologies, Inc. | Request routing utilizing popularity information |
CN104717304A (en) * | 2015-03-31 | 2015-06-17 | 北京科技大学 | CDN-P2P (Content Distribution Network-Peer-to-Peer) content optimizing selecting system |
CN104753965A (en) * | 2013-12-25 | 2015-07-01 | 中国电信股份有限公司 | Web acceleration method and system |
CN105871989A (en) * | 2015-12-14 | 2016-08-17 | 乐视云计算有限公司 | Live broadcast video obtaining method and device |
CN106231365A (en) * | 2016-08-18 | 2016-12-14 | 北京斗牛科技有限公司 | A kind of dispatching method and system |
CN106254899A (en) * | 2016-08-16 | 2016-12-21 | 网宿科技股份有限公司 | The control method of a kind of live even wheat and system |
CN106412043A (en) * | 2016-09-20 | 2017-02-15 | 网宿科技股份有限公司 | CDN flow guide method and device |
-
2017
- 2017-04-25 CN CN201710278543.3A patent/CN107172015A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101039329A (en) * | 2006-12-28 | 2007-09-19 | 中兴通讯股份有限公司 | Media delivery system of network TV system based on media delivery |
CN101087403A (en) * | 2007-05-31 | 2007-12-12 | 吴彬 | Distributed stream media order system based on P2P technology and implementation method for stream media program order |
US8756341B1 (en) * | 2009-03-27 | 2014-06-17 | Amazon Technologies, Inc. | Request routing utilizing popularity information |
CN102510530A (en) * | 2011-11-11 | 2012-06-20 | 深圳市同洲电子股份有限公司 | Program content distribution system, device and method |
CN104753965A (en) * | 2013-12-25 | 2015-07-01 | 中国电信股份有限公司 | Web acceleration method and system |
CN104717304A (en) * | 2015-03-31 | 2015-06-17 | 北京科技大学 | CDN-P2P (Content Distribution Network-Peer-to-Peer) content optimizing selecting system |
CN105871989A (en) * | 2015-12-14 | 2016-08-17 | 乐视云计算有限公司 | Live broadcast video obtaining method and device |
CN106254899A (en) * | 2016-08-16 | 2016-12-21 | 网宿科技股份有限公司 | The control method of a kind of live even wheat and system |
CN106231365A (en) * | 2016-08-18 | 2016-12-14 | 北京斗牛科技有限公司 | A kind of dispatching method and system |
CN106412043A (en) * | 2016-09-20 | 2017-02-15 | 网宿科技股份有限公司 | CDN flow guide method and device |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756756A (en) * | 2017-11-08 | 2019-05-14 | 阿里巴巴集团控股有限公司 | Video broadcasting method and video play device |
CN109819285A (en) * | 2017-11-21 | 2019-05-28 | 乐蜜有限公司 | A kind of live broadcasting method, device, electronic equipment and storage medium |
CN108307198B (en) * | 2018-03-08 | 2021-01-01 | 广州酷狗计算机科技有限公司 | Flow service node scheduling method and device and scheduling node |
CN108307198A (en) * | 2018-03-08 | 2018-07-20 | 广州酷狗计算机科技有限公司 | flow service node dispatching method, device and scheduling node |
CN109639635A (en) * | 2018-11-05 | 2019-04-16 | 北京达佳互联信息技术有限公司 | CDN agency draws stream method, server, CDN and client |
CN109586969A (en) * | 2018-12-13 | 2019-04-05 | 平安科技(深圳)有限公司 | Content distributing network disaster recovery method, device, computer equipment and storage medium |
CN109586969B (en) * | 2018-12-13 | 2022-02-11 | 平安科技(深圳)有限公司 | Content distribution network disaster tolerance method and device, computer equipment and storage medium |
CN110446055A (en) * | 2019-07-29 | 2019-11-12 | 天闻数媒科技(湖南)有限公司 | A kind of live data streaming media service fault-tolerance approach and system |
CN111464759A (en) * | 2020-03-26 | 2020-07-28 | 广州虎牙科技有限公司 | Live broadcast directing method, device, storage medium and equipment |
CN111464759B (en) * | 2020-03-26 | 2022-03-18 | 广州虎牙科技有限公司 | Live broadcast directing method, device, storage medium and equipment |
CN112118222A (en) * | 2020-08-11 | 2020-12-22 | 深圳市欣博跃电子有限公司 | Data forwarding method and device, electronic equipment and storage medium |
CN113055693A (en) * | 2021-04-20 | 2021-06-29 | 上海哔哩哔哩科技有限公司 | Data processing method and device |
CN113055693B (en) * | 2021-04-20 | 2023-01-24 | 上海哔哩哔哩科技有限公司 | Data processing method and device |
CN116233504A (en) * | 2023-04-10 | 2023-06-06 | 中国工商银行股份有限公司 | Live broadcast push flow method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107172015A (en) | Live video method for pushing and device | |
CN101815033B (en) | Method, device and system for load balancing | |
EP3054652B1 (en) | Dynamic adjustment of the transmission mode in a satellite communication system | |
CN107105309A (en) | Live dispatching method and device | |
US8817792B2 (en) | Data forwarding method, data processing method, system and relevant devices | |
US8819102B2 (en) | Method and system for managing message communications | |
WO2020155293A1 (en) | Stream pushing method, system and server | |
CN113300955B (en) | Method, system and equipment for determining paths between nodes in content distribution network | |
CN106612284A (en) | Streaming data transport method and streaming data transport device | |
CN104753965A (en) | Web acceleration method and system | |
CN110312140B (en) | Live broadcast data processing method, device and system and computer readable storage medium | |
EP2460322B1 (en) | Method and system for the automatic selection of transmission media | |
CN106657183A (en) | Caching acceleration method and apparatus | |
EP2163071A2 (en) | Method for automatically determining a group of pairs located close to another pair in a communication network and associated server, analysis device and communication device | |
EP3624402B1 (en) | Method for detecting illegal sources responsible for an attack distributed by denial-of-service through flooding of link and associated installation | |
EP2936783B1 (en) | Communication technique in a content centric network | |
KR20190015521A (en) | Methods and devices for determining popular live broadcast video | |
EP1617591A1 (en) | Method and server for peer-to-peer distribution of files requested for download | |
CN110380981B (en) | Flow distribution method and equipment | |
EP2399406B1 (en) | Method for switching an access node | |
EP2428008B1 (en) | Method for processing data streams in a communication network | |
WO2011124810A1 (en) | Management of personalized service in an ip network | |
EP2031809B1 (en) | Method for processing data streams in a telecommunication network | |
EP2073450A1 (en) | Method of communication between a teminal and a communication network | |
CN107579928B (en) | flow forwarding method and system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170915 |
|
RJ01 | Rejection of invention patent application after publication |