CN103441904A - Communication scheduling simulation method based on time limit - Google Patents

Communication scheduling simulation method based on time limit Download PDF

Info

Publication number
CN103441904A
CN103441904A CN2013103952331A CN201310395233A CN103441904A CN 103441904 A CN103441904 A CN 103441904A CN 2013103952331 A CN2013103952331 A CN 2013103952331A CN 201310395233 A CN201310395233 A CN 201310395233A CN 103441904 A CN103441904 A CN 103441904A
Authority
CN
China
Prior art keywords
task
port
communication
total
execution step
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
CN2013103952331A
Other languages
Chinese (zh)
Other versions
CN103441904B (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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201310395233.1A priority Critical patent/CN103441904B/en
Publication of CN103441904A publication Critical patent/CN103441904A/en
Application granted granted Critical
Publication of CN103441904B publication Critical patent/CN103441904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides a communication scheduling simulation method based on a time limit. According to the communication scheduling simulation method based on the time limit, simulation network node communication is generated in a topology network through random numbers, the randomness of simulation network communication is highlighted, meanwhile, on the basis that communication is started at the latest start time, a communication port is distributed to a communication node according to the rule that a task is fulfilled most quickly, and the efficiency of communication simulation is improved.

Description

A kind of communication scheduling analogy method of time-based restriction
(1) technical field
What the present invention relates to is a kind of communication scheduling analogy method of time-based restriction.
(2) background technology
In modern society, communications network system is a typical complex networks system, not only itself there are the characteristics such as system complexity, self-organization, criticality, and and other critical infrastructures system between and exist complicated dependence between user crowd.The imitation technology of communication system is that computer is tested model of communication system, can make the user set up in a short period of time whole model of communication system, has economy, safety, short characteristics of cycle.
In all communication systems, the Random Effects such as interchannel noise, interference and decline can cause damage to the transmission of information.Want accurately simulation communication system, at first will set up model accurately to these impacts, signal of communication is the basis of communication system, so it is significant in modern communication technology to develop an efficient signal of communication analog simulation environment.
For above situation, we have proposed a kind of concurrent network traffics analogy method based on pseudo random number and have realized network service emulation: at first all nodes of network are numbered, if total N node, then generate random number M, L and mean that following expression node M will communicate with other L network node, finally generate L three-number set and mean respectively communication nodes, communicate by letter at the latest time started and communication time.According to generated random number, communication task is arranged to the communication port to node M guaranteeing on the basis of late start time take to finish the work the soonest as principle.
(3) summary of the invention
The object of the present invention is to provide a kind of concurrent network traffics analogy method based on pseudo random number.The method is used random number to generate the communication of analog network node in topological network, the randomness of outstanding analog network communication, on the basis of time started that guarantees to communicate by letter at the latest, take finishes the work as principle simultaneously the soonest arranges the communication port to communication nodes, improves the efficiency of communication simulation.
The object of the present invention is achieved like this:
If from the M node, will communicate with other network nodes in network topology, amount of communications is L; If node M has P communication interface, usage data form Port i?<Q 1, R 1, S 1], [Q i, R i, S i] ..:TOTAL imean that node passes through port P ineed successively to network node Q 1, Q 2serially-transmitted data, [Q i, R i, S i] mean that node M is to network node Q isend data at the latest at S iconstantly start, the data transmission period needed is R i,, TOTAL imean communication port P icomplete the total time that all transmission required by task are wanted;
Generate L and organize different ternary random number { Q 1, R 1, S 1... { Q i, R i, S i... { Q l, R l, S lmean communication task, wherein Q i≠ M; For guaranteeing communication task, can before starting at the latest, carry out, and guarantee that all communication tasks complete with the fastest speed, use following mode to communicate: at first communication task to be carried out to ascending sort according to the size of late start time, formed like this L orderly transmission task list, then a front P communication task is distributed to P communication port, P the concurrent execution of transmission task before guaranteeing, form task list PortList:Port 1?<[Q 1, R 1, 0]: TOTAL 1..., Port p?<[Q p, R p, 0]: TOTAL p; TOTAL i=R i; Make to guarantee with the following method that a L-P task in back completes within the shortest time: get communication task Qi, Ri, Si}, i>P, if TOTAL 1early than S i, make TOTAL 1+ R i, will send task { Q i, R i, S idirectly put into Port 1the task list that middle formation is new, otherwise, from Port 1start, check successively each communication task in other port task list; If at port P iin insert { Q before arranged N task i, R i, S i, can guarantee P iin before deadline of N-1 task be less than S i, and { Q i, R i, S itask insert and can not cause port P iin N be greater than its late start time to time started of last task, by task { Q i, R i, S ibe inserted into P iin N position, and by task list according to TOTAL isize again ascending sort be Port 1, Port 2if the task list at other port does not find suitable position, give up this communication task; Complete successively the arrangement of L transmission task, just formed complete transmission Task-list PortList; Each port of node M only needs to carry out according to the record of PortList the communication scheduling analogy method that the data transmission just can simulate the time-based restriction;
Concrete steps are:
(1) generate random number M, L, mean that network node M will carry out communicating by letter for L time with other network node, and initialization RList, PortList are empty;
(2) communication port of random generating network node M is counted P, port numbering num=1,2 ... P;
(3) i=1 is set;
(4) generate random number { Q i, R i, S i;
(5) if satisfy condition Q i≠ M, execution step (6); Otherwise execution step (4);
(6) initialization j=1;
(7) if i > 1 execution step (8), otherwise execution step (11);
(8) take out Qj from RList, if Qi=Qj execution step (9), otherwise execution step (10);
(9) if S i=S j, execution step (4), otherwise execution step (10);
(10) j+1; If j=i; Execution step (11), otherwise execution step (8);
(11) by { Q i, R i, S iadd RList, i+1;
(12) if i > L performs step (13); Otherwise execution step (4);
(13) by the task in RList according to ascending sort;
(14) i=1 is set;
(15) if i<=P performs step 16, otherwise perform step 17;
(16) take out an element { Q from RList i, R i, S i, make TOTAL i=R iformation task Port i?<[Q i, R i, S i]: TOTAL iand add data list PortList, perform step 29;
(17) by element in PortList according to port TOTAL value ascending sort again;
(18) take out an element { Q from RList i, R i, S i, if TOTAL 1<=S iexecution step 19, otherwise perform step 20;
(19) by { Q i, R i, S iform communication task and give port P 1, TOTAL is set 1=TOTAL 1+ R i; The renewal task list is Port 1?<[Q 1, R 1, S 1] ... [Q i, R i, S i]: TOTAL 1, perform step 29;
(20) initialization s=1;
(21) initialization m is Port sin arranged the number of task;
(22) if Port sin before m-1 task deadline be less than S iperform step 23, otherwise perform step 27;
(23) initialization n=m;
(24) if deadline of a front n-1 task and add R ibe less than S n, perform step 25, otherwise perform step 28;
(25) value of N adds 1, if n is greater than Port sthe number of middle task, perform step 26, otherwise perform step 24;
(26) take out an element { Q from RList i, R i, S i, form communication task and insert port Port sm position, TOTAL is set s=TOTAL s+ R i; Execution step 29;
(27) value of m subtracts 1, if m > 0, perform step 22, otherwise perform step 28;
(28) value of s adds 1, if s<=P performs step 21; Otherwise give up this task, perform step 29;
(29) value of i adds 1, if i<=L execution step 15, otherwise EP (end of program);
Key of the present invention is to improve simulation efficiency on the basis of analog network communication randomness and concurrency.For this reason, on the basis that guarantees the communication late start time, take finishes the work the soonest as principle arranges the communication port to network node, on the basis that guarantees the random concurrent communication of network node, also makes the efficiency of analog communication environment be improved.
Its main feature is as follows:
1, determine communication nodes and the call duration time in network with random digit generation method, each communication nodes and call duration time produced all is not quite similar, make the network communications environment generated have more generality;
2, take to finish the work the soonest as principle on the basis that guarantees the communication time started communication task is arranged to the communication port to network node, and use simple list to complete the record of Random Communication environment, improved the efficiency of analog communication environment.
(4) accompanying drawing explanation
Fig. 1: a kind of communication scheduling analogy method of time-based restriction
(5) concrete execution mode
For a more detailed description to the present invention below in conjunction with accompanying drawing:
The method of the invention is characterised in that:
If from the M node, will communicate with other network nodes in network topology, amount of communications is L; If node M has P communication interface, usage data form Port i?<Q 1, R 1, S 1], [Q i, R i, S i] ..:TOTAL imean that node passes through port P ineed successively to network node Q 1, Q 2serially-transmitted data, [Q i, R i, S i] mean that node M is to network node Q isend data at the latest at S iconstantly start, the data transmission period needed is R i,, TOTAL imean communication port P icomplete the total time that all transmission required by task are wanted;
Generate L and organize different ternary random number { Q 1, R 1, S 1... { Q i, R i, S i... { Q l, R l, S lmean communication task, wherein Q i≠ M; For guaranteeing communication task, can before starting at the latest, carry out, and guarantee that all communication tasks complete with the fastest speed, use following mode to communicate: at first communication task to be carried out to ascending sort according to the size of late start time, formed like this L orderly transmission task list, then a front P communication task is distributed to P communication port, P the concurrent execution of transmission task before guaranteeing, form task list PortList:Port 1?<[Q 1, R 1, 0]: TOTAL 1..., Port p?<[Q p, R p, 0]: TOTAL p; TOTAL i=R i; Make to guarantee with the following method that a L-P task in back completes within the shortest time: get communication task Qi, Ri, Si}, i>P, if TOTAL 1early than S i, make TOTAL 1+ R i, will send task { Q i, R i, S idirectly put into Port 1the task list that middle formation is new, otherwise, from Port 1start, check successively each communication task in other port task list; If at port P iin insert { Q before arranged N task i, R i, S i, can guarantee P iin before deadline of N-1 task be less than S i, and { Q i, R i, S itask insert and can not cause port P iin N be greater than its late start time to time started of last task, by task { Q i, R i, S ibe inserted into P iin N position, and by task list according to TOTAL isize again ascending sort be Port 1, Port 2if the task list at other port does not find suitable position, give up this communication task; Complete successively the arrangement of L transmission task, just formed complete transmission Task-list PortList; Each port of node M only needs to carry out according to the record of PortList the communication scheduling analogy method that the data transmission just can simulate the time-based restriction;
Concrete steps are:
(1) generate random number M, L, mean that network node M will carry out communicating by letter for L time with other network node, and initialization RList, PortList are empty;
(2) communication port of random generating network node M is counted P, port numbering num=1,2 ... P;
(3) i=1 is set;
(4) generate random number { Qi, Ri, Si};
(5) if satisfy condition Q i≠ M, execution step (6); Otherwise execution step (4);
(6) initialization j=1;
(7) if i > 1 execution step (8), otherwise execution step (11);
(8) take out Qj from RList, if Qi=Qj execution step (9), otherwise execution step (10);
(9) if Si=Sj performs step (4), otherwise execution step (10);
(10) j+1; If j=i; Execution step (11), otherwise execution step (8);
(11) by { Si} adds RList for Qi, Ri, i+1;
(12) if i > L performs step (13); Otherwise execution step (4);
(13) by the task in RList according to ascending sort;
(14) i=1 is set;
(15) if i<=P performs step 16, otherwise perform step 17;
(16) from RList, take out an element Si}, make TOTALi=Ri form task Porti{[Qi, Ri, Si for Qi, Ri]: TOTALi} also adds data list PortList, performs step 29;
(17) by element in PortList according to port TOTAL value ascending sort again;
(18) { Si}, if TOTAL1<=Si performs step 19, otherwise perform step 20 for Qi, Ri to take out an element from RList;
(19) by { Si} forms communication task and gives port P1, and TOTAL1=TOTAL1+Ri is set for Qi, Ri; The renewal task list is Port1{[Q1, R1, S1] ... [Qi, Ri, Si]: TOTAL1} performs step 29;
(20) initialization s=1;
(21) initialization m has arranged the number of task in Ports;
(22) if before in Ports the deadline of m-1 task be less than Si perform step 23, otherwise perform step 27;
(23) initialization n=m;
(24) if deadline of a front n-1 task and add that Ri is less than Sn perform step 25, otherwise perform step 28;
(25) value of N adds 1, if n is greater than the number of task in Ports, performs step 26, otherwise performs step 24;
(26) { Si}, form m the position that communication task is inserted port Ports, and TOTALs=TOTALs+Ri is set for Qi, Ri to take out an element from RList; Execution step 29;
(27) value of m subtracts 1, if m > 0, perform step 22, otherwise perform step 28;
(28) value of s adds 1, if s<=P performs step 21; Otherwise give up this task, perform step 29;
(29) value of i adds 1, if i<=L execution step 15, otherwise EP (end of program);
Its concrete Implementation Modes is such:
At first the network node in network topology is numbered, then generates node and the amount of communications that will communicate by letter, according to amount of communications, generate node, late start time and the call duration time of each communication; Communication task is sorted according to late start time, then each port that is communication nodes arranges a communication task, the task deadline by remaining communication task according to port, select the shortest and port task concluding time task time to be less than the port of new task late start time as transmit port; The task of each port has just formed a task list by the array record like this, only needs once to communicate by letter with communication nodes according to the time started of list records, has just simulated a kind of flow based on pseudo random number concurrent.

Claims (1)

1. the communication scheduling analogy method of time-based restriction, it is characterized in that: the object of the present invention is achieved like this: establish in network topology from the M node, will communicate with other network nodes, amount of communications is L; If node M has P communication interface, usage data form Port i?<Q 1, R 1, S 1], [Q i, R i, S i] ..:TOTAL imean that node passes through port P ineed successively to network node Q 1, Q 2serially-transmitted data, [Q i, R i, S i] mean that node M is to network node Q isend data at the latest at S iconstantly start, the data transmission period needed is R i,, TOTAL imean communication port P icomplete the total time that all transmission required by task are wanted;
Generate L and organize different ternary random number { Q 1, R 1, S 1... { Q i, R i, S i... { Q l, R l, S lmean communication task, wherein Q i≠ M; For guaranteeing communication task, can before starting at the latest, carry out, and guarantee that all communication tasks complete with the fastest speed, use following mode to communicate: at first communication task to be carried out to ascending sort according to the size of late start time, formed like this L orderly transmission task list, then a front P communication task is distributed to P communication port, P the concurrent execution of transmission task before guaranteeing, form task list PortList:Port 1?<[Q 1, R 1, 0]: TOTAL 1..., Port p?<[Q p, R p, 0]: TOTAL p; TOTAL i=R i; Make to guarantee with the following method that a L-P task in back completes within the shortest time: get communication task Qi, Ri, Si}, i>P, if TOTAL 1early than S i, make TOTAL 1+ R i, will send task { Q i, R i, S idirectly put into Port 1the task list that middle formation is new, otherwise, from Port 1start, check successively each communication task in other port task list; If at port P iin insert { Q before arranged N task i, R i, S i, can guarantee P iin before deadline of N-1 task be less than S i, and { Q i, R i, S itask insert and can not cause port P iin N be greater than its late start time to time started of last task, by task { Q i, R i, S ibe inserted into P iin N position, and by task list according to TOTAL isize again ascending sort be Port 1, Port 2if the task list at other port does not find suitable position, give up this communication task; Complete successively the arrangement of L transmission task, just formed complete transmission Task-list PortList; Each port of node M only needs to carry out according to the record of PortList the communication scheduling analogy method that the data transmission just can simulate the time-based restriction;
Concrete steps are:
(1) generate random number M, L, mean that network node M will carry out communicating by letter for L time with other network node, and initialization RList, PortList are empty;
(2) communication port of random generating network node M is counted P, port numbering num=1,2 ... P;
(3) i=1 is set;
(4) generate random number { Q i, R i, S i;
(5) if satisfy condition Q i≠ M, execution step (6); Otherwise execution step (4);
(6) initialization j=1;
(7) if i > 1 execution step (8), otherwise execution step (11);
(8) take out Qj from RList, if Qi=Qj execution step (9), otherwise execution step (10);
(9) if S i=S j, execution step (4), otherwise execution step (10);
(10) j+1; If j=i; Execution step (11), otherwise execution step (8);
(11) by { Q i, R i, S iadd RList, i+1;
(12) if i > L performs step (13); Otherwise execution step (4);
(13) by the task in RList according to ascending sort;
(14) i=1 is set;
(15) if i<=P performs step 16, otherwise perform step 17;
(16) take out an element { Q from RList i, R i, S i, make TOTAL i=R iformation task Port i?<[Q i, R i, S i]: TOTAL iand add data list PortList, perform step 29;
(17) by element in PortList according to port TOTAL value ascending sort again;
(18) take out an element { Q from RList i, R i, S i, if TOTAL 1<=S iexecution step 19, otherwise perform step 20;
(19) by { Q i, R i, S iform communication task and give port P 1, TOTAL is set 1=TOTAL 1+ R i; The renewal task list is Port 1?<[Q 1, R 1, S 1] ... [Q i, R i, S i]: TOTAL 1, perform step 29;
(20) initialization s=1;
(21) initialization m is Port sin arranged the number of task;
(22) if Port sin before m-1 task deadline be less than S iperform step 23, otherwise perform step 27;
(23) initialization n=m;
(24) if deadline of a front n-1 task and add R ibe less than S n, perform step 25, otherwise perform step 28;
(25) value of N adds 1, if n is greater than Port sthe number of middle task, perform step 26, otherwise perform step 24;
(26) take out an element { Q from RList i, R i, S i, form communication task and insert port Port sm position, TOTAL is set s=TOTAL s+ R i; Execution step 29;
(27) value of m subtracts 1, if m > 0, perform step 22, otherwise perform step 28;
(28) value of s adds 1, if s<=P performs step 21; Otherwise give up this task, perform step 29;
(29) value of i adds 1, if i<=L execution step 15, otherwise EP (end of program).
CN201310395233.1A 2013-09-03 2013-09-03 Communication scheduling simulation method based on time limit Active CN103441904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310395233.1A CN103441904B (en) 2013-09-03 2013-09-03 Communication scheduling simulation method based on time limit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310395233.1A CN103441904B (en) 2013-09-03 2013-09-03 Communication scheduling simulation method based on time limit

Publications (2)

Publication Number Publication Date
CN103441904A true CN103441904A (en) 2013-12-11
CN103441904B CN103441904B (en) 2017-04-12

Family

ID=49695572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310395233.1A Active CN103441904B (en) 2013-09-03 2013-09-03 Communication scheduling simulation method based on time limit

Country Status (1)

Country Link
CN (1) CN103441904B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953412B (en) * 2005-10-18 2011-08-17 国际商业机器公司 System and method for executing an application
CN202565304U (en) * 2012-05-21 2012-11-28 成都因纳伟盛科技股份有限公司 Distributed computing task scheduling and execution system
EP2608040A1 (en) * 2010-08-20 2013-06-26 International Business Machines Corporation Simulation method, system and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953412B (en) * 2005-10-18 2011-08-17 国际商业机器公司 System and method for executing an application
EP2608040A1 (en) * 2010-08-20 2013-06-26 International Business Machines Corporation Simulation method, system and program
CN202565304U (en) * 2012-05-21 2012-11-28 成都因纳伟盛科技股份有限公司 Distributed computing task scheduling and execution system

Also Published As

Publication number Publication date
CN103441904B (en) 2017-04-12

Similar Documents

Publication Publication Date Title
Peng et al. Modeling of concurrent task execution in a distributed system for real-time control
Gehlot et al. An introduction to systems modeling and simulation with colored petri nets
Wan et al. Analysis and modeling of the end-to-end i/o performance on olcf's titan supercomputer
Liu et al. Modeling/predicting the evolution trend of osn-based applications
CN107948176A (en) A kind of information security Enhancement Method and controller towards CAN network
CN103873712B (en) Voip gateway detection method and multinuclear treatment facility
Ballarini et al. Transient analysis of networks of stochastic timed automata using stochastic state classes
CN102571423B (en) Generalized stochastic high-level Petri net (GSHLPN)-based network data transmission modeling and performance analysis method
CN103197287A (en) High-speed real-time frequency domain pulse compression device and processing method thereof
CN109413683A (en) A kind of method and apparatus obtaining emission probability, transition probability and sequence positioning
CN104734900B (en) A kind of sending control method of communication protocol test
CN106936677A (en) A kind of data transmission method of Modular UPS system and power apparatus
CN103441904A (en) Communication scheduling simulation method based on time limit
CN103441903A (en) Network node communication simulation method based on shortest communication time
CN105022870A (en) Service-oriented software performance modeling and simulation analysis method based on CPN (Coloured Petri Net)
Barros A modular representation of fluid stochastic petri nets.
CN106528849B (en) Complete history record-oriented graph query overhead method
CN108874456A (en) A kind of generation method of server software, device, equipment and storage medium
CN105095239A (en) Uncertain graph query method and device
CN105518617B (en) Data cached processing method and processing device
Liu et al. Applying the peak over thresholds method on worst-case response time analysis of complex real-time systems
Jin et al. Analyzing multimode wireless sensor networks using the network calculus
Rox et al. Modeling event stream hierarchies with hierarchical event models
Shareef et al. Energy modeling of processors in wireless sensor networks based on petri nets
Macdonald et al. Pdg_gen: A methodology for fast and accurate simulation of on-chip networks

Legal Events

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