CN104506576A - Wireless sensor network and node task migration method thereof - Google Patents

Wireless sensor network and node task migration method thereof Download PDF

Info

Publication number
CN104506576A
CN104506576A CN201410725181.4A CN201410725181A CN104506576A CN 104506576 A CN104506576 A CN 104506576A CN 201410725181 A CN201410725181 A CN 201410725181A CN 104506576 A CN104506576 A CN 104506576A
Authority
CN
China
Prior art keywords
node
chromosome
task
matrix
integration
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
CN201410725181.4A
Other languages
Chinese (zh)
Other versions
CN104506576B (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.)
Biyi (Jiangsu) Intelligent Technology Co.,Ltd.
Original Assignee
Changzhou University
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 Changzhou University filed Critical Changzhou University
Priority to CN201410725181.4A priority Critical patent/CN104506576B/en
Publication of CN104506576A publication Critical patent/CN104506576A/en
Application granted granted Critical
Publication of CN104506576B publication Critical patent/CN104506576B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a wireless sensor network and a node task migration method thereof. The wireless sensor network comprises a gateway node and a plurality of normal nodes. The wireless sensor network is characterized in that the gateway node and the normal nodes are linked in a wireless multi-hop way; power is supplied to the gateway node; no power is supplied to the normal nodes; and the normal nodes are distributed randomly, and are not moved once being distributed. The gateway node in the wireless sensor network is used for allocating interdependent sub-tasks based on a genetic algorithm, and an integer incentive system is introduced into an allocation algorithm, so that loads of the nodes are balanced, and the lifetime of the network is prolonged. Under the condition that the nodes are unstable, uncompleted tasks on unstable points can be migrated to other appropriate nodes, so that the tasks can be finished within a certain time limit; the task allocation efficiency is increased; and the task completion quality is enhanced.

Description

A kind of wireless sensor network and node tasks moving method thereof
Technical field
The invention belongs to wireless multimedia sensor network technical field, particularly a kind of node tasks moving method based on genetic algorithm and integration incentive mechanism.
Background technology
Along with wireless sensor network application requirement of real-time is more and more higher, it is the essential condition ensureing whole application real-time that the task that node distributes is successfully completed in time limit.But in wireless sensor network environment, radio node is easy to because of energy exhaustion or is subject to the attack of malicious node and lost efficacy, so when a node of executing the task is about to lose efficacy, or during death, how to find a kind of can fast, the low consumption task immigration method that success rate is high again, go to be very important by the task immigration on failure node to other nodes, this when respective nodes lost efficacy, can ensure the smooth execution of task.
Summary of the invention
Compared with prior art, gateway node of the present invention distributes complementary subtask based on genetic algorithm, and integration incentive mechanism is incorporated in allocation algorithm, thus balances each node load, extends network lifecycle; When node failure, by task immigration that failure node does not complete on other suitable nodes, can ensure that task completes in time limit, improve task matching efficiency and difficulty action accomplishment.Meanwhile, by Revised genetic algorithum, improve the space exploration ability of algorithm, accelerate evolutionary rate, the allocative decision of node can be obtained within a short period of time, improve the reaction time of wireless sensor network.
The invention provides a kind of wireless sensor network, comprise a gateway node and multiple ordinary node, it is characterized in that:
Described gateway node and ordinary node link in the mode of wireless multi-hop and form, and gateway node has supply of electric power, and ordinary node does not have supply of electric power, ordinary node random arrangement, once after arranging, just no longer move.
The invention still further relates to the method for allocating tasks based on genetic algorithm in a kind of wireless sensor network, it is characterized in that:
Step one, gateway node receive an application instruction, and the application in this instruction can be broken down into multiple complementary subtask, describes with DAG task image G=(T, E), the summit set T={T of DAG task image 1, T 2..., T nrepresent, representative needs the subtask performed, and wherein n represents the number of subtask, and there is a time restriction deadline each subtask, and the execution of subtask must complete before the deadline specified, the limit E={E of DAG task image 1, E 2..., E grepresent, represent the data dependence between subtask or control to rely on, wherein g represents the number on the limit of DAG task image, if from summit T ito summit T jthere is a directed edge E ij, then subtask T is described jexecution need subtask T ioutput data; Gateway node adopts genetic algorithm manage the subtask in DAG task image and distribute, and concrete grammar is as follows:
(1) stochastic generation allocative decision and chromosome, builds chromosome congression S
Use S={C 1, C 2..., C xrepresent all allocative decisions and chromosomal set, wherein C is a candidate scheme, and x is the number of all candidate schemes; Gateway node stochastic generation x allocative decision, each allocative decision is exactly a chromosome, and each chromosome 3 × n matrix C represents, n represents the total task number in DAG task image, (the T in Matrix C the first row 1... T i... T n) be subtask to be allocated, its order from left to right determines according to tasks carrying order in DAG task image, Matrix C second row (V 1... V j... V m) represent subtask map node, Matrix C the third line (ω 1... ω i... ω n) representing the amount of calculation of subtask, chromosome Matrix C is as follows:
C = T 1 . . . T i . . . T n V 1 . . . V j . . . V m ω 1 . . . ω i . . . ω n
(2) communication matrix E is built
Data transmission relations between task 3 × g matrix E represents i.e. communication matrix, and g is the sum on the limit of DAG task image, each row first element T in matrix E iexpression task transmit leg, second element T jfor task recipient, the 3rd element l ijfor task T iand T jbetween transmit the size of data, wherein row of communication matrix E are as follows:
E = T i T j l ij
(3) the total reward points of chromosome is calculated
The reward points that every bar chromosome produces refer to that gateway node is by certain chromosome C kwhen carrying out task matching, complete the summation of the reward points paid needed for all subtasks in DAG task image:
Point total C k = Σ T i ∈ T , V j ∈ C k Point reward V j ( T i )
Wherein, T i∈ T represents all subtasks in DAG task image, V j∈ C krepresent chromosome C kin involved all ordinary nodes, for node V jfinish the work T irequired reward points;
(4) the chromosome deadline is calculated
Chromosome deadline WT (C k) refer to that gateway node is by certain chromosome C kwhen carrying out task matching, complete the time span required for all subtasks in DAG task image;
(5) construct fitness function, chromosome performance is assessed
Fitness represents chromosomal quality, fitness is higher, this chromosome is more excellent, then chromosome survival probability is higher, chromosomal fitness is calculated by structure fitness function, the structure target of fitness function finds total reward points little, the chromosome that the deadline is short, and fitness function is as follows:
fit ( C k ) = MIN _ Point total S Point total C k + β MIN _ WT ( S ) WT ( C k )
Wherein, fit (C i) be chromosome C ifitness, be the minimum value of total reward points in chromosome congression S, MIN_WT (S) is the minimum value of deadline in chromosome congression S, and β is customized parameter, regulates total reward points and the deadline weight in fitness function;
Calculate each chromosomal fitness, be stored in performance rate table by the fitness of chromosomal for x bar No. ID and correspondence and be used for classification and identifying, the descending by adaptive value in performance rate table sorts, and the chromosome that fitness is high comes the top of table;
(6) genetic manipulation is carried out to chromosome
1) operation is inherited
In performance rate table, before x chromosome, y% inherits in chromosome congression of future generation, and all the other x × (1-y%) bar chromosome produces through selection, intersection, variation step, and y% represents chromosomal excellent rate, wherein y ∈ [1-100];
2) operation is selected:
In performance rate table, select the interlace operation that two chromosomes carry out below, thus produce new chromosome, adopt the mode of roulette, chromosomal fitness is higher, higher by the probability selected;
3) interlace operation
Two the chromosome Matrix C selected 1and C 2as former generation's chromosome, interlace operation is to former generation's chromosome Matrix C 1and C 2carry out part restructuring, produce offspring's chromosome C 3and C 4, in interlace operation, chromosome matrix the first row remains unchanged, constant to ensure tasks carrying order, in former generation's chromosome Matrix C 1and C 2second row is selected a bit as crosspoint, Matrix C 1and C 2part behind second row crosspoint exchanges, thus produces offspring's chromosome Matrix C 3and C 4, calculate offspring's chromosome Matrix C 3and C 4fitness, and be stored in the relevant position of performance rate table;
4) mutation operation
Comprise two kinds of mutational formats, mode is a) sudden change of task based access control, and each chromosome has λ probability, by Stochastic choice duty mapping on another node; Or adopt mode b) based on chromosomal sudden change, the new chromosome that each chromosome has λ probability to be randomly generated is completely alternative, and wherein λ represents mutation rate, λ ∈ (0-1);
(7) said process is after the iterative operation of certain number of times, and gateway node selects the chromosome being in top as current allocative decision in performance rate table;
The ordinary node related in the allocative decision that step 2, gateway node are selected is active node, and active node obtains associated quad according to the nodal integration exchange rate and energy consumption of finishing the work;
Wherein, integration is used to the history performance that measurement node is finished the work, and for increasing the participation that node is executed the task, carry out quantizing examination with integration to the performance that node is finished the work, line item of going forward side by side, integration comprises reward points with punishment integration wherein T i∈ T represents all subtasks in DAG task image; If active node is successfully completed task, corresponding reward points can be obtained finish the work if unsuccessful, can be deducted and punish integration accordingly the integration summation that active node is got up by accumulation of finishing the work is total mark total mark ordinary node V jthe integration summation that accumulation of finishing the work is got up, namely all reward points sums deduct all punishment integration sums: Point wealth V j = Σ T s ∈ V j ( T ) Point reward V j ( T s ) - Σ T s ∈ V j ( T ) Point punish V j ( T f ) , Wherein, V j(T) be ordinary node V jall tasks of upper distribution, T sordinary node V jon the task of being successfully completed, T fordinary node V jupper unsuccessful completing of task;
The described integration exchange rate is that node consumption unit energy should obtain integration, and it embodies the cost performance that node is finished the work, and uses represent, wherein for ordinary node V jdump energy, for node V jtotal mark;
If step 3 active node itself fail or be subject to other malicious nodes attack, it is then unstable node, if this unstable node has not complete task, need the cooperation being exchanged for other ordinary nodes by the mode of redeem points, thus by task immigration on other ordinary nodes;
If step 4 active node is due to energy exhaustion or communication link fails can not communicate with other node, then this active node is death nodes, gateway node can find death nodes immediately, and not finishing the work on death nodes is re-assigned on other ordinary nodes.
Accompanying drawing explanation
Fig. 1 is wireless sensor network structure chart;
Fig. 2 is gateway node allocating task flow chart;
Fig. 3 is ordinary node task immigration flow chart.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation, is not practical range of the present invention is confined to this.As shown in Figure 1:
Wireless sensor network generally includes a gateway node and some ordinary nodes, is formed by wireless multi-hop link.Gateway node disposal ability is powerful, has enough supplies of electric power.Ordinary node finite energy, does not have supply of electric power.Ordinary node is isomery, shows as processing speed difference, and node energy is different, but transmission characteristic is thought identical.Ordinary node random arrangement, once after arranging, just no longer moves.
Fig. 2,3 shows the method for allocating tasks based on genetic algorithm and integration incentive mechanism based on above-mentioned wireless sensor network, wherein gateway node exchanges the service of ordinary node for by being supplied to ordinary node reward on total mark, each subtask is made to be assigned on most suitable node, under the prerequisite meeting time limit task time, total number of points that gateway node is spent is minimum, thus complete all subtasks, specifically comprise following steps:
Step one, gateway node receive an application instruction, and the application in this instruction can be broken down into multiple complementary subtask, describes with directed acyclic graph DAG task image G=(T, E), the summit set T={T of DAG task image 1, T 2..., T nrepresent, representative needs the subtask performed, and n represents the number of subtask, and there is a time restriction deadline each subtask, and the execution of subtask must complete before the deadline specified, the limit E={E of DAG task image 1, E 2..., E grepresent, represent the data dependence between subtask or control to rely on, g represents the number on the limit of DAG task image, if from summit T ito summit T jthere is a directed edge E ij, then subtask T is described jexecution need subtask T ioutput data; Gateway node adopt genetic algorithm the subtask in DAG task image is managed and distributes, concrete task management and distribution method as follows:
(1) stochastic generation allocative decision and chromosome, builds chromosome congression S
Use S={C 1, C 2..., C xrepresent all allocative decisions and chromosomal set, wherein C is a candidate scheme, and x is the number of all candidate schemes; Gateway node stochastic generation x allocative decision, each allocative decision is exactly a chromosome, and each chromosome 3 × n matrix C represents, n represents the total task number in DAG task image, (the T in Matrix C the first row 1... T i... T n) representing subtask to be allocated, its order from left to right determines according to tasks carrying order in DAG task image, Matrix C second row (V 1... V j... V m) represent subtask map node, Matrix C the third line (ω 1... ω i... ω n) representing the amount of calculation of subtask, chromosome Matrix C is as follows:
C = T 1 . . . T i . . . T n V 1 . . . V j . . . V m ω 1 . . . ω i . . . ω n
(2) communication matrix E is built
Data transmission relations between task 3 × g matrix E represents i.e. communication matrix, and g is the sum on the limit of DAG task image, each row first element T in matrix E iexpression task transmit leg, second element T jfor task recipient, the 3rd element l ijfor task T iand T jbetween transmit the size of data, a certain row of communication matrix E are as follows:
E = T i T j l ij
(2) the total reward points of chromosome is calculated
The reward points that every bar chromosome produces refer to that gateway node is by certain chromosome C kwhen carrying out task matching, complete the summation of the reward points paid needed for all subtasks in DAG task image:
Point total C k = Σ T i ∈ T , V j ∈ C k Point reward V j ( T i )
Wherein, T i∈ T represents all subtasks in DAG task image, V j∈ C krepresent chromosome C kin involved all ordinary nodes. for node V jfinish the work T irequired reward points;
(3) the chromosome deadline is calculated
Chromosome deadline WT (C k) refer to that gateway node is by certain chromosome C kwhen carrying out task matching, complete the time span required for all subtasks in DAG task image.
(4) construct fitness function, chromosome performance is assessed
Fitness represents chromosomal quality, fitness is higher, this chromosome is more excellent, then chromosome survival probability is higher, chromosomal fitness is calculated by structure fitness function, the structure target of fitness function finds total reward points little, the chromosome that the deadline is short, and fitness function is as follows:
fit ( C k ) = MIN _ Point total S Point total C k + β MIN _ WT ( S ) WT ( C k )
Wherein, fit (C i) be chromosome C ifitness, be the minimum value of total reward points in chromosome congression S, MIN_WT (S) is the minimum value of deadline in chromosome congression S, and β is customized parameter, regulates total reward points and the deadline weight in fitness function.
Calculate each chromosomal fitness, be stored in performance rate table by the fitness of chromosomal for x bar No. ID and correspondence and be used for classification and identifying, the descending by adaptive value in performance rate table sorts, and the chromosome that fitness is high comes the top of table;
(5) genetic manipulation is carried out to chromosome
1) operation is inherited
In performance rate table, before x chromosome, y% inherits in chromosome congression of future generation, and all the other x × (1-y%) bar chromosome produces through selection, intersection, variation step, and y% represents chromosomal excellent rate, wherein y ∈ [1-100];
2) operation is selected:
In performance rate table, select the interlace operation that two chromosomes carry out below, thus produce new chromosome, adopt the mode of roulette, chromosomal fitness is higher, higher by the probability selected;
3) interlace operation
Two the chromosome Matrix C selected 1and C 2as former generation's chromosome, interlace operation is to former generation's chromosome Matrix C 1and C 2carry out part restructuring, produce offspring's chromosome C 3and C 4, in interlace operation, chromosome matrix the first row remains unchanged, constant to ensure tasks carrying order, in former generation's chromosome Matrix C 1and C 2second row is selected a bit as crosspoint, Matrix C 1and C 2part behind second row crosspoint exchanges, thus produces offspring's chromosome Matrix C 3and C 4, calculate offspring's chromosome Matrix C 3and C 4fitness, and be stored in the relevant position of performance rate table;
4) mutation operation
Comprise two kinds of mutational formats, mode is a) sudden change of task based access control, and each chromosome has λ probability, by Stochastic choice duty mapping on another node; Or adopt mode b) based on chromosomal sudden change, the new chromosome that each chromosome has λ probability to be randomly generated is completely alternative, and wherein λ represents mutation rate, λ ∈ (0-1);
(5) said process is after the iterative operation of certain number of times, and gateway node selects the chromosome being in top as current allocative decision in performance rate table;
The ordinary node related in the allocative decision that step 2, gateway node are selected is active node, and active node, according to the nodal integration exchange rate and energy consumption of finishing the work, obtains associated quad; The described integration exchange rate is used represent, be that node consumption unit energy should obtain integration, embody the cost performance that node is finished the work; Described integration is used to the history performance that measurement node is finished the work, and can increase the participation that node is executed the task, carry out quantizing examination, line item of going forward side by side with integration to the performance that node is finished the work, and be divided into reward points and punishment integration, described reward points is used represent, punishment integration is used represent; if the task of being successfully completed; corresponding reward points can be obtained; if finish the work unsuccessful, can be deducted and punish integration accordingly, described reward points refers to that node can obtain corresponding integration after being successfully completed task; described punishment integration refers to that node is unsuccessful and finishes the work; deduct corresponding integration, the integration summation that node is got up by accumulation of finishing the work is called total mark, uses represent;
The detailed process obtaining integration is as follows:
First, ordinary node V jfinish the work T in mandatory period deadline i, think ordinary node V jbe successfully completed task T i, ordinary node V jautomatic acquisition individual reward points, and upgrade ordinary node V jdump energy, total mark and the integration exchange rate, return to gateway node together with task result.Gateway node upgrades the dump energy of this ordinary node in nodal integration table, total mark and the integration exchange rate;
Secondly, ordinary node V jfail to finish the work T in mandatory period deadline i, think ordinary node V jfail the T that finishes the work i, ordinary node V jautomatically deduct in original total mark individual punishment integration, ordinary node V jupgrade dump energy, total mark and the integration exchange rate, send gateway node to by regular reporting, gateway node upgrades the dump energy of this ordinary node in nodal integration table, total mark and the integration exchange rate;
The concrete computational process of integration is as follows:
First, the computing node integration exchange rate represent ordinary node V joften consume the energy of a joule, the reward points that should obtain, relevant with residue energy of node, node total mark, the nodal integration exchange rate is expressed as: Point rate V j = 1 E residual V j × Point wealth V j , Wherein for ordinary node V jdump energy, for node V jtotal mark;
Secondly, computing node is finished the work energy consumption, comprises and calculates energy consumption and communication energy consumption;
C total V j ( T i ) = C comp V j ( T i ) + C comm V j ( T i ) ;
Wherein, expression task T iat ordinary node V jon wastage in bulk or weight, expression task T iat ordinary node V jon calculating consumption, expression task T iat ordinary node V jon communication consumption;
Calculate and consume: represent ordinary node V javerage energy consumption, expression task T iat ordinary node V jon time of implementation, expression task T iamount of calculation, represent ordinary node V jexecution speed;
Communication consumes: wherein, represent ordinary node V jfor the T that finishes the work ienergy consumption needed for transmission packet, represent ordinary node V jfor the T that finishes the work ireceive energy consumption needed for packet.
C tran V j ( T i ) = ( &xi; elec + &xi; fs * d 2 ) * l , d < d 0 ( &xi; elec + &xi; mp * d 4 ) * l , d &GreaterEqual; d 0
C rece V j ( T i ) = &xi; elec * l
L represents the data package size of transmission, and d represents the distance of sending node and receiving node, ξ elec, ξ fs, ξ mphardware-related parameter, d 0for preset parameter;
Again, node tasks reward points i.e. ordinary node V jbe successfully completed task T ithe integration that should obtain is:
Point teward V j ( T i ) = point rate V j &times; C total V j ( T i )
Wherein for ordinary node V jthe integration exchange rate, for ordinary node V jfinish the work T itotal power consumption;
Again, node tasks punishment integration i.e. ordinary node V jthe unsuccessful T that finishes the work ithe integration that should deduct is:
Point punish V j ( T i ) = &beta; &times; Point reward V j ( T i )
Wherein β is customized parameter;
Finally, computing node total mark ordinary node V jthe integration summation that accumulation of finishing the work is got up, namely all reward points sums deduct all punishment integration sums;
Point wealth V j = &Sigma; T s &Element; V j ( T ) Point reward V j ( T s ) - &Sigma; T s &Element; V j ( T ) Point punish V j ( T f )
Wherein, V j(T) be ordinary node V jall tasks of upper distribution, T sordinary node V jon the task of being successfully completed, T fordinary node V jupper unsuccessful completing of task;
If step 3 active node itself fail or be subject to other malicious nodes attack, namely unstable node is thought, if unstable node has not complete task, need the cooperation being exchanged for other ordinary nodes by the mode of redeem points, thus by task immigration on other ordinary nodes;
The process that unstable node redeem points seeks the cooperation of other ordinary nodes adopts auction mechanism, and improve auction formats, specific tasks transition process is as follows:
First, executing the task when the ordinary node discovery oneself of body is for unstable node when having, can not continue to perform the task of having distributed, so initiate the successor node that task is found in an auction, unstable node V failurerepresent, the task T that unstable node does not complete failurerepresent; Unstable node V failuretender Tender (T is sent to other ordinary nodes as bid node failure, deadline, Point budget), include task description in bidding documents, mandatory period, and this node is the maximum budget Point that this task is paid budget, maximum budget equals the total mark of this node
Secondly, when ordinary node receives tender Tender (T failure, deadline, Point budget) after, just according to the requirement in tender, own situation is passed judgment on, determine whether participating in competitive bidding, if do not participate in just refusing action, if participate in just providing quotation according to own situation; Determine that the process whether participating in competitive bidding is as follows:
First competitive bidding node considers time limit task time factor, if competitive bidding node has had original task of distributing, and the Estimated Time Of Completion of new task is greater than official hour time limit deadline in bidding documents, then do not participate in competitive bidding;
If competitive bidding node Estimated Time Of Completion is less than or equal to official hour time limit deadline in bidding documents, then calculate this task integration price Point price V j ( T failure ) = Point rate V j &times; C total V j ( T failure ) , Wherein for competitive bidding node V jthe integration exchange rate, for competitive bidding node V jfinish the work T failuretotal power consumption;
If the integration price that competitive bidding node is finished the work is greater than the budget in bidding documents, namely then this competitive bidding node does not participate in competitive bidding,
If the integration price that competitive bidding node is finished the work is less than or equal to the budget in bidding documents, namely Point price V j ( T failure ) &le; Point budget , Then this competitive bidding node can participate in competitive bidding, and as tender price;
Again, the competitive bidding node that bid sensor selection problem tender price is minimum is as acceptance of the bid node.After acceptance of the bid node is determined, bid node V failureby task T failureacceptance of the bid node is given in migration, deducts in total mark individual integration.And report Report using the total mark after renewal, the integration exchange rate, acceptance of the bid node, migration mission bit stream as accident emergencybe uploaded to gateway node;
Again, gateway node upgrades nodal integration table again;
Again, acceptance of the bid node is executed the task, and obtains after being successfully completed task individual reward points, and task result is returned to gateway node;
Finally, if without ordinary node acceptance of the bid, unstable node V failureby task T failureas accident report Report emergencybe uploaded to gateway node, by gateway node by task T failureassignment of allocation on other ordinary nodes, unstable node V failurededuction punishes integration accordingly;
If step 4 active node is due to energy exhaustion or communication link fails can not communicate with other ordinary node, then this active node is called death nodes, gateway node can find death nodes immediately, and is re-assigned on other ordinary nodes by not finishing the work on death nodes;
Detailed process is as follows:
First, ordinary node needs regularly to send regular reporting Report to gateway node node periodic, comprise dump energy, total mark, integration exchange rate information, gateway node is according to regular reporting Report periodic, regular update nodal integration table;
Secondly, if at the appointed time, the regular reporting Report of certain ordinary node is not received periodic, do not receive the accident report Report of this ordinary node yet emergency, gateway node assert that this ordinary node is dead;
Finally, gateway node judges whether this death nodes there is not completing of task, if do not had, just directly upgrades nodal integration table, is deleted by this node from table; If there is not completing of task, after first this not being finished the work and is redistributed, then upgrade nodal integration table.
Above execution mode is only for illustration of the present invention; and be not limitation of the present invention; person skilled in the relevant technique; when not departing from the inventive method and scope; can also make a variety of changes; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (2)

1. a wireless sensor network, comprises a gateway node and multiple ordinary node, it is characterized in that:
Described gateway node and ordinary node link in the mode of wireless multi-hop and form, and gateway node has supply of electric power, and ordinary node does not have supply of electric power, ordinary node random arrangement, once after arranging, just no longer move.
2. in wireless sensor network as claimed in claim 1 based on a task immigration method for genetic algorithm and integration incentive mechanism, it is characterized in that:
Step one, gateway node receive an application instruction, and the application in this instruction can be broken down into multiple complementary subtask, describes with DAG task image G=(T, E), the summit set T={T of DAG task image 1, T 2..., T nrepresent, representative needs the subtask performed, and wherein n represents the number of subtask, and there is a time restriction deadline each subtask, and the execution of subtask must complete before the deadline specified, the limit E={E of DAG task image 1, E 2..., E grepresent, represent the data dependence between subtask or control to rely on, wherein g represents the number on the limit of DAG task image, if from summit T ito summit T jthere is a directed edge E ij, then subtask T is described jexecution need subtask T ioutput data; Gateway node adopts genetic algorithm manage the subtask in DAG task image and distribute, and concrete grammar is as follows:
(1) stochastic generation allocative decision and chromosome, builds chromosome congression S
Use S={C 1, C 2..., C xrepresent all allocative decisions and chromosomal set, wherein C is a candidate scheme, and x is the number of all candidate schemes; Gateway node stochastic generation x allocative decision, each allocative decision is exactly a chromosome, and each chromosome 3 × n matrix C represents, n represents the total task number in DAG task image, (the T in Matrix C the first row 1... T i... T n) be subtask to be allocated, its order from left to right determines according to tasks carrying order in DAG task image, Matrix C second row (V 1... V j... V m) represent subtask map node, Matrix C the third line (ω 1... ω i... ω n) representing the amount of calculation of subtask, chromosome Matrix C is as follows:
C = T 1 . . . T i . . . T n V 1 . . . V j . . . V m &omega; 1 . . . &omega; i . . . &omega; n
(2) communication matrix E is built
Data transmission relations between task 3 × g matrix E represents i.e. communication matrix, and g is the sum on the limit of DAG task image, each row first element T in matrix E iexpression task transmit leg, second element T jfor task recipient, the 3rd element l ijfor task T iand T jbetween transmit the size of data, wherein row of communication matrix E are as follows:
E = T i T j l ij
(3) the total reward points of chromosome is calculated
The reward points that every bar chromosome produces refer to that gateway node is by certain chromosome C kwhen carrying out task matching, complete the summation of the reward points paid needed for all subtasks in DAG task image:
Point total C k = &Sigma; T i &Element; T , V j &Element; C k Point reward V j ( T i )
Wherein, T i∈ T represents all subtasks in DAG task image, V j∈ C krepresent chromosome C kin involved all ordinary nodes, for node V jfinish the work T irequired reward points;
(4) the chromosome deadline is calculated
Chromosome deadline WT (C k) refer to that gateway node is by certain chromosome C kwhen carrying out task matching, complete the time span required for all subtasks in DAG task image;
(5) construct fitness function, chromosome performance is assessed
Fitness represents chromosomal quality, fitness is higher, this chromosome is more excellent, then chromosome survival probability is higher, chromosomal fitness is calculated by structure fitness function, the structure target of fitness function finds total reward points little, the chromosome that the deadline is short, and fitness function is as follows:
fit ( C k ) = MIN _ Point total S Point total C k + &beta; MIN _ WT ( S ) WT ( C k )
Wherein, fit (C i) be chromosome C ifitness, be the minimum value of total reward points in chromosome congression S, MIN_WT (S) is the minimum value of deadline in chromosome congression S, and β is customized parameter, regulates total reward points and the deadline weight in fitness function;
Calculate each chromosomal fitness, be stored in performance rate table by the fitness of chromosomal for x bar No. ID and correspondence and be used for classification and identifying, the descending by adaptive value in performance rate table sorts, and the chromosome that fitness is high comes the top of table;
(6) genetic manipulation is carried out to chromosome
1) operation is inherited
In performance rate table, before x chromosome, y% inherits in chromosome congression of future generation, and all the other x × (1-y%) bar chromosome produces through selection, intersection, variation step, and y% represents chromosomal excellent rate, wherein y ∈ [1-100];
2) operation is selected:
In performance rate table, select the interlace operation that two chromosomes carry out below, thus produce new chromosome, adopt the mode of roulette, chromosomal fitness is higher, higher by the probability selected;
3) interlace operation
Two the chromosome Matrix C selected 1and C 2as former generation's chromosome, interlace operation is to former generation's chromosome Matrix C 1and C 2carry out part restructuring, produce offspring's chromosome C 3and C 4, in interlace operation, chromosome matrix the first row remains unchanged, constant to ensure tasks carrying order, in former generation's chromosome Matrix C 1and C 2second row is selected a bit as crosspoint, Matrix C 1and C 2part behind second row crosspoint exchanges, thus produces offspring's chromosome Matrix C 3and C 4, calculate offspring's chromosome Matrix C 3and C 4fitness, and be stored in the relevant position of performance rate table;
4) mutation operation
Comprise two kinds of mutational formats, mode is a) sudden change of task based access control, and each chromosome has λ probability, by Stochastic choice duty mapping on another node; Or adopt mode b) based on chromosomal sudden change, the new chromosome that each chromosome has λ probability to be randomly generated is completely alternative, and wherein λ represents mutation rate, λ ∈ (0-1);
(7) said process is after the iterative operation of certain number of times, and gateway node selects the chromosome being in top as current allocative decision in performance rate table;
The ordinary node related in the allocative decision that step 2, gateway node are selected is active node, and active node obtains associated quad according to the nodal integration exchange rate and energy consumption of finishing the work;
Wherein, integration is used to the history performance that measurement node is finished the work, and for increasing the participation that node is executed the task, carry out quantizing examination with integration to the performance that node is finished the work, line item of going forward side by side, integration comprises reward points with punishment integration wherein T i∈ T represents all subtasks in DAG task image; If active node is successfully completed task, corresponding reward points can be obtained finish the work if unsuccessful, can be deducted and punish integration accordingly the integration summation that active node is got up by accumulation of finishing the work is total mark total mark ordinary node V jthe integration summation that accumulation of finishing the work is got up, namely all reward points sums deduct all punishment integration sums: Point wealth V j = &Sigma; T s &Element; V j ( T ) Point reward V j ( T s ) - &Sigma; T s &Element; V j ( T ) Point punish V j ( T f ) , Wherein, V j(T) be ordinary node V jall tasks of upper distribution, T sordinary node V jon the task of being successfully completed, T fordinary node V jupper unsuccessful completing of task;
The described integration exchange rate is that node consumption unit energy should obtain integration, and it embodies the cost performance that node is finished the work, and uses Point rate V j = 1 E residual V j &times; Point wealth V j Represent, wherein for ordinary node V jdump energy, for node V jtotal mark;
If step 3 active node itself fail or be subject to other malicious nodes attack, it is then unstable node, if this unstable node has not complete task, need the cooperation being exchanged for other ordinary nodes by the mode of redeem points, thus by task immigration on other ordinary nodes;
If step 4 active node is due to energy exhaustion or communication link fails can not communicate with other node, then this active node is death nodes, gateway node can find death nodes immediately, and not finishing the work on death nodes is re-assigned on other ordinary nodes.
CN201410725181.4A 2014-12-03 2014-12-03 A kind of wireless sensor network and its node tasks moving method Active CN104506576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410725181.4A CN104506576B (en) 2014-12-03 2014-12-03 A kind of wireless sensor network and its node tasks moving method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410725181.4A CN104506576B (en) 2014-12-03 2014-12-03 A kind of wireless sensor network and its node tasks moving method

Publications (2)

Publication Number Publication Date
CN104506576A true CN104506576A (en) 2015-04-08
CN104506576B CN104506576B (en) 2017-11-10

Family

ID=52948291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410725181.4A Active CN104506576B (en) 2014-12-03 2014-12-03 A kind of wireless sensor network and its node tasks moving method

Country Status (1)

Country Link
CN (1) CN104506576B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104540171A (en) * 2014-12-15 2015-04-22 常州大学 Wireless sensor network and node task distribution method thereof
WO2016067299A1 (en) * 2014-10-30 2016-05-06 Hewlett-Packard Development Company, L.P. Location aware failover solution
CN105577541A (en) * 2015-12-21 2016-05-11 东北大学 Dynamic gaming excitation method based on node dependence
CN107066709A (en) * 2017-03-29 2017-08-18 西安电子科技大学 Electric power transportation network Topology Structure Design method based on multi-Agent Genetic Algorithm
CN107547264A (en) * 2017-07-28 2018-01-05 深圳市盛路物联通讯技术有限公司 A kind of data back up method and device based on Internet of Things
CN111328029A (en) * 2020-03-14 2020-06-23 杭州鸿晶自动化科技有限公司 Decentralized task redistribution method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013986A (en) * 2007-02-02 2007-08-08 南京邮电大学 Method for realizing data inquiring system of sensor network based on middleware of mobile agent
CN101039321A (en) * 2007-02-02 2007-09-19 南京邮电大学 Mixed mobile agent-based wireless sensor network data transmission method
CN101170573A (en) * 2007-11-21 2008-04-30 湖南大学 Active radio sensor network middleware system and implementation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013986A (en) * 2007-02-02 2007-08-08 南京邮电大学 Method for realizing data inquiring system of sensor network based on middleware of mobile agent
CN101039321A (en) * 2007-02-02 2007-09-19 南京邮电大学 Mixed mobile agent-based wireless sensor network data transmission method
CN101170573A (en) * 2007-11-21 2008-04-30 湖南大学 Active radio sensor network middleware system and implementation method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016067299A1 (en) * 2014-10-30 2016-05-06 Hewlett-Packard Development Company, L.P. Location aware failover solution
CN104540171A (en) * 2014-12-15 2015-04-22 常州大学 Wireless sensor network and node task distribution method thereof
CN104540171B (en) * 2014-12-15 2017-09-08 常州大学 A kind of node tasks distribution method in wireless sensor network
CN105577541A (en) * 2015-12-21 2016-05-11 东北大学 Dynamic gaming excitation method based on node dependence
CN107066709A (en) * 2017-03-29 2017-08-18 西安电子科技大学 Electric power transportation network Topology Structure Design method based on multi-Agent Genetic Algorithm
CN107066709B (en) * 2017-03-29 2019-05-21 西安电子科技大学 Electric power transportation network Topology Structure Design method based on multi-Agent Genetic Algorithm
CN107547264A (en) * 2017-07-28 2018-01-05 深圳市盛路物联通讯技术有限公司 A kind of data back up method and device based on Internet of Things
CN107547264B (en) * 2017-07-28 2020-10-20 深圳市盛路物联通讯技术有限公司 Data backup method and device based on Internet of things
CN111328029A (en) * 2020-03-14 2020-06-23 杭州鸿晶自动化科技有限公司 Decentralized task redistribution method and device

Also Published As

Publication number Publication date
CN104506576B (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN104506576A (en) Wireless sensor network and node task migration method thereof
García-Álvarez et al. Metaheuristics for solving a real-world electric vehicle charging scheduling problem
Lin et al. Multi-criteria human resource allocation for solving multistage combinatorial optimization problems using multiobjective hybrid genetic algorithm
Karthikeyan et al. A hybrid discrete firefly algorithm for solving multi-objective flexible job shop scheduling problems
Fowler et al. Heuristics for workforce planning with worker differences
Melián-Batista et al. A bi-objective vehicle routing problem with time windows: A real case in Tenerife
Mokhtari et al. Time-cost tradeoff analysis in project management: An ant system approach
Wang et al. A holonic approach to flexible flow shop scheduling under stochastic processing times
CN104102544A (en) Multi QoS (quality of service)-constrained parallel task scheduling cost optimizing method under mixed cloud environment
Ke et al. Optimizing online matching for ride-sourcing services with multi-agent deep reinforcement learning
CN111325356A (en) Neural network search distributed training system and training method based on evolutionary computation
Lei Minimizing makespan for scheduling stochastic job shop with random breakdown
CN110097190B (en) Crowd sensing task allocation method based on double time limits
Kang et al. An enhanced model for the integrated production and transportation problem in a multiple vehicles environment
CN110097218B (en) Unmanned commodity distribution method and system in time-varying environment
CN104540171A (en) Wireless sensor network and node task distribution method thereof
Pizzocaro et al. A distributed architecture for heterogeneous multi sensor-task allocation
CN101944157A (en) Biological intelligence scheduling method for simulation grid system
Zhang et al. Individualized requirement-driven multi-task scheduling in cloud manufacturing using an extended multifactorial evolutionary algorithm
Yang et al. Mathematical modeling of multi-plant order allocation problem and solving by genetic algorithm with matrix representation
Yazdani et al. A lion optimisation algorithm for a two-agent single-machine scheduling with periodic maintenance to minimise the sum of maximum earliness and tardiness
CN111885551B (en) Selection and allocation mechanism of high-influence users in multi-mobile social network based on edge cloud collaborative mode
CN110837950B (en) Dynamic scheduling method of RGV (traffic volume group) trolley
CN104320484A (en) Task immigration method in wireless sensor network based on integral incentive mechanism
CN104869154A (en) Distributed resource scheduling method for balancing resource credibility and user satisfaction

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

Effective date of registration: 20211217

Address after: 213000 Room 501, building 3, Changzhou inspection and testing industrial park, Tianning District, Changzhou City, Jiangsu Province

Patentee after: Biyi (Jiangsu) Intelligent Technology Co.,Ltd.

Address before: Gehu Lake Road Wujin District 213164 Jiangsu city of Changzhou province No. 1

Patentee before: CHANGZHOU University

TR01 Transfer of patent right