CN103457956B - HTTP streaming media live broadcasting method and system based on multiple TCP links - Google Patents

HTTP streaming media live broadcasting method and system based on multiple TCP links Download PDF

Info

Publication number
CN103457956B
CN103457956B CN201310424840.6A CN201310424840A CN103457956B CN 103457956 B CN103457956 B CN 103457956B CN 201310424840 A CN201310424840 A CN 201310424840A CN 103457956 B CN103457956 B CN 103457956B
Authority
CN
China
Prior art keywords
connection
client
session identification
tcp
http
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310424840.6A
Other languages
Chinese (zh)
Other versions
CN103457956A (en
Inventor
洪珂
白永光
邹焕英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201310424840.6A priority Critical patent/CN103457956B/en
Publication of CN103457956A publication Critical patent/CN103457956A/en
Application granted granted Critical
Publication of CN103457956B publication Critical patent/CN103457956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an HTTP streaming media live broadcasting method and system based on multiple TCP links. According to the method and system, the transmission speed can be obviously increased, the problem of playing lagging caused by network congestion or packet dropout is solved, the live broadcasting with a higher code rate can be supported, and the user experience can be improved. According to the technical scheme, through the linking and binding technology, the multiple TCP links are related with one another on the service side, and streaming type data are dispersed to all the links to be transmitted. A client side splices the segmentation streaming type data received by all the links and can then conduct playing.

Description

The HTTP stream media live broadcasting method being connected based on a plurality of TCP and system
Technical field
The present invention relates to the technology of HTTP live streaming media, the HTTP stream media live broadcasting method of more particularly, to high code check and be System.
Background technology
HTTP live streaming media is the biography of the stream data carrying out live streaming media using HTTP (HTML (Hypertext Markup Language)) Defeated.The agreement of existing market main flow includes the HLS of Apple(HTTP Live Streaming), HDS (the HTTP of Adobe Dynamic Streaming) and Microsoft HSS (HTTP Smooth Streaming).The core of above-mentioned three kinds of agreements Scheming system is that live stream data is cut into slices, and generates the listed files information of continuous renewal to inform that playing end goes down Carry, splice and play slice of data.It is advantageous that host-host protocol is simple, inferior position is that slice of data is subject to key frame interval shadow Ring, interaction flow is complicated, client could be play after needing to accumulate several sections, and live playout-delay is larger.
The common live agreement of another kind of HTTP of industry is that live streaming data virtual is become an infinitely-great FLV (FLASH VIDEO)File, and be transmitted by http protocol.This agreement keeps simplicity and the High Availabitity of http protocol Property, and simplifying interaction protocol, playout-delay can significantly shorten.This agreement is commonly known as HDL, i.e. HTTP Download Live streaming.
The operation principle of HDL agreement is as follows:Client only sends a HTTP GET request, carries and need to access in request Live TV stream name, server return http response, do not carry message body content length and directly transmit endless FLV file content, Or using HTTP CHUNK pattern, endless FLV file is pressed segmented model to send.Client obtains in HTTP message body Can play during FLV content.
For example ask live TV stream http://flv.drag.test.com/live/livestream.flv, HTTP interaction is such as Under:
Request:
GET/live/livestream.flv?wsHost=flv.drag.test.com HTTP/1.1
accept:*/*
accept-encoding:gzip,deflate
accept-language:zh-CN
connection:Keep-Alive
host:www.abc.com
referer:http://www.abc.com/vplayer.swf
Response:
HTTP/1.1200OK
Content-Type:video/x-flv
FLV.......................................................................
The shortcoming of HDL agreement is:Its data transfer depends on the TCP transmission of single connection, when congestion in network or loses Bao Shi, TCP transmission efficiency is easily affected, and leads to live stream data cannot be transferred to client in time, and then leads to visitor Family end is play interim card or even cannot play, and affects Consumer's Experience.When live code check is higher, this phenomenon becomes apparent from.
Content of the invention
It is an object of the invention to solving the above problems, there is provided a kind of HTTP Streaming Media based on a plurality of TCP connection is straight Broadcasting method and system, can be obviously improved transfer rate, solve the problems, such as the broadcasting interim card that network congestion or packet loss bring, Neng Gouzhi Hold the live play of higher code check, lift Consumer's Experience.
The technical scheme is that:Present invention is disclosed a kind of HTTP live streaming media side being connected based on a plurality of TCP Method, including:
Client is initiated several TCP and is connected and complete to bind;
Stream data is carried out carrying out data biography during several TCP that segmentation being dispersed in completes to bind connect by service end Defeated;
Client plays out after the segmentation stream data that each TCP connection receives is stitched together.
One embodiment of the HTTP stream media live broadcasting method being connected based on a plurality of TCP according to the present invention, in data transfer Period, the client dynamic number adjusting TCP connection of change according to network state in real time.
One embodiment of the HTTP stream media live broadcasting method being connected based on a plurality of TCP according to the present invention, client is initiated The step that several TCP connect and complete to bind further includes:
Client is initiated first and is connected and send HTTP request;
Service end is the globally unique session identification of this request distribution, and is sent to client in http response, simultaneously Start to transmit stream data;
Client obtains session identification from http response, and continuously initiates the 2nd to N number of connection, takes in HTTP request Carry this session identification;
Service end, according to the session identification in each request, 2 to n-th is connected and the 1st connection is associated, often One new connection of association, in this new transmission being added to stream data.
One embodiment of the HTTP stream media live broadcasting method being connected based on a plurality of TCP according to the present invention, client is initiated The step that several TCP connect and complete to bind further includes:
Client is random to generate approximately globally unique session identification;
Client is continuous to initiate the 1st to N number of connection, carries described session identification, wherein N is nature in HTTP request Number;
Service end, according to the session identification in each request, the 2nd is associated to N number of connection and the 1st connection, often closes One new connection of connection, in this new transmission being added to stream data.
One embodiment of the HTTP stream media live broadcasting method being connected based on a plurality of TCP according to the present invention, client is to TCP The dynamic adjustment connecting number includes:
The transmission state of client dynamic detection data, to be confirmed whether to meet the demand of live play;
When transfer rate is less than live play demand, starts TCP and connect dynamic increase process, dynamic increasing refers to client End initiate several new connect and send HTTP request, carry live TV stream title and session identification in HTTP request;
Service end processes new request HTTP one by one, and is associated with original N number of connection according to session identification, new pass In the transmission being added to stream data of connection.
Present invention further teaches a kind of HTTP flow medium live system being connected based on a plurality of TCP, including:
Connection establishment binding device, client is initiated several TCP and is connected and complete to bind;
Distributed transmission device, stream data is carried out segmentation and is dispersed in several TCP completing binding even by service end Carry out data transmission in connecing;
Splicing playing device, client plays out after the segmentation stream data that each TCP connection receives is stitched together.
One embodiment of the HTTP flow medium live system being connected based on a plurality of TCP according to the present invention, system also includes:
Connect amount adjusting unit, in real time TCP is dynamically adjusted according to the change of network state during data transfer and connect Number.
One embodiment of the HTTP flow medium live system being connected based on a plurality of TCP according to the present invention, connection establishment is tied up Determine device to further include:
HTTP request initiation module, client is initiated first and is connected and send HTTP request;
Session identification distribute module, service end is the globally unique session identification of this request distribution, and in http response It is sent to client, start simultaneously at transmission stream data;
Session identification carries module, and client obtains session identification from http response, and continuously initiates the 2nd to N number of company Connect, HTTP request carries this session identification;
Connect relating module, service end, according to the session identification in each request, 2 to n-th is connected and the 1st company Connect and be associated, often associate a new connection, in this new transmission being added to stream data.
One embodiment of the HTTP flow medium live system being connected based on a plurality of TCP according to the present invention, connection establishment is tied up Determine device to further include:
Session identification generation module, client is random to generate approximately globally unique session identification;
Session identification carries module, and client continuously initiates the 1st to N number of connection, carries described session in HTTP request Mark, wherein N is natural number;
Connect relating module, service end, according to the session identification in each request, the 2nd is connected and the 1st connection to N number of It is associated, often associate a new connection, in this new transmission being added to stream data.
One embodiment of the HTTP flow medium live system being connected based on a plurality of TCP according to the present invention, is connected quantity and adjusts Engagement positions include:
State detection module, the transmission state of client dynamic detection data, to be confirmed whether to meet the need of live play Ask;
Connect and increase module, when transfer rate is less than live play demand, startup TCP connection is dynamic to increase process, moves State increase refer to client initiate several new connect and send HTTP request, carry live TV stream title and meeting in HTTP request Words mark;
Newly-increased connection relating module, service end processes new request HTTP one by one, and N number of with original according to session identification Connection is associated, in the transmission being added to stream data of new association.
Present invention contrast prior art has following beneficial effect:The multiple TCP of the present invention connect to transmit live streaming Data.Its core concept is by connecting and binding technology, connects several TCP in service end and associates, stream data divides It is scattered to be transmitted in each connection.Each is connected the segmentation stream data receiving and is stitched together and can be broadcast by client Put.Compared to conventional art, the present invention solves HDL agreement list TCP and connects transfer rate shake severity it is impossible to smooth viewing is live The problem of especially high definition code check.This HTTP live transmission scheme reaches more rapid more stable live content transmission, significantly Consumer's Experience is play in lifting.
Brief description
Fig. 1 shows the stream of the first embodiment of the HTTP stream media live broadcasting method connecting based on a plurality of TCP of the present invention Cheng Tu.
Fig. 2 shows the stream of the second embodiment of the HTTP stream media live broadcasting method connecting based on a plurality of TCP of the present invention Cheng Tu.
Fig. 3 shows the TCP connection establishment of the present invention and the refined flow chart of the first embodiment of binding.
Fig. 4 shows the TCP connection establishment of the present invention and the refined flow chart of the second embodiment of binding.
Fig. 5 shows that the TCP of the present invention connects the refined flow chart of Number dynamics adjustment.
Fig. 6 shows the knot of the first embodiment of the HTTP flow medium live system connecting based on a plurality of TCP of the present invention Composition.
Fig. 7 shows the knot of the second embodiment of the HTTP flow medium live system connecting based on a plurality of TCP of the present invention Composition.
Fig. 8 shows the refinement structure chart of the first example of connection establishment binding device of the present invention.
Fig. 9 shows the refinement structure chart of the second example of the connection establishment binding device of the present invention.
Figure 10 shows the refinement structure chart of the connection amount adjusting unit of the present invention.
Specific embodiment
The invention will be further described with reference to the accompanying drawings and examples.
The first embodiment of the HTTP stream media live broadcasting method being connected based on a plurality of TCP
Fig. 1 shows the stream of the first embodiment of the HTTP stream media live broadcasting method connecting based on a plurality of TCP of the present invention Journey.Refer to Fig. 1, details are as follows for the implementation steps of the HTTP stream media live broadcasting method of the present embodiment.
Step S11:Client is initiated several TCP and is connected and complete to bind.
Set up multiple TCP in client and service end to connect and be associated by connecting and binding technology.
The step that client connects for TCP and completes to bind can be realized by two ways.
First kind of way is as shown in figure 3, please referring also to Fig. 3, the refinement of the first kind of way of TCP connection establishment and binding Details are as follows for step.
Step S110:Client is initiated and first TCP of service end connects and send HTTP request.In HTTP request only Comprise live TV stream title, there is no session identification(Session ID).
Step S112:When service end finds HTTP request for new request(I.e. no Session ID), then distribute for this request One globally unique session identification, manages first connection by this session identification, and this session identification is put into Client is returned to, now first connection can start simultaneously at transmission FLV stream data in http response.
Step S114:Client obtains session identification from http response, and continuously initiate and service end the 2nd to N number of Connect and send HTTP request, HTTP request carries live TV stream title and session identification.
Step S116:Service end processes the 2nd and connects and request to N number of, obtains session identification, by this for a moment from request Words mark finds the 1st connection, 2 to n-th is connected and the 1st connection is associated, and often the new TCP of association one connects Connect, what this was new is added in the transmission of FLV stream data.
The second way is as shown in figure 4, please referring also to Fig. 4, the refinement of the second way of TCP connection establishment and binding Details are as follows for step.
Step S111:Client is random to generate approximately globally unique session identification.
Step S113:Continuous 1 to the n-th of initiating of client connects, and sends and carries identical live TV stream title and session mark The HTTP request known, wherein N is natural number.
Step S115:Service end processes the request of 1 to n-th one by one, according to the session identification in each request, by the 2nd It is associated to N number of connection and the 1st connection, often associate a new connection, what this was new is added to FLV stream data In transmission.
Service end when processing current request, when finding that session identification is unknown identification it is believed that this is connected as newly connecting Connect, manage this connection by this session identification, when the session identification finding certain connection of session identification and remaining is identical, that is, Same session identification can be included into be managed, complete to associate.
Step S12:Stream data is carried out segmentation and is dispersed in during several TCP completing to bind connect by service end Row data transfer.
The segmentation of FLV stream data can have a variety of methods, such as big for virtual FLV file is carried out fixed-length segmental, and be Every section of interpolation header information, comprises number-of-fragments, section length etc..The present invention is not intended to limit specific segmentation method.
Service end is passed through to monitor the transmission state of each connection, selects TCP the most idle to connect to transmit up-to-date segmentation Data.The monitoring connecting transmission state can have a variety of methods, and such as inspection operation system TCP sends buffer length, buffering What area was the shortest is connection the most idle.The present invention is not intended to limit specific detection method.
Step S13:Client plays out after the segmentation stream data that each TCP connection receives is stitched together.
Client receives http response from each TCP connection, wherein contains unlimited segment data in HTTP message body, leads to Cross the header information of each segmentation, complete the reduction of data.
The second embodiment of the HTTP stream media live broadcasting method being connected based on a plurality of TCP
Fig. 2 shows the stream of the second embodiment of the HTTP stream media live broadcasting method connecting based on a plurality of TCP of the present invention Journey.Refer to Fig. 2, details are as follows for the implementation steps of the HTTP stream media live broadcasting method of the present embodiment.
Step S21:Client is initiated several TCP and is connected and complete to bind.
Set up multiple TCP in client and service end to connect and be associated by connecting and binding technology.
The step that client connects for TCP and completes to bind can be realized by two ways.
First kind of way is as shown in figure 3, please referring also to Fig. 3, the refinement of the first kind of way of TCP connection establishment and binding Details are as follows for step.
Step S110:Client is initiated and first TCP of service end connects and send HTTP request.In HTTP request only Comprise live TV stream title, there is no session identification(Session ID).
Step S112:When service end finds HTTP request for new request(I.e. no Session ID), then distribute for this request One globally unique session identification, manages first connection by this session identification, and this session identification is put into Client is returned to, now first connection can start simultaneously at transmission FLV stream data in http response.
Step S114:Client obtains session identification from http response, and continuously initiate and service end the 2nd to N number of Connect and send HTTP request, HTTP request carries live TV stream title and session identification.
Step S116:Service end processes the 2nd and connects and request to N number of, obtains session identification, by this for a moment from request Words mark finds the 1st connection, 2 to n-th is connected and the 1st connection is associated, and often the new TCP of association one connects Connect, what this was new is added in the transmission of FLV stream data.
The second way is as shown in figure 4, please referring also to Fig. 4, the refinement of the second way of TCP connection establishment and binding Details are as follows for step.
Step S111:Client is random to generate approximately globally unique session identification.
Step S113:Continuous 1 to the n-th of initiating of client connects, and sends and carries identical live TV stream title and session mark The HTTP request known, wherein N is natural number.
Step S115:Service end processes the request of 1 to n-th one by one, according to the session identification in each request, by the 2nd It is associated to N number of connection and the 1st connection, often associate a new connection, what this was new is added to FLV stream data In transmission.
Service end when processing current request, when finding that session identification is unknown identification it is believed that this is connected as newly connecting Connect, manage this connection by this session identification, when the session identification finding certain connection of session identification and remaining is identical, that is, Same session identification can be included into be managed, complete to associate.
Step S22:Stream data is carried out segmentation and is dispersed in during several TCP completing to bind connect by service end Row data transfer.
The segmentation of FLV stream data can have a variety of methods, such as big for virtual FLV file is carried out fixed-length segmental, and be Every section of interpolation header information, comprises number-of-fragments, section length etc..The present invention is not intended to limit specific segmentation method.
Service end is passed through to monitor the transmission state of each connection, selects TCP the most idle to connect to transmit up-to-date segmentation Data.The monitoring connecting transmission state can have a variety of methods, and such as inspection operation system TCP sends buffer length, buffering What area was the shortest is connection the most idle.The present invention is not intended to limit specific detection method.
Step S23:During data transfer, client connects according to the change dynamic adjustment TCP of network state in real time Number.
Client connects refinement step please referring also to Fig. 5 of the dynamic adjustment of number to TCP, and details are as follows.
Step S230:In transmitting procedure, the transmission state of client dynamic detection data, live to be confirmed whether to meet The demand play.The method of detection has a lot, such as counts all arrival rates connecting data, is contrasted with expected code check.
Step S231:When transfer rate is less than live play demand, startup TCP connects dynamic increase process, dynamic increasing Plus refer to client initiate several new connect and send HTTP request, carry live TV stream title and session mark in HTTP request Know.
Step S232:Service end processes new request HTTP one by one, and is carried out with original N number of connection according to session identification Association, in the transmission being added to FLV stream data of new association.
Step S24:Client plays out after the segmentation stream data that each TCP connection receives is stitched together.
Client receives http response from each TCP connection, wherein contains unlimited segment data in HTTP message body, leads to Cross the header information of each segmentation, complete the reduction of data.
The first embodiment of the HTTP flow medium live system being connected based on a plurality of TCP
Fig. 6 shows the knot of the first embodiment of the HTTP flow medium live system connecting based on a plurality of TCP of the present invention Structure.Refer to Fig. 6, the HTTP flow medium live system of the present embodiment includes:Connection establishment binding device 11, distributed transmission device 12nd, splice playing device 13.The outfan of connection establishment binding device 11 connects distributed transmission device 12, distributed transmission device 12 Outfan connect splicing playing device 13.
In connection establishment binding device 11, client is initiated several TCP and is connected and complete to bind.In client and service End is set up multiple TCP and is connected and be associated by connecting and binding technology.
Implementing of connection establishment binding device 11 can have two ways, and first kind of way is as shown in figure 8, second Mode is as shown in Figure 9.
Please referring also to Fig. 8, the connection establishment binding device 11 of first kind of way includes:HTTP request initiation module 110, Session identification distribute module 112, session identification carry module 114 and connect relating module 116.
The outfan of HTTP request initiation module 110 connects session identification distribute module 112, session identification distribute module 112 outfan connects session identification and carries module 114, and the outfan that session identification carries module 114 connects pass gang mould Block 116.
In HTTP request initiation module 110, first TCP of client initiation and service end connects and send HTTP please Ask.Only comprise live TV stream title in HTTP request, there is no session identification(Session ID).
In session identification distribute module 112, when service end finds HTTP request for new request(I.e. no Session ID), then Distribute a globally unique session identification for this request, first connection is managed by this session identification, and by this for a moment Words mark is put into and is returned to client in http response, and now first connection can start simultaneously at transmission FLV stream data.
Session identification carries in module 114, and client obtains session identification from http response, and continuously initiates and service The 2nd of end connects and sends HTTP request to N number of, carries live TV stream title and session identification in HTTP request.
Connect in relating module 116, service end processes the 2nd and connects and request to N number of, obtains session identification from request, 1st connection is found by this session identification, 2 to n-th is connected and the 1st connection is associated, often associate one New TCP connects, and what this was new is added in the transmission of FLV stream data.
Please referring also to Fig. 9, the connection establishment binding device 11 of the second way includes:Session identification generation module 111, Session identification carries module 113 and connects relating module 115.The outfan of session identification generation module 111 connects session mark Know and carry module 113, the outfan that session identification carries module 113 connects relating module 115.
In session identification generation module 111, client is random to generate approximately globally unique session identification;
Session identification carries in module 113, and client continuously initiates the 1st to N number of connection, carries described in HTTP request Session identification, wherein N are natural numbers.
Connect in relating module 115, service end processes the request of 1 to n-th one by one, according to the session mark in each request Know, the 2nd is associated to N number of connection and the 1st connection, often associate a new connection, what this was new is added to FLV stream In the transmission of formula data.
Service end when processing current request, when finding that session identification is unknown identification it is believed that this is connected as newly connecting Connect, manage this connection by this session identification, when the session identification finding certain connection of session identification and remaining is identical, that is, Same session identification can be included into be managed, complete to associate.
In distributed transmission device 12, stream data is carried out several that segmentation being dispersed in completes to bind by service end TCP carries out data transmission in connecting.
In splicing playing device 13, client is carried out after the segmentation stream data that each TCP connection receives is stitched together Play.
The second embodiment of the HTTP flow medium live system being connected based on a plurality of TCP
Fig. 7 shows the refinement structure of the second example of the connection establishment binding device of the present invention.Refer to Fig. 7, this The HTTP flow medium live system of embodiment includes:Connection establishment binding device 21, distributed transmission device 22, connection quantity adjustment Device 23 and splicing playing device 24.The outfan of connection establishment binding device 21 connects distributed transmission device 22, and dispersion passes The outfan of defeated device 22 connects amount adjusting unit 23, and the outfan connection splicing connecting amount adjusting unit 23 is play Device 24.
In connection establishment binding device 21, client is initiated several TCP and is connected and complete to bind.In client and service End is set up multiple TCP and is connected and be associated by connecting and binding technology.
Implementing of connection establishment binding device 21 can have two ways, and first kind of way is as shown in figure 8, second Mode is as shown in Figure 9.
Please referring also to Fig. 8, the connection establishment binding device 21 of first kind of way includes:HTTP request initiation module 110, Session identification distribute module 112, session identification carry module 114 and connect relating module 116.
The outfan of HTTP request initiation module 110 connects session identification distribute module 112, session identification distribute module 112 outfan connects session identification and carries module 114, and the outfan that session identification carries module 114 connects pass gang mould Block 116.
In HTTP request initiation module 110, first TCP of client initiation and service end connects and send HTTP please Ask.Only comprise live TV stream title in HTTP request, there is no session identification(Session ID).
In session identification distribute module 112, when service end finds HTTP request for new request(I.e. no Session ID), then Distribute a globally unique session identification for this request, first connection is managed by this session identification, and by this for a moment Words mark is put into and is returned to client in http response, and now first connection can start simultaneously at transmission FLV stream data.
Session identification carries in module 114, and client obtains session identification from http response, and continuously initiates and service The 2nd of end connects and sends HTTP request to N number of, carries live TV stream title and session identification in HTTP request.
Connect in relating module 116, service end processes the 2nd and connects and request to N number of, obtains session identification from request, 1st connection is found by this session identification, 2 to n-th is connected and the 1st connection is associated, often associate one New TCP connects, and what this was new is added in the transmission of FLV stream data.
Please referring also to Fig. 9, the connection establishment binding device 21 of the second way includes:Session identification generation module 111, Session identification carries module 113 and connects relating module 115.The outfan of session identification generation module 111 connects session mark Know and carry module 113, the outfan that session identification carries module 113 connects relating module 115.
In session identification generation module 111, client is random to generate approximately globally unique session identification;
Session identification carries in module 113, and client continuously initiates the 1st to N number of connection, carries described in HTTP request Session identification, wherein N are natural numbers.
Connect in relating module 115, service end processes the request of 1 to n-th one by one, according to the session mark in each request Know, the 2nd is associated to N number of connection and the 1st connection, often associate a new connection, what this was new is added to FLV stream In the transmission of formula data.
Service end when processing current request, when finding that session identification is unknown identification it is believed that this is connected as newly connecting Connect, manage this connection by this session identification, when the session identification finding certain connection of session identification and remaining is identical, that is, Same session identification can be included into be managed, complete to associate.
In distributed transmission device 22, stream data is carried out several that segmentation being dispersed in completes to bind by service end TCP carries out data transmission in connecting.
Connect in amount adjusting unit 23, during data transfer, in real time TCP is dynamically adjusted according to the change of network state The number connecting.
Figure 10 shows the refinement structure connecting amount adjusting unit 23.Refer to Figure 10, connect amount adjusting unit 23 Including:State detection module 230, connection increase module 231, newly-increased connection relating module 232.State detection module 230 defeated Go out end and connect increase module 231, the outfan that connection increases module 231 connects newly-increased connection relating module 232.
In state detection module 230, the transmission state of client dynamic detection data, to be confirmed whether to meet live play Demand.The method of detection has a lot, such as counts all arrival rates connecting data, is contrasted with expected code check.
Connect and increase in module 231, when transfer rate is less than live play demand, starting TCP connection dynamically increased Journey, dynamic increase refer to client initiate several new connect and send HTTP request, carry live TV stream title in HTTP request And session identification.
Newly-increased connect in relating module 232, service end processes new request HTTP one by one, and according to session identification with original N number of connection be associated, in the transmission being added to FLV stream data of new association.
In splicing playing device 24, client is carried out after the segmentation stream data that each TCP connection receives is stitched together Play.
Above-described embodiment is available to those of ordinary skill in the art to realize and to use the present invention, the common skill in this area Art personnel can make various modifications or change without departing from the present invention in the case of the inventive idea to above-described embodiment, thus Protection scope of the present invention is not limited by above-described embodiment, and should be to meet the inventive features that claims are previously mentioned Maximum magnitude.

Claims (6)

1. a kind of HTTP stream media live broadcasting method being connected based on a plurality of TCP, including:
Client is initiated several TCP and is connected and complete to bind;
Stream data is carried out carrying out data transmission during several TCP that segmentation being dispersed in completes to bind connect by service end;
Client plays out after the segmentation stream data that each TCP connection receives is stitched together;
Wherein during data transfer, the client dynamic number adjusting TCP connection of change according to network state in real time, client The dynamic adjustment that end connects number to TCP includes:
The transmission state of client dynamic detection data, to be confirmed whether to meet the demand of live play;
When transfer rate is less than live play demand, starts TCP and connect dynamic increase process, dynamic increasing refers to that client is sent out Rise several new connect and send HTTP request, carry live TV stream title and session identification in HTTP request;
Service end processes new request HTTP one by one, and is associated with original N number of connection according to session identification, new association It is added in the transmission of stream data.
2. the HTTP stream media live broadcasting method being connected based on a plurality of TCP according to claim 1 is it is characterised in that client The step that end several TCP of initiation connect and complete to bind further includes:
Client is initiated first and is connected and send HTTP request;
Service end is the globally unique session identification of this request distribution, and is sent to client in http response, starts simultaneously at Transmission stream data;
Client obtains session identification from http response, and continuously initiates the 2nd to N number of connection, carries this in HTTP request Session identification;
Service end, according to the session identification in each request, 2 to n-th is connected and the 1st connection is associated, often associate One new connection, in this new transmission being added to stream data.
3. the HTTP stream media live broadcasting method being connected based on a plurality of TCP according to claim 1 is it is characterised in that client The step that end several TCP of initiation connect and complete to bind further includes:
Client is random to generate globally unique session identification;
Client is continuous to initiate the 1st to N number of connection, carries described session identification, wherein N is natural number in HTTP request;
Service end, according to the session identification in each request, the 2nd is associated to N number of connection and the 1st connection, often associates one Individual new connection, in this new transmission being added to stream data.
4. a kind of HTTP flow medium live system being connected based on a plurality of TCP, including:
Connection establishment binding device, client is initiated several TCP and is connected and complete to bind;
Distributed transmission device, stream data is carried out segmentation and is dispersed in several TCP connection completing to bind by service end Carry out data transmission;
Splicing playing device, client plays out after the segmentation stream data that each TCP connection receives is stitched together;
Connection amount adjusting unit, during data transfer, the real-time change according to network state is dynamic adjusts the individual of TCP connection Number, connects amount adjusting unit and includes:
State detection module, the transmission state of client dynamic detection data, to be confirmed whether to meet the demand of live play;
Connect and increase module, when transfer rate is less than live play demand, startup TCP connection is dynamic to increase process, dynamic increasing Plus refer to client initiate several new connect and send HTTP request, carry live TV stream title and session mark in HTTP request Know;
Newly-increased connection relating module, service end processes new request HTTP one by one, and according to session identification and original N number of connection It is associated, in the transmission being added to stream data of new association.
5. the HTTP flow medium live system being connected based on a plurality of TCP according to claim 4 is it is characterised in that connect Set up binding device to further include:
HTTP request initiation module, client is initiated first and is connected and send HTTP request;
Session identification distribute module, service end is the globally unique session identification of this request distribution, and sends in http response To client, start simultaneously at transmission stream data;
Session identification carries module, and client obtains session identification from http response, and continuously initiates the 2nd to N number of connection, This session identification is carried in HTTP request;
Connect relating module, service end according to each request in session identification, by 2 to n-th connect and the 1st connect into Row association, often associates a new connection, in this new transmission being added to stream data.
6. the HTTP flow medium live system being connected based on a plurality of TCP according to claim 4 is it is characterised in that connect Set up binding device to further include:
Session identification generation module, client generates globally unique session identification at random;
Session identification carries module, and client continuously initiates the 1st to N number of connection, carries described session identification in HTTP request, Wherein N is natural number;
Connect relating module, service end, according to the session identification in each request, the 2nd is carried out to N number of connection and the 1st connection Association, often associates a new connection, in this new transmission being added to stream data.
CN201310424840.6A 2013-09-17 2013-09-17 HTTP streaming media live broadcasting method and system based on multiple TCP links Active CN103457956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310424840.6A CN103457956B (en) 2013-09-17 2013-09-17 HTTP streaming media live broadcasting method and system based on multiple TCP links

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310424840.6A CN103457956B (en) 2013-09-17 2013-09-17 HTTP streaming media live broadcasting method and system based on multiple TCP links

Publications (2)

Publication Number Publication Date
CN103457956A CN103457956A (en) 2013-12-18
CN103457956B true CN103457956B (en) 2017-02-08

Family

ID=49739910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310424840.6A Active CN103457956B (en) 2013-09-17 2013-09-17 HTTP streaming media live broadcasting method and system based on multiple TCP links

Country Status (1)

Country Link
CN (1) CN103457956B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471760B (en) * 2014-09-12 2019-04-05 华为技术有限公司 The device and data communication system of a kind of method for routing, load balancing
CN104506493B (en) * 2014-12-04 2018-02-27 武汉市烽视威科技有限公司 A kind of method for realizing HLS contents Hui Yuan and caching
CN104702592B (en) * 2015-01-08 2018-09-11 三星电子(中国)研发中心 Stream media downloading method and device
CN105471869B (en) * 2015-11-23 2019-05-21 珠海全志科技股份有限公司 A kind of connection multiplexing method and system of internet television content requests
CN108471344B (en) * 2018-03-30 2021-07-02 北京奥普维尔科技有限公司 Bidirectional multi-link data sending method and device based on FPGA
CN108600012A (en) * 2018-04-26 2018-09-28 深圳光华普惠科技有限公司 Micro services framework monitoring system
CN110740351B (en) * 2019-11-14 2022-05-24 普联技术有限公司 Method, device and storage medium for transmitting stream media data
CN112689011B (en) * 2020-12-24 2023-05-26 北京浪潮数据技术有限公司 Service transmission method, device, equipment and medium based on NFS protocol

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827111A (en) * 2010-05-12 2010-09-08 中兴通讯股份有限公司 TCP (Transfer Control Protocol) linking method, network system, client end and server
WO2011150644A1 (en) * 2010-12-17 2011-12-08 华为技术有限公司 Method and apparatus for acquiring and transmitting streaming media data in the process of initiation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827111A (en) * 2010-05-12 2010-09-08 中兴通讯股份有限公司 TCP (Transfer Control Protocol) linking method, network system, client end and server
WO2011150644A1 (en) * 2010-12-17 2011-12-08 华为技术有限公司 Method and apparatus for acquiring and transmitting streaming media data in the process of initiation

Also Published As

Publication number Publication date
CN103457956A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
CN103457956B (en) HTTP streaming media live broadcasting method and system based on multiple TCP links
WO2019223553A1 (en) Network traffic identification method and related device
KR101366803B1 (en) Communication method and apparatus using hyper text transfer protocol
US10003830B1 (en) Controller to manage streaming video of playback devices
EP2391086B1 (en) Method and apparatus for playing live content
US20150067185A1 (en) Server-side systems and methods for reporting stream data
US20130198406A1 (en) Adaptive variable fidelity media distribution system and method
CN102075338B (en) Distributed network-based live broadcasting method and device
CN105471869A (en) Internet television content request connection reuse method and system thereof
CN101257454A (en) Apparatus and method for managing band width
CN106657143A (en) Streaming media transmission method and device, server and terminal
CN104009938A (en) Method and system for long connections based on router level
KR20150079557A (en) System and method for delivering an audio-visual content to a client device
WO2013017165A1 (en) Shaping media traffic based on manifest file in http adaptive streaming
US20110082943A1 (en) P2p network system and data transmitting and receiving method thereof
US20100169482A1 (en) Method And An Apparatus For Monitoring Multimedia Data
JP2015510301A5 (en)
WO2013097454A1 (en) Video inter-cut method, device and system
WO2017161757A1 (en) Method and system for distributing streaming media file
CN107920108A (en) A kind of method for pushing of media resource, client and server
CN103841468B (en) Real time flow medium data transmission method
US10587733B2 (en) Server-side HTTP translator
CN104010001A (en) Method and system for carrying out connection communication on same networking requests in mobile terminal
CN108476332A (en) Client, server, method of reseptance and sending method
CN103731684A (en) VOD (video on demand)-LVD (live video broadcast) video switching method, device and 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
C14 Grant of patent or utility model
GR01 Patent grant