CN100426864C - Method for increasing broadcast effect of data flow - Google Patents

Method for increasing broadcast effect of data flow Download PDF

Info

Publication number
CN100426864C
CN100426864C CNB2004100181728A CN200410018172A CN100426864C CN 100426864 C CN100426864 C CN 100426864C CN B2004100181728 A CNB2004100181728 A CN B2004100181728A CN 200410018172 A CN200410018172 A CN 200410018172A CN 100426864 C CN100426864 C CN 100426864C
Authority
CN
China
Prior art keywords
client
broadcast
server
data
buffer
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.)
Expired - Lifetime
Application number
CNB2004100181728A
Other languages
Chinese (zh)
Other versions
CN1694532A (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.)
SHANGHAI HIGH CLARITY DIGITAL
Original Assignee
Shanghai High-Clarity Digital Technology Renewing Centre
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 Shanghai High-Clarity Digital Technology Renewing Centre filed Critical Shanghai High-Clarity Digital Technology Renewing Centre
Priority to CNB2004100181728A priority Critical patent/CN100426864C/en
Publication of CN1694532A publication Critical patent/CN1694532A/en
Application granted granted Critical
Publication of CN100426864C publication Critical patent/CN100426864C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a method for increasing the broadcast effect of data, which is based on the design of a client/server structure and is installed in a front-end system of a digital television. The present invention has functions of processing client connection, delivering data packets sent by a client end to respective buffers, and broadcasting the data packets according to broadcast strategies for forming a transmission flow delivered to a multiplexer. A traditional method is in a type that a single damper is adopted; the present invention has a method that multiple buffers are adopted; the present invention has the advantages that each client end corresponds to more than one buffer; thereby, the time of the data packets waiting to enter the buffers is reduced; a broadcast task can be processed without waiting for a buffer corresponding to the client end queried by the next time; thereby, the broadcast efficiency is improved.

Description

A kind ofly improve the method that data flow is broadcast efficient
Technical field
The present invention relates to a kind of method that data flow is broadcast efficient that improves, belong to the data broadcast of digital TV technical field.
Background technology
Digital TV Broadcasting Techniques develops rapidly at present, compares with traditional simulated television, and software engineering is occupied even more important position in digital television techniques.Except the decoding of looking audio frequency is realized by hardware, comprise the reproduction of television content, the realization of electronic program guides (EPG) operation interface, the realization of data broadcast service, until the interconnection of apparatus of digital television receiving and personal computer and and the interconnection of the Internet all need realize by software.The introducing of Digital Television epoch software engineering will greatly enlarge the scope of business of traditional tv network.
Digital television techniques mainly comprises the two large divisions: apparatus of digital television receiving and software systems thereof; Front end audio-video signal and data broadcasting system.
Apparatus of digital television receiving has begun to enter in a large number family because it is powerful, easy to operate.What apparatus of digital television receiving received is digitized image and data message, therefore, be different from the reception and the processing of traditional anolog TV signals, apparatus of digital television receiving is to be undertaken by its inner central processing unit (CPU) and coupled peripheral components to the reception and the processing of digitized image information and data.
The major function of front end system is to play interactive application and data on MPEG-2 stream.These are used with data and are packaged into the MPEG-2 transmission package, and these bags connect together, and form mpeg 2 transport stream, by multiplexer, by wired, satellite, ground or other medium, download to apparatus of digital television receiving-set-top box.The front end system block diagram is seen Fig. 1.
As everyone knows, generally speaking, apparatus of digital television receiving manufacturer also will develop the application program that this apparatus of digital television receiving is suitable for usually on the basis of relevant hardware and operating system after design, having made the hardware of apparatus of digital television receiving; Equally, some professional digital broadcast content service providers also need to go out corresponding service software according to the hardware performance and the functional development of different apparatus of digital television receiving.
One of core of data broadcasting control centre is a data broadcast server in the front end system, and its effect is: handle the client and connect, with a plurality of client dialogues, handle their request respectively.The transmission package that it transmits client is delivered separately buffer according to transport protocol standard; Play transmission package according to broadcasting strategy, form transport stream and deliver multiplexer.
The method course of work that the single buffer mode of traditional employing transmits transmission package is as follows:
The corresponding buffer of each client, if do not have when finishing new transmission package to need to handle when the transmission package in this buffer is processed, then new transmission package formation must be waited for, when the data in the buffer are disposed fully, processing client-requested task detects the buffer sign and is changed to and can writes, could be with the transmission package write buffer of waiting for.
Mainly there is following defective in the method that adopts single buffer to carry out the transmission package transmission:
Owing to adopt single buffer to carry out the storage of transmission package (packet), buffer is only supported the single task operation, can not carry out read operation when carrying out write operation that is:; When carrying out read operation, can not carry out write operation.Handling client-requested task detection buffer flag bit is could be with the transmission package write buffer in the time of can writing; When being readable, transmission package could be read main task poll detection buffer flag bit.When the transmission package quantity of handling when needs is a lot, when main task very easily occurring and being polled to the buffer of certain client correspondence, though the last consignment of data dispose in the buffer, but new transmission package does not also have in the complete write buffer, main task detects the buffer flag bit and also can not write, and changes and removes to inquire about next buffer state; And new transmission package write could be processed when needing to wait for the inquiry of main task next round after finishing, thereby lost the single treatment chance.Adopt the method for single buffer transmits data packets because packet waits for that the time that enters buffer is long, so the whole efficient of broadcasting the server process transmission package reduces.
At above-mentioned problem, the present invention adopted a kind of based on the client/server framework, utilize method more than a buffer to substitute traditional single buffer approach to carry out the transmission of transmission package, effectively reduced transmission package and waited for the time that enters buffer, improved and broadcast efficient.
Summary of the invention
The technical problem to be solved in the present invention is the implementation method that a kind of many buffers are provided for the transmission of the transmission package of data broadcast of digital TV transmitting system, make each client correspondence more than a buffer, reduce transmission package and waited for the time that enters buffer, improved the efficient of TS bag transmission.
The present invention adopts following technical method to solve above problem.By a kind of data broadcasting system based on the client/server framework is provided, described server index is according to broadcasting server; Client is communicated by letter by client-server communication protocol with server, and client Connection Service device also sends request, and server receives client's connection and the task of opening up is handled client requests; Method of the present invention just is based on this framework, utilize many buffers to improve data broadcast server broadcasts efficient, a kind of strategy of transmission package scheduling is provided simultaneously, make a plurality of transport stream be combined into a transport stream, promptly the data flow of a plurality of low rates is combined into the data flow of a two-forty.
Below method of the present invention is done detailed explanation.
Implementation step:
A kind of method of broadcasting efficient based on the raising data of client/server framework.
The major function of client and server end:
Client: main purpose is the Connection Service device, and sends request according to client-server communication protocol.The request of client mainly contains following several:
1) application connects with server
2) bandwidth application
3) application transmits data packets
4) application is closed and being connected of server
Client is set up communication by client-server communication protocol and server, sends respective request.
Server end: mainly carry out three generic tasks, their major function is as follows:
1) main task: main task is carried out initialization and is broadcast chained list, and broadcasts packet according to broadcasting the chained list circulation.
2) monitor the client and connect task: whether this task is monitored has the client to connect, and when new client connects, creates the client-requested task of handling.
3) handle the client-requested task: this task keep and client between communication, and according to the client
-server communication protocol processes client-requested.
Server process client-requested task job step is as follows:
Step 1:, be ready for sending packet by client Connection Service device;
Step 2: monitor client's connection task and listened to the client connection, open up the client-requested task of handling;
Step 3: handle a plurality of buffer states that the inquiry of client-requested task has connected the client of data broadcast server, if one of them buffer state is masked as and can writes, then write packet to this buffer, this process is handled client-requested task and is kept and the communicating by letter of client, finish until the data packets operation, buffer state is changed to readable, and client withdraws from connection, handles the client-requested task and closes;
Step 4: the main task poll detects the pairing buffer state of each client:
Situation 1: if in the corresponding a plurality of buffers of certain client a Status Flag is arranged is readable, then main task is according to broadcast the tactful packet that reads certain bag number at every turn, until this buffer is empty, and main task is changed to the buffer sign can write, then handles the packet in other buffer;
Figure C20041001817200072
Situation 2: if do not have Status Flag in corresponding all buffers of certain client is readable, and main task directly forwards the corresponding pool of buffer device of next client to and detects;
Step 5: data broadcast server forms transport stream according to broadcasting tactful playback data, delivers multiplexer;
Fig. 2 is seen in the read-write signal in a plurality of buffers of above-mentioned steps and packet.
The present invention is further illustrated below in conjunction with accompanying drawing.
Description of drawings
Fig. 1 is the digital TV front-end structural representation,
Fig. 2 describes the read-write flow process of server end buffer memory.
Fig. 3 data broadcast server operation principle schematic diagram represents that a plurality of buffers of a kind of employing based on the client/server framework improve the server architecture that data are broadcast, and adopt the framework of double buffering.
The present invention is described in further detail below in conjunction with specific embodiment.
Embodiment
Referring to Fig. 3, a plurality of buffers of a kind of employing based on the client/server framework that the present invention relates to improve the method that data are broadcast efficient, are example with the double buffering, and its specific implementation process is as follows:
Client sends to server by client-server communication protocol and creates connection requests, and this request comprises data type and other relevant supplementary information that client transmits;
Whether continuous monitoring has client to connect according to ICP/IP protocol to monitor client connection task (task A), connects when listening to new client, then creates the client-requested task (task B) of handling.
Book server can be handled the client-requested task, and while maintain customer end is communicated by letter with server, and handles other request that client sends.
After data broadcast server received the client connection request, the job step that task B handles client requests was as follows:
1) distribute suitable bandwidth according to broadcasting strategy, if available bandwidth is arranged, and client connects unsaturation, then returns successful information of client, creates this client node simultaneously, and this node is inserted into broadcasts in the chained list.
Node information comprises:
(1) the open ended maximum bag number of every block buffer: initial value is 0.
(2) the bag number that require to transmit: initial value is 0, represent no transferable packet, and by assignment, and value is not more than the open ended maximum of every block buffer and wraps number when transfer data packets for it.
(3) the current bag number that has transmitted: initial value is 0.
(4) bandwidth of being distributed: by broadcasting the strategy decision.
Can (5) repeat to send: default value be not reproducible transmission, and this value can be created when being connected by client-requested and server end and specify.
(6) data type of Chuan Songing: send by client, broadcast strategy and distribute bandwidth according to the data type that transmits.
(7) the buffer interval of node: initial value is empty, has only when client application buffer is interval and just distributes; The buffer interval of node is corresponding to each client, and each client corresponding two block buffers, the i.e. notion of double buffering.
(8) readable resource: initial value is 0, and is on duty greater than 0, and expression has at least a block buffer readable; Otherwise the expression buffer data has run through or has not had new buffer interval to be ready to.
(9) can write resource: initial value is 2, represents that each client can write two block buffers should be arranged.
(10) readable position: initial value is 1, and expression is read since first block buffer.
(11) but writing position: initial value is 1, the expression write since first block buffer.
2) client sends the request of application buffer space by client-server communication protocol to server, sends the buffer space size of needs to data broadcast server, and server-assignment is the buffer space of unit with the bag.If server can distribute the space of these client needs, then return information that is allocated successfully of client, and the node information of this client of resetting.
3) client sends the request of broadcasting packet by client-server communication protocol to server, send the information such as number of this packet that need broadcast and packet to server, server determines that the request of this client is legal, to apply for to write resource: can write resource greater than 0, show that then having one in two block buffers at least can write; Can write resource is 0, shows that two block buffers are not all run through.If do not apply for to write resource, then get clogged until applying for that successfully other request of client also will get clogged during this period.After the buffer space of applying for writing, the client-requested data packets transmitted is sent to buffer.After buffer is delivered packet and is finished, the relevant information of replacement client node.
4) client sends to server by client-server communication protocol and closes connection requests, server is deleted this client node from broadcast chained list, and discharge the buffer space of this client application, and close and being connected of client, close the client requests task of handling.
The step of main task (task C) work is:
Chained list is broadcast in its initialization, each node in the inquiry linked list, when the readable resource of finding certain node greater than zero the time, but will from readable buffer, choose the packet that will broadcast according to the read buffer designator; Rewrite the current bag number information that sent; If more than or equal to the bag number that requires to send, showing all to send in anterior bumper, the current bag number that sent finishes; Otherwise forward next node to and carry out same operation; When this buffer data is read when finishing, detect current readable resource and can repeat to send sign, if all be 1, showing does not have new data demand to send, and current data can repeat to send, the bag of the transmission information of counting of this buffer is reset to 0, forward next node then to and carry out same operation; Otherwise, but the read buffer designator is pointed to another block buffer, and readable resource is subtracted 1, can write resource and add 1, turn to next client node to carry out same operation; If the task that have corresponding processing client to transmit data this moment gets clogged, then this getting clogged of task will be waken up, and the request of proceeding is handled.
It should be noted last that: the present invention is to provide a kind of method and design philosophy thereof that data broadcast server is broadcast efficient that improve, above embodiment is the unrestricted technical scheme of the present invention in order to explanation only, although the present invention is had been described in detail with reference to the foregoing description, those of ordinary skill in the art is to be understood that: still can make amendment or be equal to replacement the present invention, and not breaking away from any modification or partial replacement of the spirit and scope of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.

Claims (7)

1. one kind is improved the method that data flow is broadcast efficient, it is characterized in that, be used for that the digital TV front-end data are broadcast, control system, it is based on the client/server architecture design, each client is to having more than a buffer, described buffer all is used to deposit the packet that its clients corresponding is sent, and described method comprises following several task at least:
There is a proprietary task to be used to monitor the connection and the data sending request of client;
When client connection data were broadcast the server requirement transfer data packets, data broadcast server was opened up the task of a processing client-requested, handles a plurality of buffers that the client-requested task detects this client correspondence;
One main task is arranged simultaneously, and its effect is a plurality of buffers that poll detects each client correspondence, and when arbitrary buffer flag bit is readable, main task is read data packet from buffer.
2. raising data flow according to claim 1 is broadcast the method for efficient, it is characterized in that, described method can be handled a plurality of client requests.
3. raising data flow according to claim 1 and 2 is broadcast the method that server is broadcast efficient, it is characterized in that, described client effect is the Connection Service device, and sends request according to client-server communication protocol; According to the difference of wire data type, client can have a plurality of.
4. raising data flow according to claim 1 and 2 is broadcast the method that server is broadcast efficient, it is characterized in that, client-server communication protocol is adopted in communicating by letter between client and the server, and it comprises following content:
1) sets up and being connected of server;
2) for wanting the data packets transmitted bandwidth application;
3) transmits data packets;
4) close and being connected of server.
5. raising data flow according to claim 1 and 2 is broadcast the method that server is broadcast efficient, it is characterized in that, described processing client-requested task is that data broadcast server is opened up according to the demand of broadcasting of client, and its concrete job step is as follows:
1) when client connection data were broadcast the server requirement transfer data packets, data broadcast server was opened up the client-requested task of handling;
2) handle a plurality of buffers that the client-requested task detects this client correspondence, when arbitrary buffer flag bit for writing, processing client-requested task writes packet to this buffer;
3) write the client that finishes and close and being connected of data broadcast server, handling the client-requested task is readable with the buffer mark position.
6. raising data flow according to claim 1 and 2 is broadcast the method that server is broadcast efficient, it is characterized in that, described main task job step is as follows:
1) a plurality of buffers of each client correspondence of main task wheel continuous query, when arbitrary buffer flag bit is readable, main task is read data packet from buffer;
2) read the main task that finishes with the Data Labels position for writing, change and to go to inquire about next client.
7. raising data flow according to claim 1 and 2 is broadcast the method that server is broadcast efficient, it is characterized in that, the purpose of described method is that a plurality of data transmission streams are combined into a transport stream, and promptly the data flow of a plurality of low rates is combined into the data flow of a two-forty; This method refers to a kind of fixed schedule algorithm, i.e. a kind of strategy of data packet dispatching.
CNB2004100181728A 2004-05-09 2004-05-09 Method for increasing broadcast effect of data flow Expired - Lifetime CN100426864C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100181728A CN100426864C (en) 2004-05-09 2004-05-09 Method for increasing broadcast effect of data flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100181728A CN100426864C (en) 2004-05-09 2004-05-09 Method for increasing broadcast effect of data flow

Publications (2)

Publication Number Publication Date
CN1694532A CN1694532A (en) 2005-11-09
CN100426864C true CN100426864C (en) 2008-10-15

Family

ID=35353297

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100181728A Expired - Lifetime CN100426864C (en) 2004-05-09 2004-05-09 Method for increasing broadcast effect of data flow

Country Status (1)

Country Link
CN (1) CN100426864C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984561A (en) * 2012-11-09 2013-03-20 中山爱科数字科技股份有限公司 Data cache method for obtaining information service through digital set-top box

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5809557A (en) * 1996-01-31 1998-09-15 Galileo Technologies Ltd. Memory array comprised of multiple FIFO devices
CN1264976A (en) * 1999-02-24 2000-08-30 中国科学院声学研究所 Data broadcast system of digital vedio broadcast
CN1459164A (en) * 2001-03-19 2003-11-26 松下电器产业株式会社 Packet transmission system and packet transmission method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5809557A (en) * 1996-01-31 1998-09-15 Galileo Technologies Ltd. Memory array comprised of multiple FIFO devices
CN1264976A (en) * 1999-02-24 2000-08-30 中国科学院声学研究所 Data broadcast system of digital vedio broadcast
CN1459164A (en) * 2001-03-19 2003-11-26 松下电器产业株式会社 Packet transmission system and packet transmission method

Also Published As

Publication number Publication date
CN1694532A (en) 2005-11-09

Similar Documents

Publication Publication Date Title
US5758085A (en) Semiconductor memory based server for providing multimedia information on demand over wide area networks
US8001575B2 (en) Method of distributing video-on-demand over an internet protocol network infrastructure
US6029194A (en) Audio/video media server for distributed editing over networks
CN101682355B (en) Method and apparatus providing scalability for channel change requests in a switched digital video system
JP2000032016A (en) Digital signal receiver, network and transport stream transmitting method
US20040052371A1 (en) Content providing apparatus and content providing method
JP3190813B2 (en) Delivery system
CN104246737A (en) Systems and methods for connection pooling for video streaming in content delivery networks
JP2003521067A (en) System and method for rewriting a media resource request and / or response between an origin server and a client
KR20030071481A (en) System and methods for providing video-on-demand services for broadcasting systems
US20100198977A1 (en) Automatic live stream trees
US20060053460A1 (en) Transmission communications management
CN101388846B (en) Method and apparatus for transferring data
CN101621386A (en) Method, system and equipment for saving bandwidth of content network
US20060075459A1 (en) Data distribution device capable of distributing a content
CN100426864C (en) Method for increasing broadcast effect of data flow
JP3809813B2 (en) Content distribution method and content distribution system using the same
US8931085B2 (en) Download optimization in the presence of multicast data
CN101873263A (en) Cluster multicast method and system based on local network downloading
CN102450029A (en) Methods, apparatuses and computer program products for media recording
US20040199650A1 (en) System and methods for accelerating data delivery
JP2002185948A (en) Method and device for distributing stream
CN102014302B (en) Method for high-performance module scheduling of set-top box
CN201937776U (en) Program receiving and recording system based on transmission streams (TS)
CA3215453A1 (en) System for queuing flows to channels

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHANGHAI LANXIN SOFTWARE TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: SHANGHAI HIGH DEFINITION DIGITAL TECHNOLOGY INNOVATION CO., LTD.; APPLICANT

Effective date: 20060407

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20060407

Address after: 200233, 4 building, 461 software tower, Rainbow Road, Shanghai

Applicant after: SHANGHAI HIGH CLARITY DIGITAL

Address before: 200233, 4 building, 461 software tower, Rainbow Road, Shanghai

Applicant before: Shanghai HD digital technology innovation Co.,Ltd.

Co-applicant before: Yingkai Software System (Shanghai) Co.,Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20081015