Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Referring to fig. 1, a conventional vehicle-mounted network system includes a plurality of roadside units, a plurality of vehicle-mounted nodes, and an information center IC; the communication between the vehicle-mounted nodes and the roadside units is V2I, the communication between the vehicle-mounted nodes is V2V, and the communication between the information center IC and the roadside units is an Internet network. The network information stored in the information center IC is divided into two parts, one part is the vehicle-mounted network information content, the other part is the number identification number ID corresponding to the vehicle-mounted network information content, the ID is 1,2, …, Z represents the number of the number identification numbers, for convenience of the following description, Z also represents any number identification number, and may also be the number identification number corresponding to the last vehicle-mounted network information content. If the network information is expressed in a tabular form, the following table is provided.
| Sequence number | content | ID |
| Rf1 | content1 | 1 |
| Rf2 | content2 | 2 |
| Rf3 | content3 | 3 |
| Rf4 | content4 | 4 |
| Rf5 | content5 | 5 |
| ┋ | ┋ | ┋ |
| RfZ-1 | contentZ-1 | Z-1 |
| RfZ | contentZ | Z |
In the above table, content1、content2、content3、content4、content5、……、contentZ-1And contentZThe specific in-vehicle network information content of (a) is different.
The first network information is denoted Rf1(content1,1),content1Representing the vehicle-mounted network information content with thenumber identification number 1, 1 representing the number corresponding to the first vehicle-mounted network information contentAn identification number;
the second network information is denoted as Rf2(content2,2),content2The number identification number of the vehicle-mounted network information content is 2, and 2 is the number identification number corresponding to the second vehicle-mounted network information content;
the third network information is denoted as Rf3(content3,3),content3The number identification number of the third vehicle-mounted network information content is 3, and 3 is a number identification number corresponding to the third vehicle-mounted network information content;
the fourth network information is denoted Rf4(content4,4),content4The number identification number of the fourth vehicle-mounted network information content is 4, and 4 is a number identification number corresponding to the fourth vehicle-mounted network information content;
the fifth network information is denoted as Rf5(content5,5),content5The vehicle-mounted network information content with the number identification number of 5 is shown, and 5 is a number identification number corresponding to the fifth vehicle-mounted network information content;
the Z-1 st network information is recorded as RfZ-1(contentZ-1,Z-1),contentZ-1The method comprises the steps that the vehicle-mounted network information content with the number identification number Z-1 is represented, and Z-1 represents the number identification number corresponding to the Z-1 th vehicle-mounted network information content;
the last network information is denoted RfZ(contentZ,Z),contentZThe method comprises the steps that vehicle-mounted network information content with a digital identification number Z is represented, and the Z represents a digital identification number corresponding to the last vehicle-mounted network information content; for convenience of explanation, RfZ(contentZZ) is also referred to as any network information.
In any storage period tau, the network information is expressed as a set
<math> <mrow> <msup> <mi>F</mi> <mi>τ</mi> </msup> <mo>=</mo> <mfenced open='{' close='}'> <mtable> <mtr> <mtd> <msup> <mi>Rf</mi> <mn>1</mn> </msup> <mrow> <mo>(</mo> <msub> <mi>content</mi> <mn>1</mn> </msub> <mo>,</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>,</mo> </mtd> </mtr> <mtr> <mtd> <msup> <mi>Rf</mi> <mn>2</mn> </msup> <mrow> <mo>(</mo> <msub> <mi>content</mi> <mn>2</mn> </msub> <mo>,</mo> <mn>2</mn> <mo>)</mo> </mrow> <mo>,</mo> </mtd> </mtr> <mtr> <mtd> <msup> <mi>Rf</mi> <mn>3</mn> </msup> <mrow> <mo>(</mo> <msub> <mi>content</mi> <mn>3</mn> </msub> <mo>,</mo> <mn>3</mn> <mo>)</mo> </mrow> <mo>,</mo> </mtd> </mtr> <mtr> <mtd> <msup> <mi>Rf</mi> <mn>4</mn> </msup> <mrow> <mo>(</mo> <msub> <mi>content</mi> <mn>4</mn> </msub> <mo>,</mo> <mn>4</mn> <mo>)</mo> </mrow> <mo>,</mo> </mtd> </mtr> <mtr> <mtd> <msup> <mi>Rf</mi> <mn>5</mn> </msup> <mrow> <mo>(</mo> <msub> <mi>content</mi> <mn>5</mn> </msub> <mo>,</mo> <mn>5</mn> <mo>)</mo> </mrow> </mtd> </mtr> <mtr> <mtd> <mo>·</mo> <mo>·</mo> <mo>·</mo> <mo>,</mo> </mtd> </mtr> <mtr> <mtd> <msup> <mi>Rf</mi> <mrow> <mi>Z</mi> <mo>-</mo> <mn>1</mn> </mrow> </msup> <mrow> <mo>(</mo> <msub> <mi>content</mi> <mrow> <mi>Z</mi> <mo>-</mo> <mn>1</mn> </mrow> </msub> <mo>,</mo> <mi>Z</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>,</mo> </mtd> </mtr> <mtr> <mtd> <msup> <mi>Rf</mi> <mi>Z</mi> </msup> <mrow> <mo>(</mo> <msub> <mi>content</mi> <mi>Z</mi> </msub> <mo>,</mo> <mi>Z</mi> <mo>)</mo> </mrow> <mo>,</mo> </mtd> </mtr> </mtable> </mfenced> <mo>.</mo> </mrow></math>
In the vehicle-mounted network, a current storage cycle is denoted as τ (also referred to as an arbitrary storage cycle τ), and a next storage cycle is denoted as τ + 1. The information transmission processing flow of a vehicle-mounted network comprises the following steps: firstly, in the driving process of a vehicle-mounted node, in the current storage period tau, the vehicle-mounted node sends vehicle-mounted request identification information IM to an information center IC through a roadside unit; then, when the current storage period tau is over, the information center IC distributes network information corresponding to the IM to the roadside units, and outputs a vehicle-mounted distribution result DI; and finally, in the driving process of the vehicle-mounted node, in the next storage period tau +1, the vehicle-mounted node acquires network information corresponding to the IM from the encountered roadside unit.
Referring to fig. 1 and 2, in order to improve the data response rate of the vehicle-mounted network distributed storage and reduce the time overhead of the storage scheme calculation, the invention adopts a vehicle-mounted network distributed storage method based on a bipartite graph, which is referred to as ccr (cooperative Content replication) method for short. The CCR method is used for solving the problem that an information center IC distributes network information corresponding to IM to roadside units.
And the information center IC of the vehicle-mounted network can acquire the network information corresponding to the vehicle-mounted request identification information IM through the Internet and distribute the network information to the roadside units so as to respond to the vehicle-mounted request identification information of the vehicle-mounted nodes.
In the vehicle-mounted network, r roadside units are arranged in total and are expressed in a set form
RD={R
1,R
2,…,R
r},R
1Denotes a first roadside unit, R
2Denotes a second roadside unit, R
rThe last roadside unit is shown, R for ease of illustration
rAlso referred to as any roadside unit. In the vehicle network, any one roadside unit R
rHas a certain storage capacity
Represents a roadside unit R
rThe unit of the possessed network information capacity is the size of one network information.
In the vehicle-mounted network, a total of n vehicle-mounted nodes are provided, and the nodes are expressed in a set form as VD ═ V1,V2,…,Vn},V1Denotes the first vehicle node, V2Represents a second vehicle node, VnThe last vehicle node is shown, V for ease of illustrationnAlso referred to as any one of the on-board nodes.
In the vehicle network, in the next storage period tau +1, the first vehicle node V
1Record the set of roadside units to be encountered
Second vehicle node V
2Record the set of roadside units to be encountered
Last vehicle node V
nRecord the set of roadside units to be encountered
<math> <mrow> <msup> <mi>AR</mi> <msup> <mi>V</mi> <mi>n</mi> </msup> </msup> <mo>⊆</mo> <mi>RD</mi> <mo>.</mo> </mrow></math>In the current storage period tau, the first vehicle-mounted node V
1By roadside unit set RD ═ R
1,R
2,…,R
rRecording the vehicle-mounted request identification information sent to the information center IC
The vehicle-mounted request identification information
Is referred to as F
τBy the first vehicle-mounted node V
1And the requested digital identification number ID corresponding to the vehicle-mounted network information content.
In the current storage period tau, the second vehicle-mounted node V
2By roadside unit set RD ═ R
1,R
2,…,R
rRecording the vehicle-mounted request identification information sent to the information center IC
The vehicle-mounted request identification information
Is referred to as F
τIn the second vehicle node V
2And the requested digital identification number ID corresponding to the vehicle-mounted network information content.
In the current storage period tau, the last vehicle-mounted node V
nBy roadside unit set RD ═ R
1,R
2,…,R
rRecording the vehicle-mounted request identification information sent to the information center IC
The vehicle-mounted request identification information
Is referred to as F
τLast vehicle-mounted node V in
nAnd the requested digital identification number ID corresponding to the vehicle-mounted network information content.
In the invention, all vehicle-mounted nodes VD ═ V1,V2,…,VnThe vehicle-mounted request identification information sent by the station is expressed as <math> <mrow> <mi>IM</mi> <mo>=</mo> <mo>{</mo> <msup> <mi>I</mi> <msup> <mi>V</mi> <mn>1</mn> </msup> </msup> <mo>,</mo> <msup> <mi>I</mi> <msup> <mi>V</mi> <mn>2</mn> </msup> </msup> <mo>,</mo> <mo>·</mo> <mo>·</mo> <mo>·</mo> <mo>,</mo> <msup> <mi>I</mi> <msup> <mi>V</mi> <mi>n</mi> </msup> </msup> <mo>}</mo> <mo>.</mo> </mrow></math>
Referring to fig. 3, in an on-board network scenario, 7 roadside units and 7 on-board nodes are provided.
First roadside unit R
1Storage capacity of
Second roadside unit R
2Storage capacity of
Third roadside unit R
3Storage capacity of
The fourth roadside unit R4Storage capacity of
The fifth roadside unit R
5Storage capacity of
The R-1 th roadside unit R
r-1Storage capacity of
The R roadside units R
rStorage capacity of
In the current storage period tau, the first vehicle-mounted node V1The passing roadside unit has a first roadside unit R1. First vehicle node V1To the first roadside unit R1Transmitted in-vehicle request identification information
In the current storage period tau, the second vehicle-mounted node V2The passing roadside unit has a first roadside unit R1. Second vehicle node V2To the first roadside unit R1Transmitted in-vehicle request identification information
In the current storage period tau, a third vehicle-mounted node V3The passing roadside unit has a second roadside unit R2. Third vehicle node V3To a second roadside unit R2Transmitted in-vehicle request identification information
In the current storage period tau, the fourth vehicle-mounted node V
4The passing roadside unit has a fourth roadside unit R
4. Fourth vehicle node V
4To a fourth roadside unit R
4Transmitted in-vehicle request identification information
In the current storage period tau, the fifth vehicle-mounted node V
5The passing roadside unit has a third roadside unit R
3The fourth roadside unit R
4. Fifth vehicle node V
5To a third roadside unit R
3And a fourth roadside unit R
4Transmitted in-vehicle request identification information
In the current storage period tau, the n-1 th vehicle-mounted node Vn-1The passing roadside unit has the R-1 th roadside unit Rr-1. N-1 th vehicle-mounted node Vn-1To the r-1 stRoadside unit Rr-1Transmitted in-vehicle request identification information
In the current storage period tau, the nth vehicle-mounted node V
nThe passing roadside unit has a first roadside unit R
1A second roadside unit R
2. Nth vehicle node V
nTo the first roadside unit R
1And a second roadside unit R
2Transmitted in-vehicle request identification information
Referring to fig. 3A, in an on-board network scenario, 7 roadside units and 7 on-board nodes are provided.
In the next storage period tau +1, the first vehicle node V
1The roadside unit to be encountered has a second roadside unit R
2Is marked as
In the next memory period tau +1, the second vehicle node V
2The roadside unit to be encountered has a fourth roadside unit R
4A third roadside unit R
3Is marked as
In the next storage period tau +1, the third vehicle node V
3The roadside unit to be encountered has a fifth roadside unit R
5Is marked as
In the next storage period tau +1, the fourth on-board node V
4The roadside unit to be met has the R-1 th roadside unit R
r-1The R < th > roadside unit R
rIs marked as
In the next storage period tau +1, the fifth vehicle node V5The roadside unit to be encountered has a fifth roadside unit R5Is marked as
In the next storage period tau +1, the n-1 th vehicle-mounted node Vn-1The roadside unit to be encountered has the R-th roadside unit RrThe fifth roadside unit R5Is marked as
In the next storage period tau +1, the nth vehicle-mounted node VnThe roadside unit to be encountered has a fifth roadside unit R5The R < th > roadside unit RrIs marked as
In order to describe in detail the vehicle-mounted network distributed storage based on the bipartite graph of the received network information by the information center IC, the present invention uses an example to describe how the network information is distributed stored, which is only used for illustrating but not limiting the technical solution of the present invention, and any modification or partial replacement without departing from the spirit and scope of the present invention shall be covered in the protection scope of the technical solution of the present invention.
Referring to fig. 2, the specific steps of a distributed storage method (CCR method) for a vehicle network based on a bipartite graph provided by the present invention are as follows:
the method comprises the following steps: two-part diagram of structure
Step 11: setting an empty bipartite graph as G ═ X, Y, E, X denotes the left vertex, Y denotes the right vertex, and E denotes the edge; executing step 12;
step 12: collected from information centre IC in current storage period tau
The element in (b) is added to X of (X, Y, E) to obtain a bipartite graph G with a left vertex
XExecuting step 13;
referring to FIGS. 4A, 4B, and 4C, a bipartite graph G having a left vertex according to the present inventionXX ═ a is an element contained in the left vertex of (a)1,a2,a3,a4,a5,a6,a7,…,ai-1,ai}, wherein:
a
1denotes the first left vertex, a
1The recorded content is
The
numerical identification number 1 contained in (a);
a
2denotes the second left vertex, a
2The recorded content is
The
numerical identification number 2 contained in (a);
a
3denotes the third left vertex, a
3The recorded content is
The
numerical identification number 1 contained in (a);
a
4denotes the fourth left vertex, a
4Inside of recordContaining is
The numerical identification number 3 contained therein;
a
5denotes the fifth left vertex, a
5The recorded content is
The
numerical identification number 4 contained therein;
a
6denotes the sixth left vertex, a
6The recorded content is
The numerical identification number 5 contained therein;
a
7denotes the seventh left vertex, a
7The recorded content is
The numerical identification number Z-1 contained in (a);
a
i-1denotes the i-1 th left vertex, a
i-1The recorded content is
The
numerical identification number 1 contained in (a);
a
irepresents the last left vertex, a
iThe recorded content is
The numerical identification number Z contained in (a);
for convenience of explanation, aiAlso referred to as any left vertex, i represents the identification number of the left vertex.
Step 13: aiming at any roadside unit R in the vehicle-mounted network
rOne size is constructed as a storage capacity
Set of storage locations, as
Wherein,
represents R
rIs stored in the first storage location of the memory,
represents R
rIs stored in the first storage location of the memory,
represents R
rTo the last storage location, step 14 is performed;
the storage position refers to a place where network information can be stored in any roadside unit, each roadside unit comprises one or more storage positions, and each storage position only stores one piece of network information.
Step 14: traverse all RD ═ R1,R2,…,RrObtaining a whole network storage position set by the roadside units in the <math> <mrow> <msup> <mi>UD</mi> <mi>RD</mi> </msup> <mo>=</mo> <mo>{</mo> <msup> <mi>U</mi> <msup> <mi>R</mi> <mn>1</mn> </msup> </msup> <mo>∪</mo> <msup> <mi>U</mi> <msup> <mi>R</mi> <mn>2</mn> </msup> </msup> <mo>∪</mo> <mo>·</mo> <mo>·</mo> <mo>·</mo> <mo>∪</mo> <msup> <mi>U</mi> <msup> <mi>R</mi> <mi>r</mi> </msup> </msup> <mo>}</mo> <mo>;</mo> </mrow></math>And will be <math> <mrow> <msup> <mi>UD</mi> <mi>RD</mi> </msup> <mo>=</mo> <mo>{</mo> <msup> <mi>U</mi> <msup> <mi>R</mi> <mn>1</mn> </msup> </msup> <mo>∪</mo> <msup> <mi>U</mi> <msup> <mi>R</mi> <mn>2</mn> </msup> </msup> <mo>∪</mo> <mo>·</mo> <mo>·</mo> <mo>·</mo> <mo>∪</mo> <msup> <mi>U</mi> <msup> <mi>R</mi> <mi>r</mi> </msup> </msup> <mo>}</mo> </mrow></math>Element(s) in (b) is added to bipartite graph G with left verticesXIn Y of (3), a bipartite graph G having left and right vertex sets is obtainedX+YExecuting step 15;
in the present invention, referring to fig. 4A, 4B, and 4C, a bipartite graph G having left and right vertex setsX+YY ═ b1,b2,b3,b4,b5,b6,b7,b8,…,bj-1,bj}, wherein:
b
1representing the first right vertex, b
1The recorded content is R
1First storage location of
b
2Representing the second right vertex, b
2The recorded content is R
2First storage location of
b
3Represents the third right vertex, b
3The recorded content is R
3First storage location of
b4Represents the fourth right vertex, b4The recorded content is R4First storage location of
b
5Represents the fifth right vertex, b
5The recorded content is R
5First storage location of
b
6Denotes the sixth right vertex, b
6The recorded content is R
5Second storage location of
b
7Denotes the seventh right vertex, b
7The recorded content is R
5Third storage location of
b
8Denotes the eighth right vertex, b
8The recorded content is R
r-1First storage location of
b
j-1Represents the j-1 th right vertex, b
j-1The recorded content is R
rFirst storage location of
b
jRepresenting the last right vertex, b
jThe recorded content is R
rSecond storage location of
For convenience of explanation, bjAlso called any one right vertex, j represents the identification number of the right vertex。
Step 15: matching conditions with vertices
And is
And is
To judge the bipartite graph G with left and right vertex sets
X+YWhether X and Y in (1) are connected with each other is judged, so that a bipartite graph with vertexes and edges is constructed
Executing step 21;
if a
iAnd b
jSatisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
i,b
j>;
If a
iAnd b
jNot satisfying vertex matching conditions
And is
And is
Then abandon the adding of the edge<a
i,b
j>;
See FIG. 4A for a
1And b
2Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
1,b
2>;
a
2And b
3Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
2,b
3>;a
2And b
4Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
2,b
4>;
a
3And b
5Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
3,b
5>;a
3And b
6Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
3,b
6>;a
3And b
7Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
3,b
7>;
a
4And b
5Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
4,b
5>;a
4And b
6Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
4,b
6>;a
4And b
7Satisfy the vertex matching condition
And is
And is
Then is at
The edge set E of (1) adds edges<a
4,b
7>;
a
5And b
8Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
5,b
8>;a
5And b
j-1Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
5,b
j-1>;a
5And b
jSatisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
5,b
j>;
a
6And b
5Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
6,b
5>;a
6And b
6Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
6,b
6>;a
6And b
7Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
6,b
7>;
a
7And b
5Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
7,b
5>;a
7And b
6Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
7,b
6>;a
7And b
7Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
7,b
7>;a
7And b
j-1Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
7,b
j-1>;a
7And b
jSatisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
7,b
j>;
a
i-1And b
5Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
i-1,b
5>;a
i-1And b
6Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
i-1,b
6>;a
i-1And b
7Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
i-1,b
7>;a
i-1And b
j-1Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
i-1,b
j-1>;a
i-1And b
jSatisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
i-1,b
j>;
a
iAnd b
5Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
i,b
5>;a
iAnd b
6Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
i,b
>;a
iAnd b
7Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
i,b
7>;a
iAnd b
j-1Satisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
i,b
j-1>;a
iAnd b
jSatisfy the vertex matching condition
And is
And is
Then at G
X+YThe edge set E of (1) adds edges<a
i,b
j>。
The edge in the statistical edge set E comprises<a1,b2>、<a2,b3>、<a2,b4>、<a3,b5>、<a3,b6>、<a3,b7>、<a4,b5>、<a4,b6>、<a4,b7>、<a5,b8>、<a5,bj-1>、<a5,bj>、<a6,b5>、<a6,b6>、<a6,b7>、<a7,b5>、<a7,b6>、<a7,b7>、<a7,bj-1>、<a7,bj>、<ai-1,b5>、<ai-1,b6>、<ai-1,b7、<ai-1,bj-1>、<ai-1,bj>、<ai,b5>、<ai,b6>、<ai,b7>、<ai,bj-1>And<ai,bj>。
in the invention, by establishing an empty bipartite graph model and taking the vehicle-mounted request identification information of the vehicle-mounted node and the storage positions of the roadside units as the left vertex and the right vertex of the bipartite graph respectively, the distributed storage problem of the vehicle-mounted network is converted into the maximum matching problem of the bipartite graph.
Step two: finding a bipartite graph maximum matching subgraph
Step 21: if there are vertices and edges
If the edge set E is not empty, step 22 is executed;
if there are vertices and edges
If the edge set E is empty, ending the distributed storage and outputting a vehicle-mounted distribution result DI;
step 22: applying the Hungarian algorithm from bipartite graphs with vertices and edges
Obtaining maximum matching subgraph GB ═<(X,Y),EB>Where EB is a bipartite graph with vertices and edges
A subset of the edge set E (EB is simply referred to as an edge subset); EB ═ tone<γ,β>I γ ∈ X, β ∈ Y }, where γ denotes the maximum matching subgraph GB ═ Y }<(X,Y),EB>The left vertex of any one edge in the edge set EB, and beta represents the maximum matching subgraph GB ═<(X,Y),EB>The right vertex of any one edge in the edge set EB; step 31 is performed.
Referring to FIG. 4B, the edges in the edge subset EB include<a1,b2>、<a2,b3>、<a3,b5>、<a4,b6>、<a5,b8>、<a6,b7>、<a7,bj-1>And<ai-1,bj>. Gamma includes an edge<a1,b2>A in (a)1Edge of<a2,b3>A in (a)2Edge of<a3,b5>A in (a)3Edge of<a4,b6>A in (a)4Edge of<a5,b8>A in (a)5Edge of<a6,b7>A in (a)6Edge of<a7,bj-1>A in (a)7And edge<ai-1,bj>A in (a)i-1. Then beta includes an edge<a1,b2>B in (1)2Edge of<a2,b3>B in (1)3Edge of<a3,b5>B in (1)5Edge of<a4,b6>B in (1)6Edge of<a5,b8>B in (1)8Edge of<a6,b7>B in (1)7Edge of<a7,bj-1>B in (1)j-1And edge<ai-1,bj>B in (1)j。
In the invention, the Hungarian algorithm is utilized to convert the determination of the distributed storage allocation technical scheme into the searching of the maximum matching subgraph of the bipartite graph, so that the calculation complexity of the network center of the vehicle-mounted network on the received network information is reduced, and the distributed storage allocation technical scheme can be determined in polynomial time.
Step three: distributing and cleaning network information
Step 31: will one side at will<ai,bj>The network information corresponding to the left vertex in the system is distributed to the roadside unit corresponding to the right vertex, and after the distribution of all the network information is finished, the vehicle-mounted distribution result is obtained <math> <mrow> <msup> <mrow> <mi>DI</mi> <mo>=</mo> <mo>{</mo> <mi>d</mi> </mrow> <msup> <mi>Rf</mi> <mn>1</mn> </msup> </msup> <mo>,</mo> <msup> <mi>d</mi> <msup> <mi>Rf</mi> <mn>2</mn> </msup> </msup> <mo>,</mo> <mo>·</mo> <mo>·</mo> <mo>·</mo> </mrow> <mrow> <msup> <mi>d</mi> <msup> <mi>Rf</mi> <mi>z</mi> </msup> </msup> <mo>}</mo> <mo>,</mo> </mrow></math>Step 32 is executed;
referring to FIG. 4B, the edge is cut<a1,b2>First left vertex a in (1)1Corresponding Rf1Assigned to the second right vertex b2Corresponding R2Performing the following steps;
will edge<a2,b3>Second left vertex a in (1)2Corresponding Rf2Is assigned to the third right vertex b3Corresponding R3Performing the following steps;
will edge<a3,b5>Third left vertex a in (1)3Corresponding Rf1Assigned to the fifth right vertex b5Corresponding R5Performing the following steps;
will edge<a4,b6>The fourth left vertex a in4Corresponding Rf3Assigned to the sixth right vertex b6Corresponding R5Performing the following steps;
will edge<a5,b8>The fifth left vertex a in5Corresponding Rf4Is assigned to the eighth right vertex b8Corresponding Rr-1Performing the following steps;
will edge<a6,b7>The sixth left vertex a in6Corresponding Rf5Assigned to the seventh right vertex b7Corresponding R5Performing the following steps;
will edge<a7,bj-1Seventh left vertex a in7Corresponding RfZ-1Is distributed to the j-1 th right vertex bj-1Corresponding RrPerforming the following steps;
will edge<ai-1,bj>The ith-1 left vertex a ini-1Corresponding Rf1Is assigned to the jth right vertex bjCorresponding RrIn (1).
Referring to fig. 4B, the first network information Rf is assigned1The roadside unit has a second roadside unitR is a member of2The fifth roadside unit R5The R < th > roadside unit RrFirst on-board distributionresult
Second network information Rf is assigned2The roadside unit has a third roadside unit R3Simply called second on-board distributionresult
Third network information Rf is assigned3The roadside unit has a fifth roadside unit R5Short third on-board distribution results
Fourth network information Rf is assigned4The roadside unit has the R-1 th roadside unit Rr-1Fourth on-board distributionresult
Fifth network information Rf is assigned5The roadside unit has a fifth roadside unit R5Fifth vehicle distribution result for short
Z-1 th network information Rf is assigned
Z-1The roadside unit has an R-th roadside unit R
rZ-1 th vehicle distribution result
Z-th network information Rf is assignedZIs not present, abbreviated as Z-th on-board distribution result
Expressing the vehicle-mounted distribution result in a set form as
In the present invention, the network information distribution means determining which of the roadside units to which the network information is distributed is.
Step 32: referring to FIG. 4B, the judgment is made one by one
And
whether the number of the roadside units in the set is more than 1 or not; if the number of roadside units is greater than 1, that is
If the vehicle-mounted nodes corresponding to the same network information of different roadside units are to be cleaned, executing step 33;
if the number of roadside units is less than or equal to 1, that is
And
abandoning the cleaning of the network information distributed by the roadside units;
in particular, the amount of the solvent to be used,
then believeInformation center IC abandon pair R
3Assigned Rf
2Cleaning;
the information center IC gives up the pair R
5Assigned Rf
3Cleaning;
the information center IC gives up the pair R
r-1Assigned Rf
4Cleaning;
the information center IC gives up the pair R
5Assigned Rf
5Cleaning;
the information center IC gives up the pair R
rAssigned Rf
Z-1Cleaning;
indicating that no roadside units are assigned to Rf
ZTherefore, cleaning is not performed.
Step 33: for the
Cleaning vehicle-mounted nodes corresponding to the same network information of different roadside units;
referring to FIG. 3A, the first network information Rf is requested within the current memory period τ
1And will encounter a second roadside unit R in the next storage period tau +1
2Has a first vehicle-mounted node V
1Abbreviated as R
2-Rf
1-vehicle node
Namely, it is
The first network information Rf is requested within the current memory period tau
1And will encounter the fifth roadside unit R in the next storage period tau +1
5Has a third vehicle node V
3N-th vehicle-mounted node V
nAbbreviated as R
5-Rf
1-vehicle node
Namely, it is
The first network information Rf is requested within the current memory period tau
1And will encounter the R-th roadside unit R in the next storage period tau +1
rHas an nth vehicle-mounted node V
nAbbreviated as R
r-Rf
1-vehicle node
Namely, it is
In the present invention, for the sake of general expression, any one of the network information Rf is requested within the current memory period τ
ZAnd will be in the next memory cycle τ +1Meet any roadside unit R
rIn-vehicle node of (2), abbreviated as R
r-Rf
Z-vehicle node
According to
And
the number of the medium elements is arranged in a descending order to obtain
The order of processing of the roadside units is thus in turn the fifth roadside unit R
5A second roadside unit R
2The R < th > roadside unit R
r;
Executing step 34 on the first ranked roadside unit, and then sequentially executing step 35 on the second ranked roadside unit to the last ranked roadside unit;
step 34: reserving a fifth roadside unit R
5Assigned first network information Rf
1And recording the first vehicle-mounted intermediate distribution result
Then step 35 is executed;
step 35: for the second roadside unit R
2To aim at
Of the first vehicle-mounted node V
1Judgment of
Whether it is an empty set, if it is an empty set, retaining the second oneRoadside unit R
2Assigned first network information Rf
1And reassigns the first on-board intermediate distribution result
Otherwise, cleaning up the second roadside unit R
2Assigned first network information Rf
1。
Due to the fact that
So that a second roadside unit R remains
2Assigned first network information Rf
1And reassigns the first on-board intermediate distribution result
For the R roadside unit R
rTo aim at
N-th on-board node V in (1)
nJudgment of
If the set is empty, the R-th roadside unit R is reserved
rAssigned first network information Rf
1And reassigns the first on-board intermediate distribution result
Otherwise, cleaning the R-th roadside unit R
rAssigned first network information Rf
1。
Due to the fact that
So that the R-th roadside unit R is cleaned
rAssigned first network information Rf
1I.e. removing edges from what is shown with reference to fig. 4B<a
i-1,b
j>The results shown in FIG. 4C were obtained.
After the network information allocated to the roadside unit is cleaned, step 36 is executed.
Step 36: the first vehicle-mounted intermediate distribution result
Assign a value to the first on-board distribution result
Namely, it is
And step 36, assigning the vehicle-mounted intermediate distribution result to a vehicle-mounted node corresponding to the vehicle-mounted intermediate distribution result, and finding out a corresponding roadside unit from the vehicle-mounted node.
Step 41 is executed after all of steps 33 to 36 are executed for all of the number of roadside units greater than 1.
In the invention, the third step is to sort the same network information in different roadside units according to the vehicle-mounted request identification information of the number of vehicle-mounted nodes which can be met by each roadside unit, and sequentially judge whether the network information is stored by each roadside unit redundantly, so that the redundant network information is cleared, the storage space of the roadside units is saved, and the theoretical optimal distribution scheme is better approached.
Step four: secondary distribution and updating bipartite graph vertex set
Step 41: referring to fig. 4B, the in-vehicle request identification information is removed
The numerical identification number associated with the left vertex of the connected edge, namely:
in which comprisesThe
number identification number 1;
the
numerical identification number 2 contained in (a);
the
numerical identification number 1 contained in (a);
the numerical identification number 3 contained therein;
the
numerical identification number 4 contained therein;
the numerical identification number 5 contained therein;
the numerical identification number Z-1 contained in (a);
the
numerical identification number 1 contained therein.
Obtaining the secondarily distributed vehicle-mounted request identification information
Wherein
In the invention, the vehicle-mounted node sends the required content to the roadside unit by the digital identification number, and the information center sends the content corresponding to the digital identification number to the roadside unit. Therefore, the identification number is deleted, and the network information of the content corresponding to the identification number can be printed.
Step 42: referring to FIG. 4D, the in-vehicle request identification information to be secondarily distributed
Element Z in (1) adds the label of the left vertex of the empty bipartite graph as a
iWherein a is
iThe recorded content is
A medium numeric identification number Z; step 43 is executed;
step 43: referring to FIG. 4C, the storage locations to which network information has been assigned are
Removing a full network storage location set
<math> <mrow> <msup> <mi>UD</mi> <mi>RD</mi> </msup> <mo>=</mo> <mo>{</mo> <msup> <mi>U</mi> <msup> <mi>R</mi> <mn>1</mn> </msup> </msup> <mo>∪</mo> <msup> <mi>U</mi> <msup> <mi>R</mi> <mn>2</mn> </msup> </msup> <mo>∪</mo> <mo>·</mo> <mo>·</mo> <mo>·</mo> <mo>∪</mo> <msup> <mi>U</mi> <msup> <mi>R</mi> <mi>r</mi> </msup> </msup> <mo>}</mo> </mrow></math>The storage position of the network information is distributed to obtain a secondary scoreConfigured full-network storage location aggregation
<math> <mrow> <mi>N</mi> <msup> <mi>UD</mi> <mi>RD</mi> </msup> <mo>=</mo> <mo>{</mo> <msup> <mi>U</mi> <msup> <mi>R</mi> <mn>1</mn> </msup> </msup> <mo>∪</mo> <msup> <mi>U</mi> <msup> <mi>R</mi> <mn>4</mn> </msup> </msup> <mo>∪</mo> <mo>·</mo> <mo>·</mo> <mo>·</mo> <mo>∪</mo> <msup> <mi>U</mi> <msup> <mi>R</mi> <mi>r</mi> </msup> </msup> <mo>}</mo> <mo>,</mo> </mrow></math>Wherein
Step 44 is executed;
step 44: referring to FIG. 4D, the set of secondary allocated full network storage locations
Element (1) of
The identification number of the right vertex added into the bipartite graph is b
1,b
4,b
jWherein b is
1The recorded content is R
1First storage location of
b
4The recorded content is R
4First storage location of
b
jThe recorded content is R
rSecond storage location of
Step 15 is performed.
In the invention, step four, the vehicle-mounted request identification information which is not responded and the vacant roadside unit storage positions are respectively added into the left vertex and the right vertex of the vacant bipartite graph by removing the vehicle-mounted request identification information which is responded and the occupied roadside unit storage positions, and the step 15 is returned to realize secondary distribution, thereby improving the utilization rate of the storage space and the data response rate.