CN109150385A - Broadcast data transmitting method, device, equipment and computer readable storage medium - Google Patents

Broadcast data transmitting method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109150385A
CN109150385A CN201710504133.6A CN201710504133A CN109150385A CN 109150385 A CN109150385 A CN 109150385A CN 201710504133 A CN201710504133 A CN 201710504133A CN 109150385 A CN109150385 A CN 109150385A
Authority
CN
China
Prior art keywords
broadcast
files
file
blocks
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
CN201710504133.6A
Other languages
Chinese (zh)
Other versions
CN109150385B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710504133.6A priority Critical patent/CN109150385B/en
Publication of CN109150385A publication Critical patent/CN109150385A/en
Application granted granted Critical
Publication of CN109150385B publication Critical patent/CN109150385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0041Arrangements at the transmitter end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention discloses a kind of broadcast data transmitting methods, this method comprises: original broadcast file to be sent is divided into several blocks of files;Corresponding forward error correction is separately added into each blocks of files of division, the forward error correction carries out forward error correction for broadcast data of the broadcast reception end to the original broadcast file;Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, wherein N is positive integer and N≤2;The broadcast data of the original broadcast file is divided into N number of data packet and is successively sent to the broadcast reception end, wherein each data packet is obtained by choosing a fragment respectively from each blocks of files and being packaged the fragment of selection.The invention also discloses a kind of broadcast data sending device, equipment and a kind of computer readable storage mediums.The present invention can reduce influence of the Network Abnormal to single file block loss of data, improve the reliability that broadcast data is sent.

Description

Broadcast data transmitting method, device, equipment and computer readable storage medium
Technical field
The present invention relates to field of communication technology more particularly to broadcast data transmitting method, device, equipment and computer-readable Storage medium.
Background technique
Flute agreement is to be widely used in a kind of unidirectional file delivery agreement of mobile multimedia broadcast system, for branch Hold the One-to-All Broadcast of point-to-multipoint audio/video flow and data file.Flute agreement has forward error correction (Forward Error Correctmon, abbreviation FEC) function, the function by transmission code arranges be added redundant correcting code connect under certain condition Receiving end can correct transmission error code by decoding automatically, to ensure that the reliable of data one way propagation to a certain extent Property.The characteristics of due to broadcast data one way propagation, the forward error correction capability of Flute protocol data seems most important, directly Influence the user experience at broadcast reception end.
For current Flute agreement when supporting mobile multi-media broadcasting service, correcting data error is using fountain codes class Methods for forward error correction coding, the characteristics of such method is that file to be transmitted is divided into multiple pieces by transmitting terminal, then to each Piecemeal carries out operation and generates a certain proportion of redundant data, then sends each piece and its redundant data according still further to the sequence of block To receiving end, receiving end is after receiving these blocks and its redundant data, so that it may restore original file.
However, for single piecemeal, if the Loss Rate for the data that receiving end receives has been more than its redundancy rate, Will lead to the piecemeal can not be resumed, and then directly results in entire file and cannot restore.When Network Abnormal, according to it is above-mentioned from The method that so sequence sends file block data just easily causes the data loss rate of some file block to be more than its redundancy rate, It cannot be resumed so as to cause this document block, eventually lead to entire file access pattern failure.Therefore, existing to be based on forward error correction function There are also to be optimized for the broadcast data sending method of energy.
Summary of the invention
It is a primary object of the present invention to propose a kind of method, apparatus and computer readable storage medium, it is intended to reduce net The abnormal influence to single file block loss of data of network, improves the reliability that broadcast data is sent.
To achieve the above object, the present invention provides a kind of broadcast data transmitting method, the broadcast data transmitting method packet Include following steps:
Original broadcast file to be sent is divided into several blocks of files;
Corresponding forward error correction is separately added into each blocks of files of division, the forward error correction connects for broadcasting Receiving end carries out forward error correction to the broadcast data of the original broadcast file;
Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, wherein N be positive integer and N≤ 2;
The broadcast data of the original broadcast file is divided into N number of data packet and is successively sent to the broadcast reception end, Wherein, each data packet is obtained and choosing a fragment respectively from each blocks of files and being packaged the fragment of selection It arrives.
Preferably, described the step of original broadcast file to be sent is divided into several blocks of files, includes:
Obtain the size of original broadcast file to be sent;
The original broadcast file is averagely divided into several according to the size of the original broadcast file got Blocks of files.
Preferably, after described the step of original broadcast file to be sent is divided into several blocks of files, further includes:
Corresponding file block number is distributed for each blocks of files of division.
Preferably, described that corresponding forward error correction, the forward error correction are separately added into each blocks of files of division After the step of code carries out forward error correction for broadcast data of the broadcast reception end to the original broadcast file, further includes:
Corresponding fragment number is distributed for each fragment of each blocks of files of the forward error correction is added.
Preferably, the broadcast data by the original broadcast file be divided into N number of data packet be successively sent to it is described Broadcast reception end, wherein each data packet by chosen respectively from each blocks of files a fragment and by the fragment of selection into Row encapsulation obtained from step include:
A fragment will be chosen respectively from each blocks of files according to the file block number and fragment number and incite somebody to action The fragment of selection is encapsulated as the step of data packet and executes n times, and the broadcast data of the file original broadcast file is drawn It is divided into N number of data packet;
When carrying out the transmission of broadcast data of the original broadcast file, N number of data packet of division is successively sent out It send to the broadcast reception end.
Preferably, the original broadcast file includes original audio file, original video files, and with the original sound Frequency file and the corresponding raw data file of the original video files.
In addition, to achieve the above object, the present invention also provides a kind of broadcast data sending device, the broadcast data is sent Device includes:
First division module, for original broadcast file to be sent to be divided into several blocks of files;
Module is added, for being separately added into corresponding forward error correction in each blocks of files of division, the forward direction entangles Error code carries out forward error correction for broadcast data of the broadcast reception end to the original broadcast file;
Second division module, for each blocks of files that the forward error correction is added to be respectively divided into N number of fragment, In, N is positive integer and N≤2;
Sending module is successively sent to institute for the broadcast data of the original broadcast file to be divided into N number of data packet State broadcast reception end, wherein each data packet by choosing a fragment and by the fragment of selection respectively from each blocks of files It is packaged and obtains.
Preferably, first division module is also used to:
Obtain the size of original broadcast file to be sent;
The original broadcast file is averagely divided into several according to the size of the original broadcast file got Blocks of files.
In addition, to achieve the above object, the present invention also provides a kind of broadcast data sending device, the broadcast data is sent Equipment includes: the broadcast data hair that memory, processor and being stored in can be run on the memory and on the processor Program is sent, the broadcast data sends when program is executed by the processor and realizes following steps:
Original broadcast file to be sent is divided into several blocks of files;
Corresponding forward error correction is separately added into each blocks of files of division, the forward error correction connects for broadcasting Receiving end carries out forward error correction to the broadcast data of the original broadcast file;
Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, wherein N be positive integer and N≤ 2;
The broadcast data of the original broadcast file is divided into N number of data packet and is successively sent to the broadcast reception end, Wherein, each data packet is obtained and choosing a fragment respectively from each blocks of files and being packaged the fragment of selection It arrives.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium It is stored with broadcast data on storage medium and sends program, the broadcast data, which is sent, realizes following step when program is executed by processor It is rapid:
Original broadcast file to be sent is divided into several blocks of files;
Corresponding forward error correction is separately added into each blocks of files of division, the forward error correction connects for broadcasting Receiving end carries out forward error correction to the broadcast data of the original broadcast file;
Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, wherein N be positive integer and N≤ 2;
The broadcast data of the original broadcast file is divided into N number of data packet and is successively sent to the broadcast reception end, Wherein, each data packet is obtained and choosing a fragment respectively from each blocks of files and being packaged the fragment of selection It arrives.
Original broadcast file to be sent is divided into several blocks of files by the present invention;Divide in each blocks of files of division Corresponding forward error correction is not added, the forward error correction is for broadcast reception end to the broadcast number of the original broadcast file According to progress forward error correction;Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, wherein N is positive whole Number and N≤2;The broadcast data of the original broadcast file is divided into N number of data packet and is successively sent to the broadcast reception end, Wherein, each data packet is obtained and choosing a fragment respectively from each blocks of files and being packaged the fragment of selection It arrives.Broadcast data sending strategy compared with the existing technology, the present invention is by each piecemeal further division of original broadcast file Fragment is chosen from each piecemeal and is encapsulated as data packet and is successively sent out when carrying out broadcast data transmission for several fragments It send, avoids the fragment data for continuously transmitting same file block, so when Network Abnormal, the data of loss can be relatively evenly It is distributed in multiple blocks of files, concentrates on causing this document block extensive in a blocks of files so as to avoid the data of loss Multiple problem.The present invention can reduce influence of the Network Abnormal to single file block loss of data, improve what broadcast data was sent Reliability.
Detailed description of the invention
Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of broadcast data transmitting method first embodiment of the present invention;
Fig. 3 is the structural schematic diagram of block code in the embodiment of the present invention;
Fig. 4 is the transmission schematic diagram of a scenario of broadcast data in the embodiment of the present invention;
Fig. 5 is the flow diagram of broadcast data transmitting method second embodiment of the present invention;
Fig. 6 is the functional block diagram of one embodiment of broadcast data sending device of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are: original broadcast file to be sent is divided into several files Block;Corresponding forward error correction is separately added into each blocks of files of division, the forward error correction is used for broadcast reception end Forward error correction is carried out to the broadcast data of the original broadcast file;Each blocks of files difference of the forward error correction will be added It is divided into N number of fragment, wherein N is positive integer and N≤2;The broadcast data of the original broadcast file is divided into N number of data Packet is successively sent to the broadcast reception end, wherein each data packet by choosing a fragment respectively from each blocks of files And the fragment of selection is packaged and is obtained.
In the existing forward error correction technique based on Flute agreement, when carrying out broadcast data transmission, for single text Part piecemeal, if the Loss Rate for the data that receiving end receives has been more than its redundancy rate, will lead to the piecemeal can not be by Restore, and then directly result in entire file to restore.When Network Abnormal, file block data are sent according to natural order Method just easily causes the data loss rate of some file block to be more than its redundancy rate, cannot be extensive so as to cause this document block It is multiple, eventually lead to entire file access pattern failure.
The present invention is relative to existing broadcast data sending strategy, by each piecemeal further division of original broadcast file Fragment is chosen from each piecemeal and is encapsulated as data packet and is successively sent out when carrying out broadcast data transmission for several fragments It send, avoids the fragment data for continuously transmitting same file block, so when Network Abnormal, the data of loss can be relatively evenly It is distributed in multiple blocks of files, concentrates on causing this document block extensive in a blocks of files so as to avoid the data of loss Multiple problem.The present invention can reduce influence of the Network Abnormal to single file block loss of data, improve what broadcast data was sent Reliability.
The present invention provides a kind of broadcast data transmitting method.
As shown in Figure 1, Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Broadcast data sending device of the embodiment of the present invention can be mobile multimedia broadcasting server.
As shown in Figure 1, the broadcast data sending device may include: processor 1001, such as CPU, network interface 1004, User interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing between these components Connection communication.User interface 1003 may include display screen (Dmsplay), input unit such as keyboard (Keyboard), optional User interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include standard Wireline interface, wireless interface (such as Wm-Fm interface).Memory 1005 can be high speed RAM memory, be also possible to stable Memory (non-volatmle memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned The storage device of processor 1001.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe that module, Subscriber Interface Module SIM and broadcast data send program.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor 1001 can be used for that the broadcast data stored in memory 1005 is called to send program, and execute following operation:
Original broadcast file to be sent is divided into several blocks of files;
Corresponding forward error correction is separately added into each blocks of files of division, the forward error correction connects for broadcasting Receiving end carries out forward error correction to the broadcast data of the original broadcast file;
Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, wherein N be positive integer and N≤ 2;
The broadcast data of the original broadcast file is divided into N number of data packet and is successively sent to the broadcast reception end, Wherein, each data packet is obtained and choosing a fragment respectively from each blocks of files and being packaged the fragment of selection It arrives.
Further, processor 1001 can call the broadcast data stored in memory 1005 to send program, also execute It operates below:
Obtain the size of original broadcast file to be sent;
The original broadcast file is averagely divided into several according to the size of the original broadcast file got Blocks of files.
Further, processor 1001 can call the broadcast data stored in memory 1005 to send program, also execute It operates below:
Corresponding file block number is distributed for each blocks of files of division.
Further, processor 1001 can call the broadcast data stored in memory 1005 to send program, also execute It operates below:
Corresponding fragment number is distributed for each fragment of each blocks of files of the forward error correction is added.
Further, processor 1001 can call the broadcast data stored in memory 1005 to send program, also execute It operates below:
A fragment will be chosen respectively from each blocks of files according to the file block number and fragment number and incite somebody to action The fragment of selection is encapsulated as the step of data packet and executes n times, and the broadcast data of the file original broadcast file is drawn It is divided into N number of data packet;
When carrying out the transmission of broadcast data of the original broadcast file, N number of data packet of division is successively sent out It send to the broadcast reception end.
Further, the original broadcast file includes original audio file, original video files, and with it is described original Audio file and the corresponding raw data file of the original video files.
Based on above-mentioned hardware configuration, broadcast data transmitting method embodiment of the present invention is proposed.
It is the flow diagram of broadcast data transmitting method first embodiment of the present invention, the method packet referring to Fig. 2, Fig. 2 It includes:
Original broadcast file to be sent is divided into several blocks of files by step S10;
Mobile multimedia broadcasting is commonly called as " hand held television ", mobile multi-media broadcasting service refer to by satellite and ground without Line broadcast mode, mobile phone, PDA (Personal Dmgmtal Assmstant, palm PC), MP3, MP4, digital camera, In the small screen such as laptop, Mobile portable handheld terminal, realizes and receive broadcast TV program rating and letter whenever and wherever possible Breath service.
The broadcast data transmitting method of the present embodiment is applied to the transmitting terminal of mobile multimedia broadcast system, which is Mobile multimedia broadcasting server sends audio/video flow and data broadcasting for receiving terminal to one or more, wherein receiving Terminal can be the Mobile portables formula equipment such as mobile phone, PDA, MP3, MP4, digital camera, laptop.
In mobile multimedia broadcast system, broadcast is unidirectionally sent to broadcast by broadcast transmission end by Flute agreement and connects Receiving end, Flute agreement is a kind of unidirectional file delivery agreement, for supporting the list of point-to-multipoint audio/video flow and data file To broadcast, Flute agreement supports forward error correction function, and the function in transmission code arranges by being added redundant correcting code, certain Under the conditions of, receiving end can correct transmission error code by decoding automatically, to ensure that data unidirectionally pass to a certain extent The reliability broadcast.The characteristics of due to broadcast data one way propagation, the forward error correction capability of Flute protocol data seem heavy to closing It wants, directly influences the user experience at broadcast reception end.
In the present embodiment, broadcast transmission end is before carrying out broadcast data transmission, first by original broadcast to be sent File is divided into several blocks of files.Wherein, original broadcast file to be sent includes that audio file, video file, electronics are miscellaneous In addition to this will and application program also may include alternative document type, for example mark is televised channel and when televising Between data file etc., receive demand to meet the multimedia broadcasting of different terminals user;It, can be with when carrying out blocks of files division It is averagely to be divided according to the size of original broadcast file, so that each blocks of files is equal in magnitude, is also possible to unequal division, The quantity of the blocks of files of division, the size of each blocks of files can carry out flexible setting in advance.
Step S20, is separately added into corresponding forward error correction in each blocks of files of division, and the forward error correction is used In broadcast reception end, the broadcast data to the original broadcast file carries out forward error correction;
Then, corresponding forward error correction is separately added into the blocks of files of division, which connects for broadcasting Receiving end carries out forward error correction to the broadcast data of original broadcast file.Forward error correction technique is that one kind is widely used in communication system In coding techniques, by taking typical block code as an example, referring to Fig. 3, Fig. 3 is the structural representation of block code in the embodiment of the present invention Figure, block code are made of information bit and check bit, and wherein a1, a2 ..., ak are information bit, indicate original broadcast document No., Ak, ak+1 ..., an are check bit, the basic principle is that: in transmitting terminal, by being compiled k bit information as a grouping The redundancy check information of (n-k) bit, the code word that composition length is n bit is added in code.Code word by channel reach receiving end it Afterwards, if mistake is within the scope of can entangle, it can be checked by decoding and correct wrong bit, so that it is dry to resist channel bring It disturbs, improves the reliability of communication system.
Forward error correction in the present embodiment can be obtained by carrying out redundant operation to blocks of files, by respectively each Corresponding forward error correction is added in blocks of files, the forward error correction function of broadcast data may be implemented, what guarantee data were transmitted can By property.
Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, wherein N is positive by step S30 Integer and N≤2;
In the step, each blocks of files that forward error correction is added further is respectively divided into N number of fragment, wherein N is The positive integer and value of N≤2, N can preparatory flexible settings.
The broadcast data of the original broadcast file is divided into N number of data packet and is successively sent to the broadcast by step S40 Receiving end, wherein each data packet from each blocks of files by choosing a fragment respectively and sealing the fragment of selection It fills and obtains.
Later, broadcast transmission end by the broadcast data of original broadcast file be divided into N number of data packet be successively sent to it is described Broadcast reception end, wherein each data packet by chosen respectively from each blocks of files a fragment and by the fragment of selection into Row encapsulation obtains.
It is the transmission schematic diagram of a scenario of broadcast data in the embodiment of the present invention referring to Fig. 4, Fig. 4.Original broadcast to be sent File is divided into m blocks of files, wherein each blocks of files is divided into N number of fragment again respectively, is carrying out broadcast data transmission When, the 1st fragment that can choose each blocks of files is encapsulated as a data packet, 2nd point for then choosing each blocks of files Piece is encapsulated as a data packet, and so on, until the n-th fragment for choosing each blocks of files is encapsulated as a data packet, by This obtains N number of data packet, this N number of data packet is successively sent to broadcast reception end later, it should be noted that in addition to this suitable Except the mode that sequence is chosen, fragment is chosen from blocks of files every time and is also possible to randomly select, is not construed as limiting herein.
By the above-mentioned means, when network communication sometime generate interference or it is abnormal when, company compared with the existing technology Supervention send the fragment data of same file block, and the data of loss can be relatively evenly distributed in multiple blocks of files, for single For blocks of files, the bit error rate is substantially reduced, to guarantee the bit error rate within the scope of forward error correction capability, improves broadcast number According to the reliability of transmission.
In the present embodiment, original broadcast file to be sent is divided into several blocks of files;In each text of division Corresponding forward error correction is separately added into part block, the forward error correction is for broadcast reception end to the original broadcast file Broadcast data carry out forward error correction;Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, In, N is positive integer and N≤2;By the broadcast data of the original broadcast file be divided into N number of data packet be successively sent to it is described Broadcast reception end, wherein each data packet by chosen respectively from each blocks of files a fragment and by the fragment of selection into Row encapsulation obtains.Broadcast data sending strategy compared with the existing technology, the present embodiment divide each of original broadcast file Block is further divided into several fragments, when carrying out broadcast data transmission, fragment is chosen from each piecemeal and is encapsulated as data Packet is successively sent, and the fragment data for continuously transmitting same file block is avoided, so when Network Abnormal, the number of loss According to can relatively evenly be distributed in multiple blocks of files, concentrate on leading to this in a blocks of files so as to avoid the data of loss The irreclaimable problem of blocks of files.The present invention can reduce influence of the Network Abnormal to single file block loss of data, improve wide The reliability that multicast data is sent.
It further, is the flow diagram of broadcast data transmitting method second embodiment of the present invention referring to Fig. 5, Fig. 5.Base In above-mentioned embodiment shown in Fig. 2, step S10 may include:
Step S11 obtains the size of original broadcast file to be sent;
Step S12 averagely divides the original broadcast file according to the size of the original broadcast file got For several blocks of files.
In the present embodiment, broadcast transmission end can obtain the size of original broadcast file to be sent first, then root The original broadcast file is averagely divided into several blocks of files according to the size of the original broadcast file got.Such as it is original The size of broadcast files be 30M, be divided into 10 blocks of files and average division if presetting, each blocks of files it is big Small is 3M.
Further, after step slo, can also include:
Step S50 distributes corresponding file block number for each blocks of files of division.
In the step, serial number can be carried out to each blocks of files, be such as SBN the 1, the 2nd by the 1st file block number A file block number is that m-th of file block number of SBN 2 ... ... is SBN m.
Further, after step S20, can also include:
Step S60 distributes corresponding fragment number for each fragment of each blocks of files of the forward error correction is added,
In the step, serial number can be carried out to each fragment of each blocks of files of the addition forward error correction, The blocks of files for being such as SBN 1 to above-mentioned number, it is ESI 1 that fragment is numbered respectively, and ESI 2 ... ESI N is to above-mentioned number The blocks of files of SBN 2, it is ESI 1, ESI 2 ... ESI N ... ..., the text for being SBN m to above-mentioned number that fragment is numbered respectively Part block, it is ESI 1, ESI2 ... ESI N that fragment is numbered respectively.
Further, step S30 may include:
Step S41 will choose respectively one according to the file block number and fragment number from each blocks of files The fragment and the step of fragment of selection is encapsulated as a data packet executes n times, by the wide of the file original broadcast file Multicast data is divided into N number of data packet;
Step S42, when carrying out the transmission of broadcast data of the original broadcast file, by N number of data of division Packet is successively sent to the broadcast reception end.
After carrying out file block number and fragment number, broadcast transmission end will be numbered according to file block number and fragment from every A fragment is chosen in a blocks of files respectively and executes n times the step of the fragment of selection is encapsulated as a data packet, it will be literary The broadcast data of part original broadcast file is divided into N number of data packet.For example, the 1st fragment envelope of each blocks of files can be chosen Dress is a data packet, and the 2nd fragment for then choosing each blocks of files is encapsulated as a data packet, and so on, until choosing It takes the n-th fragment of each blocks of files to be encapsulated as a data packet, thus obtains N number of data packet, wherein the encapsulation ratio of data packet The packet header of data packet can be such as filled according to relevant communication protocol, specific packing rule is not construed as limiting.Later, broadcast transmission end This N number of data packet is successively sent to the broadcast reception end.
Broadcast reception end can restore corresponding text after receiving broadcast data, through file block number and fragment number Blocks of files is finally reduced to original broadcast file after forward error correction by part block.
In the present embodiment, it by the way that blocks of files and its fragment are numbered, realizes to blocks of files and its fragment progress Mark, convenient for the encapsulation and reduction of data packet.
The present invention also provides a kind of broadcast data sending devices.
It is the functional block diagram of one embodiment of broadcast data sending device of the present invention referring to Fig. 6, Fig. 6.Control of the present invention The device of network data transmission processed includes:
First division module 10, for original broadcast file to be sent to be divided into several blocks of files;
Module 20 is added, for being separately added into corresponding forward error correction, the forward direction in each blocks of files of division Error correcting code carries out forward error correction for broadcast data of the broadcast reception end to the original broadcast file;
Second division module 30, for each blocks of files that the forward error correction is added to be respectively divided into N number of fragment, Wherein, N is positive integer and N≤2;
Sending module 40 is successively sent to for the broadcast data of the original broadcast file to be divided into N number of data packet The broadcast reception end, wherein each data packet by choosing a fragment and dividing selection respectively from each blocks of files Piece, which is packaged, to be obtained.
Further, first division module 10 is also used to: obtaining the size of original broadcast file to be sent;According to The original broadcast file is averagely divided into several blocks of files by the size of the original broadcast file got.
Wherein, the function realization of each functional module can refer to broadcast data transmitting method embodiment of the present invention, herein not It repeats again.
The present invention also provides a kind of broadcast data sending devices.
Broadcast data sending device of the present invention includes: memory, processor and is stored on the memory and can be in institute It states the broadcast data run on processor and sends program, the broadcast data sends when program is executed by the processor and realizes such as Lower step:
Original broadcast file to be sent is divided into several blocks of files;
Corresponding forward error correction is separately added into each blocks of files of division, the forward error correction connects for broadcasting Receiving end carries out forward error correction to the broadcast data of the original broadcast file;
Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, wherein N be positive integer and N≤ 2;
The broadcast data of the original broadcast file is divided into N number of data packet and is successively sent to the broadcast reception end, Wherein, each data packet is obtained and choosing a fragment respectively from each blocks of files and being packaged the fragment of selection It arrives.
Wherein, the broadcast data transmission program run on the processor is performed realized method and can refer to this The each embodiment of invention broadcast data transmitting method, details are not described herein again.
The present invention also provides a kind of computer readable storage mediums.
It is stored with broadcast data on computer readable storage medium of the present invention and sends program, the broadcast data sends program Following steps are realized when being executed by processor:
Original broadcast file to be sent is divided into several blocks of files;
Corresponding forward error correction is separately added into each blocks of files of division, the forward error correction connects for broadcasting Receiving end carries out forward error correction to the broadcast data of the original broadcast file;
Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, wherein N be positive integer and N≤ 2;
The broadcast data of the original broadcast file is divided into N number of data packet and is successively sent to the broadcast reception end, Wherein, each data packet is obtained and choosing a fragment respectively from each blocks of files and being packaged the fragment of selection It arrives.
Wherein, the broadcast data transmission program run on the processor is performed realized method and can refer to this The each embodiment of invention broadcast data transmitting method, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of broadcast data transmitting method, which is characterized in that the broadcast data transmitting method includes the following steps:
Original broadcast file to be sent is divided into several blocks of files;
Corresponding forward error correction is separately added into each blocks of files of division, the forward error correction is used for broadcast reception end Forward error correction is carried out to the broadcast data of the original broadcast file;
Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, wherein N is positive integer and N≤2;
The broadcast data of the original broadcast file is divided into N number of data packet and is successively sent to the broadcast reception end, wherein Each data packet is obtained by choosing a fragment respectively from each blocks of files and being packaged the fragment of selection.
2. broadcast data transmitting method as described in claim 1, which is characterized in that described by original broadcast file to be sent The step of being divided into several blocks of files include:
Obtain the size of original broadcast file to be sent;
The original broadcast file is averagely divided into several files according to the size of the original broadcast file got Block.
3. broadcast data transmitting method as claimed in claim 2, which is characterized in that described by original broadcast file to be sent After the step of being divided into several blocks of files, further includes:
Corresponding file block number is distributed for each blocks of files of division.
4. broadcast data transmitting method as claimed in claim 3, which is characterized in that described to divide in each blocks of files of division Corresponding forward error correction is not added, the forward error correction is for broadcast reception end to the broadcast number of the original broadcast file After the step of carrying out forward error correction, further includes:
Corresponding fragment number is distributed for each fragment of each blocks of files of the forward error correction is added.
5. broadcast data transmitting method as claimed in claim 4, which is characterized in that described by the wide of the original broadcast file Multicast data is divided into N number of data packet and is successively sent to the broadcast reception end, wherein each data packet is by from each blocks of files It is middle to choose a fragment respectively and step obtained from being packaged the fragment of selection includes:
A fragment will be chosen respectively from each blocks of files according to the file block number and fragment number and will choose Fragment the step of being encapsulated as a data packet execute n times, the broadcast data of the file original broadcast file is divided into N A data packet;
When carrying out the transmission of broadcast data of the original broadcast file, N number of data packet of division is successively sent to The broadcast reception end.
6. the broadcast data transmitting method as described in any one of claims 1 to 5, which is characterized in that the original broadcast text Part includes audio file, video file, e-magazine and application program.
7. a kind of broadcast data sending device, which is characterized in that the broadcast data sending device includes:
First division module, for original broadcast file to be sent to be divided into several blocks of files;
Module is added, for being separately added into corresponding forward error correction, the forward error correction in each blocks of files of division Forward error correction is carried out for broadcast data of the broadcast reception end to the original broadcast file;
Second division module, for each blocks of files that the forward error correction is added to be respectively divided into N number of fragment, wherein N For positive integer and N≤2;
Sending module, for by the broadcast data of the original broadcast file be divided into N number of data packet be successively sent to it is described wide Broadcast receiving end, wherein each data packet from each blocks of files by choosing a fragment respectively and carrying out the fragment of selection It encapsulates and obtains.
8. broadcast data sending device as claimed in claim 7, which is characterized in that first division module is also used to:
Obtain the size of original broadcast file to be sent;
The original broadcast file is averagely divided into several files according to the size of the original broadcast file got Block.
9. a kind of broadcast data sending device, which is characterized in that the broadcast data sending device includes: memory, processor And be stored in the broadcast data that can be run on the memory and on the processor and send program, the broadcast data is sent Program realizes following steps when being executed by the processor:
Original broadcast file to be sent is divided into several blocks of files;
Corresponding forward error correction is separately added into each blocks of files of division, the forward error correction is used for broadcast reception end Forward error correction is carried out to the broadcast data of the original broadcast file;
Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, wherein N is positive integer and N≤2;
The broadcast data of the original broadcast file is divided into N number of data packet and is successively sent to the broadcast reception end, wherein Each data packet is obtained by choosing a fragment respectively from each blocks of files and being packaged the fragment of selection.
10. a kind of computer readable storage medium, which is characterized in that be stored with broadcast number on the computer readable storage medium According to program is sent, the broadcast data sends when program is executed by processor and realizes following steps:
Original broadcast file to be sent is divided into several blocks of files;
Corresponding forward error correction is separately added into each blocks of files of division, the forward error correction is used for broadcast reception end Forward error correction is carried out to the broadcast data of the original broadcast file;
Each blocks of files that the forward error correction is added is respectively divided into N number of fragment, wherein N is positive integer and N≤2;
The broadcast data of the original broadcast file is divided into N number of data packet and is successively sent to the broadcast reception end, wherein Each data packet is obtained by choosing a fragment respectively from each blocks of files and being packaged the fragment of selection.
CN201710504133.6A 2017-06-27 2017-06-27 Broadcast data transmission method, apparatus, device, and computer-readable storage medium Active CN109150385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710504133.6A CN109150385B (en) 2017-06-27 2017-06-27 Broadcast data transmission method, apparatus, device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710504133.6A CN109150385B (en) 2017-06-27 2017-06-27 Broadcast data transmission method, apparatus, device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN109150385A true CN109150385A (en) 2019-01-04
CN109150385B CN109150385B (en) 2022-06-28

Family

ID=64805518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710504133.6A Active CN109150385B (en) 2017-06-27 2017-06-27 Broadcast data transmission method, apparatus, device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN109150385B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102282A (en) * 2007-08-08 2008-01-09 中兴通讯股份有限公司 A transmission and receiving method for data broadcast service
CN101272221A (en) * 2008-05-04 2008-09-24 中兴通讯股份有限公司 Transmission, receiving method and device of file data
CN101286819A (en) * 2008-05-07 2008-10-15 中兴通讯股份有限公司 Data receiving method and device
CN104509014A (en) * 2012-05-21 2015-04-08 阿尔卡特朗讯 System and method for multi-channel FEC encoding and transmission of data
EP3101831A1 (en) * 2014-01-31 2016-12-07 Panasonic Corporation Transmission device, transmission method, reception device, and reception method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102282A (en) * 2007-08-08 2008-01-09 中兴通讯股份有限公司 A transmission and receiving method for data broadcast service
CN101272221A (en) * 2008-05-04 2008-09-24 中兴通讯股份有限公司 Transmission, receiving method and device of file data
CN101286819A (en) * 2008-05-07 2008-10-15 中兴通讯股份有限公司 Data receiving method and device
CN104509014A (en) * 2012-05-21 2015-04-08 阿尔卡特朗讯 System and method for multi-channel FEC encoding and transmission of data
EP3101831A1 (en) * 2014-01-31 2016-12-07 Panasonic Corporation Transmission device, transmission method, reception device, and reception method

Also Published As

Publication number Publication date
CN109150385B (en) 2022-06-28

Similar Documents

Publication Publication Date Title
EP2630766B1 (en) Universal file delivery methods for providing unequal error protection and bundled file delivery services
US10361810B2 (en) Data packet transmission/reception apparatus and method
US9350488B2 (en) Content delivery system with allocation of source data and repair data among HTTP servers
EP3193472B1 (en) Data packet processing method and device
JP5795446B2 (en) Content delivery system with allocation of source data and repair data between HTTP servers
CN106953718A (en) A kind of implementation method, device and the equipment of the retransmission process of code block
Matsuoka et al. Low density parity check code extensions applied for broadcast-communication integrated content delivery
WO2011091850A1 (en) Error correction based on replacing padding bits by additional parity check bits
CN101272221B (en) Transmission, receiving method and device of file data
KR102083302B1 (en) FEC mechanism based on media content
MX2014013560A (en) Apparatus and method of transmitting and receiving packet in a broadcasting and communication system.
US8301968B2 (en) Methods and apparatus for encoding data in a communication network
CN102739650A (en) File transmission system combining broadcast and television net and internet
RU2646346C2 (en) Apparatus and method for transmitting and receiving forward error correction packet
KR101967884B1 (en) Apparatus and method for transmitting and receiving packet in broadcasting and communication system
US8537736B2 (en) Methods and systems for wireless multicast and broadcast services
KR20160138382A (en) Method and apparatus for generating and recovering packet in broadcasting and/or communication system
WO2011082834A1 (en) Error correction
CN109150385A (en) Broadcast data transmitting method, device, equipment and computer readable storage medium
CN102802197A (en) Method and device for transmitting application data
US9641803B1 (en) Multiplexing FEC protection of multiple streams with different delay requirements
KR102014710B1 (en) Apparatus and method for transmitting and receiving packet in broadcasting and communication system
Allison et al. New channels, old concerns: scalable and reliable data dissemination
Bajić et al. A hybride procedure with selective retransmission for aggregated packets of unequal length

Legal Events

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