CN109194993B - Media file distribution method and file distribution platform - Google Patents
Media file distribution method and file distribution platform Download PDFInfo
- Publication number
- CN109194993B CN109194993B CN201811267902.6A CN201811267902A CN109194993B CN 109194993 B CN109194993 B CN 109194993B CN 201811267902 A CN201811267902 A CN 201811267902A CN 109194993 B CN109194993 B CN 109194993B
- Authority
- CN
- China
- Prior art keywords
- terminal
- media file
- website
- branch
- server
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/632—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing using a connection between clients on a wide area network, e.g. setting up a peer-to-peer communication via Internet for retrieving video segments from the hard-disk of other client devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4122—Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application provides a media file distribution method and a file distribution platform, wherein the media distribution method comprises the steps of obtaining a website media file set from a branch server by taking a terminal set of a website as a unit under the condition that a terminal of the file distribution platform is divided into a plurality of terminal sets which correspond to a plurality of websites one by taking the website as a unit, and distributing the website media file set in the terminal set of the website so as to ensure that each media file is transmitted between the branch server and the terminal set only once. The method and the device distribute the media file sets of the network points to each terminal in the terminal set, so that the media file distribution process is realized in the network points, the media file distribution efficiency can be improved, and occupied network bandwidth occupation and resource waste can be reduced.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a media file distribution method and a file distribution platform.
Background
The media files required to be played in the bank lobby of each branch include fund interest rate information, new bank product propaganda and bank emergency information notification. Thus, banking systems typically have a file distribution platform. The current file distribution platform comprises: the system comprises a head office server (national level), a plurality of branch servers (city level) connected with the head office server, wherein each branch server is connected with a plurality of network points (local level), each network point usually comprises at least one terminal used for displaying media files, and the network points are not communicated with each other.
Because the media files required to be displayed by each terminal of each network are different, each terminal can send a request instruction to the head office server step by step upwards under the condition of acquiring the media files.
Each terminal sends a request instruction to the head office server, which causes the network bandwidth between the head office server and the network points to be used for multiple times, and occupies more network resources. Moreover, there are some same media files among multiple terminals of the same network point, which results in the same file being downloaded multiple times, resulting in useless downloading.
Namely, the method for terminal media files in the prior art has low efficiency and occupies more network resources.
Disclosure of Invention
In view of this, the present application provides a media file distribution method and a file distribution platform, which can improve media file distribution efficiency and reduce occupied network bandwidth and resource waste.
In order to achieve the above object, the present application provides the following technical features:
a media file distribution method, comprising:
under the condition that a terminal of the file distribution platform is divided into a plurality of terminal sets which are in one-to-one correspondence with a plurality of network points by taking a network point as a unit, a network point media file set is obtained from a branch server by taking a terminal set of a network point as a unit, and the network point media file set is distributed in the terminal set of the network point, so that each media file is only transmitted once between the branch server and the terminal set.
Optionally, the terminal set of one website includes a main terminal dynamically determined by the branch server, and the branch server prestores a website media file list of each website and a terminal media file list of each website;
the method for acquiring the media file set of the website from the branch server by taking the terminal set of the website as a unit comprises the following steps:
the main terminal of the terminal set receives a website media file list and a terminal media file list which are issued by the branch server and correspond to the website;
and the main terminal in the terminal set downloads the media files corresponding to the website media file list from the branch server, and the downloaded media files form the website media file set.
Optionally, the terminal media file list includes a corresponding relationship between a media file identifier in the website media file set and a terminal identifier;
then, said distributing said website media file set in said website terminal set includes:
in the local area network where the website is located, the main terminal in the terminal set distributes the media files in the website media file set to each terminal in the terminal set in a P2P mode according to the terminal media file list.
Optionally, the method further includes:
dynamically determining the main terminal again by the branch server after the main terminal is down;
a terminal set of the network node receives a main terminal updating instruction issued by the branch server; the updating instruction of the main terminal comprises a terminal identifier used as the main terminal;
each terminal in the terminal set receives a main terminal updating instruction;
determining the terminal as a master terminal under the condition that the terminal judges that the terminal identification is consistent with the terminal identification in the master terminal updating instruction, otherwise determining the terminal as a slave terminal;
and if the terminal is determined to be the main terminal, the terminal is subsequently used for executing the following steps: and the main terminal in the terminal set downloads the media files corresponding to the website media file list from the branch server, and the downloaded media files form the website media file set.
A media file distribution method, the terminal of the said file distribution platform is divided into a plurality of terminal sets corresponding to a plurality of network points one-to-one with network point as the unit; the media file distribution method comprises the following steps:
acquiring a branch media file set from a head office server by taking a branch server as a unit so as to ensure that each media file is transmitted only once on a backbone network between the branch server and the head office server; the branch server is further used for carrying out data interaction with the terminal set so as to realize that:
acquiring a website media file set from a branch server by taking a terminal set of a website as a unit so as to ensure that each media file is transmitted only once between the branch server and the terminal set; and the terminal set of the website also distributes the website media file set in the terminal set of the website;
optionally, the obtaining the branch media file set from the head office server by using the branch server as a unit includes:
the branch server acquires a branch media file list corresponding to the branch server from the head office server;
and the branch server downloads the media files in the branch media file list from the head office server, and the downloaded media files form a branch media file set.
Optionally, the branch server stores terminal information of each branch in advance, and the terminal information of one branch includes terminal identifiers and terminal states of terminals under the branch;
the branch server dynamically determines a main terminal in an available state in a terminal set corresponding to a network point according to terminal information of the network point, and the rest terminals in the terminal set are slave terminals;
sending a main terminal updating instruction to the terminal set; wherein, the updating instruction of the master terminal comprises a terminal identification used as the master terminal.
Optionally, the branch server provides a manual distribution interface, and further includes:
receiving a manual distribution instruction input by a user in the process of displaying the branch media file list on a display screen; wherein the manual dispatch instructions include: one or more media file identifications in the media file list, a terminal set corresponding to each media file identification and a terminal identification corresponding to each media file identification are arranged in rows;
determining one or more media files corresponding to the one or more media file identifications;
distributing the one or more media files to a main terminal in a corresponding terminal set so that the main terminal in the terminal set distributes the media files to terminals corresponding to terminal identifications;
deleting one or more media file identifications in the branch media file list.
Optionally, the method further includes:
the branch server acquires the transmission rate of the transmission bandwidth between the branch server and each network point;
calculating the product of the transmission rate and a preset proportion to obtain a preset transmission rate;
in the process of acquiring a website media file set from the branch server by taking a terminal set of a website as a unit, downloading the website media file set from the branch server according to the preset transmission rate, and recording the downloading result of each media file identifier in a prestored website media file list;
if the downloading result corresponding to one media file identifier is downloading failure, the media file identifier is reserved to the media file set of the website in the next period so as to ensure the distribution fault tolerance.
A file distribution platform, a terminal of the file distribution platform is divided into a plurality of terminal sets which are in one-to-one correspondence with a plurality of network points by taking the network points as a unit, and the file distribution platform comprises:
the head office server is used for storing media files;
the branch server is used for acquiring a branch media file set from the head office server by taking the branch server as a unit so as to ensure that each media file is transmitted only once on a backbone network between the branch server and the head office server;
the terminal set of the network point is used for acquiring a network point media file set from the branch server by taking the terminal set of the network point as a unit, and distributing the network point media file set in the terminal set of the network point so as to ensure that each media file is transmitted only once between the branch server and the terminal set.
Through the technical means, at least the following beneficial effects can be realized:
according to the method and the system, the branch media file set is obtained from the head office server through the branch server, so that each media file is transmitted once between the head office server and the branch server, the transmission times of the media files between the branch server and the head office server are greatly reduced, and the occupation of network bandwidth and the waste of resources are reduced.
All terminals of the file distribution platform are divided into a plurality of terminal sets by taking a branch as a unit, and the terminal sets are used as media file sets of the branch servers, so that each media file is transmitted once between the branch server and the branch, the transmission times of the media files between the branch server and the branch are greatly reduced, and the occupation of network bandwidth and the waste of resources are reduced.
Subsequently, the media file set of the network point is distributed to each terminal in the terminal set, so that the media file distribution process is realized in the network point, the media file distribution efficiency can be improved, and occupied network bandwidth occupation and resource waste can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a file distribution platform disclosed in an embodiment of the present application;
fig. 2 is a flowchart of a media file distribution method disclosed in an embodiment of the present application;
fig. 3 is a flowchart of another media file distribution method disclosed in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Interpretation of terms:
NAS: a network attached Storage; a device literally connected to a network and having a data storage function is also called a "network storage". It is a dedicated data storage server. The data center is used for completely separating the storage equipment from the server and managing the data in a centralized manner, so that the bandwidth is released, the performance is improved, the total cost of ownership is reduced, and the investment is protected. The cost is far lower than using server storage, while the efficiency is far higher than the latter.
P2P: a Peer-to-Peer network, i.e., a Peer-to-Peer computer network, is a distributed application architecture that distributes tasks and workloads among peers (peers), and is a networking or networking form of a Peer-to-Peer computing model formed in an application layer. Literally, P2P may be understood as a peer-to-peer computing or peer-to-peer network. Some of the media in China translate P2P into "Peer-to-Peer" or "Peer-to-Peer," which is commonly referred to by the academic community as Peer-to-Peer networking (Peer-to-Peer computing), and can be defined as: participants of the network share a portion of the hardware resources (processing power, storage power, network connectivity, printers, etc.) they own, which provide services and content over the network and which can be accessed directly by other Peer nodes (peers) without going through intermediate entities. The participants in this network are both providers (servers) and acquirers (clients) of resources, services and content.
Token bucket algorithm: when data is transmitted in a network, in order to prevent network congestion, it is necessary to limit the traffic flowing out of the network so that the traffic is sent out at a relatively uniform speed. The token bucket algorithm performs this function, controlling the amount of data sent onto the network and allowing the transmission of bursts of data.
The purpose of this application lies in: the media files of the head office server are distributed to the terminals of all network points, and the media file distribution efficiency can be improved, and occupied network bandwidth occupation and resource waste can be reduced.
The present application provides a file distribution platform, and referring to fig. 1, the file distribution platform includes:
the head office management device 100 is used for uploading media files and branch media file lists to a head office server.
A head office server 200 connected to the head office management apparatus 100 for storing media files and branch media file lists.
The plurality of branch servers 300 connected to the head office server 200 are configured to obtain a branch media file set from the head office server in units of branch servers, so as to ensure that each media file is transmitted only once on the backbone network between the branch servers and the head office server.
Each branch server 300 jurisdiction includes a plurality of network points, each network point generally includes at least one terminal 400 for displaying media files, and the network points are not intercommunicated with each other. All terminals of the file distribution platform are divided into a plurality of terminal sets which are in one-to-one correspondence with a plurality of network points by taking the network points as units.
The plurality of terminal sets 400 connected to the plurality of branch servers 300 in a one-to-one correspondence are configured to obtain a website media file set from a branch server using a terminal set of a website as a unit, and distribute the website media file set in the terminal set of the website, so as to ensure that each media file is transmitted only once between the branch server and the terminal set.
As can be seen from the above description, the present embodiment has the following beneficial effects:
according to the method and the system, the branch media file set is obtained from the head office server through the branch server, so that each media file is transmitted once between the head office server and the branch server, the transmission times of the media files between the branch server and the head office server are greatly reduced, and the occupation of network bandwidth and the waste of resources are reduced.
All terminals of the file distribution platform are divided into a plurality of terminal sets by taking a branch as a unit, and the terminal sets are used as media file sets of the branch servers, so that each media file is transmitted once between the branch server and the branch, the transmission times of the media files between the branch server and the branch are greatly reduced, and the occupation of network bandwidth and the waste of resources are reduced.
Subsequently, the media file set of the network point is distributed to each terminal in the terminal set, so that the media file distribution process is realized in the network point, the media file distribution efficiency can be improved, and occupied network bandwidth occupation and resource waste can be reduced.
The application provides a media file distribution method which is applied to a file distribution platform shown in figure 1. Referring to fig. 2, the media file distribution method includes the steps of:
step S201: the head office management apparatus 100 determines a plurality of media files and a branch media file list corresponding to each branch server 300, and uploads the plurality of media files and the branch media file list corresponding to each branch server 300 to the head office server 200.
Step S202: the head office server 200 receives and stores a plurality of media files and a branch media file list corresponding to each branch server 300.
The head office server has a plurality of file transfer entries, which can be stored in commonly accessible NAS.
Since the backbone network from the head office server 200 to the branch office server 300 is used by both the production process and the office process, and the backbone network involves a large amount of key information transmission and has a large flow rate, the head office server 200 can distribute media files to the branch office servers 300 at night under the optimal condition, and a speed limit mode can be started in the process of distributing the media files so as to be suitable for network bandwidth between the head office server and each branch office server.
The head office server can directly determine the branch media file set according to the branch media file list and send the branch media file set to the branch server, and can also send the branch media file list to the branch server so that the branch server can actively acquire the branch media file set. Both implementations can be realized according to actual conditions. For convenience of description, the following embodiments are described by taking the case that the branch server actively acquires the branch media file set as an example.
Step S203: the branch server stores the media file lists of all the network nodes and the terminal media file lists of all the network nodes.
The branch management personnel are used for uploading terminal media file lists of all the branches and network point media file lists of all the network points to the branch server.
Taking a network as an example, the terminal media file list includes terminal identifiers of a plurality of terminals and identifiers of media files that each terminal should distribute to obtain. And the union set of all the media file identifications in the terminal media file list is the media file list of the network points.
Step S204: the branch server stores terminal information of each network point in the administrative area, and the terminal information of one network point comprises terminal identifications and terminal states of each terminal under the network point.
The jurisdiction range of the branch server comprises a plurality of network points, each network point comprises a plurality of terminals, and the terminal information of the terminals forms the terminal information of one network point. Each terminal information includes a terminal identification and a terminal status, and the terminal status includes an available status for indicating that the terminal is in a good status and an unavailable status for indicating that the terminal is in a fault status.
Step S205: and the branch server dynamically determines the main terminal in an available state in a terminal set corresponding to the network point according to the terminal information of the network point.
For each network point, the branch server can dynamically select a main terminal in the network point according to the terminal information of the network point, wherein the main terminal is a terminal which is in an available state and generally has less resource usage among a plurality of terminals of the network point. The other terminals except the main terminal in the network point terminal set are slave terminals.
Step S206: the branch server sends a main terminal updating instruction to a terminal set of a network point; wherein, the updating instruction of the master terminal comprises a terminal identification used as the master terminal.
After determining the master terminal, the branch server distributes an update instruction containing the terminal identifier of the master terminal to a terminal set of a network point, so that the terminal set terminal can know that the terminal set terminal is the master terminal or the slave terminal.
Step S207: terminals in a terminal set of the network point receive a master terminal updating instruction, a master terminal end and a slave terminal are determined, and the slave terminal and the master terminal establish communication connection.
Each terminal in the terminal set receives a main terminal updating instruction; and determining that the terminal is a master terminal under the condition that the terminal identification of each terminal is consistent with the terminal identification in the master terminal updating instruction, otherwise determining that the terminal is a slave terminal.
Each slave terminal in the terminal set is connected online end-to-end with the master terminal (P2P) for subsequent communication in the terminal set in P2P.
In addition, the branch server is used as a main bearing node for the terminal to acquire the media file, and a double-WEB server and a double-AP mode can be adopted to ensure the correctness and better load balancing capability of the branch server. And the maximum network pressure and service pressure provided by a single AP can depend on the token bucket algorithm to carry out current limiting and speed limiting guarantee.
The above is a pre-processing process, i.e., an off-line processing process, and the following is a real-time, i.e., on-line processing process of the present application.
Step S208: the branch server 300 obtains a branch media file set from the head office server in units of branch servers to ensure that each media file is transmitted only once over the backbone network between the branch servers and the head office server.
This step can be implemented by the following steps:
s1: and the branch server acquires a branch media file list corresponding to the branch server from the head office server.
The branch server may send an http request, where the http request includes an identifier of the branch server, so that the head office server searches for a branch media file list corresponding to the branch server, and issues the branch media file list to the branch server.
S2: and the branch server downloads the media files in the branch media file list from the head office server, and the downloaded media files form a branch media file set.
The branch media file list comprises media file identifiers, the branch servers acquire the media file identifiers one by one from the branch media file list, and download the media files corresponding to the media file identifiers from the head office server until the media file identifiers on the branch media file list are completely downloaded.
If the downloading fails in the downloading process, recording the media file identification of the downloading failure so as to feed back the media file identification to the head office server for the head office server to check the media file, and if the media file identification is damaged, re-uploading the media file so as to add the media file identification to the branch media file list of the next period so as to re-distribute the media file to the terminal in the media file distribution process of the next period.
In order to avoid network congestion or downtime in the media file distribution process, the distribution server sets a current limiting and current limiting service, and the maximum resource consumption of the branch server is the maximum current limiting and the maximum speed limiting. The maximum resource consumption is the maximum resource consumption which can be generated by the branch server in the media file distribution process.
The branch server can directly determine the website media file set according to the website media file list, and sends the website media file set to the terminal set of the website, and can also send the website media file list to the terminal set of the website so that the terminal set can actively acquire the website media file set. Both implementations can be realized according to actual conditions. For convenience of description, the following embodiments all describe the case where a terminal set actively acquires a media file set of a website.
Step S209: the method comprises the steps of taking a terminal set of a website as a unit to obtain a website media file set from a branch server, and distributing the website media file set in the terminal set of the website to ensure that each media file is transmitted only once between the branch server and the terminal set.
This step is performed for each mesh point, and can be implemented by the following steps:
s1: and the main terminal in the terminal set receives the website media file list and the terminal media file list which are sent by the branch server and correspond to the website.
The branch server issues a branch point media file list and a terminal media file list corresponding to the branch point to a main terminal in a terminal set, and the main terminal in the terminal set receives the branch point media file list and the terminal media file list corresponding to the branch point issued by the branch server.
S2: and the main terminal in the terminal set downloads the media files corresponding to the website media file list from the branch server, and the downloaded media files form the website media file set.
The website media file list comprises media file identifications, the main terminal acquires the media file identifications one by one from the website media file list and downloads the media files corresponding to the media file identifications from the branch server until the media file identifications on the branch media file list are completely downloaded.
S3: in the local area network where the website is located, the main terminal in the terminal set distributes the media files in the website media file set to each terminal in the terminal set in a P2P mode according to the terminal media file list.
Each terminal in the jurisdiction range of the network is in the local area network, so the terminal set master terminal can distribute the network media file set to each terminal in the local area network, and particularly, the corresponding media file is required to be distributed to the corresponding terminal according to the terminal media file list in the file set distribution process.
In order to improve the distribution efficiency, the master terminal and the slave terminal communicate by adopting a P2P mode.
If the media file can not be successfully distributed in the distribution process, the media file identification of the media file is sent to the branch server so that the branch server can check the media file, if the media file is damaged, the head office server is informed so that the media file identification can be added to a branch media file list of the next period so that the media file can be distributed to the terminal in the media file distribution process of the next period, and the fault tolerance of the distribution process is guaranteed.
The terminal concentration terminal of the network node is arranged in a star structure, the Master terminal is also called a Master node (Master), and the slave terminal is also called a slave node (Salver). After the main terminal downloads the media files from the branch servers and acquires the media file sets of the network points after downloading the media files, the media file sets of the network points are distributed from the main terminal to all the slave terminals through the message sharing mode in the high-speed local area network mode of the network points, and only the media files required by each slave terminal are pushed.
It can be understood that the main terminal in the terminal set may be down, and the branch server dynamically determines the main terminal again after the main terminal is down; and the master terminal update instruction sent by the branch server is sent to the terminal set.
A terminal set of the network node receives a main terminal updating instruction issued by the branch server; the updating instruction of the main terminal comprises a terminal identifier used as the main terminal; each terminal in the terminal set receives a main terminal updating instruction; and determining the terminal as a master terminal under the condition that the terminal judges that the terminal identifier is consistent with the terminal identifier in the master terminal updating instruction, otherwise determining the terminal as a slave terminal, and establishing communication connection between the slave terminal and the master terminal.
If the downtime of the main terminal is in S1 and S2 of step S209, it indicates that the main terminal is downloading the website media file list or downloading the website media file set, and the distribution of the website media file set has not yet started, so that at this time, the updated main terminal directly re-executes step S209 to download the website media file list and obtain the website media file set.
If the downtime of the main terminal is in S3 of step S209 and the distribution of the website media file set has already started, then directly executing step S209 may cause a problem that some terminals have duplicate media files, so that at this time, the rollback will be executed on the terminal set and the state before the media files are distributed. Then, step S209 is executed again by the current master terminal.
The above is a process for automatically distributing media files, and the present application also provides a process for manually distributing media files for use in situations where automatic distribution is not yet performed or is otherwise in a particular situation. That is, the branch servers provide a manual distribution interface.
Step S301: receiving a manual distribution instruction input by a user in the process of displaying the branch media file list on a display screen; wherein the manual dispatch instructions include: one or more media file identifications in the media file list, a terminal set corresponding to each media file identification and a terminal identification corresponding to each media file identification.
After receiving a manual distribution instruction containing one or more media file identifications, the branch server determines a terminal set of the one or more media files and terminal identifications needed to be distributed to terminals in the terminal set.
Step S302: and the branch server determines one or more media files corresponding to the one or more media file identifications.
And the branch server extracts one or more media files corresponding to the one or more media file identifications according to the one or more media file identifications.
Step S303: and distributing the one or more media files to a main terminal in a corresponding terminal set so that the main terminal in the terminal set distributes the media files to the terminal corresponding to the terminal identification.
This step is similar to step S209 and will not be described herein.
Step S304: deleting one or more media file identifications in the branch media file list.
After the manual distribution is finished, the branch server deletes one or more media file identifications manually distributed in the branch media file list so as to avoid repeated redistribution to the terminal in the automatic distribution process.
The main technical conception of the invention is as follows: all terminals of the file distribution platform are divided into a plurality of terminal sets by taking a website as a unit, a non-repeated website media file set is acquired from a branch server by taking the terminal set as the unit, and then the acquired website media file set is distributed in a local area network in a P2P mode. Therefore, the transmission quantity of the media files can be transferred to the network nodes, and the transmission quantity of the media files can be solved in the local area network of the high-speed network nodes.
The method and the system also take the branch servers as units to obtain the branch media file sets from the head office server, so that the resource occupation of a backbone network between the branch servers and the head office server is reduced. The purpose that the media file can be distributed from the head office server to all terminals, a plurality of terminals or a single terminal can be achieved by the two main parts.
Through the technical characteristics, the following beneficial effects can be obtained:
the method and the system support the function that the head office server distributes the media files to the branch servers, the branch servers distribute the media files to the terminal sets, and the branch servers can also provide manual distribution interfaces, so that the function of appointing to distribute the media files or appointing distributed terminal identifications can be realized.
The method and the device are suitable for distributing the large media files, and occupied network bandwidth and network resources can be effectively reduced.
The method and the system can effectively reduce the transmission times of the media files of the backbone network between the head office server and the branch office server, and also can effectively reduce the transmission times of the media files of the network between the branch office server and the network points, thereby greatly reducing the occupation of the network bandwidth, and being particularly suitable for the transmission of large media files.
After the terminals are added in the terminal set, the transmission quantity of the media files of the backbone network is not increased, but the transmission quantity of the media files is transferred to a high-speed local area network in the terminal set, that is, most of the transmission flow is limited in the high-speed local area network of a network point, so that the resource occupation of a head office server and a branch server is small, and the exponential increase of the resources along with the increase of the terminals is avoided.
The hardware structure of the file distribution platform is not changed, namely, a file distribution mode with high reliability, low risk and high utilization rate is realized by distributing the media file to the terminal under the condition of a low-bandwidth network; and the terminal can reuse the existing network node hardware terminal equipment, thereby reducing network expenditure and hardware cost.
The functions described in the method of the present embodiment, if implemented in the form of software functional units and sold or used as independent products, may be stored in a storage medium readable by a computing device. Based on such understanding, part of the contribution to the prior art of the embodiments of the present application or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including several instructions for causing a computing device (which may be a personal computer, a server, a mobile computing device or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (8)
1. A media file distribution method, comprising:
under the condition that a terminal of the file distribution platform is divided into a plurality of terminal sets which are in one-to-one correspondence with a plurality of network points by taking a network point as a unit, acquiring a network point media file set from a branch server by taking a terminal set of a network point as a unit, and distributing the network point media file set in the terminal set of the network point so as to ensure that each media file is transmitted between the branch server and the terminal set only once;
the terminal set of the website comprises a main terminal dynamically determined by a branch server, and the branch server stores a website media file list of each website and a terminal media file list of each website in advance;
the method for acquiring the media file set of the website from the branch server by taking the terminal set of the website as a unit comprises the following steps:
the main terminal of the terminal set receives a website media file list and a terminal media file list which are issued by the branch server and correspond to the website;
and the main terminal in the terminal set downloads the media files corresponding to the website media file list from the branch server, and the downloaded media files form the website media file set.
2. The method of claim 1, wherein the terminal media file list comprises a correspondence between a media file identifier and a terminal identifier in a media file set of websites;
then, said distributing said website media file set in said website terminal set includes:
in the local area network where the website is located, the main terminal in the terminal set distributes the media files in the website media file set to each terminal in the terminal set in a P2P mode according to the terminal media file list.
3. The method of claim 1, further comprising: dynamically determining the main terminal again by the branch server after the main terminal is down;
a terminal set of the network node receives a main terminal updating instruction issued by the branch server; the updating instruction of the main terminal comprises a terminal identifier used as the main terminal;
each terminal in the terminal set receives a main terminal updating instruction;
determining the terminal as a master terminal under the condition that the terminal judges that the terminal identification is consistent with the terminal identification in the master terminal updating instruction, otherwise determining the terminal as a slave terminal;
and if the terminal is determined to be the main terminal, the terminal is subsequently used for executing the following steps: and the main terminal in the terminal set downloads the media files corresponding to the website media file list from the branch server, and the downloaded media files form the website media file set.
4. A media file distribution method is characterized in that a terminal of a file distribution platform is divided into a plurality of terminal sets which are in one-to-one correspondence with a plurality of network points by taking the network points as units; the media file distribution method comprises the following steps:
acquiring a branch media file set from a head office server by taking a branch server as a unit so as to ensure that each media file is transmitted only once on a backbone network between the branch server and the head office server; the branch server is further used for carrying out data interaction with the terminal set so as to realize that:
acquiring a website media file set from a branch server by taking a terminal set of a website as a unit so as to ensure that each media file is transmitted only once between the branch server and the terminal set; and the terminal set of the website also distributes the website media file set in the terminal set of the website;
the step of obtaining the branch media file set from the head office server by taking the branch server as a unit comprises the following steps:
the branch server acquires a branch media file list corresponding to the branch server from the head office server;
and the branch server downloads the media files in the branch media file list from the head office server, and the downloaded media files form a branch media file set.
5. The method according to claim 4, wherein the branch server stores terminal information of each node in advance, and the terminal information of one node includes terminal identification and terminal status of each terminal at the node;
the branch server dynamically determines a main terminal in an available state in a terminal set corresponding to a network point according to terminal information of the network point, and the rest terminals in the terminal set are slave terminals;
sending a main terminal updating instruction to the terminal set; wherein, the updating instruction of the master terminal comprises a terminal identification used as the master terminal.
6. The method of claim 4, wherein the branch server provides a manual distribution interface, further comprising:
receiving a manual distribution instruction input by a user in the process of displaying the branch media file list on a display screen; wherein the manual dispatch instructions include: one or more media file identifications in the media file list, a terminal set corresponding to each media file identification and a terminal identification corresponding to each media file identification are arranged in rows;
determining one or more media files corresponding to the one or more media file identifications;
distributing the one or more media files to a main terminal in a corresponding terminal set so that the main terminal in the terminal set distributes the media files to terminals corresponding to terminal identifications;
deleting one or more media file identifications in the branch media file list.
7. The method of claim 4, further comprising:
the branch server acquires the transmission rate of the transmission bandwidth between the branch server and each network point;
calculating the product of the transmission rate and a preset proportion to obtain a preset transmission rate;
in the process of acquiring a website media file set from the branch server by taking a terminal set of a website as a unit, downloading the website media file set from the branch server according to the preset transmission rate, and recording the downloading result of each media file identifier in a prestored website media file list;
if the downloading result corresponding to one media file identifier is downloading failure, the media file identifier is reserved to the media file set of the website in the next period so as to ensure the distribution fault tolerance.
8. A file distribution platform is characterized in that terminals of the file distribution platform are divided into a plurality of terminal sets which are in one-to-one correspondence with a plurality of network points by taking the network points as units, and the file distribution platform comprises:
the head office server is used for storing media files;
the branch server is used for acquiring a branch media file set from the head office server by taking the branch server as a unit so as to ensure that each media file is transmitted only once on a backbone network between the branch server and the head office server;
the terminal set of the website is used for acquiring a website media file set from the branch server by taking the terminal set of the website as a unit, and distributing the website media file set in the terminal set of the website so as to ensure that each media file is transmitted only once between the branch server and the terminal set;
the method for acquiring the media file set of the website from the branch server by taking the terminal set of the website as a unit comprises the following steps:
the main terminal of the terminal set receives a website media file list and a terminal media file list which are issued by the branch server and correspond to the website;
and the main terminal in the terminal set downloads the media files corresponding to the website media file list from the branch server, and the downloaded media files form the website media file set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811267902.6A CN109194993B (en) | 2018-10-29 | 2018-10-29 | Media file distribution method and file distribution platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811267902.6A CN109194993B (en) | 2018-10-29 | 2018-10-29 | Media file distribution method and file distribution platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109194993A CN109194993A (en) | 2019-01-11 |
CN109194993B true CN109194993B (en) | 2021-08-24 |
Family
ID=64944238
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811267902.6A Active CN109194993B (en) | 2018-10-29 | 2018-10-29 | Media file distribution method and file distribution platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109194993B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110493358B (en) * | 2019-09-16 | 2022-05-27 | 世纪海航(厦门)科技有限公司 | File transmission method and device based on ad hoc network technology and server |
CN113641647B (en) * | 2021-08-10 | 2023-11-17 | 中影电影数字制作基地有限公司 | Media resource file distribution management system |
CN114598825B (en) * | 2022-02-22 | 2024-05-17 | 中央广播电视总台 | Video and audio signal scheduling method and device, computer equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101446963A (en) * | 2008-12-31 | 2009-06-03 | 中国建设银行股份有限公司 | System for publishing information file of bank product and method |
CN101699816A (en) * | 2009-11-17 | 2010-04-28 | 上海华平信息技术股份有限公司 | System and method for document distribution based on internet |
CN104378415A (en) * | 2014-10-29 | 2015-02-25 | 中国建设银行股份有限公司 | High-availability cloud system and achievement method based on information |
CN107105013A (en) * | 2017-03-28 | 2017-08-29 | 北京洋浦伟业科技发展有限公司 | Processing method, server, terminal and the system of file |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080109249A1 (en) * | 2004-10-21 | 2008-05-08 | Fair Share Digital Media Distribution | Digital media distribution and trading system used via a computer network |
-
2018
- 2018-10-29 CN CN201811267902.6A patent/CN109194993B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101446963A (en) * | 2008-12-31 | 2009-06-03 | 中国建设银行股份有限公司 | System for publishing information file of bank product and method |
CN101699816A (en) * | 2009-11-17 | 2010-04-28 | 上海华平信息技术股份有限公司 | System and method for document distribution based on internet |
CN104378415A (en) * | 2014-10-29 | 2015-02-25 | 中国建设银行股份有限公司 | High-availability cloud system and achievement method based on information |
CN107105013A (en) * | 2017-03-28 | 2017-08-29 | 北京洋浦伟业科技发展有限公司 | Processing method, server, terminal and the system of file |
Also Published As
Publication number | Publication date |
---|---|
CN109194993A (en) | 2019-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170070457A1 (en) | Multiplexed demand signaled distributed messaging | |
CN102655503B (en) | Use the Resourse Distribute in shared resource pond | |
US8650301B2 (en) | Adaptive data rate streaming in a peer-to-peer network delivering video content | |
CN109194993B (en) | Media file distribution method and file distribution platform | |
CN108023953B (en) | High-availability implementation method and device for FTP service | |
US7898993B2 (en) | Efficiency and resiliency enhancements for transition states in ad hoc networks | |
CN107404509B (en) | Distributed service configuration system and information management method | |
CN111131443B (en) | Task pushing method and system | |
CN108683730B (en) | Resource scheduling method, service server, client terminal, network system and medium | |
CN105554046A (en) | Scheduling method and apparatus of terminal request for content distribution system, and equipment | |
CN105656964B (en) | The implementation method and device of data-pushing | |
CN108156257A (en) | A kind of information-pushing method and device | |
CN114363963A (en) | Load balancing selection method and system for cloud-native UPF signaling plane | |
CN102387201A (en) | Method, device and system for processing service data | |
CN102780710A (en) | Node scheduling method based on content distribution network | |
CN110769023B (en) | Point-to-point content distribution network system based on intelligent home gateway | |
CN109218447B (en) | Media file distribution method and file distribution platform | |
CN107438098B (en) | Dynamic content distribution method and system | |
CN105516343B (en) | A kind of file-sharing implementation method of network dynamic self-organizing | |
CN112613919A (en) | Information processing method and related device | |
CN112925946B (en) | Service data storage method and device and electronic equipment | |
RU2522995C2 (en) | Method and apparatus for creating peer-to-peer group in peer-to-peer application and method of using peer-to-peer group | |
CN104168176B (en) | A kind of instant communication method, client, server and system | |
KR101251630B1 (en) | System and method for providing push service | |
US9003047B2 (en) | Optimizing electronic communication channels |
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 |