CN109150385B - Broadcast data transmission method, apparatus, device, and computer-readable storage medium - Google Patents

Broadcast data transmission method, apparatus, device, and computer-readable storage medium Download PDF

Info

Publication number
CN109150385B
CN109150385B CN201710504133.6A CN201710504133A CN109150385B CN 109150385 B CN109150385 B CN 109150385B CN 201710504133 A CN201710504133 A CN 201710504133A CN 109150385 B CN109150385 B CN 109150385B
Authority
CN
China
Prior art keywords
file
broadcast
data
forward error
error correction
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
CN201710504133.6A
Other languages
Chinese (zh)
Other versions
CN109150385A (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

Images

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 method for sending broadcast data, which comprises the following steps: dividing an original broadcast file to be sent into a plurality of file blocks; adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end; dividing each file block added with the forward error correction code into N fragments, wherein N is a positive integer and is not less than 2; and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and packaging the selected fragment. The invention also discloses a broadcast data transmitting device, equipment and a computer readable storage medium. The invention can reduce the influence of network abnormity on the data loss of a single file block and improve the reliability of broadcast data transmission.

Description

Broadcast data transmission method, apparatus, device, and computer-readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for transmitting broadcast data.
Background
The Flute protocol is a unidirectional file transmission protocol widely applied to a mobile multimedia broadcasting system and is used for supporting unidirectional broadcasting of point-to-multipoint audio/video streams and data files. The Flute protocol has a Forward Error Correction (FEC) function, and the function adds a redundant Error correction code into a transmission code sequence, so that a receiving end can automatically correct transmission Error codes through decoding under a certain condition, thereby ensuring the reliability of data unidirectional transmission to a certain extent. Due to the characteristic of one-way transmission of broadcast data, the forward error correction capability of Flute protocol data is very important, and the forward error correction capability directly influences the user experience of a broadcast receiving end.
When the current Flute protocol supports the mobile multimedia broadcasting service, the data error correction adopts a fountain code type forward error correction coding method, and the method is characterized in that a sending end divides a file to be transmitted into a plurality of blocks, then each block is operated to generate redundant data with a certain proportion, then each block and the redundant data thereof are sent to a receiving end according to the sequence of the blocks, and the receiving end can restore the original file after receiving the blocks and the redundant data thereof.
However, for a single block, if the loss rate of the data received by the receiving end exceeds the redundancy rate, the block cannot be recovered, and thus the entire file cannot be recovered. When the network is abnormal, the method for sending the data of the file blocks according to the natural sequence is very easy to cause that the data loss rate of a certain file block exceeds the redundancy rate of the certain file block, so that the file block cannot be recovered, and finally the whole file is failed to recover. Therefore, the existing broadcast data transmission method based on the forward error correction function still needs to be optimized.
Disclosure of Invention
The invention mainly aims to provide a method, a device and a computer readable storage medium, aiming at reducing the influence of network abnormity on the data loss of a single file block and improving the reliability of broadcast data transmission.
In order to achieve the above object, the present invention provides a broadcast data transmission method, including the steps of:
dividing an original broadcast file to be sent into a plurality of file blocks;
adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end;
Dividing each file block added with the forward error correcting code into N fragments, wherein N is a positive integer and is not less than 2;
and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and packaging the selected fragment.
Preferably, the step of dividing the original broadcast file to be transmitted into a plurality of file blocks includes:
acquiring the size of an original broadcast file to be sent;
and averagely dividing the original broadcast file into a plurality of file blocks according to the size of the acquired original broadcast file.
Preferably, after the step of dividing the original broadcast file to be transmitted into a plurality of file blocks, the method further includes:
and allocating a corresponding file block number to each divided file block.
Preferably, after the step of performing forward error correction on the broadcast data of the original broadcast file by the broadcast receiving end, the method further includes:
and allocating a corresponding fragment number to each fragment of each file block added with the forward error correction code.
Preferably, the step of dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, where each data packet is obtained by respectively selecting one fragment from each file block and encapsulating the selected fragment includes:
executing the step of respectively selecting one fragment from each file block according to the file block number and the fragment number and packaging the selected fragment into one data packet for N times so as to divide the broadcast data of the original broadcast file of the file into N data packets;
and when the broadcast data of the original broadcast file is sent, sequentially sending the N divided data packets to the broadcast receiving end.
Preferably, the original broadcast file includes an original audio file, an original video file, and an original data file corresponding to the original audio file and the original video file.
In addition, to achieve the above object, the present invention also provides a broadcast data transmitting apparatus comprising:
the first dividing module is used for dividing an original broadcast file to be sent into a plurality of file blocks;
the adding module is used for respectively adding corresponding forward error correction codes into each divided file block, and the forward error correction codes are used for performing forward error correction on the broadcast data of the original broadcast file by a broadcast receiving end;
The second dividing module is used for dividing each file block added with the forward error correcting code into N fragments, wherein N is a positive integer and is not less than 2;
and the sending module is used for dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and encapsulating the selected fragment.
Preferably, the first partitioning module is further configured to:
acquiring the size of an original broadcast file to be sent;
and averagely dividing the original broadcast file into a plurality of file blocks according to the size of the acquired original broadcast file.
Further, to achieve the above object, the present invention also provides a broadcast data transmitting apparatus including: a memory, a processor, and a broadcast data transmission program stored on the memory and executable on the processor, the broadcast data transmission program when executed by the processor implementing the steps of:
dividing an original broadcast file to be sent into a plurality of file blocks;
adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end;
Dividing each file block added with the forward error correcting code into N fragments, wherein N is a positive integer and is not less than 2;
and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and packaging the selected fragment.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having a broadcast data transmission program stored thereon, the broadcast data transmission program realizing the steps of, when executed by a processor:
dividing an original broadcast file to be sent into a plurality of file blocks;
adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end;
dividing each file block added with the forward error correcting code into N fragments, wherein N is a positive integer and is not less than 2;
and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and packaging the selected fragment.
The method comprises the steps of dividing an original broadcast file to be sent into a plurality of file blocks; adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end; dividing each file block added with the forward error correcting code into N fragments, wherein N is a positive integer and is not less than 2; and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and packaging the selected fragment. Compared with the broadcast data transmission strategy in the prior art, each block of the original broadcast file is further divided into a plurality of fragments, and when the broadcast data is transmitted, the fragments are selected from each block and encapsulated into data packets to be transmitted in sequence, so that fragment data of the same file block is prevented from being continuously transmitted, and thus when a network is abnormal, lost data can be uniformly distributed into a plurality of file blocks, and the problem that the file block cannot be recovered due to the fact that the lost data are concentrated in one file block is avoided. The invention can reduce the influence of network abnormality on the data loss of a single file block and improve the reliability of broadcast data transmission.
Drawings
Fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a broadcast data transmitting method according to a first embodiment of the present invention;
FIG. 3 is a block code structure diagram according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a transmission scenario of broadcast data according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a broadcast data transmitting method according to a second embodiment of the present invention;
fig. 6 is a functional block diagram of a broadcast data transmitting apparatus according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: dividing an original broadcast file to be sent into a plurality of file blocks; adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end; dividing each file block added with the forward error correction code into N fragments, wherein N is a positive integer and is not less than 2; and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and packaging the selected fragment.
In the existing forward error correction technology based on the Flute protocol, when broadcast data is sent, for a single file block, if the loss rate of data received by a receiving end exceeds the redundancy rate of the data, the block cannot be recovered, and further, the whole file cannot be recovered directly. When a network is abnormal, the method for sending the data of the file blocks according to the natural sequence is very easy to cause that the data loss rate of one file block exceeds the redundancy rate of the file block, so that the file block cannot be recovered, and finally the recovery of the whole file fails.
Compared with the existing broadcast data transmission strategy, the method further divides each block of the original broadcast file into a plurality of fragments, selects the fragments from each block and encapsulates the fragments into data packets to be sequentially transmitted when the broadcast data is transmitted, thereby avoiding the fragment data of the same file block from being continuously transmitted, and thus, when the network is abnormal, the lost data can be more uniformly distributed into a plurality of file blocks, thereby avoiding the problem that the file block can not be recovered because the lost data is concentrated in one file block. The invention can reduce the influence of network abnormality on the data loss of a single file block and improve the reliability of broadcast data transmission.
The invention provides a broadcast data transmission method.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The broadcast data sending equipment of the embodiment of the invention can be a mobile multimedia broadcast server.
As shown in fig. 1, the broadcast data transmitting apparatus may include: a processor 1001, e.g. a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a display screen (Dmsplay), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a Wm-Fm interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a broadcast data transmission program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the broadcast data transmission program stored in the memory 1005 and perform the following operations:
dividing an original broadcast file to be sent into a plurality of file blocks;
adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end;
dividing each file block added with the forward error correction code into N fragments, wherein N is a positive integer and is not less than 2;
and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and packaging the selected fragment.
Further, the processor 1001 may call the broadcast data transmission program stored in the memory 1005, and also perform the following operations:
acquiring the size of an original broadcast file to be sent;
and averagely dividing the original broadcast file into a plurality of file blocks according to the size of the acquired original broadcast file.
Further, the processor 1001 may call the broadcast data transmission program stored in the memory 1005, and also perform the following operations:
and allocating a corresponding file block number to each divided file block.
Further, the processor 1001 may call the broadcast data transmission program stored in the memory 1005, and also perform the following operations:
and allocating a corresponding fragment number to each fragment of each file block added with the forward error correction code.
Further, the processor 1001 may call the broadcast data transmission program stored in the memory 1005, and also perform the following operations:
executing the step of respectively selecting one fragment from each file block according to the file block number and the fragment number and packaging the selected fragment into one data packet for N times so as to divide the broadcast data of the original broadcast file of the file into N data packets;
And when the broadcast data of the original broadcast file is sent, sequentially sending the N divided data packets to the broadcast receiving end.
Further, the original broadcast file includes an original audio file, an original video file, and an original data file corresponding to the original audio file and the original video file.
Based on the hardware structure, the embodiment of the broadcast data transmission method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a broadcast data transmitting method according to a first embodiment of the present invention, where the method includes:
step S10, dividing the original broadcast file to be sent into a plurality of file blocks;
mobile multimedia broadcasting, commonly known as "handheld television", refers to a service for receiving programs and information of broadcast television programs anytime and anywhere through satellite and terrestrial wireless broadcasting on small-screen and mobile portable handheld terminals such as mobile phones, PDAs (Personal digital assistants), MP3, MP4, digital cameras, notebook computers, and the like.
The broadcast data transmission method of the embodiment is applied to a sending end of a mobile multimedia broadcast system, the sending end is a mobile multimedia broadcast server and is used for sending audio and video streams and data broadcasts to one or more receiving terminals, wherein the receiving terminals can be mobile portable devices such as mobile phones, PDAs, MP3, MP4, digital cameras, notebook computers and the like.
In a mobile multimedia broadcasting system, broadcasting is transmitted to a broadcasting receiving end in a one-way mode from a broadcasting transmitting end through a Flute protocol, the Flute protocol is a one-way file transmission protocol and is used for supporting one-way broadcasting of point-to-multipoint audio and video streams and data files, the Flute protocol supports a forward error correction function, the function is realized by adding redundant error correction codes into a transmission code column, and the receiving end can automatically correct transmission error codes through decoding under certain conditions, so that the reliability of data one-way transmission is guaranteed to a certain extent. Due to the characteristic of one-way transmission of broadcast data, the forward error correction capability of Flute protocol data is very important, and the forward error correction capability directly influences the user experience of a broadcast receiving end.
In this embodiment, before the broadcast sending end sends broadcast data, the broadcast sending end first divides an original broadcast file to be sent into a plurality of file blocks. The original broadcast files to be sent include audio files, video files, electronic magazines and application programs, and in addition, other file types such as data files for identifying television playing channels and television playing time can also be included, so that the multimedia broadcast receiving requirements of different terminal users are met; when the file blocks are divided, the file blocks can be divided equally according to the size of the original broadcast file, so that the size of each file block is equal, or the file blocks can be divided unevenly, and the number of the divided file blocks and the size of each file block can be flexibly set in advance.
Step S20, adding a corresponding forward error correction code into each divided file block, where the forward error correction code is used for the broadcast receiving end to perform forward error correction on the broadcast data of the original broadcast file;
then, corresponding forward error correction codes are added into the divided file blocks respectively, and the forward error correction codes are used for a broadcast receiving end to perform forward error correction on broadcast data of an original broadcast file. A forward error correction technique is an encoding technique widely applied to a communication system, taking a typical block code as an example, referring to fig. 3, fig. 3 is a schematic structural diagram of a block code in an embodiment of the present invention, where the block code is composed of information bits and check bits, where a1, a2, …, and ak are information bits and represent an original broadcast file encoding, and ak, ak +1, …, and an are check bits, and its basic principle is: at a transmitting end, k bit information is used as a packet to be coded, and redundancy check information of (n-k) bits is added to form a code word with the length of n bits. After the code word reaches the receiving end through the channel, if the error is in the correctable range, the error bit can be checked and corrected through decoding, thereby resisting the interference brought by the channel and improving the reliability of the communication system.
The forward error correction code in this embodiment may be obtained by performing redundancy operation on the file blocks, and by adding the corresponding forward error correction code to each file block, the forward error correction function of the broadcast data may be implemented, and the reliability of data transmission is ensured.
Step S30, dividing each file block added with the forward error correction code into N fragments, wherein N is a positive integer and N is larger than or equal to 2;
in this step, each file block added with the forward error correction code is further divided into N fragments, where N is a positive integer and N ≧ 2, and the value of N can be flexibly set in advance.
Step S40, the broadcast data of the original broadcast file is divided into N data packets and sequentially sent to the broadcast receiving end, where each data packet is obtained by respectively selecting one fragment from each file block and encapsulating the selected fragment.
And then, the broadcast sending end divides the broadcast data of the original broadcast file into N data packets and sequentially sends the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and packaging the selected fragment.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a scenario of transmitting broadcast data according to an embodiment of the present invention. The method includes that an original broadcast file to be sent is divided into m file blocks, wherein each file block is divided into N fragments, when broadcast data are sent, the 1 st fragment of each file block can be selected to be packaged into a data packet, then the 2 nd fragment of each file block is selected to be packaged into a data packet, and the like until the Nth fragment of each file block is selected to be packaged into a data packet, so that N data packets are obtained, and then the N data packets are sequentially sent to a broadcast receiving end.
Through the mode, when network communication generates interference or abnormity at a certain time, compared with the prior art that fragmented data of the same file block is continuously transmitted, lost data can be uniformly distributed into a plurality of file blocks, and the error rate of a single file block is greatly reduced, so that the error rate is ensured to be within the range of forward error correction capability, and the reliability of broadcast data transmission is improved.
In this embodiment, an original broadcast file to be transmitted is divided into a plurality of file blocks; adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end; dividing each file block added with the forward error correction code into N fragments, wherein N is a positive integer and is not less than 2; and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and packaging the selected fragment. Compared with the broadcast data transmission strategy in the prior art, in the embodiment, each block of the original broadcast file is further divided into a plurality of fragments, and when the broadcast data is transmitted, the fragments are selected from each block and encapsulated as data packets to be sequentially transmitted, so that fragment data of the same file block is prevented from being continuously transmitted, and thus when a network is abnormal, lost data can be more uniformly distributed into a plurality of file blocks, and the problem that the file block cannot be recovered because the lost data is concentrated in one file block is avoided. The invention can reduce the influence of network abnormity on the data loss of a single file block and improve the reliability of broadcast data transmission.
Further, referring to fig. 5, fig. 5 is a flowchart illustrating a broadcast data transmitting method according to a second embodiment of the present invention. Based on the above-mentioned embodiment shown in fig. 2, step S10 may include:
step S11, obtaining the size of the original broadcast file to be sent;
step S12, averagely dividing the original broadcast file into a plurality of file blocks according to the size of the acquired original broadcast file.
In this embodiment, a broadcast sending end may first obtain the size of an original broadcast file to be sent, and then averagely divide the original broadcast file into a plurality of file blocks according to the obtained size of the original broadcast file. For example, the size of the original broadcast file is 30M, and if the original broadcast file is divided into 10 file blocks and the file blocks are divided evenly, the size of each file block is 3M.
Further, after step S10, the method may further include:
in step S50, a corresponding file block number is assigned to each divided file block.
In this step, each file block may be numbered sequentially, for example, the 1 st file block is numbered as SBN 1, the 2 nd file block is numbered as SBN 2, and the … … mth file block is numbered as SBN m.
Further, after step S20, the method may further include:
Step S60, assigning a corresponding fragment number to each fragment of each file block added with the forward error correction code,
in this step, each slice of each file block to which the forward error correction code is added may be sequentially numbered, for example, the file block with the above-mentioned number SBN 1 may have its slices respectively numbered ESI 1, ESI2, and … ESI N, and the file block with the above-mentioned number SBN 2 may have its slices respectively numbered ESI 1, ESI2, … ESI N, and … …, and the file block with the above-mentioned number SBN m may have its slices respectively numbered ESI 1, ESI2, and … ESI N.
Further, step S30 may include:
step S41, selecting a fragment from each file block according to the file block number and the fragment number and packaging the selected fragment into a data packet for N times, so as to divide the broadcast data of the original broadcast file of the file into N data packets;
step S42, when the broadcast data of the original broadcast file is sent, sequentially sending the N divided data packets to the broadcast receiving end.
After the file block number and the fragment number are carried out, the broadcast sending end respectively selects one fragment from each file block according to the file block number and the fragment number and encapsulates the selected fragment into one data packet for N times so as to divide the broadcast data of the original broadcast file of the file into N data packets. For example, the 1 st fragment of each file block may be selected to be encapsulated into a data packet, then the 2 nd fragment of each file block is selected to be encapsulated into a data packet, and so on, until the nth fragment of each file block is selected to be encapsulated into a data packet, thereby obtaining N data packets, where the encapsulation of the data packet may be, for example, filling a packet header of the data packet according to a related communication protocol, and a specific encapsulation rule is not limited. And then, the broadcast sending end sequentially sends the N data packets to the broadcast receiving end.
After receiving broadcast data, the broadcast receiving end can restore the corresponding file block through the file block number and the fragment number, and finally restores the file block into the original broadcast file after forward error correction.
In this embodiment, the file blocks and the fragments thereof are numbered, so that the file blocks and the fragments thereof are identified, and the data packets are conveniently encapsulated and restored.
The invention also provides a broadcast data transmitting device.
Referring to fig. 6, fig. 6 is a functional block diagram of a broadcast data transmitting apparatus according to an embodiment of the present invention. The device for controlling network data transmission comprises:
a first dividing module 10, configured to divide an original broadcast file to be sent into a plurality of file blocks;
an adding module 20, configured to add a corresponding forward error correction code to each divided file block, where the forward error correction code is used by a broadcast receiving end to perform forward error correction on broadcast data of the original broadcast file;
a second dividing module 30, configured to divide each file block added with the forward error correction code into N segments, where N is a positive integer and N is ≧ 2;
a sending module 40, configured to divide the broadcast data of the original broadcast file into N data packets and send the N data packets to the broadcast receiving end in sequence, where each data packet is obtained by selecting one fragment from each file block and encapsulating the selected fragment.
Further, the first division module 10 is further configured to: acquiring the size of an original broadcast file to be sent; and averagely dividing the original broadcast file into a plurality of file blocks according to the size of the acquired original broadcast file.
The implementation of the functions of each functional module may refer to the embodiment of the broadcast data transmission method of the present invention, and is not described herein again.
The invention also provides a broadcast data transmitting device.
The broadcast data transmitting apparatus of the present invention includes: a memory, a processor, and a broadcast data transmission program stored on the memory and executable on the processor, the broadcast data transmission program when executed by the processor implementing the steps of:
dividing an original broadcast file to be sent into a plurality of file blocks;
adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end;
dividing each file block added with the forward error correction code into N fragments, wherein N is a positive integer and is not less than 2;
and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and packaging the selected fragment.
The method implemented when the broadcast data sending program running on the processor is executed may refer to each embodiment of the broadcast data sending method of the present invention, and details are not described herein again.
The invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention stores thereon a broadcast data transmission program that, when executed by a processor, realizes the steps of:
dividing an original broadcast file to be sent into a plurality of file blocks;
adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end;
dividing each file block added with the forward error correction code into N fragments, wherein N is a positive integer and is not less than 2;
and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and packaging the selected fragment.
The method implemented when the broadcast data sending program running on the processor is executed may refer to each embodiment of the broadcast data sending method of the present invention, and details are not described here again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for transmitting broadcast data, the method comprising:
dividing an original broadcast file to be sent into a plurality of file blocks;
distributing corresponding file block numbers for each divided file block;
adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end;
dividing each file block added with the forward error correction code into N fragments, wherein N is a positive integer and is not less than 2;
distributing a corresponding fragment number for each fragment of each file block added with the forward error correction code;
and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively randomly selecting one fragment from each file block and packaging the selected fragment.
2. The broadcast data transmitting method of claim 1, wherein the step of dividing an original broadcast file to be transmitted into a plurality of file blocks comprises:
acquiring the size of an original broadcast file to be sent;
and averagely dividing the original broadcast file into a plurality of file blocks according to the size of the acquired original broadcast file.
3. The method for transmitting broadcast data according to claim 1, wherein the step of dividing the broadcast data of the original broadcast file into N data packets and sequentially transmitting the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively selecting one fragment from each file block and encapsulating the selected fragment includes:
executing the step of respectively selecting one fragment from each file block according to the file block number and the fragment number and packaging the selected fragment into one data packet for N times so as to divide the broadcast data of the original broadcast file of the file into N data packets;
and when the broadcast data of the original broadcast file is sent, sequentially sending the N divided data packets to the broadcast receiving end.
4. The broadcast data transmitting method of any one of claims 1 to 3, wherein the original broadcast files include audio files, video files, electronic magazines, and applications.
5. A broadcast data transmitting apparatus, characterized in that the broadcast data transmitting apparatus comprises:
the first dividing module is used for dividing an original broadcast file to be sent into a plurality of file blocks;
a file block numbering module for allocating corresponding file block numbers to each divided file block
The adding module is used for respectively adding corresponding forward error correction codes into each divided file block, and the forward error correction codes are used for performing forward error correction on the broadcast data of the original broadcast file by a broadcast receiving end;
the second dividing module is used for dividing each file block added with the forward error correcting code into N fragments, wherein N is a positive integer and is not less than 2;
the fragment numbering module is used for distributing corresponding fragment numbers for each fragment of each file block added with the forward error correcting code;
and the sending module is used for dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively randomly selecting one fragment from each file block and encapsulating the selected fragment.
6. The broadcast data transmitting apparatus of claim 5, wherein the first partitioning module is further configured to:
Acquiring the size of an original broadcast file to be sent;
and averagely dividing the original broadcast file into a plurality of file blocks according to the size of the acquired original broadcast file.
7. A broadcast data transmitting apparatus, characterized in that the broadcast data transmitting apparatus comprises: a memory, a processor, and a broadcast data transmission program stored on the memory and executable on the processor, the broadcast data transmission program when executed by the processor implementing the steps of:
dividing an original broadcast file to be sent into a plurality of file blocks;
distributing corresponding file block numbers for each divided file block;
adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end;
dividing each file block added with the forward error correction code into N fragments, wherein N is a positive integer and is not less than 2;
distributing a corresponding fragment number for each fragment of each file block added with the forward error correction code;
and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively randomly selecting one fragment from each file block and packaging the selected fragment.
8. A computer-readable storage medium, having a broadcast data transmission program stored thereon, the broadcast data transmission program, when executed by a processor, implementing the steps of:
dividing an original broadcast file to be sent into a plurality of file blocks;
distributing corresponding file block numbers for each divided file block;
adding corresponding forward error correction codes into each divided file block respectively, wherein the forward error correction codes are used for performing forward error correction on broadcast data of the original broadcast file by a broadcast receiving end;
dividing each file block added with the forward error correction code into N fragments, wherein N is a positive integer and is not less than 2;
distributing a corresponding fragment number for each fragment of each file block added with the forward error correction code;
and dividing the broadcast data of the original broadcast file into N data packets and sequentially sending the N data packets to the broadcast receiving end, wherein each data packet is obtained by respectively randomly selecting one fragment from each file block and packaging the selected fragment.
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 CN109150385A (en) 2019-01-04
CN109150385B true 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
CN109150385A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
US20210160003A1 (en) Networking Coding System in a Network Layer
KR102133930B1 (en) Apparatus and method for transmitting and receiving data packet
JP5788988B2 (en) General file delivery method for providing non-uniform error protection and batch file delivery services
CN108141320B (en) Random linear network coded data transmission
KR102028948B1 (en) Apparatus and method for transmitting/receiving application layer-forward error correction packet in multimedia communication system
KR20050106072A (en) System and method for data transmission and reception
JP2008546238A (en) System and method for providing unequal error protection to prioritized datagrams in a DVB-H transmission system
WO2011091850A1 (en) Error correction based on replacing padding bits by additional parity check bits
US9113470B2 (en) Systems and methods for network coding using maximum distance separable (MDS) linear network codes
US20120114049A1 (en) Apparatus
KR101967884B1 (en) Apparatus and method for transmitting and receiving packet in broadcasting and communication system
RU2646346C2 (en) Apparatus and method for transmitting and receiving forward error correction packet
JP6511472B2 (en) Method and apparatus for packet generation and recovery in broadcasting and / or communication systems
CN109150385B (en) Broadcast data transmission method, apparatus, device, and computer-readable storage medium
US8179919B2 (en) Method and apparatus for data package in broadcast networks
KR20140045828A (en) Method and apparatus for decoding received packets in broadcasting and communication systems
WO2011082834A1 (en) Error correction
KR102014710B1 (en) Apparatus and method for transmitting and receiving packet in broadcasting and communication system
JP5086980B2 (en) Transmitting terminal, receiving terminal and transmission system used in one-way transmission path
CN111262658B (en) Retransmission method and device based on FEC and readable storage medium
KR102093206B1 (en) Method and device for encoding data
CN109997384B (en) Receiver identification for fifth generation communications
US20210288749A1 (en) Error correction method for a unidirectional data transfer
CN101938439B (en) Method and device for transmitting multiplex data in mobile multimedia broadcast system
KR20150057864A (en) Method for forward error correction and apparatus

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