Summary of the invention
For the problems referred to above, the objective of the invention is to find a kind of roadside base station deployment method of optimum, guarantee that message propagates into all vehicles in the time-delay boundary under the time.
Technical scheme of the present invention is base station, the roadside optimal deployment method under the time-delay terminal conditions among a kind of VANET, may further comprise the steps:
One, at first objective definition is given time-delay boundary T, and how optimum base station, deployment roadside guarantees emergency message all nodes in the car networking that T propagated in the time;
Two, definition mileage chart G=(V, E), the figure Point Set is V={v1, v2..., vm, viThe both candidate nodes that represents all deployment, quantity are m, and the value of i is 1,2 ... m; The limit integrates as E={e1, e2..., en, ejThe set of expression road, quantity is n, the value of j is 1,2 ... n, wherein the weights e (v on every limiti, vj) be the time-delay d that message is propagated at this roadIj
Three, definition DIjBe broadcast to the propagation time under the worst case of other vehicle node for the roadside base-station node that message is disposed from any two candidates;
Four, the expansion vertex covering set of definition base station, roadside is ECVT(vx), T is given when the time-delay boundary, and message is from roadside base station vxPropagate into other base station, roadside, satisfy following formula,
Wherein, DXiThat message is from base station, roadside vxPropagate into other base station, roadside viPropagation time; If the propagation time is less than time-delay boundary T, then base station, roadside viBe base station, roadside vxExpansion vertex covering set ECVT(vx) in an element;
Five, definition base station, roadside vxThe expansion limit cover and to integrate as ECET(vx), satisfy following formula,
Wherein, base station, roadside viAnd vjBase station, roadside vxExpansion vertex covering set ECVT(vx) in two elements, and limit e (vi, vj) in the limit collection of mileage chart E (G), limit e (v theni, vj) be base station, roadside vxThe expansion limit cover and to integrate as ECET(vx) in an element;
Six, definition time-delay boundary figure is undirected bigraph (bipartite graph) G '=(V ', E '), and its Point Set is V '=V ∪ V2, and point set V disposes the point set of base station, i.e. V={v for all candidates1, v2..., vm, point set V2={vE1, vE2... vEnThe point set that consists of for all limits of mileage chart; Limit e ' (v among the collection E ' of limiti, vEjIf) represent to satisfy under time-delay boundary T vertex viCan cover limit ej, satisfy following formula,
Wherein, if limit ejBase station, roadside viThe expansion limit cover collection ECET(i) element in, then limit e ' (vi, vEj) be an element among the collection E ' of limit;
Seven, definition all standing roadside collection of base stations is for the situation of roadside base station radio connection, for set R'={v1, v2, ..., vkIn any roadside base station viAnd vj, satisfy following formula,
Wherein, any two roadsides base station v among all standing roadside collection of base stations R'iAnd vjSatisfy message from base station, roadside viPropagate into other base station, roadside vjPropagation time DIjLess than time-delay boundary T;
Eight, for base station, roadside wired connection situation, adopt approximate data, try to achieve the optimum roadside collection of base stations of disposing; Connect for the roadside base station radio, propose the roadside base station radio and connect Deployment Algorithm, try to achieve the optimum roadside collection of base stations of disposing;
The described approximate data implementation procedure that adopts for base station, roadside wired connection situation is as follows,
R is used for recording candidate roadside collection of base stations, and T is the time-delay boundary, and R ' is the base station deployment set of optimum roadside, carries out following substep,
Step 1, input candidate roadside collection of base stations R, time-delay boundary T forwardsstep 2 to;
Step 2 is calculated base station, roadside i to the Information Communication time-delay D of base station, roadside jIj,forward step 3 to;
Step 3 is judged base station, roadside viWhether belong to candidate roadside collection of base stations R, if so, then calculate viExpansion vertex covering set ECVT(vi) and expansion limit covering collection ECET(vi), turnstep 4; Otherwise, forward step 5 to;
Step 4 is i+1 with the i assignment, turnsstep 3;
Step 5, the optimum roadside of initialization base station deployment set R ' is empty, forwards step 6 to;
Step 6 judges that candidate roadside collection of base stations R whether not for empty, if be not empty, then calculates the optimum node v that disposesBest=max{ECET(vi), the optimum of selecting is disposed node vBestAdd among the optimum roadside base station deployment set R ', i.e. R '=R ' ∪ { vBest; Then, from the collection of base stations R of candidate roadside, take out vBestThe node that covers of extension point, namely R=R ECVT(vBest), until candidate roadside collection of base stations R is empty; If candidate roadside collection of base stations R is empty, export optimum roadside base station deployment set R ', finish;
Connect the roadside base station radio connection Deployment Algorithm that proposes for the roadside base station radio and comprise the 1st stage flow process and the 2nd stage flow process,
The 1st stage flow process implementation procedure is as follows,
R is used for recording candidate roadside collection of base stations, and T is the time-delay boundary, and R ' ' is the base station deployment set of sub optimum roadside, and Ω is the set of sub optimum roadside base station deployment set, carries out following substep,
Step 1, input candidate roadside collection of base stations R, time-delay boundary T forwardsstep 2 to;
Step 2 is calculated base station, roadside i to the Information Communication time-delay D of base station, roadside jIj,forward step 3 to;
Step 3 is judged base station, roadside viWhether belong to candidate roadside collection of base stations R, if so, then calculate viExpansion vertex covering set ECVT(vi) and expansion limit covering collection ECET(vi),forward step 4 to; Otherwise, forward step 5 to;
Step 4 is i+1 with the i assignment, turnsstep 3;
Step 5, the content of initialization set omega are empty, namely
The content of initialization set Ψ is candidate roadside collection of base stations R, and namely Ψ=R forwards step 6 to;
Step 6 judges whether set Ψ is not equal to sky, and if so, then the optimum roadside of initial beggar base station deployment set R ' ' is empty, forwards step 7 to; Otherwise, export the set omega of optimum roadside base station deployment set, algorithm finishes;
Step 7 judges that candidate roadside collection of base stations R whether not for empty, if be not empty, then calculates the optimum node v that disposesBest=max{ECET(vi), the optimum of selecting is disposed node vBestAdd among the sub optimum roadside base station deployment set R ' ', i.e. R ' '=R ' ' ∪ { vBest; Then, from the collection of base stations R of candidate roadside, take out vBestThe node that covers of extension point, namely R=R ECVT(vBest), until candidate roadside collection of base stations R is empty; If candidate roadside collection of base stations R is empty,forward step 8 to;
Step 8 is disposed node v with the optimum of selectingBestRemove the Ψ from set, namely Ψ=Ψ vBest, the optimum roadside of son base station deployment set R ' ' is added in the set omega, namely Ω=Ω ∪ R ' ' forwards step 6 to;
The 2nd stage flow process implementation procedure is as follows,
Ω is the set of sub optimum roadside base station deployment set, and T is the time-delay boundary, and R ' ' is the base station deployment set of sub optimum roadside, ROptBe the optimum deployment set of wireless connections Deployment Algorithm, carry out following substep,
Step 1 is inputted the set omega that sub optimum roadside base station deployment is gathered, and time-delay boundary T forwardsstep 2 to;
Step 2 judges that whether sub optimum roadside base station deployment set R ' ' belongs to set omega, if so, then forwardsstep 3 to; Otherwise, forward step 7 to;
Step 3 is judged base station, roadside viAnd vjThe no sub optimum roadside base station deployment set R ' ' that belongs to if so, forwardsstep 4 to; Otherwise,forward step 2 to;
Step 4 is calculated base station, roadside i to the Information Communication time-delay D of base station, roadside jIj, forward step 5 to;
Step 5 is judged DIjWhether less than time-delay boundary T, if so, forward step 6 to; Otherwise,forward step 3 to;
Step 6 is taken out the optimum roadside of son base station deployment set R ' ' from set omega, namely Ω=Ω R ' ', thenforward step 2 to;
Step 7, intiating radio connects the optimum deployment set R of Deployment AlgorithmOpt, with ROptAssignment is sub optimum roadside base station deployment set R ' ', i.e. ROpt=R ' ' forwardsstep 8 to;
Step 8 judges that whether sub optimum roadside base station deployment set R ' ' belongs to set omega, if so, turns step 9; Otherwise, output ROpt, algorithm finishes;
Step 9 judges that whether the interstitial content of sub optimum roadside base station deployment set R ' ' is less than or equal to optimum deployment set ROptInterstitial content, namely | R''|<=| ROpt|, if so, with optimum deployment set ROptAssignment is sub optimum roadside base station deployment set R ' ', i.e. ROpt=R ' ' forwardsstep 8 to, if otherwise directly forwardstep 8 to.
Characteristics of the present invention: by mileage chart and time-delay boundary graphic definition, the wired deployment issue in base station, roadside is converted into the minimum vertices covering level problem of bigraph (bipartite graph); By the definition of base station, all standing roadside, not that problem is converted into linear programming problem with the roadside base station radio; Prove that base station, optimum roadside problem is np hard problem, thereby provide the approximate data of the wired deployment in base station, roadside and the deployment of roadside base station radio.The inventive method is simple, execution efficient is high, be applicable to the base station deployment in the car networked environment, thereby the Effective Raise vehicle is received the probability of message.
Embodiment
Technical solution of the present invention can adopt the computer software flow process to realize automatically operation in the specific implementation.Describe technical solution of the present invention in detail below in conjunction with drawings and Examples.
Base station, roadside optimal deployment method in the VANET environment that the embodiment of the invention provides under the time-delay terminal conditions may further comprise the steps:
One, at first objective definition is given time-delay boundary T, and how optimum base station, deployment roadside guarantees emergency message all nodes in the car networking that T propagated in the time;
Two, definition mileage chart G=(V, E), the figure Point Set is V={v1, v2..., vm, viThe both candidate nodes that represents all deployment, quantity are m, and the value of i is 1,2 ... m; The limit integrates as E={e1, e2..., en, ejThe set of expression road, quantity is n, the value of j is 1,2 ... n, wherein the weights e (v on every limiti, vj) be the time-delay d that message is propagated at this roadIj
Three, definition DIjBe broadcast to the propagation time under the worst case of other vehicle node for the roadside base-station node that message is disposed from any two candidates;
Four, the expansion vertex covering set of definition base station, roadside is ECVT(vx), T is given when the time-delay boundary, and message is from roadside base station vxPropagate into other base station, roadside, satisfy:
Wherein, DXiThat message is from base station, roadside vxPropagate into other base station, roadside viPropagation time; If the propagation time is less than time-delay boundary T, then base station, roadside viBe base station, roadside vxExpansion vertex covering set ECVT(vx) in an element.
Five, definition base station, roadside vxThe expansion limit cover and to integrate as ECET(vx), satisfy:
Wherein, base station, roadside viAnd vjBase station, roadside vxExpansion vertex covering set ECVT(vx) in two elements, and limit e (vi, vj) in the limit collection of mileage chart E (G), limit e (v theni, vj) be base station, roadside vxThe expansion limit cover collection ECET(vx) in an element.
Six, definition time-delay boundary figure is undirected bigraph (bipartite graph) G '=(V ', E '), and its Point Set is V '=V ∪ V2, and point set V disposes the point set of base station, i.e. V={v for all candidates1, v2..., vm, point set V2={vE1, vE2... vEnThe point set that consists of for all limits of mileage chart; Limit e ' (v among the collection E ' of limiti, vEjIf) represent to satisfy under time-delay boundary T vertex viCan cover limit ej, satisfy:
Wherein, if limit ejBase station, roadside viThe expansion limit cover collection ECET(i) element in, then limit e ' (vi, vEj) be an element among the collection E ' of limit.
Seven, definition all standing roadside collection of base stations is for the situation of roadside base station radio connection, for set R'={v1, v2, ..., vkIn any roadside base station viAnd vj, satisfy:
Wherein, any two roadsides base station v among all standing roadside collection of base stations R'iAnd vjSatisfy message from base station, roadside viPropagate into other base station, roadside vjPropagation time DIjLess than time-delay boundary T.
Eight, base station, roadside optimal deployment method is decomposed into the wired deployment of the wired deployment in base station, roadside (ORP-L) and base station, roadside (ORP-W) method;
For base station, roadside wired connection situation, adopt approximate data, try to achieve the optimum roadside collection of base stations of disposing;
Connect for the roadside base station radio, propose the roadside base station radio and connect deployment (ORP-W) algorithm.Algorithm at first need to find all standing roadside collection of base stations Ω=R '1, R '2... R '1, each element of this set is the optimum roadside collection of base stations of disposing of son; Then find an optimal solution R ' in this set1, it is minimum that this optimal solution satisfies the roadside number of base stations of disposing.
Base station, roadside of the present invention optimal deployment method comprises following two parts:
(1) optimum of base station, roadside wired connection is disposed.
(2) optimum of roadside base station radio connection is disposed.
(1) in, the whole wired connections in base station, roadside, we are translated into the vertex cover problem of undirected bigraph (bipartite graph), then provide approximate data.(2) in, the whole wireless connections in base station, roadside, we are translated into linear programming problem, and provide approximate data stage by stage.Provide respectively embodiment to realize in detail being described as follows:
(1) optimum of base station, roadside wired connection is disposed
According to the definition ofstep 2, mileage chart G=(V, E), figure Point Set are V={v1, v2..., vm, viThe both candidate nodes that represents all deployment, quantity are m, and the value of i is 1,2 ... m; The limit integrates as E={e1, e2..., en, ejThe set of expression road, quantity is n, the value of j is 1,2 ... n, wherein the weights e (v on every limiti, vj) be the time-delay d that message is propagated at this roadIjDefinition DIjBe the roadside base-station node v that message is disposed from two candidatesi, vjBe broadcast to other vehicle node vkWorst case under propagation time, have:
Wherein, N (i) expression node viNeighbor node set.Mileage chart example such as accompanying drawing 1 comprise node A, B, C, D, and limit 1,2,3,4 is arranged.
So, T is given when the time-delay boundary, and information is from roadside base station vxPropagate into other base station, roadside, the expansion vertex covering set of this base station, roadside is ECVT(vx), satisfy:
In like manner, the expansion limit of this base station, roadside covers and integrates as ECET(vx), satisfy:
Definition time-delay boundary figure is undirected bigraph (bipartite graph) G '=(V ', E '), and its Point Set is V '=V ∪ V2, and point set V disposes the point set of base station, i.e. V={v for all candidates1, v2..., vm, point set V2={vE1, vE2... vEnThe point set that consists of for all limits of mileage chart; Limit e ' (v among the collection E ' of limiti, vEjIf) represent to satisfy under time-delay boundary T vertex viCan cover limit ej, satisfy:
The G ' of the corresponding delay boundary figure of accompanying drawing 1∞, G '4, G '2As shown in Figure 2.Wherein, G '∞Expression time-delay boundary is infinite time-delay boundary figure, such as accompanying drawing 2a; G '4Expression time-delay boundary is 4 time-delay boundary figure, such as accompanying drawing 2b; G '2Expression time-delay boundary is 2 time-delay boundary figure, such as accompanying drawing 2c.In Fig. 1,4 roadside base-station nodes are arranged, be respectively A, B, C and D.4 roads are arranged, and are respectively limit e (A, B), limit e (B, C), limit e (C, D) and limit e (D, A).It is 1 that message propagates into Node B from node A, and then the weights of limit e (A, B) are 1.Limit e (B, C) in like manner, the weights of limit e (C, D) and limit e (D, A) are respectively 2,3 and 4.In accompanying drawing 2, point set is made of two parts, and a part is the point set V of accompanying drawing 1, namely puts A, B, C and D; Another part is the point set V2 that the limit collection of accompanying drawing 1 consists of, and namely puts VE (A, B), VE (B, C), VE (C, D)And VE (D, A)In accompanying drawing 2a, because the time-delay boundary is infinitely great, then under infinitely-great time-delay boundary, message can propagate into limit e (A, B) all the figure from node A, e (B, C), and e (C, D) and e (D, A), therefore, node A and node VE (A, B), VE (B, C), VE (C, D)And VE (D, A)There is a limit to link to each other.In like manner, Node B, C and D also with node VE (A, B), VE (B, C), VE (C, D)And VE (D, A)There is a limit to link to each other, therefore finally can gets the time-delay boundary figure of accompanying drawing 2a.Be 4 and 2 o'clock for the time-delay boundary, in like manner can obtain respectively the time-delay boundary figure of accompanying drawing 2b and accompanying drawing 2c.
For the situation of base station, roadside wired connection, propose base station, roadside wired connection and dispose (ORP-L) algorithm, the specific algorithm flow chart is as shown in Figure 3.
What Fig. 3 provided is the flow chart that wired connection is disposed (ORP-L) algorithm, and R is used for recording candidate roadside collection of base stations, and T is the time-delay boundary, and R ' is the base station deployment set of optimum roadside, and arthmetic statement is as follows:
Step1: input candidate roadside collection of base stations R, time-delay boundary T forwards Step2 to;
Step2: calculate base station, roadside i to the Information Communication time-delay D of base station, roadside jIj, forward Step3 to;
Step3: judge base station, roadside viWhether belong to candidate roadside collection of base stations R, if so, then calculate viExpansion vertex covering set ECVT(vi) and expansion limit covering collection ECET(vi), turn Step4; Otherwise, forward Step5 to;
Step4: be i+1 with the i assignment, turn Step3;
Step5: the optimum roadside of initialization base station deployment set R ' is empty, forwards Step6 to;
Step6: judge whether candidate roadside collection of base stations R (is not designated as among the figure for empty
), if be not empty, then calculate the optimum node v that disposes
Best=max{ECE
T(v
i), the optimum of selecting is disposed node v
BestAdd among the optimum roadside base station deployment set R ', i.e. R '=R ' ∪ { v
Best.Then, from the collection of base stations R of candidate roadside, take out v
BestThe node that covers of extension point, namely R=R ECV
T(v
Best), until candidate roadside collection of base stations R is empty;
If candidate roadside collection of base stations R is empty, export optimum roadside base station deployment set R ', finish.
(2) optimum of roadside base station radio connection is disposed
For the situation of roadside base station radio connection, for set R'={v1, v2, ..., vkAny roadside base station v in (herein, k is the total number of base of set among the R ')iAnd vj, satisfy:
Then we claim this set to be all standing roadside collection of base stations.Obviously, for roadside base station radio connection, at first need to find all standing roadside collection of base stations Ω=R '1, R '2... R '1, l is all standing roadside total number of base; Each element of this set is the optimum roadside collection of base stations of disposing of son; Then find an optimal solution R ' in this set1, it is minimum that this optimal solution satisfies the roadside number of base stations of disposing.Because this problem can be converted into a following linear programming problem:
Wherein, m represents to dispose the number of both candidate nodes, Xi, XjRepresent whether i and j both candidate nodes dispose the base station, roadside.
Because this problem is the NP-hard problem, propose the roadside base station radio and connect and dispose (ORP-W) algorithm, be divided into two stages, be respectively ORP-W stage 1 algorithm and ORP-W stages 2 algorithm is successively carried out.Wherein, wireless connections are disposed (ORP-W)stage 1 specific algorithm flow chart as shown in Figure 4.
In Fig. 4, R is used for recording candidate roadside collection of base stations, and T is the time-delay boundary, R ' ' is the base station deployment set of sub optimum roadside, Ω is the set of sub optimum roadside base station deployment set, and each element R ' ' wherein is the optimum roadside base station deployment set of son, and arthmetic statement is as follows:
Step1: input candidate roadside collection of base stations R, time-delay boundary T forwards Step2 to;
Step2: calculate base station, roadside i to the Information Communication time-delay D of base station, roadside jIj, forward Step3 to;
Step3: judge base station, roadside viWhether belong to candidate roadside collection of base stations R, if so, then calculate viExpansion vertex covering set ECVT(vi) and expansion limit covering collection ECET(vi), forward Step4 to; Otherwise, forward Step5 to;
Step4: be i+1 with the i assignment, turn Step3;
Step5: the content of initialization set omega is empty, namely
The content of initialization set Ψ is candidate roadside collection of base stations R, and namely Ψ=R forwards Step6 to;
Step6: judge whether set Ψ is not equal to sky and (is designated as among the figure
), if so, then the optimum roadside of initial beggar base station deployment set R ' ' is empty, forwards Step7 to; Otherwise, export the set omega of optimum roadside base station deployment set, algorithm finishes.
Step7: judge whether candidate roadside collection of base stations R (is not designated as among the figure for empty
), if be not empty, then calculate the optimum node v that disposes
Best=max{ECE
T(v
i), the optimum of selecting is disposed node v
BestAdd among the sub optimum roadside base station deployment set R ' ', i.e. R ' '=R ' ' ∪ { v
Best.Then, from the collection of base stations R of candidate roadside, take out v
BestThe node that covers of extension point, namely R=R ECV
T(v
Best), until candidate roadside collection of base stations R is empty; If candidate roadside collection of base stations R is empty, forward Step8 to;
Step8: the optimum that will select is disposed node vBestRemove the Ψ from set, namely Ψ=Ψ vBest, the optimum roadside of son base station deployment set R ' ' is added in the set omega, namely Ω=Ω ∪ R ' ' forwards Step6 to.
Wireless connections are disposed (ORP-W) stages 2 specific algorithm flow chart as shown in Figure 5.
In Fig. 5, Ω is the set of sub optimum roadside base station deployment set, and T is the time-delay boundary, and R ' ' is the base station deployment set of sub optimum roadside, ROptBe the optimum deployment set of wireless connections Deployment Algorithm, arthmetic statement is as follows:
Step1: input the set omega of sub optimum roadside base station deployment set, time-delay boundary T forwards Step2 to;
Step2: judge that whether sub optimum roadside base station deployment set R ' ' belongs to set omega, if so, then forwards Step3 to; Otherwise, forward Step7 to;
Step3: judge base station, roadside viAnd vjThe no sub optimum roadside base station deployment set R ' ' that belongs to if so, forwards Step4 to; Otherwise, forward Step2 to;
Step4: calculate base station, roadside i to the Information Communication time-delay D of base station, roadside jIj, forward Step5 to;
Step5: judge DIjWhether less than time-delay boundary T, if so, forward Step6 to; Otherwise, forward Step3 to.
Step6: the optimum roadside of son base station deployment set R ' ' is taken out from set omega, namely Ω=Ω R ' ', then forward Step2 to;
Step7: intiating radio connects the optimum deployment set R of Deployment AlgorithmOpt, with ROptAssignment is sub optimum roadside base station deployment set R ' ', i.e. ROpt=R ' ' forwards Step8 to;
Step8: judge that whether sub optimum roadside base station deployment set R ' ' belongs to set omega, if so, turns Step9; Otherwise, output ROpt, algorithm finishes;
Step9: judge that whether the interstitial content of sub optimum roadside base station deployment set R ' ' is less than or equal to optimum deployment set ROptInterstitial content, namely | R''|<=| ROpt|, if so, with optimum deployment set ROptAssignment is sub optimum roadside base station deployment set R ' ', i.e. ROpt=R ' ' forwards Step8 to, if otherwise directly forward Step8 to.
Specific embodiment described herein only is to the explanation for example of the present invention's spirit.Those skilled in the art can make various modifications or replenish or adopt similar mode to substitute described specific embodiment, but can't depart from spirit of the present invention or surmount the defined scope of appended claims.