CN112187483A - Program distribution method and program distribution system - Google Patents
Program distribution method and program distribution system Download PDFInfo
- Publication number
- CN112187483A CN112187483A CN201910601298.4A CN201910601298A CN112187483A CN 112187483 A CN112187483 A CN 112187483A CN 201910601298 A CN201910601298 A CN 201910601298A CN 112187483 A CN112187483 A CN 112187483A
- Authority
- CN
- China
- Prior art keywords
- broadcast control
- file
- control terminals
- sharing
- terminals
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 239000012634 fragment Substances 0.000 claims abstract description 53
- 238000004891 communication Methods 0.000 claims abstract description 19
- 230000005540 biological transmission Effects 0.000 abstract description 17
- 238000005516 engineering process Methods 0.000 abstract description 11
- 238000013467 fragmentation Methods 0.000 abstract description 5
- 238000006062 fragmentation reaction Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 2
- QVFWZNCVPCJQOP-UHFFFAOYSA-N chloralodol Chemical compound CC(O)(C)CC(C)OC(O)C(Cl)(Cl)Cl QVFWZNCVPCJQOP-UHFFFAOYSA-N 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000009365 direct transmission Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/185—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
- H04L67/1078—Resource delivery mechanisms
- H04L67/108—Resource delivery mechanisms characterised by resources being split in blocks or fragments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a program publishing method, which is applied to at least one selected broadcast control terminal in a plurality of broadcast control terminals in the same local area network, and comprises the following steps: downloading a program file to be released from a program source end; after the file is downloaded, starting a file sharing downloading function to serve as a sharing node, performing fragmentation operation on the file to obtain a plurality of fragments, and sending a broadcast packet in the local area network to search other broadcast control terminals in the plurality of broadcast control terminals serving as the sharing node and establish communication connection with the broadcast control terminals which are not serving as the sharing node in the plurality of broadcast control terminals to serve as child nodes, wherein the broadcast packet comprises an identifier of the file and parameters of the plurality of fragments; and creating a file sharing basic service for the child node to download the file from the selected broadcast control terminal. The embodiment of the invention utilizes the file sharing downloading technology to combine with the broadcast control terminal to release the program, thereby improving the release efficiency and the transmission efficiency of the program.
Description
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a program distribution method and a program distribution system.
Background
At present, most of the situations of sending files to a terminal through a server adopt that after the terminal and the server interact through a relevant protocol, the terminal actively downloads the files of the server to complete data transmission. The traditional mode can stably and reliably distribute the programs under the conditions of relatively small program content, relatively small number of terminals and good network state. However, in the actual situation, the same program often needs to be sent to a large number of terminals in the same local area network, when a file sent by a server is large and needs to be sent to a large number of devices at the same time, if the file is transmitted in a one-to-many manner by using a traditional server, a bottleneck is easily caused to the I/O of the server, the downloading speed is slowed down, and the program publishing efficiency is seriously affected.
In addition, when the terminals in the local area network send the program files in the FTP mode, the sender needs to actively connect each terminal to establish a communication channel and then send the files, and the transmission rate is not high and the stability is not enough.
Disclosure of Invention
Therefore, in order to solve the technical defects and shortcomings in the prior art, embodiments of the present invention provide a program distribution method and a program distribution system.
Specifically, a program distribution method provided in an embodiment of the present invention is applied to at least one selected broadcast control terminal among a plurality of broadcast control terminals in the same local area network, and the program distribution method includes:
downloading a program file to be released from a program source end;
after the completion of the downloading of the file,
the file sharing download function is started to be used as a sharing node,
performing a slicing operation on the file to obtain a plurality of slices, an
Sending a broadcast packet in the local area network to search for other broadcast control terminals which serve as sharing nodes in the plurality of broadcast control terminals, and establishing communication connection with the broadcast control terminals which do not serve as the sharing nodes in the plurality of broadcast control terminals to serve as child nodes, wherein the broadcast packet comprises the file identifier and the parameters of the plurality of fragments; and
creating a file sharing base service for the child node to download the file from the selected broadcast terminal.
The program publishing method provided by the embodiment of the invention utilizes the file sharing downloading function, such as P2P technology, in combination with the broadcast control terminal to publish the file, guides the broadcast control terminal which is not connected to the program source end to download the file from other broadcast control terminals which are downloading, and improves the publishing efficiency and the transmission efficiency of the program. Meanwhile, the embodiment of the invention customizes the transmission protocol by the P2P technology, saves the flow cost, and the broadcast control terminal transmits in a point-to-point mode by using the local area network, thereby having stronger stability.
In an embodiment of the present invention, the program distribution method further includes: after the broadcast control terminals serving as the shared nodes except the broadcast control terminal itself are found, the selected broadcast control terminal and the found broadcast control terminal serving as the shared node establish a TCP connection for forwarding the query message.
In an embodiment of the present invention, the file sharing and downloading function in the program distribution method is a P2P downloading function, and the broadcast packet is a UDP broadcast packet.
In an embodiment of the present invention, each of the segments in the program publishing method includes segment data and a protocol header, and the protocol header includes an identifier of the file, an index number of the segment, and a segment size; the parameters of the plurality of fragments comprise the number of the plurality of fragments, and the fragment index numbers and the fragment sizes of the plurality of fragments.
In an embodiment of the present invention, in the above program distribution method, there are a plurality of the at least one selected broadcast control terminal, and the program distribution method further includes: the program source end determines the number of the limiting terminals according to the total number of the plurality of broadcast control terminals and the network bandwidth; and the program source end randomly selects the broadcast control terminals with the number equal to that of the limiting terminals from the plurality of broadcast control terminals as the plurality of selected broadcast control terminals and sends the program to the plurality of selected broadcast control terminals.
The embodiment of the invention also provides a program publishing method, which is applied to at least one playing terminal in a plurality of playing control terminals in the same local area network and comprises the following steps:
establishing a communication connection with a sharing node as a child node, wherein the sharing node is at least one selected playing terminal in a plurality of playing terminals in the local area network, the selected playing terminal has a program file to be played, and the selected playing terminal starts a file sharing downloading function;
and downloading the file through the file sharing basic service established by the sharing node.
In an embodiment of the present invention, the program distribution method further includes: and each broadcast control terminal as the child node periodically sends state information to the selected broadcast control terminal so that the selected broadcast control terminal maintains an index table, wherein the index table comprises the identification of the files being downloaded by all the child nodes establishing the communication connection with the selected broadcast control terminal and the IP addresses of all the child nodes.
In an embodiment of the present invention, the program distribution method further includes: and after downloading the plurality of fragments of the file, each broadcast control terminal serving as the child node sends the identifier of the file and the IP address of the broadcast control terminal to the selected broadcast control terminal so as to feed back the file downloading status to the selected broadcast control terminal.
In addition, an embodiment of the present invention provides a program distribution system, including: the system comprises a plurality of broadcast control terminals, a plurality of broadcasting control terminals and a plurality of display screens, wherein the plurality of broadcast control terminals are positioned in the same local area network and are respectively connected with the display screens; the program source end is used for sending the files of the same program to at least one selected broadcast control terminal in the plurality of broadcast control terminals; wherein the at least one selected broadcast control terminal is used for downloading the file from the program source terminal; each selected broadcast control terminal is used for starting a file sharing downloading function as a sharing node after the file is downloaded, carrying out fragmentation operation on the file to obtain a plurality of fragments, creating a file sharing basic service and sending a broadcast packet in the local area network to search for broadcast control terminals which are taken as the sharing nodes except the broadcast control terminal and wait for the broadcast control terminals which are not taken as the sharing nodes to establish communication connection with the broadcast control terminals to be taken as sub-nodes, wherein the broadcast packet comprises the identification of the file and the parameters of the fragments; and each broadcast control terminal as the child node is used for downloading the file from the selected broadcast control terminal.
In an embodiment of the present invention, each of the segments in the program distribution system includes segment data and a protocol header, and the protocol header includes an identifier of the file, an index number of the segment, and a segment size; the parameters of the plurality of fragments comprise the number of the plurality of fragments, and the fragment index numbers and the fragment sizes of the plurality of fragments.
In an embodiment of the present invention, the program source in the program distribution system is further configured to: determining the number of limiting terminals according to the total number of the plurality of broadcast control terminals and the network bandwidth; and randomly selecting the broadcast control terminals with the number equal to that of the limiting terminals from the plurality of broadcast control terminals as the plurality of selected broadcast control terminals.
As can be seen from the above, the program publishing system provided in the embodiment of the present invention utilizes the file sharing downloading function, such as P2P technology, in combination with the broadcast control terminal to publish the file, and guides the broadcast control terminal that is not connected to the program source end to download the file from other broadcast control terminals that are downloading, so as to improve the publishing efficiency and transmission efficiency of the program. Meanwhile, the embodiment of the invention customizes the transmission protocol by the P2P technology, saves the flow cost, and the broadcast control terminal transmits in a point-to-point mode by using the local area network, thereby having stronger stability.
Other aspects and features of the present invention will become apparent from the following detailed description, which proceeds with reference to the accompanying drawings. It is to be understood, however, that the drawings are designed solely for purposes of illustration and not as a definition of the limits of the invention, for which reference should be made to the appended claims. It should be further understood that the drawings are not necessarily drawn to scale and that, unless otherwise indicated, they are merely intended to conceptually illustrate the structures and procedures described herein.
Drawings
The following detailed description of embodiments of the invention will be made with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a program distribution method according to a first embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a program distribution system according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Fig. 1 is a flowchart illustrating a program distribution method according to a first embodiment of the present invention. As shown in fig. 1, a program distribution method provided in this embodiment is applied to at least one selected broadcast control terminal in a plurality of broadcast control terminals in the same local area network, and the program distribution method includes:
s11: at least one selected broadcast control terminal in the plurality of broadcast control terminals downloads a program file to be released from a program source end;
s12: after each selected broadcast control terminal finishes downloading the file, starting a file sharing downloading function to serve as a sharing node, carrying out fragmentation operation on the file to obtain a plurality of fragments, creating a file sharing basic service and sending a broadcast packet in the local area network to search other broadcast control terminals serving as the sharing nodes in the plurality of broadcast control terminals and establish communication connection with the broadcast control terminals which are not serving as the sharing nodes in the plurality of broadcast control terminals to serve as sub-nodes, wherein the broadcast packet comprises the identification of the file and the parameters of the plurality of fragments; and
creating a file sharing base service for the child node to download the file from the selected broadcast terminal.
S13: and each broadcast control terminal as the child node downloads the file through the file sharing basic service established by the sharing node. Specifically, the method comprises the steps that a communication connection with a sharing node is established to serve as a child node, the sharing node is at least one selected playing terminal in a plurality of playing terminals in the local area network, the selected playing terminal has a program file to be played, and the selected playing terminal starts a file sharing downloading function;
particularly, in a self-established network environment, a program source end is often required to distribute programs to a large number of broadcast control terminals, and when the content of the programs is large and the number of the broadcast control terminals is large, a bottleneck occurs in the I/O of the program source end, which seriously affects the distribution speed of the programs. In order to solve the problem, in the present embodiment, the number of the broadcast control terminals that distribute the program in parallel is limited at the program source end, and meanwhile, the present embodiment guides the broadcast control terminal that is not connected with the program source end to download the program file from other broadcast control terminals that are downloading, by using a file sharing technology, for example, a Peer-to-Peer connection technology P2P (Peer-to-Peer), so as to improve the distribution efficiency and the transmission efficiency of the program.
Specifically, when a program source sends the same program to a large number of broadcast control terminals in the same local area network, a limited number of broadcast control terminals should be selected as selected broadcast control terminals, where the limited number needs to be taken as a value according to the number of terminals and the network bandwidth of the program to be acquired. For example, when the number of broadcast control terminals is 100, 5% is taken according to the standard of 1M bandwidth, and then the limited number is 5; meanwhile, after network speed measurement, the limited number can be corrected according to the actual transmission speed, and if the actual transmission speed is 500K and meets the standard of 4M bandwidth, the limited number is corrected to 20. If the number of restrictions is too large, the server is still stressed and the transmission efficiency will be low, and if the number of restrictions is too small, the time for P2P to share the program will increase accordingly, resulting in an increase in the final transmission time. Therefore, the network bandwidth should be fully utilized to select a reasonably limited number to improve the program distribution efficiency.
Then, the program source end randomly selects the broadcast control terminals with the same number as the limit number from the broadcast control terminal list as the broadcast control terminals for the first batch transmission. After the batch broadcasting control terminal finishes downloading the file, starting a file sharing downloading function of the batch broadcasting control terminal, respectively using the batch broadcasting control terminal as a sharing node, and then carrying out fragmentation operation on the downloaded file according to a specific rule to obtain a plurality of fragments. The specific rules include the size of the file fragment and the protocol header to be added to each fragment, where the protocol header includes information such as the identifier of the file to which the fragment belongs, the index of the fragment, and the size of the fragment. The slicing operation refers to dividing a file into a number of small blocks according to a specific size, such as 256K, while adding some additional information to each small block. After a certain broadcast control terminal obtains all the fragments of the file, the fragments can be rearranged and assembled into the original file according to the additional information of the fragments.
Then, the batch of broadcast control terminals respectively create a file sharing basic service and send broadcast packets in the local area network to search for broadcast control terminals which are taken as sharing nodes except the batch of broadcast control terminals, and wait for other broadcast control terminals which are not taken as sharing nodes in the batch of broadcast control terminals to establish communication connection with the batch of broadcast control terminals to be taken as child nodes.
It should be noted that in the P2P network model, there is usually a tracking server responsible for tracking each child node joining the network service, and each child node periodically sends its own information and information of files it can provide for sharing to the tracking server, and the service provided by the tracking server is the basic service for file sharing.
And sending the broadcast packet refers to sending a UDP broadcast to all broadcast control terminals in the local area network, and after receiving the broadcast, the broadcast control terminals reply corresponding information to the broadcast control terminals sending the broadcast packet according to whether the broadcast control terminals also provide file sharing basic services or register with other file sharing basic service providers, so as to search the broadcast control terminals which are used as sharing nodes except the broadcast control terminals themselves and wait for the broadcast control terminals which are not used as the sharing nodes in the broadcast control terminals to establish communication connection with the broadcast control terminals themselves to be used as child nodes. And if a certain broadcast control terminal does not start the file sharing basic service and does not submit the registration information to other file sharing basic services, replying the registration information to the broadcast control terminal which sends the broadcast packet, and joining the node to become a child node of the sharing node. Wherein the broadcast packet includes an identification of the file and parameters of the plurality of slices. Each broadcast terminal as a child node then downloads the file from the corresponding selected broadcast terminal.
In a specific embodiment, the program distribution method further includes: and each broadcast control terminal as the child node periodically sends state information to the selected broadcast control terminal so that the selected broadcast control terminal maintains an index table, wherein the index table comprises the identification of the files being downloaded by all the child nodes establishing the communication connection with the selected broadcast control terminal and the IP addresses of all the child nodes.
Specifically, when a child node joins, a broadcast terminal that is a newly joining child node registers with the shared node. Meanwhile, the newly added broadcast control terminal periodically sends state information to the selected broadcast control terminal, namely the sharing node, so that the selected broadcast control terminal maintains an index table, the index comprises the identification of all files shared by all child nodes of the selected broadcast control terminal and the IP addresses of the child node broadcast control terminals for keeping the files,
in a specific embodiment, the program distribution method further includes: and after downloading the plurality of fragments of the file, each broadcast control terminal serving as the child node sends the identifier of the file and the IP address of the broadcast control terminal to the selected broadcast control terminal so as to feed back the file downloading status to the selected broadcast control terminal.
In a specific embodiment, the program distribution method further includes: after the broadcast control terminals serving as the shared nodes except the broadcast control terminal itself are found, the selected broadcast control terminal and the found broadcast control terminal serving as the shared node establish a TCP connection for forwarding the query message.
Specifically, TCP connections are established between broadcast control terminals as sharing nodes to form an overlay network, and query messages can be forwarded between adjacent sharing nodes through the overlay network, so that file sharing is not limited to child nodes under the same sharing node. And after acquiring all the fragment data of one file, the child node sends a file identifier and self information to the super node, so that the file downloading condition is fed back to the sharing node. And forwarding the message between the sharing nodes, and counting the downloading condition of each broadcast control terminal to the file according to the message.
Referring to fig. 2, which is a schematic block diagram of a program distribution system according to an embodiment of the present invention, as shown in fig. 2, the program distribution system of the embodiment includes: a plurality of broadcast control terminals and program source terminals; wherein each of the plurality of cast terminals may serve as a sharing node or a child node.
Specifically, the plurality of broadcast control terminals are located in the same local area network and are respectively connected with a display screen. The program source end is used for sending the file of the same program to at least one selected broadcast control terminal in the plurality of broadcast control terminals. Wherein the at least one selected broadcast control terminal is used for downloading the file from the program source terminal; each selected broadcast control terminal is used for starting a file sharing downloading function as a sharing node after the file is downloaded, carrying out fragmentation operation on the file to obtain a plurality of fragments, creating a file sharing basic service and sending a broadcast packet in the local area network to search for broadcast control terminals which are taken as the sharing nodes except the broadcast control terminal and wait for the broadcast control terminals which are not taken as the sharing nodes to establish communication connection with the broadcast control terminals to be taken as sub-nodes, wherein the broadcast packet comprises the identification of the file and the parameters of the fragments; and each broadcast control terminal as the child node is used for downloading the file from the selected broadcast control terminal.
In a specific embodiment, each of the fragments includes fragment data and a protocol header, and the protocol header includes an identifier of the file, a fragment index number, and a fragment size; the parameters of the plurality of fragments comprise the number of the plurality of fragments, and the fragment index numbers and the fragment sizes of the plurality of fragments.
In one embodiment, the program source is further configured to: determining the number of limiting terminals according to the total number of the plurality of broadcast control terminals and the network bandwidth; and randomly selecting the broadcast control terminals with the number equal to that of the limiting terminals from the plurality of broadcast control terminals as the plurality of selected broadcast control terminals.
Specifically, as shown in fig. 2, a program, for example, containing a plurality of files, is first transmitted to a limited number of broadcast terminals. These broadcast terminals become sharing nodes, and form a file sharing network such as a layered P2P network with broadcast terminals in other local area networks. The program is shared to each broadcast terminal using the P2P protocol. Meanwhile, the scheme supports the direct transmission of programs to the broadcast control terminal through mobile phone end software and PC end software, and similar to the mode of the Internet, the broadcast control terminal which successfully receives the file becomes a shared node if the P2P downloading function is started, and then the programs are transmitted to the child nodes adjacent to the shared node.
In addition, in an embodiment, each of the aforementioned broadcast control terminals, for example, the LED display screen asynchronous control card, includes: the system comprises a network communication module, an embedded processor, an Ethernet physical layer transceiver and an Ethernet interface; the network communication module is connected with the embedded processor, and the Ethernet physical layer transceiver is connected between the embedded processor and the Ethernet interface. For example, the network communication module includes, for example, a WiFi module or an LoRa module, which can be used as an input channel for downloading files by the broadcast control terminal; the embedded processor can be an ARM processor and can be used for decoding files and playing audio data and video data obtained after decoding; in addition, the embedded processor can also perform data packaging operation based on the Ethernet protocol, and output the Ethernet protocol data packet to the Ethernet interface through the Ethernet physical layer transceiver; the ethernet interface is, for example, an RJ45 connector, which can be connected to an LED display screen equipped with a receiving card (or a scanning card) through a network cable. In addition, in other embodiments, the data packing operation based on the ethernet protocol may be implemented by other chips, such as a programmable logic device connected between the embedded processor and the ethernet physical layer transceiver. Moreover, the asynchronous control card of LED display screen can also include: the video interface is connected with the embedded processor; therefore, the asynchronous control card of the LED display screen can be externally connected with an LCD display or an OLED display, and the video interface can be a digital video interface such as an HDMI interface.
In summary, in this embodiment, a file sharing technology, such as a P2P technology, is used in combination with a broadcast control terminal to send a file, and the broadcast control terminal not connected to a server is guided to download the file from other broadcast control terminals being downloaded, so that the sending efficiency and the transmission efficiency of the program are improved, and internal experimental tests show that 100MB size of the program is sent to 20 broadcast control terminals, which can save more than 50% of time. Meanwhile, the embodiment customizes the transmission protocol through the P2P technology, which saves the traffic cost, and if the terminal uses a mobile network, the scheme can be used to control the number of broadcast control terminals acquiring data from the server to a very small value, and other broadcast control terminals all use the local area network point-to-point transmission, which has strong stability.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (11)
1. A program distribution method applied to at least one selected broadcast control terminal among a plurality of broadcast control terminals in the same local area network, the program distribution method comprising:
downloading a program file to be released from a program source end;
after the completion of the downloading of the file,
the file sharing download function is started to be used as a sharing node,
performing a slicing operation on the file to obtain a plurality of slices, an
Sending a broadcast packet in the local area network to search for other broadcast control terminals which serve as sharing nodes in the plurality of broadcast control terminals, and establishing communication connection with the broadcast control terminals which do not serve as the sharing nodes in the plurality of broadcast control terminals to serve as child nodes, wherein the broadcast packet comprises the file identifier and the parameters of the plurality of fragments; and
creating a file sharing base service for the child node to download the file from the selected broadcast terminal.
2. The program distribution method according to claim 1, further comprising:
after the broadcast control terminals serving as the shared nodes except the broadcast control terminal itself are found, the selected broadcast control terminal and the found broadcast control terminal serving as the shared node establish a TCP connection for forwarding the query message.
3. The program distribution method according to claim 1, wherein said file sharing download function is a P2P download function, and said broadcast packet is a UDP broadcast packet.
4. The program distribution method according to claim 1, wherein each of said slices comprises slice data and a protocol header, and said protocol header comprises an identifier of said file, a slice index number and a slice size; the parameters of the plurality of fragments comprise the number of the plurality of fragments, and the fragment index numbers and the fragment sizes of the plurality of fragments.
5. The program distribution method according to claim 1, wherein the program distribution method further comprises:
the program source end determines the number of the limiting terminals according to the total number of the plurality of broadcast control terminals and the network bandwidth; and
and the program source end randomly selects the broadcast control terminals with the number equal to that of the limiting terminals from the plurality of broadcast control terminals as the plurality of selected broadcast control terminals and sends the programs to the plurality of selected broadcast control terminals.
6. A program distribution method is applied to at least one play terminal in a plurality of play control terminals in the same local area network, and is characterized by comprising the following steps:
establishing a communication connection with a sharing node as a child node, wherein the sharing node is at least one selected playing terminal in a plurality of playing terminals in the local area network, the selected playing terminal has a program file to be played, and the selected playing terminal starts a file sharing downloading function;
and downloading the file through the file sharing basic service established by the sharing node.
7. The program distribution method according to claim 6, further comprising:
and each broadcast control terminal as the child node periodically sends state information to the selected broadcast control terminal so that the selected broadcast control terminal maintains an index table, wherein the index table comprises the identification of the files being downloaded by all the child nodes establishing the communication connection with the selected broadcast control terminal and the IP addresses of all the child nodes.
8. The program distribution method according to claim 1, further comprising:
and after downloading the plurality of fragments of the file, each broadcast control terminal serving as the child node sends the identifier of the file and the IP address of the broadcast control terminal to the selected broadcast control terminal so as to feed back the file downloading status to the selected broadcast control terminal.
9. A program distribution system, comprising:
the system comprises a plurality of broadcast control terminals, a plurality of broadcasting control terminals and a plurality of display screens, wherein the plurality of broadcast control terminals are positioned in the same local area network and are respectively connected with the display screens; and
the program source end is used for sending the files of the same program to at least one selected broadcast control terminal in the plurality of broadcast control terminals;
wherein the at least one selected broadcast control terminal is used for downloading the file from the program source terminal;
each of the selected broadcast terminals is configured to, after downloading the file,
the file sharing download function is started to be used as a sharing node,
performing a slicing operation on the file to obtain a plurality of slices, an
Creating a file sharing basic service and sending a broadcast packet in the local area network to search for broadcast control terminals which are taken as sharing nodes except the broadcast control terminals and wait for the broadcast control terminals which are not taken as the sharing nodes to establish communication connection with the broadcast control terminals to be taken as sub-nodes, wherein the broadcast packet comprises the identification of the file and the parameters of the fragments; and
each broadcast control terminal as the child node is configured to download the file from the selected broadcast control terminal.
10. The program distribution system of claim 9, wherein each of the slices comprises slice data and a protocol header, and the protocol header comprises an identification of the file, a slice index number, and a slice size; the parameters of the plurality of fragments comprise the number of the plurality of fragments, and the fragment index numbers and the fragment sizes of the plurality of fragments.
11. The program distribution system of claim 9, wherein the program source is further configured to:
determining the number of limiting terminals according to the total number of the plurality of broadcast control terminals and the network bandwidth; and
and randomly selecting the broadcast control terminals with the number equal to that of the limiting terminals from the plurality of broadcast control terminals as the plurality of selected broadcast control terminals.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910601298.4A CN112187483A (en) | 2019-07-03 | 2019-07-03 | Program distribution method and program distribution system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910601298.4A CN112187483A (en) | 2019-07-03 | 2019-07-03 | Program distribution method and program distribution system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112187483A true CN112187483A (en) | 2021-01-05 |
Family
ID=73915112
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910601298.4A Pending CN112187483A (en) | 2019-07-03 | 2019-07-03 | Program distribution method and program distribution system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112187483A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1983237A (en) * | 2005-12-15 | 2007-06-20 | 北京凯诚高清电子技术有限公司 | Method and device for playing cross-platform distributed network controllable multi-medium |
CN101068245A (en) * | 2007-03-30 | 2007-11-07 | 腾讯科技(深圳)有限公司 | Shared file issuing and downloading method and file sharing control system |
WO2008025294A1 (en) * | 2006-08-22 | 2008-03-06 | Tencent Technology (Shenzhen) Company Limited | A stream media live system, device and method of peer to peer connection |
CN101159645A (en) * | 2007-11-08 | 2008-04-09 | 中国传媒大学 | Design method and network structure of mutual server facing to P2P application |
CN102137163A (en) * | 2011-03-22 | 2011-07-27 | Tcl集团股份有限公司 | Multimedia file sharing system and method |
-
2019
- 2019-07-03 CN CN201910601298.4A patent/CN112187483A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1983237A (en) * | 2005-12-15 | 2007-06-20 | 北京凯诚高清电子技术有限公司 | Method and device for playing cross-platform distributed network controllable multi-medium |
WO2008025294A1 (en) * | 2006-08-22 | 2008-03-06 | Tencent Technology (Shenzhen) Company Limited | A stream media live system, device and method of peer to peer connection |
CN101068245A (en) * | 2007-03-30 | 2007-11-07 | 腾讯科技(深圳)有限公司 | Shared file issuing and downloading method and file sharing control system |
CN101159645A (en) * | 2007-11-08 | 2008-04-09 | 中国传媒大学 | Design method and network structure of mutual server facing to P2P application |
CN102137163A (en) * | 2011-03-22 | 2011-07-27 | Tcl集团股份有限公司 | Multimedia file sharing system and method |
Non-Patent Citations (1)
Title |
---|
蔡锁德: "无线局域网中基于可靠广播的文件共享", 《现代电子技术》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170149715A1 (en) | System and method for providing an actively invalidated client-side network resource cache | |
JP5800872B2 (en) | Packet level prioritization in interconnected networks | |
US20140301382A1 (en) | Method and apparatus for disabling transmission of a packet with aggregated data from multiple packets having an address for a group of network devices | |
CN102075338B (en) | Distributed network-based live broadcasting method and device | |
WO2020155293A1 (en) | Stream pushing method, system and server | |
CN109391551B (en) | Multi-port multicast method, equipment and computer readable storage medium | |
WO2022166584A1 (en) | Point-to-point network scheduling method and system | |
WO2022166593A1 (en) | Pont-to-point network scheduling method and system | |
CN111107672B (en) | Method, device and system for establishing sub-streams of multi-path connection | |
TWI543565B (en) | Method for retransmitting packet, data server using the same, and packet retransmitting system | |
US20140337499A1 (en) | Method, system and terminal for changing a management object of broadcast service guide | |
US9591069B2 (en) | Peer-to-peer assist for live media streaming | |
WO2014172893A1 (en) | Method and apparatus for controlling sending of heartbeat signal | |
US10270607B2 (en) | Method and system for roamed client device handling | |
CN107070958B (en) | High-efficiency transmission method for mass data | |
CN101120546B (en) | Method and nodes for handling broadcast messages over an access domain | |
CN112187483A (en) | Program distribution method and program distribution system | |
EP2506544B1 (en) | Mobile terminal and multimedia messaging service notification message processing method | |
WO2022267500A1 (en) | Method and apparatus for processing multicast message | |
CN112383801B (en) | Media stream distribution method, device, distribution server and storage medium | |
CN110062339B (en) | Method and device for shareable data transmission | |
US20240291880A1 (en) | Streaming Media Scheduling Method and Apparatus, and Readable Storage Medium | |
CN107295404A (en) | A kind of video data method for down loading and device | |
US20240163321A1 (en) | Systems and methods for multicasting live content | |
CN110892686B (en) | Method for providing information to an audio/video receiver device and corresponding device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210105 |
|
RJ01 | Rejection of invention patent application after publication |