The invention discloses an optimal
relay selecting method based on a
power control technology in internet of vehicles. The optimal
relay selecting method comprises the following steps of (1) calculating distances of a moving vehicle relative to neighbor nodes by obtaining current GPS position vector information of vehicles of all of neighbors; (2) respectively calculating transmitting power correspondingly required by
reliable transmission of all of neighbor nodes based on a physical channel attenuation model; (3) calculating MAC layer
transmission delay caused by all of transmitting power according to the 802.11p protocol; (4) synthesizing two indexes including the reliability and the
delay of
data transmission, calculating the priority level of each neighbor to be selected as a
relay and selecting the neighbor with the highest priority level as an optimal relay for current
information transmission. The optimal relay selecting method utilizes the characteristic that an adjustable range of transmitting power of a vehicle-mounted
communication device is wide, various factors including physical channel attenuation, MAC layer message collision,
retransmission delay and the like are comprehensively considered to select the optimal relay, messages in
the internet of vehicles are reliably transmitted in real time in a large-range mode, and the application prospect is very broad.