CN108155999A - The intelligent UDP Multicast Files dissemination system and method for machine contracting system are mended with TCP - Google Patents

The intelligent UDP Multicast Files dissemination system and method for machine contracting system are mended with TCP Download PDF

Info

Publication number
CN108155999A
CN108155999A CN201711449497.5A CN201711449497A CN108155999A CN 108155999 A CN108155999 A CN 108155999A CN 201711449497 A CN201711449497 A CN 201711449497A CN 108155999 A CN108155999 A CN 108155999A
Authority
CN
China
Prior art keywords
multicast
file
distribution
udp
reception
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711449497.5A
Other languages
Chinese (zh)
Other versions
CN108155999B (en
Inventor
罗建平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201711449497.5A priority Critical patent/CN108155999B/en
Publication of CN108155999A publication Critical patent/CN108155999A/en
Application granted granted Critical
Publication of CN108155999B publication Critical patent/CN108155999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention discloses a kind of band TCP mend machine contracting system intelligent UDP Multicast Files dissemination system, including:Multicast control terminal is used to after Multicast File is corresponded to generation delivery plans file send out;Multiple multicast distribution ends in real time monitor and obtain the delivery plans file and parse after according to analysis result from multicast control terminal download Multicast File to specified directory and will download complete Multicast File according to distribution mechanisms carry out multicast distribution;Multiple multicast reception terminals dock with multiple multicast distribution ends according to analysis result startup corresponding port after being used for the delivery plans file that real-time reception multicast control terminal is sent out and parsing and receive Multicast File;The reception state data of real-time statistics current multicast round Multicast File are uploaded to multicast control terminal and return to the scheduling result of Multicast File.The invention also discloses the intelligent UDP Multicast Files distribution methods that a kind of band TCP mends machine contracting system.Efficient between process and reliable data transmission can be realized using the method for the present invention.

Description

The intelligent UDP Multicast Files dissemination system and method for machine contracting system are mended with TCP
Technical field
The present invention relates to communication technique field, more particularly to a kind of band TCP mends the intelligent UDP Multicast Files distribution of machine contracting system System and method.
Background technology
In the prior art, the transport layer in most of operating systems all uses TCP (Transmission Control Protocol), to realize reliable point-to-point communication.When needing to realize the reliable communication between one group of process, most application layers On realization method be to the point-to-point connection between each process for communicating of each process foundation, it is clear that this process The communication mode of group consumes a large amount of bandwidth, less efficient.UDP is that (Open System Interconnection, are opened OSI Put the interconnection of formula system) a kind of connectionless transport layer protocol in reference model, although UDP multicasts can realize the group between process group It broadcasts, but cannot be guaranteed reliable data transmission.In addition, UDP packages are limited by data length, existing UDP multicasts are not Belong to stream transmission.
Invention content
It is an object of the invention to solve at least the above, and provide the advantages of at least will be described later.
It is a still further object of the present invention to provide a kind of band TCP mend machine contracting system intelligent UDP Multicast Files dissemination system and Method mends machine contracting system to make up the defects of UDP multicast reliabilities are relatively low by TCP, between realization process efficiently and reliable number According to transmission.
In order to realize these purposes and other advantages according to the present invention, the intelligence that a kind of band TCP mends machine contracting system is provided UDP Multicast File dissemination systems, including:
Multicast control terminal is used to after Multicast File is corresponded to generation delivery plans file send out;
Multiple multicast distribution ends are used to monitoring and obtaining the delivery plans file in real time;Parse the delivery plans File simultaneously downloads the Multicast File to specified directory from the multicast control terminal according to analysis result and will download what is completed The Multicast File carries out multicast distribution according to distribution mechanisms;
Multiple multicast reception terminals are used for the delivery plans file that multicast control terminal described in real-time reception is sent out, The delivery plans file is parsed, docked according to analysis result startup corresponding port with the multiple multicast distribution end and receives institute State Multicast File;The reception state data of Multicast File are uploaded to the multicast control terminal described in real-time statistics current multicast round And return to the scheduling result of the Multicast File:The scheduling result mends pack mode or deletion to continue multicast reception, opening TCP The Multicast File.
Preferably, the multicast control terminal further includes the human-computer interaction interface that distribution management software is concentrated to provide, and uses In setting the delivery plans file, the delivery plans file includes multicast distribution task list, multicast plan and UDP multicasts Service parameter.
Preferably, the multicast distribution task list, which further includes, deletes Multicast File operation interface, is used for the portion of deleting Divide Multicast File and its scheduling result is set simultaneously to delete the Multicast File;
The multicast distribution task list further includes file multicasting prioritized operation interface, is used for setting unit multicast text Part priority, so that partaof file is repeatedly cycled through in each multicast wheel second priority
Preferably, the distribution mechanisms are:Under specified directory, file is read by the multicast scaduled sequence, by association View form switchs to the UDP message packet with unique mark, then carries out multicast distribution according to the UDP multicast parameters of setting;
Wherein, UDP message packet includes multicast ip, multicast port number, bandwidth, sends initial time and send the termination time; The UDP multicast parameters have for broadcast serial number+Multicast File number+UDP message packet serial number+UDP message is surrounded by effect size of data+ Imitate data.
Preferably, multiple multicast distribution ends further include multicast distribution database:It is used to that multicast distribution text to be written in real time Distribution status, multicast round and each multicast round of part take, wherein, the Distribution status of the Multicast File includes multiple groups Broadcast the currently transmitted UDP message packet of access end and UDP message packet number that the multiple multicast reception terminal has currently received.
Preferably, the preset distance multicast end time for 24 hours when, recalculate the multicast end time, specially:
After the last one current completed multicast round of statistics, the missing data of the multiple multicast reception terminal always wraps Number and the mean received rate for often taking turns multicast:
Average received speed=current accumulative receives total packet number/multicast task duration, unit:Packet/s (or Bytes/s=1460* packets/s);
The total packet number/average received speed of new adding multicast time=missing data;
M- 24 hours during newest end time=predetermined multicast end time+new adding multicast;
Finally, the predetermined multicast end time is changed as the newest end time, generates new multicast project documentation, creates multicast Downloading task is sent to the multiple multicast reception terminal.
Preferably, multicast control terminal further includes multicast state back transfer interface, is connect for monitoring the multiple multicast in real time That receives terminal currently receives the real-time upload request of reception state data of the Multicast File, and the current file of the terminal is connect It receives status data and is written to multicast distribution dispatching database, the multicast state back transfer interface dispatches data from multicast distribution simultaneously The distribution scheduling result that this document is read in library returns to the multiple multicast reception terminal.
Preferably, under current multicast round, if multicast control terminal starts to receive the end of the Multicast File of some number After the reception state data at end, the reception state data of the new terminal are no longer received after at least 120s of interval, represent this multicast The return data of the round Multicast File has received.
Preferably, the data regular length of the UDP message packet is 1460, the missing data thresholding of single Multicast File Value SR be 20M, before current multicast round terminates or at the end of, if the total amount that should receive UDP message packet of the Multicast File with Difference≤SR* total number of terminals of the practical total amount for receiving UDP message packet of the multiple multicast reception terminal, then by multicast text The scheduling result of part is set as mending pack mode, i.e. the Multicast File will be transferred to TCP after next multicast round and mend pack mode;
Wherein, single Multicast File answers the total UDP message packet number of receiver packet number total amount=number of terminals * files;
The single practical receiver packet number total amount=sum of Multicast File (each terminal currently receives UDP message packet number);
Each multicast round should receive the total packet number=sum of Multicast File, and (it is total that single Multicast File should receive UDP message packet number Amount);
(the single practical reception UDP message packet number of Multicast File is total by the practical receiver packet number total amount=sum of each multicast round Amount).
A kind of band TCP mends the intelligent UDP Multicast Files distribution method of machine contracting system, which is characterized in that includes the following steps:
Multicast control terminal is sent out after Multicast File is corresponded to generation delivery plans file;
It monitors in real time and obtains the delivery plans file in multiple multicast distribution ends;
Multiple multicast distribution ends parse the delivery plans file and are downloaded according to analysis result from the multicast control terminal The Multicast File carries out multicast distribution to specified directory and by the Multicast File for downloading completion according to distribution mechanisms, The distribution mechanisms are:Under specified directory, file is read by the multicast scaduled sequence, switchs to the unique mark of band by protocol format Then the UDP message packet of knowledge carries out multicast distribution according to the UDP multicast parameters of setting;Wherein, UDP message packet include multicast ip, Multicast port number, bandwidth send initial time and send the termination time;The UDP multicast parameters are broadcast serial number+Multicast File Number+UDP message packet serial number+UDP message is surrounded by effect size of data+valid data;
The delivery plans file that multicast control terminal described in multiple multicast reception terminal real-time receptions is sent out, described in parsing Delivery plans file docks with the multiple multicast distribution end according to analysis result startup corresponding port and receives the multicast text Part;
The reception state data of Multicast File are uploaded to described in multiple multicast reception terminal real-time statistics current multicast rounds The multicast control terminal and the scheduling result for returning to the Multicast File:The scheduling result is continues multicast reception, opens TCP It mends pack mode or deletes the Multicast File;
Real-time reception multicast control terminal and the scheduling result for returning to the Multicast File mend pack mode if returning and opening TCP, Then TCP is transferred in next multicast round and mends pack mode, mend the UDP message packet for actually receiving last round of time after end-of-packet and epicycle Secondary TCP mends inclusion into the Multicast File.
The present invention includes at least following advantageous effect:Present system is reliable to make up UDP multicasts by TCP benefit machines contracting system The defects of property is relatively low, efficient between realization process and reliable data transmission;
Specially:Multicast control terminal is set, is used to send out and lead to after Multicast File is corresponded to generation delivery plans file It crosses HTTP reliable communicating modes and is sent to multiple multicast distribution ends and multiple multicast reception terminals, contain group in delivery plans file The multicast parameters of file are broadcast, and multicast state data is returned to obtain the multicasting schedule that multicast packet library returns by interface, into And it realizes and the multicast of Multicast File is controlled;
Multicast File, setting multicast priority can be deleted manually at each group in the human-computer interaction interface of multicast control terminal Wheel second priority is broadcast repeatedly to cycle through;Can multiple multicast tasks it is concurrent:If after a multicast task is sent out, need to increase new File, can be completed by new adding multicast task;
It can also be achieved dynamic or manual setting multicast end time:According to overall reception state, the multicast end time is adjusted, Ensure the efficient and accurate multicast transmission of Multicast File.
Part is illustrated to embody by further advantage, target and the feature of the present invention by following, and part will also be by this The research and practice of invention and be understood by the person skilled in the art.
Description of the drawings
Fig. 1 is the multicast distribution data for the intelligent UDP Multicast Files dissemination system that band TCP of the present invention mends machine contracting system Flow graph.
Specific embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings, to enable those skilled in the art with reference to specification text Word can be implemented according to this.
It should be appreciated that such as " having ", "comprising" and " comprising " term used herein do not allot one or more The presence or addition of a other element or combinations.Preferably, multicast distribution server address is further included in multicast control terminal List supports single choice or multiselect to be correspondingly arranged multiple multicast distribution ends of Multicast File.
The present invention provides the intelligent UDP Multicast Files dissemination system that a kind of band TCP mends machine contracting system, including:Multicast control terminal, It is used to after Multicast File is corresponded to generation delivery plans file send out;Multiple multicast distribution ends are used to monitor and obtain in real time Take the delivery plans file;Parse the delivery plans file and according to described in analysis result from multicast control terminal download Multicast File is to specified directory and will download the Multicast File completed according to distribution mechanisms progress multicast distribution;It is multiple Multicast reception terminal is used for the delivery plans file that multicast control terminal described in real-time reception is sent out, parses the delivery Project documentation docks with the multiple multicast distribution end according to analysis result startup corresponding port and receives the Multicast File; The reception state data of Multicast File described in real-time statistics current multicast round are uploaded to described in the multicast control terminal and return The scheduling result of Multicast File:The scheduling result is continues multicast reception, opens TCP benefit pack modes or deletes multicast text Part.
In said program, sent out after Multicast File is corresponded to generation delivery plans file by multicast control terminal, the throwing Project documentation is passed to be transmitted to multiple multicast distribution ends and multiple multicast reception ends, Bu Huifa by HTTP reliable communicating modes The raw situation for losing data, and multiple multicast distribution ends carry out multicast by HTTP downloaders according to the delivery plans file of parsing The download of file, guarantee will not download error, just pass through phase by multiple multicast distribution ends and multiple multicast reception terminals later Answer gateway establish UDP multicast communications connection, to realize UDP multicasts, it would be desirable to Multicast File be sent to the multicast reception specified Terminal.
In one preferred embodiment, the multicast control terminal further includes human-computer interaction circle that distribution management software is concentrated to provide Face, is used to setting the delivery plans file, the delivery plans file include multicast distribution task list, multicast plan and UDP multicast services parameters.
In one preferred embodiment, the multicast distribution task list, which further includes, deletes Multicast File operation interface, is used for It deletes partaof file and its scheduling result is set simultaneously to delete the Multicast File;The multicast distribution task list also wraps File multicasting prioritized operation interface is included, is used for setting unit Multicast File priority, so that partaof file is every A multicast wheel second priority repeatedly cycles through
In one preferred embodiment, the distribution mechanisms are:Under specified directory, text is read by the multicast scaduled sequence Part switchs to the UDP message packet with unique mark by protocol format, then carries out multicast distribution according to the UDP multicast parameters of setting;
Wherein, UDP message packet includes multicast ip, multicast port number, bandwidth, sends initial time and send the termination time; The UDP multicast parameters have for broadcast serial number+Multicast File number+UDP message packet serial number+UDP message is surrounded by effect size of data+ Imitate data.
In one preferred embodiment, multiple multicast distribution ends further include multicast distribution database:It is used to that multicast to be written in real time Distribution status, multicast round and each multicast round of distribution of document take, wherein, the Distribution status of the Multicast File includes The UDP message packet that the currently transmitted UDP message packet in multiple multicast distribution ends and the multiple multicast reception terminal have currently received Number.
In one preferred embodiment, the preset distance multicast end time for 24 hours when, recalculate the multicast end time, specially:
After the last one current completed multicast round of statistics, the missing data of the multiple multicast reception terminal always wraps Number and the mean received rate for often taking turns multicast:
Average received speed=current accumulative receives total packet number/multicast task duration, unit:Packet/s (or Bytes/s=1460* packets/s);
The total packet number/average received speed of new adding multicast time=missing data;
M- 24 hours during newest end time=predetermined multicast end time+new adding multicast;
Finally, the predetermined multicast end time is changed as the newest end time, generates new multicast project documentation, creates multicast Downloading task is sent to the multiple multicast reception terminal.
In one preferred embodiment, multicast control terminal further includes multicast state back transfer interface, the multiple for monitoring in real time The real-time upload request of reception state data for currently receiving the Multicast File of multicast reception terminal, and by the current of the terminal File reception status data is written to multicast distribution dispatching database, and the multicast state back transfer interface is simultaneously from multicast distribution tune The distribution scheduling result that this document is read in degrees of data library returns to the multiple multicast reception terminal.
In one preferred embodiment, under current multicast round, if multicast control terminal starts to receive the multicast text of some number After the reception state data of the terminal of part, the reception state data of the new terminal are no longer received after at least 120s of interval, are represented The return data of this multicast round Multicast File has received.
In one preferred embodiment, the data regular length of the UDP message packet is 1460, the missing number of single Multicast File Be 20M according to threshold value SR, before current multicast round terminates or at the end of, if the Multicast File should receive UDP message packet Difference≤SR* total number of terminals of total amount and the practical total amount for receiving UDP message packet of the multiple multicast reception terminal, then by described in The scheduling result of Multicast File is set as mending pack mode, i.e. the Multicast File will be transferred to TCP after next multicast round and mend Bao Mo Formula;
Wherein, single Multicast File answers the total UDP message packet number of receiver packet number total amount=number of terminals * files;
The single practical receiver packet number total amount=sum of Multicast File (each terminal currently receives UDP message packet number);
Each multicast round should receive the total packet number=sum of Multicast File, and (it is total that single Multicast File should receive UDP message packet number Amount);
(the single practical reception UDP message packet number of Multicast File is total by the practical receiver packet number total amount=sum of each multicast round Amount).
A kind of band TCP mends the intelligent UDP Multicast Files distribution method of machine contracting system, which is characterized in that includes the following steps:
Multicast control terminal is sent out after Multicast File is corresponded to generation delivery plans file;
It monitors in real time and obtains the delivery plans file in multiple multicast distribution ends;
Multiple multicast distribution ends parse the delivery plans file and are downloaded according to analysis result from the multicast control terminal The Multicast File carries out multicast distribution to specified directory and by the Multicast File for downloading completion according to distribution mechanisms, The distribution mechanisms are:Under specified directory, file is read by the multicast scaduled sequence, switchs to the unique mark of band by protocol format Then the UDP message packet of knowledge carries out multicast distribution according to the UDP multicast parameters of setting;Wherein, UDP message packet include multicast ip, Multicast port number, bandwidth send initial time and send the termination time;The UDP multicast parameters are broadcast serial number+Multicast File Number+UDP message packet serial number+UDP message is surrounded by effect size of data+valid data;
The delivery plans file that multicast control terminal described in multiple multicast reception terminal real-time receptions is sent out, described in parsing Delivery plans file docks with the multiple multicast distribution end according to analysis result startup corresponding port and receives the multicast text Part;
The reception state data of Multicast File are uploaded to described in multiple multicast reception terminal real-time statistics current multicast rounds The multicast control terminal and the scheduling result for returning to the Multicast File:The scheduling result is continues multicast reception, opens TCP It mends pack mode or deletes the Multicast File;
Real-time reception multicast control terminal and the scheduling result for returning to the Multicast File mend pack mode if returning and opening TCP, Then TCP is transferred in next multicast round and mends pack mode, mend the UDP message packet for actually receiving last round of time after end-of-packet and epicycle Secondary TCP mends inclusion into the Multicast File.
Embodiment 1
First, multicast control terminal:Distribution management software (calling backstage in the following text) is concentrated to provide interactive maintenance interface (as shown in Figure 1)
1. operation flow and logic:First create multicast distribution server list, multicast distribution listed files;Then establishment group Distributed tasks are broadcast, multicast parameters are set;Publication activation multicast distribution task;Inquiry, monitoring group broadcasting distributed tasks state
2. multicast distribution listed files:There are two types of sources for multicast distribution file:One kind is that matchmaker provides file, and text is provided from matchmaker Part list (provides file storage path) comprising matchmaker.Another kind is to specify other file directorys, the mesh on file server Record.
File server request:With net reading and writing permission.Typical file server is configured:Web+php environment.
Had begun in multicast task, but not at the end of, the list in multicast task can be edited, from multicast distribution list Middle deletion file.(but file cannot be increased, new multicast task need to be created by increasing file).After having performed delete operation, need by This document scheduling result in the multicast task scheduling database is set to 2.
Supplement:Because original multicast distribution listed files operate it is unfriendly, therefore to multicast distribution listed files establishment be changed to Lower two ways:
Multicast distribution listed files creates mode;The establishment business of current multicast distribution of document list is patrolled under modification and perfection Volume:
Explanation:" newly-increased " button, it is changed to " newly-increased matchmaker provides listed files ";
" generation listed files " is changed to " increasing other catalogue file lists newly "
Increase other catalogue file lists newly, can by " increase newly other catalogue file lists " on interactive maintenance interface, It realizes, illustrates:
1) " preference file number " field value is set as 1;
2) " select file " button is clicked, lists all catalogues and file under source file path;
3) after user chooses file, statistics chooses total number of files;The information such as respective file path, are compressed into respective file One compressed package;Compressed package is stored under source file path;【Preserve compressed package storage path】
4) this is arrived, alternative document catalogue file list creating finishes;
5) it increases newly in other catalogue file lists, increases an input item:Decompression order.For drop-down option.At present only One option.
3.【M_group_distribution_task.php models】When creating multicast task;
1) multicast task is created, after clicking publication multicast task button, multicast task scheduling json files are 1. generated, solution Compress order is written in json files;2. the caching task and the caching task that generate json files are detailed;3. generate compressed package Caching task and caching task it is detailed;
2) when creating multicast task and generating caching task, lower differentiation to be done here for gateway grouping, be multicast point Send out server grouping or multicast reception grouping【M_gateway_group.php can be distinguished when creating and being grouped】, json texts Part mission dispatching object:Multicast distribution server is grouped and multicast reception grouping;The caching mission dispatching object of compressed package:Multicast Distributor is grouped;
3) so far, the compressed package mission dispatching of json files and other catalogue files finishes;
4. multicast task and gateway grouping:Many-one relationship
1) in multicast distribution task model, gateway grouping is changed to support multiselect;
3) " mission number " field change coding rule, is changed to renumber since 00000001, from increasing;
3) " caching mission number " field, " caching mission number " coding rule are added:Several groupings are selected, then are generated Several numbers;The caching mission number is from " caching task【m_cache_task.php】" caching mission number be numbered, From increasing;
It is 4) detailed with " caching mission number " the corresponding caching task of generation in multicast distribution task and caching task, Include json files and compressed package files;
Above modification is first developed and is tested on go3c, after test passes through, then is deployed on Ali's cloud.
5. changing matchmaker provides file multicasting distribution of document list service logic
File model, which is provided, first with former matchmaker completes new matchmaker's money file importing, explanation:
1) it needs to increase a batch import function, the .xls matchmaker of specified format is provided listed files imports;
2) in existing matchmaker provides file model, increase matchmaker's money file chooses function;And offer can selection operation after choosing: " generation multicast distribution listed files " and " generation caching task is detailed ".
3) in existing matchmaker provides file model, increase the data item that matchmaker provides file:Provider
4) increase screening item and search terms:Destination path, download path, file destination name, file type can be based on to carry out Screening;And it can scan for;
5) selection " generation multicast distribution listed files " is then arranged with choosing the multicast distribution file that file enters above Table New any;
6) selection " generation caching task is detailed ", then it is bright into newly-increased " newly-built a batch " caching task with file is chosen Carefully.
2nd, multiple multicast distribution ends:
1. multicast distribution task management
Data item:
Multicast distribution project documentation:Acquiescence is created according to schedule+ multicast task id+ current times, editable.
Gateway is grouped:The corresponding gateway grouping of this multicast distribution task, can multiselect.It is grouped and selects from existing gateway, only Gateway terminal under the gateway grouping chosen can just receive this multicast distribution task.
Multicast distribution listed files:It is chosen from the multicast distribution listed files editted, should support single choice, multiselect.
Multicast distribution server:(IP address or domain name) is chosen from the multicast distribution server list of backstage typing, branch Hold single choice, multiselect.Such as:202.193.1.24
Multicast address+port numbers:The multicast address and port numbers of this task are specified, there should be uniqueness.
Multicast bandwidth:The bandwidth of this multicast task is set, as unit of K, is filled in manually.
Time started:At the beginning of this multicast task, " 2017-03-29 12:00:00”
End time:The end time of this multicast task, " 2017-04-29 23:59:59”.
N (multicast distribution data packet file data regular length):1460
SR (single file missing data threshold value):As unit of M, fill in manually.Representative value:20M
Priority documents cycle-index:It fills in manually, representative value 5, value range:1-256
Terminal reception state returns url:Public network IP address can be domain name.
Operation:Increase, edit, delete, manually boot, close, suspend.
It deletes:Multicast task is not issued, has terminated multicast task, is directly deleted;Etc. multicast task to be launched, also need to delete Except caching task;
Multicast task in multicast, in pause, also needs the All Files dispatch state value in multicast task being set to 2 (i.e. It deletes);
Pause:It is only effective to the task in multicast, All Files dispatch state value in multicast task is set as 3 (newly-increased one A value, 3 suspend).
2. multicast task status is inquired
Data item
UDP multicast distribution server downloading task performances:With original downloader
UDP multicast distribution server multicast distribution states:
Multicast round:It is that display is currently ongoing for which round,
Epicycle has completed Multicast File:
Just in Multicast File:
Practical multicast bandwidth:
N (effective data packets regular length):1460
SR (single file missing data threshold value):20M
Upper wheel multicast takes:hours
Each video file state that terminal UDP is received:
File name:
Size:
Multicast round:Dispatching database extraction on UDP multicast distribution servers.
Percent Complete:Ibid.
Multicast distribution file reception is detailed
" multicast distribution file reception is detailed " model, for showing, inquiring each file reception state of each gateway.
Multicast reception file status display logic is as follows:
The reception state of each each file of terminal is obtained (in 2.5.1 interfaces) from database, and with reference to scheduling result Display
In multicast;File reception does not complete, and corresponding scheduling result is 0;
It mends in packet:File reception does not complete, and corresponding scheduling result is 1;
It deletes:Corresponding scheduling result is 2;
Pause:Corresponding scheduling result is 3;
It completes:File reception has been completed.
3. multicast distribution background program
1) generation of multicast distribution file download sequence and transmission
After issuing multicast task, while generate multicast distribution file download sequence and downloaded for multicast distribution server.Its industry Logic of being engaged in is as follows:
Matchmaker provides listed files processing:The each matchmaker directly provided for matchmaker under listed files provides file, selects multicast distribution service Device group, creates caching task id and caching task is detailed.It is downloaded for multicast distribution server by downloader.
Other catalogue file lists:A caching task id and caching are created for this catalogue file list compressed package files Task detail is downloaded for multicast distribution server by downloader.
2) generation of multicast distribution project documentation and transmission
Multicast distribution project documentation form defines
File designation:Schedule+id+ current times .txt (or json), such as:schedule0001- Mono- multicast task of 20170107141000.txt, may change the multicast end time, therefore have multiple multicast distribution meters Draw file.The id of the multicast distribution project documentation of same multicast task must be identical.
Data format:
Example:
{"bburl":"192.168.1.150:1088","groups":[{"id":"00002.0015","cnt":" 3"}],"addr":"234.1.2.3","port":"10000","url":"120.27.138.55:8060","start":" 2017-05-04 11:25:59","end":"2017-05-0414:05:46","len":"1440","SR":"2"," repeat":"3","count":"12","prority":"4","medias":[{"path":"\/data\/media\/ vodfiles\/001\/","Id":"00000001","name":"\u547c\u53eb\u52a9\u4ea7\u58eb\ u7b2c1\u5b63-01.mp4","size":"136898926","md5":"","f_fileid_id":"681","pkgs":" 1"},{"path":"\/data\/media\/vodfiles\/001\/","Id":"00000003","name":"\u547c\ u53eb\u52a9\u4ea7\u58eb\u7b2c1\u5b63-03.mp4","size":"136870959","md5":"","f_ fileid_id":"683","pkgs":"1"},{"path":"\/data\/media\/vodfiles\/001\/","Id":" 00000004","name":"\u547c\u53eb\u52a9\u4ea7\u58eb\u7b2c1\u5b63-04.mp4"," size":"136179764","md5":"","f_fileid_id":"684","pkgs":"1"},{"path":"\/data\/ media\/vodfiles\/001\/","Id":"00000002","name":"\u547c\u53eb\u52a9\u4ea7\ u58eb\u7b2c2\u5b63-02.mp4","size":"115733416","md5":"","f_fileid_id":"688"," pkgs":"1"},{"path":"\/data\/media\/vodfiles\/001\/","Id":"00000003","name":"\ u547c\u53eb\u52a9\u4ea7\u58eb\u7b2c2\u5b63-03.mp4","size":"137483356"," md5":"","f_fileid_id":"689","pkgs":"1"},{"path":"\/data\/media\/vodfiles\/ 001\/","Id":"00000005","name":"\u547c\u53eb\u52a9\u4ea7\u58eb\u7b2c2\u5b63- 05.mp4","size":"137155455","md5":"","f_fileid_id":"691","pkgs":"1"},{" path":"\/data\/media\/vodfiles\/001\/","Id":"00000007","name":"\u547c\u53eb\ u52a9\u4ea7\u58eb\u7b2c2\u5b63-07.mp4","size":"137786165","md5":"","f_fileid_ id":"693","pkgs":"1"},{"path":"\/data\/media\/vodfiles\/001\/","Id":" 00000006","name":"\u547c\u53eb\u52a9\u4ea7\u58eb\u7b2c2\u5b63-01.mp4"," size":"115102142","md5":"","f_fileid_id":"1037","pkgs":"1"},{"path":"\/data\/ media\/vodfiles\/001\/","Id":"00000009","name":"\u547c\u53eb\u52a9\u4ea7\ u58eb\u7b2c2\u5b63-04.mp4","size":"137379815","md5":"","f_fileid_id":"1040"," pkgs":"1"},{"path":"\/data\/media\/vodfiles\/001\/","Id":"00000011","name":"\ u547c\u53eb\u52a9\u4ea7\u58eb\u7b2c2\u5b63-06.mp4","size":"137511988"," md5":"","f_fileid_id":"1042","pkgs":"1"},{"path":"\/data\/media\/vodfiles\/ 001\/","Id":"00000013","name":"\u547c\u53eb\u52a9\u4ea7\u58eb\u7b2c2\u5b63- 08.mp4","size":"137314297","md5":"","f_fileid_id":"1044","pkgs":"1"},{" path":"\/data\/media\/vodfiles\/001\/","Id":"00000014","name":"\u547c\u53eb\ u52a9\u4ea7\u58eb\u7b2c2\u5b63-09.mp4","size":"136776511","md5":"","f_fileid_ id":"1045","pkgs":"1"}]}
File generated
File generated logic:
* when creating preservation multicast distribution task, generation multicast distribution project documentation is calculated by above-mentioned form from the background.
* if when providing file distributing list there are multiple matchmakers in multicast distribution task, preference file number, cycle-index are from the One matchmaker provides to be obtained in file distributing list;If only other catalogue file lists when, preference file number is set to 1 and (compresses APMB package quantity), cycle-index is also set to 1.
* during multicast distribution after edit session, an identical id but the different new distribution meter of timestamp will be generated by preserving Draw file.
* by the multicast distribution scheduler program dynamic adjustment end time after, generate an identical id but different new of timestamp Distribution schedule creation file.
File is sent
Multiple caching tasks are created for multicast distribution project documentation, correspond to multicast distribution server group and all receptions respectively End packet, so that the multicast distribution server group in this multicast distribution task and all reception set of terminal are connect by downloader Receive multicast distribution project documentation.
4) multicast distribution statistics and scheduling
Service logic
Statistics:After multicast distribution task starts, called every checkmsdtime (unit s, default value 60) Checkmdstatus interface polls multicast distribution service state interfaces, get parms write-in multicast distribution database.
Meanwhile reading data in real-time library, it counts under current multicast round, has sent file and (judged by sendflag:1 To have sent, 0 is not send) the packet number that has currently received of each terminal.
Single file answers the total packet number of receiver packet number total amount=number of terminals * files
The practical receiver packet number total amount=sum of single file (each current receiver packet number of terminal)
Each multicast round should receive the total packet number=sum of file (single file answers receiver packet number total amount)
Each practical receiver packet number total amount=sum of multicast round (the practical receiver packet number total amount of single file)
Each multicast round takes (unit:Hour):Multicast distribution state interface is called to obtain, and retains historical data.
Average received speed=current accumulative receives total packet number/multicast task duration, unit:Packet/s (or Bytes/s=1460* packets/s)
Scheduling:According to statistical result, based on following strategy, multicast distribution scheduling is carried out to this document in real time:
If the total amount that should receive of this document is less than or equal to SR* total number of terminals with the practical difference for receiving total amount of terminal, This document scheduling result is set as 1, that is, represents that this document will be transferred to TCP after next multicast round and mend pack mode.
During apart from multicast job end time checktime (acquiescence 24 hours), the last one completed multicast is counted Round, the mean received rate of all total packet numbers of terminal missing data and often wheel multicast recalculate the multicast end time:
The total packet number/average received speed of new adding multicast time=missing data
M- 24 hours during newest end time=end time last time+new adding multicast
Then, the multicast end time is changed, generates new multicast project documentation, downloading task is created, is sent to all mesh Mark terminal.
(note:When gateway, which is grouped lower gateway quantity, to change, statistics and scheduling also need to adjust.)
4. terminal reception state back transfer interface is realized
File transmission sync cap modification based on former downloader (HTTP downloaders), increases a multicast distribution association View.
The current of all terminals is monitored in real time receives the real-time upload request of file reception status data, and working as the terminal Preceding document reception state data are written to multicast distribution dispatching database.
Under current multicast round, if after starting to receive the terminal reception state data of some number file, interval one After section time (tdurtime, unit second, default value 120s) no longer receives new terminal status data, by the sendts of this document It is set to 1;Represent that the return data of this multicast round this document has received.
The distribution scheduling result that interface reads this document from database simultaneously returns to terminal.
Scheduling result is:0:Continue multicast reception;1, which opens TCP, mends pack mode;2 delete this document.
5. multicast distribution dispatch interface is realized
The file distributing scheduling request of multicast Distributor is monitored in real time, and scheduling result is returned into multicast distribution clothes Business device.
6. multicast distribution database designs
Global parameter
Multicast distribution server address:(IP address or domain name) is selected from the multicast distribution server list of backstage typing It takes, supports single choice, multiselect.Such as:202.193.1.24
Multicast address+port numbers:The multicast address and port numbers of this task are specified, there should be uniqueness.
Multicast bandwidth:The bandwidth of this multicast task is set, as unit of K, is filled in manually.
Time started:At the beginning of this multicast task, " 2017-03-29 12:00:00”
End time:The end time of this multicast task, " 2017-04-29 23:59:59”.
N (multicast distribution data packet file data regular length):1460
SR (single file missing data threshold value):As unit of M, fill in manually.Representative value:20M
Priority documents cycle-index:It fills in manually, representative value 5, value range:1-256
Multicast reception state loop back address url:
Multicast distribution service status data library:
Last multicast round takes
Current multicast round
The current multicast round time started
Currently transmitted reference number of a document and udp Bale No.s
Real-time transmission bandwidth
Multicast distribution dispatching database
Multicast round
Reference number of a document
Transmission state
Gateway is numbered
It is accumulative that current file has received packet
Lack Bale No. sequence
Current file packet sum
Completion status
Scheduling result
Average received speed
7.UDP multicast distribution softwares
1) multicast distribution file download
UDP multicast distributions file download uses original gateway downloads device download distribution file.
(note:Sync cap is transmitted containing file)
2) multicast distribution master scheduling
Service logic
Initialization:It is read under to specified directory and parses multicast distribution project documentation, multicast distribution parameter is set, determines group Broadcast whether distribution of document downloads completion.If completed, then created a directory with the multicast task names, such as:\task\ mtask201703291208。
And following subdirectory is created under the catalogue:
Multicast, // Multicast File catalogue
Finish, // complete multicast task after file storage, while for mend packet obtain.
Then the file that will distribute renumber be moved to multicast, by distribution schedule creation start or close multicast Distribute broadcast module;
Initialize distribution scheduling database simultaneously;
Start multicast distribution back transfer interface;
Detection confirms that web issuing functions are normal.
Scheduling
In each multicast round, file is sent according to reference number of a document sequence.
Before sending file every time, to background query this document scheduling result:
If it is 0, continue multicast;
If it is 1, multicast and broadcast catalogue, no longer multicast are removed after this document has been sent;
If it is 2, this document is directly removed to multicast and broadcast catalogue;
If it is 3, suspend all multicasts;Continue poll file status, after being non-3 there are one the state of file, With regard to restoring multicast.For example, assuming that current multicast round is 8, the scheduling result for detecting 358 number files at this time is 1, then the 9th After wheel, by 358 number files from multicast be moved to multicast task complete catalogue finish.
3) multicast distribution file broadcast
UDP multicast distribution packet protocols
When doing file multicasting distribution, by file division be regular length UDP packets, wherein wrapping a length of (1+1+2+4+2+2 +N+4)。
Realize logic
Initialization:Multicast ip is set, port numbers, bandwidth, initial time is sent, sends termination time, source file path, hair Total number of files, priority documents quantity, priority documents is sent to repeat playing the parameters such as number
Logic is realized in subpackage:
It reads file, create packet header, file data by distribution packet protocol form, form the UDP number of files with unique mark According to packet;
UDP multicasts are sent:First judge whether in effective sending time, be, according to the bandwidth calculation number per second that should be sent According to packet number, then socket multicasts function is called to send udp packets.
Documents Logical:First do the transmission of priority documents partial circulating.Then multicast systemic circulation is done again.
Output parameter:Current multicast round, reference number of a document, udp Bale No.s
4) http mends packet module
When some file by master scheduler be moved to finish catalogue, while web services open after, this document To provide benefit packet service for terminal.
A multicast reception terminal more than three:Terminal receives software
1. service logic
1) it creates work path and environment, parses delivery plans file
First, working directory multicastrecv is established;Delivery plans file is received by original gateway communication interface After schedule-20170107141000.txt (or json), multicast address and port numbers that video files issue are parsed, The parameters such as video files title, reference number of a document, md5 values, time of delivery plan, multicast reception state loop back address.For each text Part number creates interim reception subdirectory:Reference number of a document, and create index file under catalogue:Reference number of a document .index.Example Such as:The reference number of a document that the positive transmitting file of Ah sweet is resolved in delivery plans file is 1, and total packet number is 675950, then creates Zi Mulu 1, and create 1.index under catalogue.
(note:Because local data base should be also written in multicast reception file, because former downloader only parses former downloading task)
2) UDP packets are received, organize tmp files and index files.
Then, start UDP receiving modules, receive corresponding multicast address and port numbers, and the UDP message packet that will be received Composing document according to the following rules:
Parsing packet mark first, extraction multicast round, reference number of a document (such as 3008) and packet serial number (such as 3569), Bao Wen Then part size of data first judges whether tmp files corresponding with reference number of a document, is not present, then creates.In the presence of then writing Enter.
After detecting that the reference number of a document in data packet is replaced, represent that current file multicast is over, start next File reception.Reference number of a document .index files are written into (such as in statistics this document data accepted packet sum at this time 3008.index), and record still lacked after current multicast round Bale No. sequence (such as:98000,53,105, 348,.....)。
3) current file reception state is returned in real time
Passback is called with mending packet module, by the current receiver packet number for receiving file plus multicast task id, gateway number, Current multicast round, reference number of a document are uploaded to multicast distribution server.Such as:{0001,0000013.00001,6,3008, 98000}。
4) file completely judges and handles
After upload, file integrality judgement is carried out:If currently total receiver packet number of reception file and the reality of file are total Packet number is identical, shows that this document has received, then the tmp files that this document is numbered are combined into practical video files (will have MD5 verifies option), it is moved to the catalogue that delivery plans file is specified.
There is missing to wrap if currently receiving file, monitor back transfer interface, if the data that back transfer interface returns are 0, table Show and continue to wait multicast reception.If it is 1, then it represents that start and mend packet reception pattern.
5) packet is mended to receive
Into mend packet receive after, by the benefit packet address got from delivery plans file (such as:\203.19.10.4\ Packetfill) plus current file number initiate mend packet request.Such as:http:\\203.19.10.4\packetfill\ 3008.Then this document is parsed, the bag data of missing is generated under corresponding tmp files to subdirectory, performs file above It is complete to judge and handle.
6) processing after groupcast time
When the multicast end time to after, first detect, update delivery plans file, see whether the end time has update.Such as Fruit has update, then is updated to the new end time, continues to multicast.
If in addition, in multicast reception effective time, (10 minutes) do not receive multicast packets for a long time, also need detection, more New delivery plans file.If there is update, then the new end time is updated to.
It is being confirmed as after the newest end time arrives, the file performed above to all interim reception subdirectories is completely being sentenced Disconnected and processing.
2. interface
1) file transmission sync cap (php)
Provider:From the background
Called side:Terminal receives program
Interface specification:Sync cap is transmitted using the file of former downloader, increases multicast distribution agreement.
Terminal receives program after by udp multicast reception current files, calls this interface, in real time works as the terminal Preceding document reception state returns to backstage.In addition, opening TCP in terminal mends pack mode, and completes after mending job contract work, also need to call Completion status is notified backstage by the interface.
The current multicast that all terminals are monitored on backstage in real time receives the real-time upload request of file reception status data, and should The current file reception state data of terminal are written to multicast distribution dispatching database.
Under current multicast round, if after starting to receive the terminal reception state data of some number file, interval one It, will be in this document database after section time (tdurtime, unit second, default value 120s) no longer receives new terminal status data Sendts parameters be set to 1;(represent that the return data of this multicast round this document has received.)
The distribution scheduling result that this document is read on backstage from database simultaneously returns to terminal.
Scheduling result is:0:Continue multicast reception;1, which opens TCP, mends pack mode.
Interface IP address:http://120.27.138.55:8060/pivosboss/api/php/php_multicast_ report.php
Request method:post
Content:Param='{ " f_id ":"00000066","f_uuid":"0000013.","round":"2","f_ file_id":"633","received_package":"5"}';
It uploads data and uses json forms:
{ multicast task id, gateway are numbered, multicast round, reference number of a document, receiver packet number }
Such as 0001,0000013.01001,2,3002,30870,1,5,60060 ... }
Explanation:Multicast task 0001, the gateway that number is 0000013.01001 are current to receive after the 2nd takes turns multicast Reference number of a document for 3002, have been received by 30870 packets.
It is called if mending when packet is completed, multicast wheel sub-value is set as 0 at this time.
Return to interface:0、1、2、3.0 represents to continue multicast reception;1 represents that opening benefit packet receives;2 represent to delete this document; 3 represent the paused multicast this document in multicast end.
2) multicast distribution dispatch interface is realized
Provider:From the background
Called side:Multicast distribution program
Interface specification:Multicast distribution scheduler program according to reference number of a document periodic polling, calls this to connect in each multicast round Mouth obtains the scheduling result of this document.
Interface IP address:http://120.27.138.55:8060/pivosboss/api/php/php_ distribution_schedul.php
Request method:post
It uploads data and uses json forms:{ multicast distribution server UUID, multicast task id, multicast round, file are compiled Number, such as:{000038.0001,0001,2,3002}
Explanation:Multicast task the 0001, the 2nd takes turns multicast, reference number of a document
Return to interface:0、1、2、3.0 represents to continue multicast;1 represents to stop multicast;2 represent to delete this document;3 represent temporary Stop multicast this document.
3) multicast distribution broadcast state query interface
Provider:From the background
Called side:Multicast distribution program
Interface specification:Periodically (can set, be defaulted as per second) reports multicast distribution server current to multicast distribution server Transmission state.After backstage is connected to data, write-in database supplies multicast distribution server state query calls.
Interface IP address:http://120.27.138.55:8060/pivosboss/api/php/php_ distribution_status.php
Request method:Post
It uploads data and uses json forms:
{ multicast distribution server UUID, multicast task id, current multicast round have sent number of files, currently transmitted file Number, currently transmitted Bale No., practical multicast bandwidth, upper wheel multicast take (unit:S), the epicycle time started }
Such as { 000038.0001,0001,3,24,58,890,989000,29808,2017-04-24 17:23:34 } it returns Tieback mouth:0 or 1.0 failure, 1 success.
Although the embodiments of the present invention have been disclosed as above, but its be not restricted in specification and embodiment it is listed With it can be fully applied to various fields suitable for the present invention, for those skilled in the art, can be easily Realize other modification, therefore under the universal limited without departing substantially from specification and equivalency range, the present invention is not limited to Specific details and legend shown and described herein.

Claims (10)

1. a kind of band TCP mends the intelligent UDP Multicast Files dissemination system of machine contracting system, which is characterized in that including:
Multicast control terminal is used to after Multicast File is corresponded to generation delivery plans file send out;
Multiple multicast distribution ends are used to monitoring and obtaining the delivery plans file in real time;Parse the delivery plans file And the Multicast File is downloaded to specified directory from the multicast control terminal according to analysis result and will be downloaded described in completion Multicast File carries out multicast distribution according to distribution mechanisms;
Multiple multicast reception terminals are used for the delivery plans file that multicast control terminal described in real-time reception is sent out, parsing The delivery plans file starts corresponding port according to analysis result and is docked with the multiple multicast distribution end and receive described group Broadcast file;The reception state data of Multicast File described in real-time statistics current multicast round are uploaded to the multicast control terminal and return Return the scheduling result of the Multicast File:The scheduling result is continues multicast reception, opens TCP benefit pack modes or deletes the group Broadcast file.
2. the intelligent UDP Multicast Files dissemination system as described in claim 1 that machine contracting system is mended with TCP, which is characterized in that described Multicast control terminal further includes the human-computer interaction interface that distribution management software is concentrated to provide, and is used to set the delivery plans text Part, the delivery plans file include multicast distribution task list, multicast plan and UDP multicast services parameters.
3. the intelligent UDP Multicast Files dissemination system as claimed in claim 2 that machine contracting system is mended with TCP, which is characterized in that described Multicast distribution task list, which further includes, deletes Multicast File operation interface, is used to delete partaof file and sets it simultaneously Scheduling result is deletes the Multicast File;
The multicast distribution task list further includes file multicasting prioritized operation interface, and it is excellent to be used for setting unit Multicast File First grade, so that partaof file is repeatedly cycled through in each multicast wheel second priority.
4. the intelligent UDP Multicast Files dissemination system as claimed in claim 2 that machine contracting system is mended with TCP, which is characterized in that described Distribution mechanisms are:Under specified directory, file is read by the multicast scaduled sequence, is switched to by protocol format with unique mark Then UDP message packet carries out multicast distribution according to the UDP multicast parameters of setting;
Wherein, UDP message packet includes multicast ip, multicast port number, bandwidth, sends initial time and send the termination time;It is described UDP multicast parameters are surrounded by effect size of data+significant figure for broadcast serial number+Multicast File number+UDP message packet serial number+UDP message According to.
5. the intelligent UDP Multicast Files dissemination system as claimed in claim 4 that machine contracting system is mended with TCP, which is characterized in that multiple Multicast distribution end further includes multicast distribution database:It is used for Distribution status, multicast round that multicast distribution file is written in real time It is taken with each multicast round, wherein, the Distribution status of the Multicast File includes the currently transmitted UDP in multiple multicast distribution ends The UDP message packet number that data packet and the multiple multicast reception terminal have currently received.
6. the intelligent UDP Multicast Files dissemination system as claimed in claim 5 that machine contracting system is mended with TCP, which is characterized in that distance The predetermined multicast end time for 24 hours when, recalculate the multicast end time, specially:
After the last one current completed multicast round of statistics, the total packet number of missing data of the multiple multicast reception terminal with Often take turns the mean received rate of multicast:
Average received speed=current accumulative receives total packet number/multicast task duration, unit:Packet/s;
The total packet number/average received speed of new adding multicast time=missing data;
M- 24 hours during newest end time=predetermined multicast end time+new adding multicast;
Finally, the predetermined multicast end time is changed as the newest end time, generates new multicast project documentation, creates multicast download Task is sent to the multiple multicast reception terminal.
7. the intelligent UDP Multicast Files dissemination system as described in claim 1 that machine contracting system is mended with TCP, which is characterized in that multicast Control terminal further includes multicast state back transfer interface, for monitoring described group of the currently reception of the multiple multicast reception terminal in real time The real-time upload request of reception state data of file is broadcast, and the current file reception state data of the terminal are written to multicast point Dispatching database is sent out, the multicast state back transfer interface reads the distribution tune of this document from multicast distribution dispatching database simultaneously Degree result returns to the multiple multicast reception terminal.
8. the intelligent UDP Multicast Files dissemination system as claimed in claim 7 that machine contracting system is mended with TCP, which is characterized in that working as Under preceding multicast round, if after multicast control terminal starts to receive the reception state data of the terminal of the Multicast File of some number, The reception state data of the new terminal are no longer received after at least 120s, represent the passback number of this multicast round Multicast File According to having received.
9. the intelligent UDP Multicast Files dissemination system as claimed in claim 5 that machine contracting system is mended with TCP, which is characterized in that described The data regular length of UDP message packet is 1460, and the missing data threshold value SR of single Multicast File is 20M, current multicast wheel Before secondary end or at the end of, if the total amount that should receive UDP message packet of the Multicast File and the multiple multicast reception terminal Difference≤SR* total number of terminals of the practical total amount for receiving UDP message packet, then be set as mending by the scheduling result of the Multicast File Pack mode, the i.e. Multicast File will be transferred to TCP after next multicast round and mend pack mode;
Wherein, single Multicast File answers the total UDP message packet number of receiver packet number total amount=number of terminals * files;
The single practical receiver packet number total amount=sum of Multicast File (each terminal currently receives UDP message packet number);
Each multicast round should receive the total packet number=sum of Multicast File (single Multicast File should receive UDP message packet number total amount);
The practical receiver packet number total amount=sum of each multicast round (single Multicast File is practical to receive UDP message packet number total amount).
10. a kind of band TCP mends the intelligent UDP Multicast Files distribution method of machine contracting system, which is characterized in that includes the following steps:
Multicast control terminal is sent out after Multicast File is corresponded to generation delivery plans file;
It monitors in real time and obtains the delivery plans file in multiple multicast distribution ends;
Multiple multicast distribution ends parse the delivery plans file and according to described in analysis results from multicast control terminal download Multicast File is to specified directory and will download the Multicast File completed according to distribution mechanisms progress multicast distribution, described Distribution mechanisms are:Under specified directory, file is read by the multicast scaduled sequence, is switched to by protocol format with unique mark Then UDP message packet carries out multicast distribution according to the UDP multicast parameters of setting;Wherein, UDP message packet includes multicast ip, multicast Port numbers, bandwidth send initial time and send the termination time;The UDP multicast parameters are broadcast serial number+Multicast File number + UDP message packet serial number+UDP message is surrounded by effect size of data+valid data;
The delivery plans file that multicast control terminal described in multiple multicast reception terminal real-time receptions is sent out, parses the delivery Project documentation docks with the multiple multicast distribution end according to analysis result startup corresponding port and receives the Multicast File;
The reception state data of Multicast File described in multiple multicast reception terminal real-time statistics current multicast rounds are uploaded to described Multicast control terminal and the scheduling result for returning to the Multicast File:The scheduling result mends packet to continue multicast reception, opening TCP Pattern deletes the Multicast File;
Real-time reception multicast control terminal and the scheduling result for returning to the Multicast File mend pack mode if returning and opening TCP, Next multicast round is transferred to TCP and mends pack mode, mends the UDP message packet for actually receiving last round of time after end-of-packet and this round TCP mends inclusion into the Multicast File.
CN201711449497.5A 2017-12-27 2017-12-27 Intelligent UDP multicast file distribution system and method with TCP (transmission control protocol) packet supplementing mechanism Active CN108155999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711449497.5A CN108155999B (en) 2017-12-27 2017-12-27 Intelligent UDP multicast file distribution system and method with TCP (transmission control protocol) packet supplementing mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711449497.5A CN108155999B (en) 2017-12-27 2017-12-27 Intelligent UDP multicast file distribution system and method with TCP (transmission control protocol) packet supplementing mechanism

Publications (2)

Publication Number Publication Date
CN108155999A true CN108155999A (en) 2018-06-12
CN108155999B CN108155999B (en) 2020-08-07

Family

ID=62463452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711449497.5A Active CN108155999B (en) 2017-12-27 2017-12-27 Intelligent UDP multicast file distribution system and method with TCP (transmission control protocol) packet supplementing mechanism

Country Status (1)

Country Link
CN (1) CN108155999B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108933835A (en) * 2018-07-23 2018-12-04 安徽广行领视通信科技有限公司 A kind of CDN distribution method for saving bandwidth resources
CN110784326A (en) * 2018-07-25 2020-02-11 佳能株式会社 Information processing apparatus, control method, and non-transitory computer-readable storage medium
CN111092741A (en) * 2018-10-24 2020-05-01 玲珑视界科技(北京)有限公司 System and method for distributing files through multicast channel
CN111372103A (en) * 2018-12-26 2020-07-03 中兴通讯股份有限公司 Multicast method, device, equipment and computer storage medium
CN112235406A (en) * 2020-10-15 2021-01-15 儒安物联科技集团有限公司 Subnet equipment information synchronization method based on multicast and memory backup

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120136969A1 (en) * 2010-11-30 2012-05-31 Inventec Corporation Multi-cast download method for image file
CN105072508A (en) * 2015-08-12 2015-11-18 苏州华启智能科技有限公司 System and method for making up packets for multimedia playing of wireless network
CN105376165A (en) * 2015-10-15 2016-03-02 深圳市金证科技股份有限公司 UDP multicast method, system, sending device, and receiving device
CN105827588A (en) * 2015-12-23 2016-08-03 广东亿迅科技有限公司 Network driver layer-based streaming media data distribution system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120136969A1 (en) * 2010-11-30 2012-05-31 Inventec Corporation Multi-cast download method for image file
CN105072508A (en) * 2015-08-12 2015-11-18 苏州华启智能科技有限公司 System and method for making up packets for multimedia playing of wireless network
CN105376165A (en) * 2015-10-15 2016-03-02 深圳市金证科技股份有限公司 UDP multicast method, system, sending device, and receiving device
CN105827588A (en) * 2015-12-23 2016-08-03 广东亿迅科技有限公司 Network driver layer-based streaming media data distribution system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王春梅: ""基于NGB演示环境的电影数字拷贝传输系统设计与实现"", 《数字技术》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108933835A (en) * 2018-07-23 2018-12-04 安徽广行领视通信科技有限公司 A kind of CDN distribution method for saving bandwidth resources
CN110784326A (en) * 2018-07-25 2020-02-11 佳能株式会社 Information processing apparatus, control method, and non-transitory computer-readable storage medium
CN111092741A (en) * 2018-10-24 2020-05-01 玲珑视界科技(北京)有限公司 System and method for distributing files through multicast channel
CN111092741B (en) * 2018-10-24 2022-04-29 玲珑视界科技(北京)有限公司 System and method for distributing files through multicast channel
CN111372103A (en) * 2018-12-26 2020-07-03 中兴通讯股份有限公司 Multicast method, device, equipment and computer storage medium
CN111372103B (en) * 2018-12-26 2023-05-26 中兴通讯股份有限公司 Multicast method, device, equipment and computer storage medium
CN112235406A (en) * 2020-10-15 2021-01-15 儒安物联科技集团有限公司 Subnet equipment information synchronization method based on multicast and memory backup

Also Published As

Publication number Publication date
CN108155999B (en) 2020-08-07

Similar Documents

Publication Publication Date Title
CN108155999A (en) The intelligent UDP Multicast Files dissemination system and method for machine contracting system are mended with TCP
CN104270406B (en) System and associated terminal, method and computer program product for uploading content
US7853620B2 (en) Datacast file transmission with meta-data retention
AU2005264017B2 (en) Grouping of session objects
KR101115147B1 (en) Methods for multicasting content
US9077682B2 (en) Downloading a code image to remote devices
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
CN102255942A (en) Multimedia quantum flow and cloud processing technology and realization method
CN102412999A (en) Packet capturing based remote fault location method, system and device
CN103986764A (en) Equipment and method used for multi-client collaborative file uploading
CN102946552A (en) Media asset injection method and related system
CN1528070B (en) Method and system for managing remote clients in a network constituted by a central server
CN110944003A (en) File transmission method and electronic equipment
EP2439890A1 (en) Method and system for processing mobile multimedia data broadcasting service
CN110392020B (en) Streaming media resource transmission method and system
CN102291432A (en) Network information sharing method, device and client
CN106254271A (en) A kind of queue configuration method able to programme for software defined network and device
CN105392025B (en) Method, equipment and the content distribution system of user side aggregated bandwidth
CN103532726B (en) Information distribution system
KR100902855B1 (en) Grouping of session objects
CN110213330A (en) Pre- supplying system, method, apparatus, electronic equipment and computer-readable medium
EP2630750A1 (en) Quality of service monitoring device and method of monitoring quality of service
CN111092741B (en) System and method for distributing files through multicast channel
KR101257579B1 (en) Peer-to-peer overlay system and method for real time streaming service
CN102340804A (en) Traffic test method and system of global interoperability microwave access system

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200528

Address after: 210042 floor 3, No. 699-1, Xuanwu Avenue, Xuanwu District, Nanjing City, Jiangsu Province

Applicant after: Lezi Technology (Nanjing) Co., Ltd

Address before: 100195, No. 3, unit 2, building 1002, two district, Changqing Garden, Beijing, Haidian District

Applicant before: Luo Jianping

GR01 Patent grant
GR01 Patent grant