CN115150325B - Reliable routing method applied to B5G vehicle-mounted network - Google Patents
Reliable routing method applied to B5G vehicle-mounted network Download PDFInfo
- Publication number
- CN115150325B CN115150325B CN202210748115.3A CN202210748115A CN115150325B CN 115150325 B CN115150325 B CN 115150325B CN 202210748115 A CN202210748115 A CN 202210748115A CN 115150325 B CN115150325 B CN 115150325B
- Authority
- CN
- China
- Prior art keywords
- network
- bandwidth
- link
- chromosome
- monitoring
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000007246 mechanism Effects 0.000 claims abstract description 21
- 230000002068 genetic effect Effects 0.000 claims abstract description 19
- 238000005516 engineering process Methods 0.000 claims abstract description 16
- 230000005540 biological transmission Effects 0.000 claims abstract description 11
- 238000001514 detection method Methods 0.000 claims abstract description 9
- 238000010801 machine learning Methods 0.000 claims abstract description 6
- 210000000349 chromosome Anatomy 0.000 claims description 63
- 238000012544 monitoring process Methods 0.000 claims description 51
- 230000008859 change Effects 0.000 claims description 18
- 230000006870 function Effects 0.000 claims description 16
- 230000035772 mutation Effects 0.000 claims description 14
- 108090000623 proteins and genes Proteins 0.000 claims description 12
- 238000004364 calculation method Methods 0.000 claims description 9
- 238000011156 evaluation Methods 0.000 claims description 8
- 230000006978 adaptation Effects 0.000 claims description 6
- 238000012217 deletion Methods 0.000 claims description 6
- 230000037430 deletion Effects 0.000 claims description 6
- 238000013461 design Methods 0.000 claims description 6
- 238000012545 processing Methods 0.000 claims description 4
- 238000010845 search algorithm Methods 0.000 claims description 4
- NAWXUBYGYWOOIX-SFHVURJKSA-N (2s)-2-[[4-[2-(2,4-diaminoquinazolin-6-yl)ethyl]benzoyl]amino]-4-methylidenepentanedioic acid Chemical compound C1=CC2=NC(N)=NC(N)=C2C=C1CCC1=CC=C(C(=O)N[C@@H](CC(=C)C(O)=O)C(O)=O)C=C1 NAWXUBYGYWOOIX-SFHVURJKSA-N 0.000 claims description 3
- 238000010276 construction Methods 0.000 claims description 3
- 230000001934 delay Effects 0.000 claims description 3
- 238000004806 packaging method and process Methods 0.000 claims description 3
- 238000007781 pre-processing Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000011056 performance test Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000001172 regenerating effect Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/302—Route determination based on requested QoS
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/12—Computing arrangements based on biological models using genetic models
- G06N3/126—Evolutionary algorithms, e.g. genetic algorithms or genetic programming
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/12—Shortest path evaluation
- H04L45/123—Evaluation of link metrics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/12—Shortest path evaluation
- H04L45/124—Shortest path evaluation using a combination of metrics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/14—Routing performance; Theoretical aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/029—Location-based management or tracking services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Software Systems (AREA)
- Biophysics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Artificial Intelligence (AREA)
- Bioinformatics & Computational Biology (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Evolutionary Biology (AREA)
- General Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Molecular Biology (AREA)
- General Health & Medical Sciences (AREA)
- Physiology (AREA)
- Biomedical Technology (AREA)
- Genetics & Genomics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Medical Informatics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a reliable routing method applied to a B5G vehicle network, and relates to the technical field of vehicle network routing; by designing a B5G-based software-defined vehicle network architecture, a 5G base station based on a machine learning technology is used for predicting a vehicle track, so that time delay is reduced; the link performance detection mechanism is designed, the control cost and the accuracy are balanced, and the link performance can be measured more accurately; by combining cross-generation selection, small environment strategy and traditional genetic algorithm, and by means of global view of SDN controller, a more reliable transmission path is obtained.
Description
Technical Field
The invention relates to the technical field of vehicular network routing, in particular to a reliable routing method applied to a B5G vehicular network.
Background
Along with the rapid development of economy, the mobile network and the Internet of things technology are gradually mature, and how to realize intelligent driving, man-vehicle interconnection and vehicle-vehicle interconnection becomes a research hot spot, but the problems of rapid increase of vehicles, connection instability, effective signal transmission and the like are solved, the requirements on safety and reliability of the vehicle-mounted network are gradually increased, and great challenges are still brought to the research of the vehicle-mounted network. A Software Defined Network (SDN) separates control and forwarding functions, which is an emerging network architecture, improving resource utilization efficiency and implementing network programmability. SDN is applied to a vehicle network to become a Software Defined Vehicle Network (SDVNs), and an effective solution is provided for processing vehicle interconnection requirements, vehicle network topology management and network cost management.
The development of 5G technology has covered multiple fields of industry, agriculture and traffic service, in which the vehicle network is an important application field of 5G, but with the development of the vehicle network, the vehicle network becomes a heterogeneous and large-scale network, and the B5G technology can provide an effective solution for the existing vehicle network. The B5G communication uses a higher frequency band to communicate, so that global coverage under the sea, land, air and space scenes is realized, different application scenes are processed by adopting artificial intelligence and other technologies, the higher safety is further improved, and the network resource management and network intelligence level is improved.
The patent 'a cross-layer vehicle-mounted network routing method based on link transmission capability' discloses a cross-layer vehicle-mounted network routing method based on link transmission capability. The method comprehensively considers the routing method influencing the link transmission capacity in the urban environment, calculates the probability of transmitting data, the probability of occupying channels and the like of the nodes, respectively discusses the existence of barriers among the nodes, expands the underlying cross-layer routing protocol (AODV) protocol, and continuously updates the routing table according to feedback information in the routing process. However, the method has the problems of large broadcast information quantity, unstable link transmission and the like, and can not ensure reliable routing and uninterrupted transmission of data streams.
Disclosure of Invention
In order to solve the defects of the prior art, the invention aims to provide a reliable routing method applied to a B5G vehicle-mounted network, designs a software-defined vehicle network architecture based on B5G, and predicts the vehicle track by using a 5G base station based on a machine learning technology; and a link performance detection mechanism is designed, and an improved genetic algorithm is utilized to calculate a reliable transmission path, so that the network performance is improved.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows:
a reliable routing method applied to a B5G vehicle network, comprising: designing an SDN network framework based on a B5G technology, and applying a WSMP protocol to a 5G system; establishing a self-adaptive monitoring mechanism; the route is calculated using a QoS routing algorithm based on an improved genetic algorithm.
The design is based on an SDN network framework of a B5G technology, and specifically comprises the following steps:
with the SDN framework based on the B5G technology, the 5G base station is used for predicting the motion trail of the vehicle, multi-access edge calculation (Multi-Acess Edge Computing, MEC) is used for providing real-time data processing, and the next base station to which the vehicle is to be connected is predicted through machine learning.
The application of the WSMP protocol to the 5G system is specifically as follows:
applying a WSMP protocol to a 5G system, wherein a WSMP protocol framework comprises an NTPS module, an adaptation module and a 5G module; the NTPS module is used for realizing the packaging and transmission of the WSMP protocol by broadcasting the WSA, and the adaptation module is used for adapting the WSMP protocol to the 5G module; the 5G module realizes the MAC layer and the physical layer of the protocol stack, sends data, filters and receives the data.
The self-adaptive monitoring mechanism is established, and specifically comprises the following steps:
controlling the balance between the overhead and the precision according to the dynamic concept polling interval of the network scale and the link load change; and calculating the update of the detection interval according to the bandwidth change rate and the last monitoring interval, wherein the bandwidth change rate is shown in the formula (1):
wherein Δb is the bandwidth change rate, band is the current occupied bandwidth of the link, lastBand is the last occupied bandwidth, ε 1 A real number greater than 0;
updating the detection interval as shown in formula (2):
wherein minPed is the minimum polling interval determined by the network size; lastPed is the last polling interval and maxPed is the maximum discussion interval; alpha 1 And alpha 2 Is a set constant, and different polling interval change strategies are adopted by judging the bandwidth change rate.
The self-adaptive monitoring mechanism comprises the steps of setting monitoring points, traversing the monitoring points and sending messages.
The set monitoring point specifically comprises: running LLDP protocol and setting link;
initializing the monitoring time of all links of the links as minPed, and adding the minPed into a monitoring queue;
and the controller receives the OpenFlow message of one link and updates the corresponding link bandwidth, link delay, packet loss rate and monitoring point.
The traversal monitoring points specifically comprise: initializing global time;
detecting whether the monitoring queue is empty or not, and traversing all monitoring points if the monitoring queue is not empty;
the global time point is increased by 1 continuously until the time of the monitoring point is equal to the global time point, the corresponding link is measured and the monitoring point is removed.
The QoS routing algorithm based on the improved genetic algorithm calculates a route, and the method comprises the following steps:
s1: performing network pretreatment, chromosome coding and fitness function construction;
s2: initializing, namely generating a plurality of paths from a source node to a target node by adopting a depth-first traversal algorithm, and selecting an adjacent node which is not randomly accessed as a next node;
s3: selecting across generations, and selecting excellent chromosomes from the populations of the current iteration and the last iteration through a roulette method;
s4: cross selection, namely randomly selecting one gene point as a cross point for any two chromosomes to generate two new chromosomes;
s5: a mutation operation, namely randomly selecting a gene from a chromosome as a mutation point, and then generating a new path from a burst point to a target node by using a depth-first search algorithm;
s6: the small environment strategy increases the contrast mechanism of two generations of chromosomes in the crossover and mutation operation, if the fitness of offspring is higher than that of a parent, the chromosomes are updated, otherwise, the chromosomes are unchanged;
s7: deletion of chromosomes, deletion crossover or mutation operations using two passes result in loops present in the chromosome;
by combining cross-generation selection, small environment strategy and original genetic algorithm, the SDN controller runs the improved genetic algorithm to generate a path on the basis of the self-adaptive monitoring mechanism when the flow is injected into the network by applying the cross-generation selection, the small environment strategy and the original genetic algorithm to the QoS routing algorithm, and sends the path to a flow table entry on the switch.
S1, a specific process comprises the following steps:
s1.1: network preprocessing, namely eliminating edge nodes which do not meet the bandwidth requirement in the network, deleting links which do not meet the data flow by an SDN controller, and constructing a virtual network which meets the bandwidth requirement;
s1.2: chromosome coding adopts a variable length chromosome coding mechanism, each chromosome represents a route path, the first gene represents a source node, the last gene represents a destination node, the chromosome sequence represents the path network node sequence, and the single node on the chromosome is ensured;
s1.3: and constructing a fitness function, and selecting a link bandwidth, a link delay and a packet loss rate as performance evaluation indexes.
The performance evaluation index calculation specifically comprises the following steps:
s1.3.1: the link bandwidth adopts a passive mode, the occupied bandwidth is measured according to the statistical data of the counter of the switch port, the bandwidth is measured by utilizing the return information of rxBytes and txBytes, the bit numbers received and transmitted by the ports are respectively represented, the switch s1 and the switch s2 are connected through the ports p1 and p2, and the bandwidth is calculated in the time period of t1 and t2, as shown in the formulas (3) and (4):
wherein,and->txBytes of port p1 at times t2 and t1, respectively,/->And->rxBytes for p1 at times t2 and t1, respectively; the data at port p2 are represented in equation (4), respectively;
T p1 and T p2 Respectively representing the total bit number of the ports p1 and p2 in the time period from t1 to t2, and taking the average value of the two ports as the calculated value of the occupied bandwidth of the link;
s1.3.2: the link delay is measured by sending a packet_out message and an Echo request message, respectively.
The sending packet_out message, the SDN controller sends the packet_out message carrying the timestamp to the switch s1, and the switch s1 forwards the message to the switch s2.
The SDN controller sends the Echo request message with the time stamp to the switch s1 and the switch s2 respectively; the link delay between the switches is calculated as shown in equation (6):
where t is the path delay and t1 and t2 are the controller to switch delays, respectively.
S1.3.3: the packet loss rate is calculated by using txplackets and rxplackets information to respectively represent the number of transmitted and received data packets, as shown in the formulas (7) and (8):
wherein,and->Respectively representing the number of data packets sent by the p1 port at the time t2 and the time t1, +.>And->The number of data packets received by the p2 port at the time t2 and the time t1 are respectively represented; TP is the total number of data packets sent in the time period from port t1 to port t2, RP is the total number of data packets received in the time period from port t1 to port t 2; and calculating the packet loss rate, wherein the calculation is as shown in a formula (9):
normalizing the performance evaluation index, setting different weights for different indexes, and calculating a fitness function, wherein the fitness function is shown as a formula (10):
f(x)=q 1 ×f band (x)+q 2 ×(1-f loss (x))+q 3 ×(1-f delay (x)) (10)
wherein f band Is the ratio of the bandwidth of the chromosome to the sum of all chromosomes, q 1 Is f band Weights of (2); f (f) loss Is chromosome packet loss rate, q 2 Is that loss Weights of (2); f (f) delay Is the chromosome delay ratio, q 2 Is f delay Weights of (2); q 1 +q 2 +q 3 =1; the largest chromosome fitness function value is the route path.
The beneficial effects of adopting above-mentioned technical scheme to produce lie in:
1. the invention uses the 5G base station to locate the vehicle and predicts the vehicle by means of machine learning technology, thereby reducing time delay.
2. The invention designs a self-adaptive link detection mechanism, balances control overhead and accuracy, and can more accurately measure the performance of a link.
3. The QoS routing algorithm based on the improved genetic algorithm obtains a more reliable transmission path by combining cross-generation selection, small environment strategy and traditional genetic algorithm and by means of the global view of the SDN controller.
Drawings
Fig. 1 is a flowchart of a reliable routing method applied to a B5G vehicle network according to an embodiment of the present invention;
fig. 2 is a network architecture diagram provided in an embodiment of the present invention;
FIG. 3 is a simplified topology diagram of a routing performance test provided by an embodiment of the present invention;
FIG. 4 is a complex topology diagram of a routing performance test provided by an embodiment of the present invention;
fig. 5 is a topology diagram of link performance design according to an embodiment of the present invention.
Detailed Description
The following describes in further detail the embodiments of the present invention with reference to the drawings and examples.
A reliable routing method applied to a B5G vehicle network, comprising: designing an SDN network framework based on the B5G technology, and applying a WSMP protocol to a 5G system as shown in FIG. 2; establishing a self-adaptive monitoring mechanism; the route is calculated using a QoS routing algorithm based on an improved genetic algorithm.
The design is based on an SDN network framework of a B5G technology, and specifically comprises the following steps:
with the SDN framework based on the B5G technology, the 5G base station is used for predicting the motion trail of the vehicle, multi-access edge calculation (Multi-Acess Edge Computing, MEC) is used for providing real-time data processing, and the next base station to which the vehicle is to be connected is predicted through machine learning.
The application of the WSMP protocol to the 5G system is specifically as follows:
applying a WSMP protocol to a 5G system, wherein a WSMP protocol framework comprises an NTPS module, an adaptation module and a 5G module; the NTPS module is used for realizing the packaging and transmission of the WSMP protocol by broadcasting the WSA, and the adaptation module is used for adapting the WSMP protocol to the 5G module; the 5G module realizes the MAC layer and the physical layer of the protocol stack, sends data, filters and receives the data.
The self-adaptive monitoring mechanism is established, and specifically comprises the following steps:
controlling the balance between the overhead and the precision according to the dynamic concept polling interval of the network scale and the link load change; and calculating the update of the detection interval according to the bandwidth change rate and the last monitoring interval, wherein the bandwidth change rate is shown in the formula (1):
wherein Δb is the bandwidth change rate, band is the current occupied bandwidth of the link, lastBand is the last occupied bandwidth, ε 1 A real number greater than 0;
updating the detection interval as shown in formula (2):
wherein minPed is the minimum polling interval determined by the network size; lastPed is the last polling interval and maxPed is the maximum discussion interval; alpha 1 And alpha 2 Is a set constant, and different polling interval change strategies are adopted by judging the bandwidth change rate.
The self-adaptive monitoring mechanism comprises the steps of setting monitoring points, traversing the monitoring points and sending messages.
The set monitoring point specifically comprises: running LLDP protocol and setting link;
initializing the monitoring time of all links of the links as minPed, and adding the minPed into a monitoring queue;
and the controller receives the OpenFlow message of one link and updates the corresponding link bandwidth, link delay, packet loss rate and monitoring point.
The traversal monitoring points specifically comprise: initializing global time;
detecting whether the monitoring queue is empty or not, and traversing all monitoring points if the monitoring queue is not empty;
the global time point is increased by 1 continuously until the time of the monitoring point is equal to the global time point, the corresponding link is measured and the monitoring point is removed.
The QoS routing algorithm based on the improved genetic algorithm calculates a route, as shown in fig. 1, and includes the following steps:
s1: performing network pretreatment, chromosome coding and fitness function construction, wherein the designed network topology is shown in fig. 3 and 4;
s1.1: network preprocessing, namely eliminating edge nodes which do not meet the bandwidth requirement in the network, deleting links which do not meet the data flow by an SDN controller, and constructing a virtual network which meets the bandwidth requirement;
s1.2: chromosome coding adopts a variable length chromosome coding mechanism, each chromosome represents a route path, the first gene represents a source node, the last gene represents a destination node, the chromosome sequence represents the path network node sequence, and the single node on the chromosome is ensured;
s1.3: constructing a fitness function, and selecting a link bandwidth, a link delay and a packet loss rate as performance evaluation indexes;
in this embodiment, the network topology is designed as shown in fig. 5, and includes a ryu controller, two switches, and four hosts.
The performance evaluation index calculation specifically comprises the following steps:
s1.3.1: the link bandwidth adopts a passive mode, the occupied bandwidth is measured according to the statistical data of the counter of the switch port, the bandwidth is measured by utilizing the return information of rxBytes and txBytes, the bit numbers received and transmitted by the ports are respectively represented, the switch s1 and the switch s2 are connected through the ports p1 and p2, and the bandwidth is calculated in the time period of t1 and t2, as shown in the formulas (3) and (4):
wherein,and->txBytes of port p1 at times t2 and t1, respectively,/->And->rxBytes for p1 at times t2 and t1, respectively; the data at port p2 are represented in equation (4), respectively;
T p1 and T p2 And respectively representing the total bit number of the ports p1 and p2 in the time period from t1 to t2, and taking the average value of the two ports as the calculated value of the occupied bandwidth of the link.
S1.3.2: the link delay is measured by sending a packet_out message and an Echo request message, respectively;
the SDN controller sends the packet_out message carrying the time stamp to the switch s1, and the switch s1 forwards the message to the switch s2;
the SDN controller sends the Echo request message with the time stamp to the switch s1 and the switch s2 respectively; the link delay between the switches is calculated as shown in equation (6):
where t is the path delay and t1 and t2 are the controller to switch delays, respectively.
S1.3.3: the packet loss rate is calculated by using txplackets and rxplackets information to respectively represent the number of transmitted and received data packets, as shown in the formulas (7) and (8):
wherein,and->Respectively representing the number of data packets sent by the p1 port at the time t2 and the time t1, +.>And->The number of data packets received by the p2 port at the time t2 and the time t1 are respectively represented; TP is the total number of data packets sent in the time period from port t1 to port t2, RP is the total number of data packets received in the time period from port t1 to port t 2; and calculating the packet loss rate, wherein the calculation is as shown in a formula (9):
normalizing the performance evaluation index, setting different weights for different indexes, and calculating a fitness function, wherein the fitness function is shown as a formula (10):
f(x)=q 1 ×f band (x)+q 2 ×(1-f loss (x))+q 3 ×(1-f delay (x)) (10)
wherein f band Is the ratio of the bandwidth of the chromosome to the sum of all chromosomes, q 1 Is f band Weights of (2); f (f) loss Is chromosome packet loss rate, q 2 Is f loss Weights of (2); f (f) delay Is the chromosome delay ratio, q 2 Is f delay Weights of (2); q 1 +q 2 +q 3 =1; the route path with the largest chromosome fitness function value;
s2: initializing, namely generating a plurality of paths from a source node to a target node by adopting a depth-first traversal algorithm, and selecting an adjacent node which is not randomly accessed as a next node;
s3: selecting across generations, and selecting excellent chromosomes from the populations of the current iteration and the last iteration through a roulette method;
s4: cross selection, namely randomly selecting one gene point as a cross point for any two chromosomes to generate two new chromosomes;
s5: a mutation operation, namely randomly selecting a gene from a chromosome as a mutation point, and then generating a new path from a burst point to a target node by using a depth-first search algorithm;
in this embodiment, the mutation rate is set to be 0.1, a point is randomly selected as a mutation point for any chromosome, and then a depth-first search algorithm is used to generate a new path from the burst point to the destination node. For example, h1, s7, s4, s9, h7, mutating at s4, regenerating a new path of s4, s2, s6, s9, h 7;
s6: the small environment strategy increases the contrast mechanism of two generations of chromosomes in the crossover and mutation operation, if the fitness of offspring is higher than that of a parent, the chromosomes are updated, otherwise, the chromosomes are unchanged;
s7: deletion of chromosomes, deletion crossover or mutation operations using two passes result in loops present in the chromosome;
in this embodiment, for chromosomes h1, s4, s2, s6, s8, s4, s2, s5, s9, and h7, such chromosomes are provided with loops, which affect the performance of the algorithm, and the loops are deleted using a two-pass method;
by combining cross-generation selection, small environment strategy and original genetic algorithm, the SDN controller runs the improved genetic algorithm to generate a path on the basis of the self-adaptive monitoring mechanism when the flow is injected into the network by applying the cross-generation selection, the small environment strategy and the original genetic algorithm to the QoS routing algorithm, and sends the path to a flow table entry on the switch.
Claims (7)
1. A reliable routing method applied to a B5G vehicle network is characterized in that: comprising the following steps: designing an SDN network framework based on a B5G technology, and applying a WSMP protocol to a 5G system; establishing a self-adaptive monitoring mechanism; calculating a route by adopting a QoS routing algorithm based on an improved genetic algorithm;
the design is based on an SDN network framework of a B5G technology, and specifically comprises the following steps:
using an SDN framework based on a B5G technology, predicting a vehicle motion track by using a 5G base station, providing real-time data processing by using Multi-access edge calculation (Multi-Acess Edge Computing, MEC), and predicting the next base station to which the vehicle is to be connected by machine learning;
the application of the WSMP protocol to the 5G system is specifically as follows:
applying a WSMP protocol to a 5G system, wherein a WSMP protocol framework comprises an NTPS module, an adaptation module and a 5G module; the NTPS module is used for realizing the packaging and transmission of the WSMP protocol by broadcasting the WSA, and the adaptation module is used for adapting the WSMP protocol to the 5G module; the 5G module realizes the MAC layer and the physical layer of the protocol stack, sends data, filters and receives the data;
the self-adaptive monitoring mechanism is established, and specifically comprises the following steps:
controlling the balance between the overhead and the precision according to the dynamic concept polling interval of the network scale and the link load change; and calculating the update of the detection interval according to the bandwidth change rate and the last monitoring interval, wherein the bandwidth change rate is shown in the formula (1):
wherein Δb is the bandwidth change rate, band is the current occupied bandwidth of the link, lastBand is the last occupied bandwidth, ε 1 A real number greater than 0;
updating the detection interval as shown in formula (2):
wherein minPed is the minimum polling interval determined by the network size; lastPed is the last polling interval and maxPed is the maximum discussion interval; alpha 1 And alpha 2 Is a set constant, and adopts different polling interval change strategies by judging the bandwidth change rate;
the QoS routing algorithm based on the improved genetic algorithm calculates a route, and the method comprises the following steps:
s1: performing network pretreatment, chromosome coding and fitness function construction;
s1.1: network preprocessing, namely eliminating edge nodes which do not meet the bandwidth requirement in the network, deleting links which do not meet the data flow by an SDN controller, and constructing a virtual network which meets the bandwidth requirement;
s1.2: chromosome coding adopts a variable length chromosome coding mechanism, each chromosome represents a route path, the first gene represents a source node, the last gene represents a destination node, the chromosome sequence represents the path network node sequence, and the single node on the chromosome is ensured;
s1.3: constructing a fitness function, and selecting a link bandwidth, a link delay and a packet loss rate as performance evaluation indexes;
s2: initializing, namely generating a plurality of paths from a source node to a target node by adopting a depth-first traversal algorithm, and selecting an adjacent node which is not randomly accessed as a next node;
s3: selecting across generations, and selecting excellent chromosomes from the populations of the current iteration and the last iteration through a roulette method;
s4: cross selection, namely randomly selecting one gene point as a cross point for any two chromosomes to generate two new chromosomes;
s5: a mutation operation, namely randomly selecting a gene from a chromosome as a mutation point, and then generating a new path from a burst point to a target node by using a depth-first search algorithm;
s6: the small environment strategy increases the contrast mechanism of two generations of chromosomes in the crossover and mutation operation, if the fitness of offspring is higher than that of a parent, the chromosomes are updated, otherwise, the chromosomes are unchanged;
s7: deletion of chromosomes, deletion crossover or mutation operations using two passes result in loops present in the chromosome;
by combining cross-generation selection, small environment strategy and original genetic algorithm, the SDN controller runs the improved genetic algorithm to generate a path on the basis of the self-adaptive monitoring mechanism when the flow is injected into the network by applying the cross-generation selection, the small environment strategy and the original genetic algorithm to the QoS routing algorithm, and sends the path to a flow table entry on the switch.
2. The reliable routing method applied to a B5G vehicle network according to claim 1, wherein: the self-adaptive monitoring mechanism comprises the steps of setting monitoring points, traversing the monitoring points and sending messages.
3. The reliable routing method applied to the B5G vehicular network according to claim 2, wherein:
the set monitoring point specifically comprises:
running LLDP protocol and setting link;
initializing the monitoring time of all links of the links as minPed, and adding the minPed into a monitoring queue;
and the controller receives the OpenFlow message of one link and updates the corresponding link bandwidth, link delay, packet loss rate and monitoring point.
4. The reliable routing method applied to the B5G vehicular network according to claim 2, wherein:
the monitoring points are traversed, and the global time is initialized;
detecting whether the monitoring queue is empty or not, and traversing all monitoring points if the monitoring queue is not empty;
the global time point is increased by 1 continuously until the time of the monitoring point is equal to the global time point, the corresponding link is measured and the monitoring point is removed.
5. The reliable routing method applied to a B5G vehicle network according to claim 1, wherein:
the link bandwidth adopts a passive mode, the occupied bandwidth is measured according to the statistical data of a counter of a switch port, the bandwidth is measured by utilizing the return information of rxBytes and txBytes, the bit numbers received and transmitted by the ports are respectively represented, a switch s1 and a switch s2 are connected through ports p1 and p2, and the bandwidth is calculated in the time period of t1 and t2, as shown in the formulas (3) and (4):
wherein,and->txBytes of port p1 at times t2 and t1, respectively,/->And->rxBytes for p1 at times t2 and t1, respectively; the data at port p2 are represented in equation (4), respectively;
T p1 and T p2 And respectively representing the total bit number of the ports p1 and p2 in the time period from t1 to t2, and taking the average value of the two ports as the calculated value of the occupied bandwidth of the link.
6. A reliable routing method for B5G vehicular networks according to claim 3, characterized in that:
the link delay is measured by respectively sending a packet_out message and an Echo request message;
the SDN controller sends the packet_out message carrying the time stamp to the switch s1, and the switch s1 forwards the message to the switch s2;
the Echo request message is sent, the SDN controller sends the Echo request message with a timestamp to the switch s1 and the switch s2 respectively, and then the link delay between the switches is calculated, as shown in formula (6):
where t is the path delay and t1 and t2 are the controller to switch delays, respectively.
7. The reliable routing method applied to a B5G vehicle network according to claim 1, wherein:
the packet loss rate uses txplackets and rxplackets information to respectively represent the calculation of the number of transmitted and received data packets, as shown in the formulas (7) and (8):
wherein,and->Respectively representing the number of data packets sent by the p1 port at the time t2 and the time t1, +.>And->The number of data packets received by the p2 port at the time t2 and the time t1 are respectively represented; TP is the total number of data packets sent in the time period from port t1 to port t2, RP is the total number of data packets received in the time period from port t1 to port t 2; and calculating the packet loss rate, wherein the calculation is as shown in a formula (9):
normalizing the performance evaluation index, setting different weights for different indexes, and calculating a fitness function, wherein the fitness function is shown as a formula (10):
f(x)=q 1 ×f band (x)+q 2 ×(1-f loss (x))+q 3 ×(1-f delay (x)) (10)
wherein f band Is the ratio of the bandwidth of the chromosome to the sum of all chromosomes, q 1 Is f band Weights of (2); f (f) loss Is chromosome packet loss rate, q 2 Is f loss Weights of (2); f (f) delay Is the chromosome delay ratio, q 2 Is f delay Weights of (2); q 1 +q 2 +q 3 =1; the largest chromosome fitness function value is the route path.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210748115.3A CN115150325B (en) | 2022-06-29 | 2022-06-29 | Reliable routing method applied to B5G vehicle-mounted network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210748115.3A CN115150325B (en) | 2022-06-29 | 2022-06-29 | Reliable routing method applied to B5G vehicle-mounted network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115150325A CN115150325A (en) | 2022-10-04 |
CN115150325B true CN115150325B (en) | 2024-04-09 |
Family
ID=83409402
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210748115.3A Active CN115150325B (en) | 2022-06-29 | 2022-06-29 | Reliable routing method applied to B5G vehicle-mounted network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115150325B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105574589A (en) * | 2016-01-07 | 2016-05-11 | 西安工程大学 | Transformer oil chromatogram fault diagnosis method based on ecological niche genetic algorithm |
CN106535282A (en) * | 2016-12-19 | 2017-03-22 | 南通大学 | QoS sensing routing protocol based on genetic algorithm in vehicular ad-hoc Network |
CN108521375A (en) * | 2018-04-17 | 2018-09-11 | 中国矿业大学 | The transmission of the network multi-service flow QoS based on SDN a kind of and dispatching method |
CN110139319A (en) * | 2019-05-25 | 2019-08-16 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | High dynamic time-delay network propagation delay time minimizes method for routing |
CN110493131A (en) * | 2019-09-24 | 2019-11-22 | 大连大学 | A kind of design method of Information Network routing policy under SDN framework |
CN110557210A (en) * | 2018-06-01 | 2019-12-10 | Lg电子株式会社 | Method and apparatus for adaptive multi-channel V2X communication |
WO2020256238A1 (en) * | 2019-06-18 | 2020-12-24 | 엘지전자 주식회사 | Communication method between vehicle and network in wireless communication system, and vehicle and network therefor |
CN112385269A (en) * | 2018-07-19 | 2021-02-19 | Oppo广东移动通信有限公司 | Path selection method, terminal equipment and network equipment |
CN113098771A (en) * | 2021-03-26 | 2021-07-09 | 哈尔滨工业大学 | Distributed self-adaptive QoS routing method based on Q learning |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190130739A1 (en) * | 2017-10-31 | 2019-05-02 | V-Synchronize Tech LLC | Self synchronization of moving vehicles |
-
2022
- 2022-06-29 CN CN202210748115.3A patent/CN115150325B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105574589A (en) * | 2016-01-07 | 2016-05-11 | 西安工程大学 | Transformer oil chromatogram fault diagnosis method based on ecological niche genetic algorithm |
CN106535282A (en) * | 2016-12-19 | 2017-03-22 | 南通大学 | QoS sensing routing protocol based on genetic algorithm in vehicular ad-hoc Network |
CN108521375A (en) * | 2018-04-17 | 2018-09-11 | 中国矿业大学 | The transmission of the network multi-service flow QoS based on SDN a kind of and dispatching method |
CN110557210A (en) * | 2018-06-01 | 2019-12-10 | Lg电子株式会社 | Method and apparatus for adaptive multi-channel V2X communication |
CN112385269A (en) * | 2018-07-19 | 2021-02-19 | Oppo广东移动通信有限公司 | Path selection method, terminal equipment and network equipment |
CN110139319A (en) * | 2019-05-25 | 2019-08-16 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | High dynamic time-delay network propagation delay time minimizes method for routing |
WO2020256238A1 (en) * | 2019-06-18 | 2020-12-24 | 엘지전자 주식회사 | Communication method between vehicle and network in wireless communication system, and vehicle and network therefor |
CN110493131A (en) * | 2019-09-24 | 2019-11-22 | 大连大学 | A kind of design method of Information Network routing policy under SDN framework |
CN113098771A (en) * | 2021-03-26 | 2021-07-09 | 哈尔滨工业大学 | Distributed self-adaptive QoS routing method based on Q learning |
Non-Patent Citations (3)
Title |
---|
"Social-Aware Clustering for D2D Multicast Content Sharing in 5G Networks";Payam Rahimi;《2020 Global Information Infrastructure and Networking Symposium (GIIS)》;全文 * |
"车辆自组织网络无线接入若干算法研究";茆意伟;《中国博士学位论文全文数据库工程科技Ⅱ辑》;全文 * |
石峻岭."一种内容中心型车载社交网络路由机制".《计算机科学》.2019,全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN115150325A (en) | 2022-10-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109818865B (en) | SDN enhanced path boxing device and method | |
Moridi et al. | RMRPTS: a reliable multi-level routing protocol with tabu search in VANET | |
CN105208616A (en) | Road topology based adaptive multi-copy routing method in vehicular ad hoc network | |
CN114124823B (en) | Self-adaptive routing method, system and equipment oriented to high dynamic network topology | |
CN110461018B (en) | Opportunistic network routing forwarding method based on computable AP | |
Chandrashekar et al. | Providing full connectivity in large ad-hoc networks by dynamic placement of aerial platforms | |
CN114124792B (en) | Multi-path concurrent transmission dynamic decision method and device for hybrid dual-mode heterogeneous power distribution field area network | |
CN109275154B (en) | Dynamic self-adaptive routing path planning method based on double-layer topological routing algorithm | |
CN108667668B (en) | Accessibility routing method based on Internet of vehicles communication base in urban road scene | |
Wang et al. | Complex network theoretical analysis on information dissemination over vehicular networks | |
CN116390164A (en) | Low orbit satellite network trusted load balancing routing method, system, equipment and medium | |
CN113382382A (en) | Vehicle ad hoc network routing method based on fuzzy logic optimization strategy | |
Qiu et al. | Maintaining links in the highly dynamic fanet using deep reinforcement learning | |
Yu et al. | A deep learning based RSA strategy for elastic optical networks | |
Alouache et al. | A multi-objective optimization approach for SDVN controllers placement problem | |
CN115150325B (en) | Reliable routing method applied to B5G vehicle-mounted network | |
CN112073983B (en) | Wireless data center network topology optimization method and system based on flow prediction | |
Meng et al. | Intelligent routing orchestration for ultra-low latency transport networks | |
CN116939761A (en) | Air-ground cooperative routing method based on reinforcement learning | |
CN114827946B (en) | Task similarity-based edge calculation method and system in Internet of vehicles scene | |
Almolaa et al. | Distributed deep reinforcement learning computations for routing in a software-defined mobile ad hoc network | |
CN113708953B (en) | Underwater acoustic sensor network anti-damage method based on node importance balance | |
Murshed | Reinforcement Learning-based User-centric Handover Decision-making in 5G Vehicular Networks | |
CN113490181A (en) | Vehicle transmission delay optimization method based on LSTM neural network | |
Harrabi et al. | A swarm intelligence-based routing protocol for vehicular networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |