CN105450615A - Multimedia live broadcasting method, system, server, first terminal and second terminal - Google Patents

Multimedia live broadcasting method, system, server, first terminal and second terminal Download PDF

Info

Publication number
CN105450615A
CN105450615A CN201410443110.5A CN201410443110A CN105450615A CN 105450615 A CN105450615 A CN 105450615A CN 201410443110 A CN201410443110 A CN 201410443110A CN 105450615 A CN105450615 A CN 105450615A
Authority
CN
China
Prior art keywords
terminal
server
pairing user
user group
medium data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410443110.5A
Other languages
Chinese (zh)
Other versions
CN105450615B (en
Inventor
白琳
胡文辉
王钢
张慧芳
陈昌文
顾奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Guangdong Co Ltd
Original Assignee
China Mobile Group Guangdong Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Guangdong Co Ltd filed Critical China Mobile Group Guangdong Co Ltd
Priority to CN201410443110.5A priority Critical patent/CN105450615B/en
Publication of CN105450615A publication Critical patent/CN105450615A/en
Application granted granted Critical
Publication of CN105450615B publication Critical patent/CN105450615B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a multimedia live broadcasting method, a multimedia live broadcasting system, a server, a first terminal and a second terminal. The multimedia live broadcasting method comprises the steps of: judging whether an operating load of the server achieves a preset threshold value, and generating a judging result; sending a command of switching from a live broadcasting mode to a p2p transmission mode by the server to at least one first pairing user group when the judging result is yes, so that the first terminal serving as a standby father node in the first pairing user group forwards multimedia data received from the server to the second terminal serving as a child node in the first pairing user group; and stopping the direction transmission of the multimedia data to the second terminal by the server when the server receives a message of successful switching sent by the second terminal. The multimedia live broadcasting method, the multimedia live broadcasting system, the server, the first terminal and the second terminal can effectively utilize the uplink capacity of terminal users, and increase utilization rate of resources.

Description

Multimedia live broadcasting method, system, server, first terminal and the second terminal
Technical field
The present invention relates to MultiMedia Field, refer to a kind of multimedia live broadcasting method, system, server, first terminal and the second terminal especially.
Background technology
Along with the rise of Internet service, the internet product application much based on Streaming Media form is more and more.What this product form of net cast set off by the business form demands such as live, online course, meeting of competing is more added with existent value and necessity.
At present, the live broadcast system majority on the Internet or the live scheme of center type, namely client's side link is on server, carries out live from server downloading media data.But the program exists several drawback, one of them is when client is a lot, and server will bear very huge network uplink pressure; Another is exactly that each client is only from server downloading media data, and show no sign of the uplink capacity using client, when client access amount is very large, the uplink capacity of terminal is not utilized, and this itself is also a kind of waste of resource.
A lot of manufacturer, in order to the large problem of settlement server network pressure, by means of content distributing network (CDN) technology.Wherein CDN is the total system that a tactic is disposed, CDN by increasing the new network architecture of one deck in existing Internet, the content of website is published to the network " edge " closest to user, make user can obtain required content nearby, solve the problem that user's access websites response speed of the generation because the network bandwidth is little, user's visit capacity is large, network point distribution is uneven is slow technically comprehensively, improve the response speed of user's access websites.
Mention prior art for upper part, their Problems existing are as follows:
The defect of the live scheme of existing center type:
1) when client is a lot, server will bear very huge network uplink pressure;
2) each client is only from server downloading media data, and show no sign of the uplink capacity using client, when client access amount is very large, the uplink capacity of terminal is not utilized, waste resource.
The defect of the live scheme+CDN technology of existing center type:
1) CDN technology has certain requirement in deployment and cost;
2) each client is only from server downloading media data, and show no sign of the uplink capacity using client, when client access amount is very large, the uplink capacity of terminal is not utilized, waste resource.
Summary of the invention
The technical problem to be solved in the present invention is, provides a kind of multimedia live broadcasting method, system, server, first terminal and the second terminal, effectively can utilize the uplink capacity of terminal use, improve the utilance of resource.
For solving the problems of the technologies described above, embodiments of the invention provide a kind of multimedia live broadcasting method, comprising:
Judge whether the operating load of server reaches predetermined threshold, generate judged result;
When described judged result is for being, described server organizes at least one first pairing user the order sending and be switched to p2p transmission mode from live-mode, makes the first terminal as standby parent node in described first pairing user group that the multi-medium data received from server is transmitted to the described first second terminal as child node of matching in user's group;
After described server receives the message of the handover success that described second terminal sends, described server stops directly sending multi-medium data to described second terminal.
Described method, also comprises:
The state that described first pairing user organizes by described server is p2p transmission state from p2p pre-transmission state updating.
Described judge whether the operating load of described server reaches the step of predetermined threshold before, described method also comprises: described server is that described second terminal sets up pairing user group;
Wherein, described server is that the step that described second terminal foundation pairing user organizes comprises:
Described server is described second terminal generating recommendations list, and described recommendation list comprises at least one third terminal;
Described server sends recommendation list to described second terminal, described second terminal is made to attempt successively carrying out P2P communication with described third terminal, described second terminal selects a terminal according to the result of P2P communication from described third terminal, as described first terminal;
Described server using described second terminal as child node, described first terminal as standby parent node, for described second terminal sets up the first pairing user group.
Described server is that the step of described second terminal generating recommendations list is specially: described server according to the combination of one or more factor following, generating recommendations list, described recommendation list comprises at least one third terminal:
The relay state of described third terminal;
Whether described third terminal is that same IP exports with described second terminal;
Whether described third terminal is the same region of same operator with described second terminal;
Whether described third terminal is same operator different geographical with described second terminal;
Whether described third terminal is the same region of different operators with described second terminal;
The cascade number of plies of described third terminal and described server.
Described method, also comprises:
When third terminal rolls off the production line, and when described third terminal is the child node in the second pairing user group, described server deletes the record of described second pairing user group;
When the 4th terminal rolls off the production line, described 4th terminal is the standby parent node in the 3rd pairing user group, and when the state of described 3rd pairing user group is p2p pre-transmission state, described server notifies that the terminal as child node in described 3rd pairing user group changes father node, and in described server, delete the record of described 3rd pairing user group;
When the 5th terminal rolls off the production line, described 5th terminal is the standby parent node in the 4th pairing user group, and when the state of described 3rd pairing user group is p2p transmission state, the described server terminal as child node recovered in described 4th pairing user group adds passage during live meeting at first, push multi-medium data by described passage directly to the terminal as child node in described 4th pairing user group by described server, and in described server, delete the record of described 4th pairing user group.
On the other hand, a kind of multimedia live broadcasting method is provided, it is characterized in that, comprising:
The order being switched to p2p transmission mode from live-mode that first terminal reception server sends;
Described first terminal, according to described order, searches the second terminal as child node that described first terminal matches as standby parent node;
The multi-medium data received from described server is transmitted to described second terminal by described first terminal.
On the other hand, a kind of multimedia live broadcasting method is provided, comprises:
The order being switched to p2p transmission mode from live-mode that second terminal reception server sends;
Described second terminal receives the multi-medium data from described server from first terminal, the standby parent node that described first terminal matches as child node for described second terminal.
Described method, comprising:
Described second terminal sends the message of handover success to described server, makes described server stop directly sending multi-medium data to described second terminal.
Described second terminal reception server send be switched to the step of the order of p2p transmission mode from live-mode before, described method also comprises:
Described second terminal receives recommendation list from server, and described recommendation list comprises at least one third terminal;
Described second terminal attempts carrying out P2P communication with described third terminal successively;
Described second terminal selects a terminal, as described first terminal according to the result of described P2P communication from described third terminal;
Described first terminal is sent to described server by described second terminal, makes described server using described second terminal as child node, described first terminal as standby parent node, sets up a pairing user group.
On the other hand, a kind of server is provided, comprises:
Judging unit, judges whether the operating load of server reaches predetermined threshold, generates judged result;
Transmitting element, when described judged result is for being, organize at least one first pairing user the order sending and be switched to p2p transmission mode from live-mode, make the first terminal as standby parent node in described first pairing user group that the multi-medium data received from server is transmitted to the described first second terminal as child node of matching in user's group;
Receiving element, after receiving the message of the handover success that described second terminal sends, described server stops directly sending multi-medium data to described second terminal.
Described server, also comprises:
Updating block, the state described first pairing user organized is p2p transmission state from p2p pre-transmission state updating.
On the other hand, a kind of first terminal is provided, comprises:
Receiving element, the order being switched to p2p transmission mode from live-mode that reception server sends;
Search unit, according to described order, search the second terminal as child node that described first terminal matches as standby parent node;
Retransmission unit, is transmitted to described second terminal by the multi-medium data received from described server.
On the other hand, a kind of second terminal is provided, comprises:
First receiving element, the order being switched to p2p transmission mode from live-mode that reception server sends;
Second receiving element, receives the multi-medium data from described server from first terminal, the standby parent node that described first terminal matches as child node for described second terminal.
The second described terminal, also comprises:
Transmitting element, sends the message of handover success, makes described server stop directly sending multi-medium data to described second terminal to described server.
On the other hand, a kind of multimedia live broadcast system is provided, comprises: server, first terminal and the second terminal;
Described server, judges whether the operating load of server reaches predetermined threshold, generates judged result; When described judged result is for being, organize at least one first pairing user the order sending and be switched to p2p transmission mode from live-mode, make the first terminal as standby parent node in described first pairing user group that the multi-medium data received from server is transmitted to the described first second terminal as child node of matching in user's group; After receiving the message of the handover success that described second terminal sends, described server stops directly sending multi-medium data to described second terminal.
The beneficial effect of technique scheme of the present invention is as follows:
The present invention is when the uplink capacity of server end is not enough to support all terminal uses, terminal use will utilize the uplink capacity of terminal use self to alleviate the bandwidth pressure of service end, reduce the waste of user self uplink capacity resource simultaneously, improve the utilance of resource.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the server side of a kind of multimedia live broadcasting method of the present invention;
Fig. 2 is the schematic flow sheet of the father node side of a kind of multimedia live broadcasting method of the present invention;
Fig. 3 is the schematic flow sheet of the child node side of a kind of multimedia live broadcasting method of the present invention;
Fig. 4 is the connection diagram of a kind of server of the present invention;
Fig. 5 is the connection diagram of a kind of first terminal of the present invention;
Fig. 6 is the connection diagram of a kind of second terminal of the present invention;
Fig. 7 is the connection diagram of a kind of multimedia live broadcast system of the present invention;
Fig. 8 is the connection diagram of the direct-connected pattern of server in prior art;
Fig. 9 is the connection diagram of P2P forest two layer model in application scenarios of the present invention;
Figure 10 is the connection diagram of P2P forest three tiers model in application scenarios of the present invention.
Embodiment
For making the technical problem to be solved in the present invention, technical scheme and advantage clearly, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
As shown in Figure 1, the multimedia live broadcasting method of one of the present invention, comprising:
Step 11, judges whether the operating load of server reaches predetermined threshold, generates judged result; Operating load can be bandwidth or performance, and performance can be the utilance etc. of CPU or internal memory.
Step 12, when described judged result is for being, described server organizes at least one first pairing user the order sending and be switched to p2p transmission mode from live-mode, makes the first terminal as standby parent node in described first pairing user group that the multi-medium data received from server is transmitted to the described first second terminal as child node of matching in user's group;
Step 13, after described server receives the message of the handover success that described second terminal sends, described server stops directly sending multi-medium data to described second terminal.
Described method, also comprises:
Step 14, the state that described first pairing user organizes by described server is p2p transmission state from p2p pre-transmission state updating.P2p pre-transmission state is: first terminal and the second terminal are just matched, but does not carry out real p2p transfer of data, and p2p transmission state is: first terminal and the second terminal are matched, and first terminal carries out p2p transfer of data by the second terminal.
Before step 11, described method also comprises:
Step 10, described server is that described second terminal sets up pairing user group;
Wherein, described step 10 comprises:
Step 101, described server is described second terminal generating recommendations list, and described recommendation list comprises at least one third terminal; Described server is that the step of described second terminal generating recommendations list is specially: described server according to the combination of one or more factor following, generating recommendations list, described recommendation list comprises at least one third terminal;
Factor comprises:
The relay state of described third terminal; The relay state of user divides 3 kinds, and 0 represents direct-connected server, and 1 represents that relaying is in a user but be other user's relayings, 2 represent both relaying in a user be also other user's relayings;
Whether described third terminal is that same IP exports with described second terminal;
Whether described third terminal is the same region of same operator with described second terminal;
Whether described third terminal is same operator different geographical with described second terminal;
Whether described third terminal is the same region of different operators with described second terminal;
The cascade number of plies of described third terminal and described server.Such as, third terminal whether with server direct connection, or, be cascaded to server by several terminal.
Such as, recommendation principle is:
A: the current state of recommended node is non-relay state (corresponding relay state is 0), ensure that each spectators only do father's media node of a user at the most, and indirectly connected user does not do father's media node of other spectators.
B: the user priority with IP outlet is recommended, secondly be the same region of same operator, with operator's different geographical, the same region of different operators, and server direct-connected.
The recommended priority of A is higher than the recommended priority of B.
Wherein, for recommendation principle B, if need to carry out operator, region judgement time, obtain region corresponding to User IP and operator according to the IP of the User IP obtained and self maintained with the table of comparisons 1 of ownership place and operator's corresponding relation by server end; Then, contrast according to this region and operator region corresponding with other users in user list and operator, judge whether it is the same region of same operator, with operator's different geographical or the same region of different operators, to realize the recommendation of p2p node.
Step 102, described server sends recommendation list to described second terminal, make described second terminal attempt successively carrying out P2P communication with described third terminal, described second terminal selects a terminal according to the result of P2P communication from described third terminal, as described first terminal;
Step 103, described server using described second terminal as child node, described first terminal as standby parent node, for described second terminal sets up the first pairing user group.
Described method, is characterized in that, also comprises:
Step 15, when third terminal rolls off the production line, and when described third terminal is the child node in the second pairing user group, described server deletes the record of described second pairing user group;
Step 16, when the 4th terminal rolls off the production line, described 4th terminal is the standby parent node in the 3rd pairing user group, and when the state of described 3rd pairing user group is p2p pre-transmission state, described server notifies that the terminal as child node in described 3rd pairing user group changes father node, and in described server, delete the record of described 3rd pairing user group;
Step 17, when the 5th terminal rolls off the production line, described 5th terminal is the standby parent node in the 4th pairing user group, and when the state of described 3rd pairing user group is p2p transmission state, the described server terminal as child node recovered in described 4th pairing user group adds passage during live meeting at first, push multi-medium data by described passage directly to the terminal as child node in described 4th pairing user group by described server, and in described server, delete the record of described 4th pairing user group.
Such as, when terminal A rolls off the production line, terminal C is removed pairing list by server, and at this moment terminal C can again as the father node of other users.When terminal C rolls off the production line, in two kinds of situation, first terminal A and terminal C just matches, but do not carry out real p2p transfer of data (pairing state is p2p pre-transmission state), at this moment server informs that terminal A changes father node, and AC is removed pairing list, allow terminal A again match.It two is, if terminal A carried out live viewing by terminal C at that time, then discovering server terminal C has rolled off the production line, in pairing list, find terminal A to be the child node of terminal C, then server recovers passage when terminal A adds live meeting at first, by the direct propelling data of server, and repeat the operation removing pairing list in the first step.
As shown in Figure 2, be the multimedia live broadcasting method of one of the present invention, comprise:
Step 21, the order being switched to p2p transmission mode from live-mode that first terminal reception server sends;
Step 22, described first terminal, according to described order, searches the second terminal as child node that described first terminal matches as standby parent node;
Step 23, the multi-medium data received from described server is transmitted to described second terminal by described first terminal.
The handling process of following descriptor node side.
As shown in Figure 3, be the multimedia live broadcasting method of one of the present invention, comprise:
Step 31, the order being switched to p2p transmission mode from live-mode that the second terminal reception server sends;
Step 32, described second terminal receives the multi-medium data from described server from first terminal, the standby parent node that described first terminal matches as child node for described second terminal.
Described method, also comprises:
Step 33, described second terminal sends the message of handover success to described server, makes described server stop directly sending multi-medium data to described second terminal.
Before step 31, described method also comprises:
Step 30, described second terminal receives recommendation list from server, selects a terminal from described recommendation list, as described first terminal, make described server using described second terminal as child node, described first terminal as standby parent node, set up a pairing user group.
Step 30 comprises:
Step 301, described second terminal receives recommendation list from server, and described recommendation list comprises at least one third terminal;
Step 302, described second terminal attempts carrying out P2P communication with described third terminal successively;
Step 303, described second terminal selects a terminal, as described first terminal according to the result of described P2P communication from described third terminal;
Step 304, described first terminal is sent to described server by described second terminal, makes described server using described second terminal as child node, described first terminal as standby parent node, sets up a pairing user group.
As shown in Figure 4, be a kind of server of the present invention, comprise:
Judging unit 41, judges whether the operating load of server reaches predetermined threshold, generates judged result;
Transmitting element 42, when described judged result is for being, organize at least one first pairing user the order sending and be switched to p2p transmission mode from live-mode, make the first terminal as standby parent node in described first pairing user group that the multi-medium data received from server is transmitted to the described first second terminal as child node of matching in user's group;
Receiving element 43, after receiving the message of the handover success that described second terminal sends, described server stops directly sending multi-medium data to described second terminal.
Described server, also comprises:
Updating block 44, the state described first pairing user organized is p2p transmission state from p2p pre-transmission state updating.
As shown in Figure 5, be a kind of first terminal of the present invention, comprise:
Receiving element 51, the order being switched to p2p transmission mode from live-mode that reception server sends;
Search unit 52, according to described order, search the second terminal as child node that described first terminal matches as standby parent node;
Retransmission unit 53, is transmitted to described second terminal by the multi-medium data received from described server.
As shown in Figure 6, be a kind of second terminal of the present invention, comprise:
First receiving element 61, the order being switched to p2p transmission mode from live-mode that reception server sends;
Second receiving element 62, receives the multi-medium data from described server from first terminal, the standby parent node that described first terminal matches as child node for described second terminal.
The second described terminal, also comprises:
Transmitting element 63, sends the message of handover success, makes described server stop directly sending multi-medium data to described second terminal to described server.
As shown in Figure 7, be the multimedia live broadcast system of one of the present invention, comprise: server 71, first terminal 72 and the second terminal 73;
Described server 71, judges whether the operating load of server reaches predetermined threshold, generates judged result; When described judged result is for being, organize at least one first pairing user the order sending and be switched to p2p transmission mode from live-mode, make the first terminal 72 as standby parent node in described first pairing user group that the multi-medium data received from server is transmitted to the described first second terminal 73 as child node of matching in user's group; After receiving the message of the handover success that described second terminal 73 sends, described server stops directly sending multi-medium data to described second terminal.
It will be understood by those skilled in the art that child node also can as the father node of another child node, father node also can as the child node of another father node.
Application scenarios of the present invention is below described.
This application scene provides a kind of method realizing ten thousand people's multimedia live broadcast based on P2P forest.This programme main design thought is: the upstream bandwidth of server end can constantly increase along with live terminal use's quantity of watching and constantly be critical, and each terminal use with only the descending ability of terminal use in traditional live model, and waste the uplink capacity of terminal use completely, so when the uplink capacity of server end is not enough to support all terminal uses, terminal use will utilize the uplink capacity of terminal use self to alleviate the bandwidth pressure of service end.Terminal use, when server end bandwidth is critical, will share the uplink capacity of oneself, and that is, terminal use may replace server end to become the relay point of other some terminals, replace server to carry out the relaying of data.And the pairing between this terminal and terminal, be carry out according to the principle of pairing, specific description will be done to scheme below.
First, server end safeguards the table of comparisons 1 of IP and ownership place and operator's corresponding relation, concrete with reference to shown in following table:
IPStart IPEnd Region LogicalPoolBegin LogicalPoolEnd IspCode
0 16777215 CN. 16301 16500 ___
16777216 16777471 AU. 16301 16500 ___
16777472 16778239 CN.fj. 16301 16500 CTC
16778240 16779263 AU. 16301 16500 ___
16779264 16781311 CN.gd. 16301 16500 CTC
16781312 16785407 JP. 16301 16500 ___
16785408 16793599 CN.gd. 16301 16500 CTC
16793600 16809983 JP. 16301 16500 ___
16809984 16842751 TH. 16301 16500 ___
Wherein, IPStart is IP initial address, and IPEnd is IP termination address; Region is region corresponding to IP address, i.e. ownership place; IspCode is operator code.
By this table, first IP address is corresponded in corresponding IP section, then find region corresponding to this IP address and operator by IP section.Such as, the value obtained after IP address computation is 16779881, and belong to the IP interval of 16779264 to 16781311, then can judge that this IP belongs to Guangdong, corresponding operator is CTC (China Telecom).
In addition, server end also safeguards a status list 2, be specially the user list (comprising the ID of user, the IP of user, the relay state of user) of all spectators, the relay state of user divides 3 kinds, 0 represents direct-connected server, 1 represents that relaying is in a user but be other user's relayings, 2 represent both relaying in a user be also other user's relayings; And the pairing state of user, comprising: the father node of user, the ID of user and the IP of user, the child node ID of user and child node IP.
ID IP Status Father node ID Child node ID
100001 16777101 0 Null Null
100002 16777031 0 Null Null
100003 16778109 0 Null Null
100004 16779029 0 Null Null
100005 16781311 1 100002 Null
100006 16785207 2 100003 100007
100007 16793409 1 100006 Null
The specific implementation flow process of this programme is as described below:
1, after client user is linked into live broadcast system, server end first obtains ID and IP of user, according to the status list of self maintained, for user recommends p2p node.
Recommendation principle is:
A: the current state of recommended node is non-relay state (corresponding relay state is 0), ensure that each spectators only do father's media node of a user at the most, and indirectly connected user does not do father's media node of other spectators.
B: the user priority with IP outlet is recommended, secondly be the same region of same operator, with operator's different geographical, the same region of different operators, and server direct-connected.
The recommended priority of A is higher than the recommended priority of B.
Wherein, for recommendation principle B, if need to carry out operator, region judgement time, obtain region corresponding to User IP and operator according to the IP of the User IP obtained and self maintained with the table of comparisons 1 of ownership place and operator's corresponding relation by server end; Then, contrast according to this region and operator region corresponding with other users in user list and operator, judge whether it is the same region of same operator, with operator's different geographical or the same region of different operators, to realize the recommendation of p2p node.
2, while client-requested, client sets up data transmission channel with server, while accept the recommendation list that server end issues.
3, client with server end carry out live video transmit time, attempt carrying out with the recommendation list of server push UDP successively and burrow and attempt P2P communication, and burrowed by optimum successful IP and user ID are recorded, and report server.
If the recommended list of party A-subscriber is B, C, D, then what A can walk abreast carries out burrowing attempting with B, C, D respectively, if burrow successfully with C, then report server alternate node, information is: oneself be A, and standby parent node is C.
4, after server receives reporting of some clients, by A and C successful matching, can be stored in user list, and mark the father node that C is A.
When A node rolls off the production line, C is removed pairing list by server, and at this moment C can again as the father node of other users.When C rolls off the production line, in two kinds of situation, first A and C just matches, but do not carry out real p2p transfer of data (pairing state is p2p pre-transmission state), at this moment server informs that A changes father node, and AC is removed pairing list, allows A again match.It two is, if A carried out live viewing by C at that time, then discovering server C has rolled off the production line, in pairing list, find A to be the child node of C, then server recovers passage when A adds live meeting at first, by the direct propelling data of server, and repeat the operation removing pairing list in the first step.
Wherein, may there is repetition in the recommendation list that server issues, and namely C both may in the recommendation list of A, and also may, in the recommendation list of B, allow A first match with C, then the p2p that C sends after no longer accepting B asks, and is exactly match unsuccessfully with C at B.
5, to be all clients be all the initial pattern of server directly hangs under server, and all data are directly sent by server, and the parent nodes seeking oneself that each user can walk abreast.
When the operating load (bandwidth or performance) of server reaches threshold value of warning, such as, when the CPU of server or internal memory reach 60% utilance, when needing to start terminal p2p forest pattern, the pairing user of server forward in user list (user in user list sorts from top to bottom according to the sequence of pairing priority orders) sends data, informs that client user enables p2p transmission mode.Such as C is the father node of A, at this moment, A receives the notice of server, C also can receive the notice of server, so C starts the data retransmission that receives to A, A receives feedback server handover success after data, and server no longer directly sends data to A, and the pairing state of A and C enters p2p transmission state from p2p pre-transmission state.
Wherein, when client terminal quantity constantly increases sharply, p2p forest can be upgraded to four layers from three layers, and namely party A-subscriber is from before can not as supporting the father node of other nodes that the P2P of newly added node asks, on the basis of this scheme, ten thousand people's multimedia live broadcast can be realized.
Fig. 8 to Figure 10 is respectively the schematic diagram of the direct-connected pattern of server, two layers, P2P forest and three tiers model.
The present invention has following beneficial effect:
In the present invention, to be all clients when initial be all directly hangs under server, and all data are directly sent by server, and the parent nodes seeking oneself that each user can walk abreast.When the bandwidth of server or performance reach threshold value of warning, start terminal p2p forest pattern, replace server direct-connected by client relaying, that is when the uplink capacity of server end is not enough to support all terminal uses, terminal use will utilize the uplink capacity of terminal use self to alleviate the bandwidth pressure of service end, reduce the waste of user self uplink capacity resource simultaneously, and then realize ten thousand people's multimedia live broadcast.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the prerequisite not departing from principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (15)

1. a multimedia live broadcasting method, is characterized in that, comprising:
Judge whether the operating load of server reaches predetermined threshold, generate judged result;
When described judged result is for being, described server organizes at least one first pairing user the order sending and be switched to p2p transmission mode from live-mode, makes the first terminal as standby parent node in described first pairing user group that the multi-medium data received from server is transmitted to the described first second terminal as child node of matching in user's group;
After described server receives the message of the handover success that described second terminal sends, described server stops directly sending multi-medium data to described second terminal.
2. method according to claim 1, is characterized in that, after described server receives the message of the handover success that described second terminal sends, described server stops, to after described second terminal directly sends the step of multi-medium data, also comprising:
The state that described first pairing user organizes by described server is p2p transmission state from p2p pre-transmission state updating.
3. method according to claim 1, is characterized in that, described judge whether the operating load of described server reaches the step of predetermined threshold before, described method also comprises: described server is that described second terminal sets up pairing user group;
Wherein, described server is that the step that described second terminal foundation pairing user organizes comprises:
Described server is described second terminal generating recommendations list, and described recommendation list comprises at least one third terminal;
Described server sends recommendation list to described second terminal, described second terminal is made to attempt successively carrying out P2P communication with described third terminal, described second terminal selects a terminal according to the result of P2P communication from described third terminal, as described first terminal;
Described server using described second terminal as child node, described first terminal as standby parent node, for described second terminal sets up the first pairing user group.
4. method according to claim 3, it is characterized in that, described server is that the step of described second terminal generating recommendations list is specially: described server according to the combination of one or more factor following, generating recommendations list, described recommendation list comprises at least one third terminal:
The relay state of described third terminal;
Whether described third terminal is that same IP exports with described second terminal;
Whether described third terminal is the same region of same operator with described second terminal;
Whether described third terminal is same operator different geographical with described second terminal;
Whether described third terminal is the same region of different operators with described second terminal;
The cascade number of plies of described third terminal and described server.
5. method according to claim 1, is characterized in that, also comprises:
When third terminal rolls off the production line, and when described third terminal is the child node in the second pairing user group, described server deletes the record of described second pairing user group;
When the 4th terminal rolls off the production line, described 4th terminal is the standby parent node in the 3rd pairing user group, and when the state of described 3rd pairing user group is p2p pre-transmission state, described server notifies that the terminal as child node in described 3rd pairing user group changes father node, and in described server, delete the record of described 3rd pairing user group;
When the 5th terminal rolls off the production line, described 5th terminal is the standby parent node in the 4th pairing user group, and when the state of described 3rd pairing user group is p2p transmission state, the described server terminal as child node recovered in described 4th pairing user group adds passage during live meeting at first, push multi-medium data by described passage directly to the terminal as child node in described 4th pairing user group by described server, and in described server, delete the record of described 4th pairing user group.
6. a multimedia live broadcasting method, is characterized in that, comprising:
The order being switched to p2p transmission mode from live-mode that first terminal reception server sends;
Described first terminal, according to described order, searches the second terminal as child node that described first terminal matches as standby parent node;
The multi-medium data received from described server is transmitted to described second terminal by described first terminal.
7. a multimedia live broadcasting method, is characterized in that, comprising:
The order being switched to p2p transmission mode from live-mode that second terminal reception server sends;
Described second terminal receives the multi-medium data from described server from first terminal, the standby parent node that described first terminal matches as child node for described second terminal.
8. method according to claim 7, is characterized in that, also comprises:
Described second terminal sends the message of handover success to described server, makes described server stop directly sending multi-medium data to described second terminal.
9. method according to claim 7, is characterized in that, described second terminal reception server send be switched to the step of the order of p2p transmission mode from live-mode before, described method also comprises:
Described second terminal receives recommendation list from server, and described recommendation list comprises at least one third terminal;
Described second terminal attempts carrying out P2P communication with described third terminal successively;
Described second terminal selects a terminal, as described first terminal according to the result of described P2P communication from described third terminal;
Described first terminal is sent to described server by described second terminal, makes described server using described second terminal as child node, described first terminal as standby parent node, sets up a pairing user group.
10. a server, is characterized in that, comprising:
Judging unit, judges whether the operating load of server reaches predetermined threshold, generates judged result;
Transmitting element, when described judged result is for being, organize at least one first pairing user the order sending and be switched to p2p transmission mode from live-mode, make the first terminal as standby parent node in described first pairing user group that the multi-medium data received from server is transmitted to the described first second terminal as child node of matching in user's group;
Receiving element, after receiving the message of the handover success that described second terminal sends, described server stops directly sending multi-medium data to described second terminal.
11. servers according to claim 10, is characterized in that, also comprise:
Updating block, the state described first pairing user organized is p2p transmission state from p2p pre-transmission state updating.
12. 1 kinds of first terminals, is characterized in that, comprising:
Receiving element, the order being switched to p2p transmission mode from live-mode that reception server sends;
Search unit, according to described order, search the second terminal as child node that described first terminal matches as standby parent node;
Retransmission unit, is transmitted to described second terminal by the multi-medium data received from described server.
13. a kind of second terminal, is characterized in that, comprising:
First receiving element, the order being switched to p2p transmission mode from live-mode that reception server sends;
Second receiving element, receives the multi-medium data from described server from first terminal, the standby parent node that described first terminal matches as child node for described second terminal.
14. second terminals according to claim 13, is characterized in that, also comprise:
Transmitting element, sends the message of handover success, makes described server stop directly sending multi-medium data to described second terminal to described server.
15. 1 kinds of multimedia live broadcast systems, is characterized in that, comprising: server, first terminal and the second terminal;
Described server, judges whether the operating load of server reaches predetermined threshold, generates judged result; When described judged result is for being, organize at least one first pairing user the order sending and be switched to p2p transmission mode from live-mode, make the first terminal as standby parent node in described first pairing user group that the multi-medium data received from server is transmitted to the described first second terminal as child node of matching in user's group; After receiving the message of the handover success that described second terminal sends, described server stops directly sending multi-medium data to described second terminal.
CN201410443110.5A 2014-09-02 2014-09-02 Multimedia live broadcasting method, system, server, first terminal and second terminal Active CN105450615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410443110.5A CN105450615B (en) 2014-09-02 2014-09-02 Multimedia live broadcasting method, system, server, first terminal and second terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410443110.5A CN105450615B (en) 2014-09-02 2014-09-02 Multimedia live broadcasting method, system, server, first terminal and second terminal

Publications (2)

Publication Number Publication Date
CN105450615A true CN105450615A (en) 2016-03-30
CN105450615B CN105450615B (en) 2019-06-14

Family

ID=55560395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410443110.5A Active CN105450615B (en) 2014-09-02 2014-09-02 Multimedia live broadcasting method, system, server, first terminal and second terminal

Country Status (1)

Country Link
CN (1) CN105450615B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453289A (en) * 2016-09-29 2017-02-22 广州市千钧网络科技有限公司 Data transmission method and transmission apparatus for live video
CN106937136A (en) * 2017-03-29 2017-07-07 武汉斗鱼网络科技有限公司 Data delay method and system based on statistical information between network direct broadcasting
CN107332894A (en) * 2017-06-23 2017-11-07 广州市百果园信息技术有限公司 Live broadcasting method, apparatus and system, server, storage medium
CN107820136A (en) * 2017-11-17 2018-03-20 哈尔滨工大服务机器人有限公司 A kind of video transmission method and system based on P2P
CN107231350B (en) * 2017-05-24 2020-05-19 北京潘达互娱科技有限公司 Message processing method and device
CN112055037A (en) * 2019-06-06 2020-12-08 深圳市尚云互联技术有限公司 NAT (network Address translation) penetration connection method and system
CN112423012A (en) * 2020-11-18 2021-02-26 青岛华升联信智慧科技有限公司 Multistage-load live broadcast method
CN114245164A (en) * 2021-12-17 2022-03-25 杭州视洞科技有限公司 IPC live broadcast dynamic distribution stream-saving method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237429A (en) * 2008-02-25 2008-08-06 蓝汛网络科技(北京)有限公司 Stream media living broadcasting system, method and device based on content distribution network
US20100049864A1 (en) * 2008-08-25 2010-02-25 National Taiwan University Multimedia broadcast system and method
CN103024076A (en) * 2012-12-31 2013-04-03 乐视网信息技术(北京)股份有限公司 Live telecast scheduling system and live telecast scheduling method applied to peer-to-peer network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237429A (en) * 2008-02-25 2008-08-06 蓝汛网络科技(北京)有限公司 Stream media living broadcasting system, method and device based on content distribution network
US20100049864A1 (en) * 2008-08-25 2010-02-25 National Taiwan University Multimedia broadcast system and method
CN103024076A (en) * 2012-12-31 2013-04-03 乐视网信息技术(北京)股份有限公司 Live telecast scheduling system and live telecast scheduling method applied to peer-to-peer network

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453289A (en) * 2016-09-29 2017-02-22 广州市千钧网络科技有限公司 Data transmission method and transmission apparatus for live video
CN106453289B (en) * 2016-09-29 2020-05-22 广州市千钧网络科技有限公司 Data transmission method and device for live video
CN106937136A (en) * 2017-03-29 2017-07-07 武汉斗鱼网络科技有限公司 Data delay method and system based on statistical information between network direct broadcasting
CN106937136B (en) * 2017-03-29 2020-05-12 武汉斗鱼网络科技有限公司 Data delay method and system based on statistical information of network live broadcast room
CN107231350B (en) * 2017-05-24 2020-05-19 北京潘达互娱科技有限公司 Message processing method and device
CN107332894A (en) * 2017-06-23 2017-11-07 广州市百果园信息技术有限公司 Live broadcasting method, apparatus and system, server, storage medium
CN107332894B (en) * 2017-06-23 2020-08-11 广州市百果园信息技术有限公司 Live broadcast method, device and system, server and storage medium
CN107820136A (en) * 2017-11-17 2018-03-20 哈尔滨工大服务机器人有限公司 A kind of video transmission method and system based on P2P
CN112055037A (en) * 2019-06-06 2020-12-08 深圳市尚云互联技术有限公司 NAT (network Address translation) penetration connection method and system
CN112423012A (en) * 2020-11-18 2021-02-26 青岛华升联信智慧科技有限公司 Multistage-load live broadcast method
CN112423012B (en) * 2020-11-18 2023-05-09 青岛华升联信智慧科技有限公司 Multi-stage load live broadcast method
CN114245164A (en) * 2021-12-17 2022-03-25 杭州视洞科技有限公司 IPC live broadcast dynamic distribution stream-saving method

Also Published As

Publication number Publication date
CN105450615B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN105450615A (en) Multimedia live broadcasting method, system, server, first terminal and second terminal
CN103166959B (en) A kind of multipath real-time Transmission control system and method
EP3595325B1 (en) Method for realizing multicast and relevant network device
CN102546775B (en) Node in CDN (content delivery network) and automatic networking method thereof
CN105163285A (en) Data transmission method of edge MBMS service and correlation device
CN102231762B (en) Peer-to-peer (p2p) server architecture capable of being unlimitedly and horizontally expanded
CN101621538A (en) Method and system for selecting medium source nodes in peer-to-peer network
CN109964467A (en) The control based on node type for auxiliary data flow transmission
CN111355798A (en) Data distribution method and system
CN104519036A (en) Method and device for sending service request message
CN105357146A (en) Saturation attack defending method, device and system of buffer queue in outlet gateway
CN102067514A (en) Method and apparatus for multicast tree management in multi-hop relay communication system
CN104602351A (en) Method, device and system for realizing broadband clustering business
CN113438129B (en) Data acquisition method and device
CN113452431B (en) Method for optimizing satellite network data service by utilizing edge computing technology
CN105577561A (en) Method and system for realizing load balancing between virtualized network elements, and virtualized network element
CN105282803A (en) Communication interface and information transfer method and system based on the same
CN103312593B (en) A kind of message distributing system and method
CN104679528A (en) Method and device for remotely updating application program
CN103763206A (en) Network scheduling method and gateway
CN102111608A (en) Communication method and device of video monitoring system
CN101656947B (en) Establishing method, device and system of cross-heterogeneous-network service sharing
CN100499567C (en) Method for realizing video multicast service medium frequency switch
CN104796340A (en) Multicast data transmission method and device
CN101695049A (en) Method and device for processing businesses in monitoring system

Legal Events

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