Method, device, equipment and readable storage medium for selecting relay nodes in Internet of Vehicles

By dividing the distance segments and implementing a competition mechanism, the problem of low efficiency in selecting relay nodes in the Internet of Vehicles is solved, and further relay nodes can be found when the vehicle is far away, improving the efficiency of information transmission.

CN114885397BActive Publication Date: 2024-10-18CHANGSHA UNIVERSITY OF SCIENCE AND TECHNOLOGY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111553016.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2024-10-18
Estimated Expiration
2041-12-17

AI Technical Summary

Technical Problem

The existing technology lacks an effective method for selecting relay nodes for Internet of Vehicles, which results in low information transmission efficiency when the target vehicle is far away, making it difficult to find the optimal relay node.

Method used

After receiving the position broadcast by the sending node and estimating the maximum communication distance, it divides the distance segments, determines whether its own distance segment is the farthest segment, broadcasts a flag signal in the designated time slot to exit the non-candidate vehicle competition, and randomly generates backoff Time to compete to become a relay node.

Benefits of technology

It improves the efficiency of information transmission, can find further relay nodes when the vehicle is far away, and improves the effect of information transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114885397B_ABST
    Figure CN114885397B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for selecting a relay node in an Internet of Vehicles. Considering the existence of obstacles in the Internet of Vehicles, the estimated maximum communication distance of the vehicle may be inaccurate, and vehicles outside the estimated maximum communication distance may receive the broadcast of the sending node. Therefore, after receiving the broadcast of the sending node, the vehicle in the present application can compete with other vehicles in the section for a relay node as a sending node when the distance between itself and the sending node belongs to a distance section greater than the estimated maximum communication distance, and can find a farther vehicle as a relay node, thereby improving the efficiency of information transmission. The present invention also discloses a selection device, equipment and computer-readable storage medium for a relay node in an Internet of Vehicles, which have the same beneficial effects as the above method for selecting a relay node in an Internet of Vehicles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a method for selecting a relay node in an Internet of Vehicles. The present invention also relates to a device, equipment and computer-readable storage medium for selecting a relay node in an Internet of Vehicles. Background Art

[0002] In the Internet of Vehicles, each vehicle has the need to communicate with other vehicles in the Internet of Vehicles. If the target vehicle is outside its own communication range, it is necessary to find a relay node within its own communication range so that the relay node can relay the information. When the target vehicle is far enough away, multiple relays are required to transmit the information to the target vehicle. However, the prior art lacks a mature method for selecting relay nodes, making it difficult to find the best vehicle (that is, the farthest area within the communication range) as a relay node, reducing the efficiency of information transmission.

[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention

[0004] An object of the present invention is to provide a method for selecting a relay node in an Internet of Vehicles, which can find more distant vehicles as relay nodes, thereby improving the efficiency of information transmission; another object of the present invention is to provide a selection device, equipment and computer-readable storage medium including a relay node in an Internet of Vehicles, which can find more distant vehicles as relay nodes, thereby improving the efficiency of information transmission.

[0005] In order to solve the above technical problems, the present invention provides a method for selecting a relay node in an Internet of Vehicles, comprising:

[0006] After receiving the sending node position broadcasted by the sending node and the estimated maximum communication distance of the sending node, dividing the interval from zero to the estimated maximum communication distance into a plurality of distance segments, and taking the interval greater than the estimated maximum communication distance as a distance segment;

[0007] Before the arrival of the specified time slot after the distance segment division, determine whether the target distance segment to which the distance between itself and the sending node position belongs is the specified distance segment from far to near obtained by the last division;

[0008] If so, a flag signal is broadcasted in the vehicle network so that vehicles that do not belong to the distance segment to which they belong can withdraw from the competition for the relay node;

[0009] When the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance, randomly generating a backoff time for itself and starting timing;

[0010] If the selected signal broadcasted by other vehicles in the vehicle network is not received before the timing time reaches the backoff time, the selected signal is broadcasted in the vehicle network so that the sending node selects itself as a relay node.

[0011] Preferably, when the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance, randomly generating a backoff time for itself and starting timing is specifically:

[0012] Determine whether the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance;

[0013] If the distance segment is greater than the estimated maximum communication distance, a backoff time is randomly generated for itself and the timing is started;

[0014] If it is not a distance segment greater than the estimated maximum communication distance, then the number of iterations whose initial value is zero is increased by one and it is determined whether the current number of iterations reaches the preset termination number of iterations;

[0015] If it is reached, the step of randomly generating a backoff time for itself and starting the timing is executed;

[0016] If not reached, the distance segment corresponding to itself is divided into several distance segments according to the preset partitioning method, and the step of judging whether the target distance segment to which the distance between itself and the sending node position belongs is the specified sequence of distance segments from far to near among the several distance segments obtained by the last division before the arrival of the specified sequence time slot after the last distance segment division is executed.

[0017] Preferably, if the selected signal broadcasted by other vehicles in the vehicle network is not received before the timing time reaches the backoff time, the selected signal is broadcasted in the vehicle network so that the sending node selects itself as a relay node specifically as follows:

[0018] Determining whether a selected signal broadcast by other vehicles in the vehicle network is received before the timing time reaches the backoff time;

[0019] If not received, broadcasting the selected signal in the vehicle network so that the sending node selects itself as a relay node;

[0020] If received, the relay node will exit the competition.

[0021] Preferably, after broadcasting the selected signal in the Internet of Vehicles, the method for selecting a relay node in the Internet of Vehicles further includes:

[0022] Determine whether the distance between itself and the sending node is greater than the estimated maximum communication distance;

[0023] If so, the distance between the sending node and itself is recorded.

[0024] Preferably, the Internet of Vehicles is a three-dimensional Internet of Vehicles.

[0025] Preferably, the step of dividing the interval from zero to the estimated maximum communication distance into a plurality of distance segments is as follows:

[0026] The interval from zero to the estimated maximum communication distance is divided into a plurality of distance segments according to an exponential partitioning method.

[0027] In order to solve the above technical problems, the present invention also provides a device for selecting a relay node of an Internet of Vehicles, comprising:

[0028] A partitioning module, configured to, after receiving the sending node position broadcasted by the sending node and the estimated maximum communication distance of the sending node, divide the interval from zero to the estimated maximum communication distance into a plurality of distance segments, and regard the interval greater than the estimated maximum communication distance as a distance segment;

[0029] A judgment module, used for judging whether the target distance segment to which the distance between itself and the sending node position belongs is the distance segment of the specified order from far to near obtained by the last division before the arrival of the specified order time slot after the distance segment division, and if so, triggering the first broadcast module;

[0030] The first broadcast module is used to broadcast a flag signal in the vehicle network so that vehicles that do not belong to the distance segment to which they belong exit the competition for the relay node;

[0031] A generating module, configured to randomly generate a backoff time for itself and start timing when the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance;

[0032] The second broadcast module is used to broadcast the selected signal in the vehicle network if the selected signal broadcast by other vehicles in the vehicle network is not received before the timing time reaches the backoff time, so that the sending node selects itself as a relay node.

[0033] Preferably, the Internet of Vehicles is a three-dimensional Internet of Vehicles.

[0034] In order to solve the above technical problems, the present invention also provides a device for selecting a relay node of an Internet of Vehicles, comprising:

[0035] Memory for storing computer programs;

[0036] A processor is used to implement the steps of the method for selecting a relay node in the Internet of Vehicles as described above when executing the computer program.

[0037] In order to solve the above technical problems, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for selecting a relay node in the Internet of Vehicles as described above are implemented.

[0038] The present invention provides a method for selecting a relay node in an Internet of Vehicles. Taking into account the existence of obstacles in the Internet of Vehicles, the estimated maximum communication distance of the vehicle may be inaccurate, and vehicles outside the estimated maximum communication distance may receive the broadcast of the sending node. Therefore, after receiving the broadcast of the sending node, the vehicle in the present application can compete with other vehicles in the section for a relay node as a sending node when the distance between itself and the sending node belongs to a distance section greater than the estimated maximum communication distance. Therefore, a farther vehicle can be found as a relay node, thereby improving the efficiency of information transmission.

[0039] The present invention also provides a device, equipment and computer-readable storage medium for selecting a relay node in an Internet of Vehicles, which have the same beneficial effects as the above method for selecting a relay node in an Internet of Vehicles. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0041] Figure 1 A schematic diagram of a flow chart of a method for selecting a relay node in an Internet of Vehicles provided by the present invention;

[0042] Figure 2 A schematic diagram of a process for finding a relay node within an estimated maximum communication distance provided by the present invention;

[0043] Figure 3 A schematic diagram of the structure of a vehicle networking relay node selection device provided by the present invention;

[0044] Figure 4 A schematic diagram of the structure of a vehicle networking relay node selection device provided by the present invention. DETAILED DESCRIPTION

[0045] The core of the present invention is to provide a method for selecting a relay node in the Internet of Vehicles, which can find more distant vehicles as relay nodes, thereby improving the efficiency of information transmission; another core of the present invention is to provide a selection device, equipment and computer-readable storage medium including a relay node in the Internet of Vehicles, which can find more distant vehicles as relay nodes, thereby improving the efficiency of information transmission.

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] Please refer to Figure 1 , Figure 1 A schematic flow chart of a method for selecting a relay node in an Internet of Vehicles provided by the present invention, wherein the method for selecting a relay node in an Internet of Vehicles comprises:

[0048] S101: after receiving the sending node position broadcasted by the sending node and the estimated maximum communication distance of the sending node, dividing the interval from zero to the estimated maximum communication distance into a plurality of distance segments, and taking the interval greater than the estimated maximum communication distance as a distance segment;

[0049] Specifically, taking into account the technical problems in the above background technology, and considering the existence of obstacles in the Internet of Vehicles, the estimated maximum communication distance of the vehicle may be inaccurate. Vehicles outside the estimated maximum communication distance may receive the broadcast of the sending node. Therefore, if the relay node is only searched within the estimated maximum communication distance, it is very likely to miss vehicles that are within the actual communication range but outside the estimated maximum communication distance. Therefore, after receiving the sending node position broadcast by the sending node and the estimated maximum communication distance of the sending node, in addition to dividing the interval from zero to the estimated maximum communication distance into several distance segments, the present application can also treat the interval greater than the estimated maximum communication distance as a distance segment, which is used as the data basis for subsequent steps.

[0050] The sending node may be a source vehicle to which information is to be sent, or may be a previously selected relay node that is relatively close to the source vehicle.

[0051] Specifically, the data packet broadcast by the sending node may be a request broadcast RTB.

[0052] S102: before the arrival of the designated time slot after the distance segment division, determine whether the target distance segment to which the distance between the self and the sending node position belongs is the designated distance segment from far to near obtained by the last division;

[0053] Specifically, after the last distance segment division, each distance segment obtained corresponds to a time slot, and the farther the distance segment is from the sending node, the earlier the time slot. Each vehicle competing for the relay node needs to broadcast a flag signal in the Internet of Vehicles when the time slot corresponding to the target distance segment in which it is located arrives. Similarly, when vehicles competing for the relay node in other distance segments receive the flag signal, they can withdraw from the competition for the relay node, that is, these vehicles withdrawing from the competition no longer send flag signals. Therefore, the present application needs to determine whether the target distance segment to which the distance between itself and the sending node position belongs is the specified order distance segment from far to near obtained by the last division, so as to trigger the actions in subsequent steps according to the judgment result.

[0054] S103: If yes, broadcast a flag signal in the vehicle network so that vehicles that do not belong to the distance segment to which they belong exit the competition for the relay node;

[0055] Specifically, when the time slot corresponding to the target distance segment arrives, a flag signal can be broadcast in the Internet of Vehicles so that vehicles that do not belong to the distance segment to which they belong can withdraw from the competition for the relay node.

[0056] The flag signal may be of various types, for example, an out-of-band blocking channel signal black-burst, etc., which is not limited in the embodiment of the present invention.

[0057] S104: when the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance, a backoff time is randomly generated for itself and the timing is started;

[0058] Specifically, after the flag signal is broadcast, there are two situations, one is that the distance segment to which the vehicle broadcasting the flag signal belongs is a distance segment greater than the estimated maximum communication distance, and the other is that the distance segment to which the vehicle broadcasting the flag signal belongs is not a distance segment greater than the estimated maximum communication distance. For the first situation, considering that there are not too many vehicles in the distance segment greater than the estimated maximum communication distance, the relay node can be selected directly in the vehicle in the segment that receives the broadcast from the sending node. The present application adopts the backoff time method to requisition the relay node, that is, the vehicle in the segment that receives the broadcast from the sending node randomly generates a backoff time for itself and starts timing to trigger subsequent steps.

[0059] S105: If the selected signal broadcasted by other vehicles in the Internet of Vehicles is not received before the timing time reaches the backoff time, the selected signal is broadcasted in the Internet of Vehicles so that the sending node selects itself as a relay node.

[0060] Specifically, all vehicles that are within a distance segment greater than the estimated maximum communication distance and receive the broadcast signal of the sending node can start timing. As long as they do not receive the selected signal broadcast by other vehicles in the Internet of Vehicles before the timing reaches the backoff time, the selected signal will be broadcast in the Internet of Vehicles. That is, the vehicle with the shortest backoff time will be selected as the relay node to forward information.

[0061] The selected signal may be a clear broadcast CTB.

[0062] The present invention provides a method for selecting a relay node in an Internet of Vehicles. Taking into account the existence of obstacles in the Internet of Vehicles, the estimated maximum communication distance of the vehicle may be inaccurate, and vehicles outside the estimated maximum communication distance may receive the broadcast of the sending node. Therefore, after receiving the broadcast of the sending node, the vehicle in the present application can compete with other vehicles in the section for a relay node as a sending node when the distance between itself and the sending node belongs to a distance section greater than the estimated maximum communication distance. Therefore, a farther vehicle can be found as a relay node, thereby improving the efficiency of information transmission.

[0063] To better illustrate the embodiments of the present invention, please refer to Figure 2 , Figure 2 A schematic diagram of a process for finding a relay node within an estimated maximum communication distance provided by the present invention is based on the above embodiment:

[0064] As a preferred embodiment, when the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance, the backoff time is randomly generated for itself and the timing is started as follows:

[0065] Determine whether the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance;

[0066] If the distance segment is greater than the estimated maximum communication distance, a backoff time is randomly generated for itself and starts timing;

[0067] If it is not a distance segment greater than the estimated maximum communication distance, the number of iterations whose initial value is zero is increased by one and it is determined whether the current number of iterations reaches the preset termination number of iterations;

[0068] If it is reached, the steps of randomly generating a backoff time for itself and starting the timing are executed;

[0069] If not reached, the distance segment corresponding to itself is divided into several distance segments according to the preset partitioning method, and before the arrival of the specified time slot after the last distance segment division, the step of judging whether the target distance segment to which the distance between itself and the sending node position belongs is the specified distance segment from far to near among the several distance segments obtained by the last division is executed.

[0070] Specifically, after broadcasting the flag signal, if it is found that the distance segment corresponding to itself is not a distance segment greater than the estimated maximum communication distance, then it means that the distance between itself and the sending node is less than the estimated maximum communication distance, and the distance segments divided in the interval from zero to the estimated maximum communication distance are not fine enough. Therefore, the number of iterations can be increased by one and it can be determined whether the current number of iterations has reached the preset termination number of iterations. If the preset termination number of iterations is reached, a backoff time can be randomly generated for itself and the timing can be started (that is, the requisition stage is reached to select a relay node). If the preset termination number of iterations is not reached, the iteration can continue, that is, the segment division can continue and the flag signal can be sent in its corresponding time slot.

[0071] Specifically, an embodiment of the present invention introduces how to select a relay node within the estimated maximum communication distance when there is no vehicle connection that can communicate with the sending node within a distance segment greater than the estimated maximum communication distance, which has the advantage of high efficiency.

[0072] Of course, if the distance segments first divided within the estimated maximum communication distance are relatively fine, the requisition phase can be directly entered to generate the backoff time and start timing, which is not limited in the embodiment of the present invention.

[0073] Specifically, Figure 2 It can be an iterative process of searching for relay nodes within the estimated maximum communication distance in an embodiment of the present invention. First, the scene is a double-decker parking lot scene. Lane 1 in the figure is the first floor, and Lane 2 is the second floor. Each floor can be viewed independently. It can be seen intuitively that the interval from zero to the estimated maximum communication distance is divided into three segments in the first iteration, and is divided into three segments in each subsequent iteration. Of course, the fixed number of segments for each division can be pre-set, for example, it can be set to 4 segments, etc. The embodiment of the present invention does not limit this.

[0074] As a preferred embodiment, if the selected signal broadcasted by other vehicles in the vehicle network is not received before the timing time reaches the backoff time, the selected signal is broadcasted in the vehicle network so that the sending node selects itself as a relay node. Specifically:

[0075] Determine whether a selected signal broadcast by other vehicles in the vehicle network is received before the timing time reaches the backoff time;

[0076] If not received, the selected signal is broadcasted in the IOV so that the sending node selects itself as a relay node;

[0077] If received, the relay node will exit the competition.

[0078] Specifically, since there may be multiple vehicles (located in the same distance section) that generate backoff time and start timing at the same time, if the backoff time randomly generated by itself is not the shortest, the selected signal broadcast by other vehicles in the vehicle network will be received before the timing reaches the backoff time. This means that the timing of other vehicles has reached the backoff time first and broadcast the selected signal in the vehicle network. Therefore, in the embodiment of the present invention, it can be determined whether the selected signal broadcast by other vehicles in the vehicle network is received before the timing reaches the backoff time. If it is received, the competition for the relay node is exited. If it is not received, the selected signal can be broadcast in the vehicle network when the timing reaches the backoff time.

[0079] As a preferred embodiment, after broadcasting the selected signal in the Internet of Vehicles, the method for selecting a relay node in the Internet of Vehicles further includes:

[0080] Determine whether the distance between itself and the sending node is greater than the estimated maximum communication distance;

[0081] If so, record the distance between the sending node and itself.

[0082] Specifically, considering that if the finally selected relay node is located outside the estimated maximum communication distance, it proves that the estimated maximum communication distance at this time is biased, and the distance between the selected vehicle and the sending node at this time is more accurate than the estimated maximum communication distance. Therefore, the present application can determine whether the distance between itself and the sending node location is greater than the estimated maximum communication distance, and record the distance between the sending node and itself if the judgment result is yes, so that the staff can make improvements based on the recorded distance as the estimation process of the maximum communication distance.

[0083] As a preferred embodiment, the Internet of Vehicles is a three-dimensional Internet of Vehicles.

[0084] Specifically, considering that in many scenarios the Internet of Vehicles is no longer limited to planar distribution, for example, double-decker parking is a three-dimensional Internet of Vehicles, the embodiments of the present invention can be applied to such scenarios as well as to two-dimensional Internet of Vehicles, and the scope of application is not limited.

[0085] As a preferred embodiment, the interval from zero to the estimated maximum communication distance is divided into several distance sections:

[0086] The interval from zero to the estimated maximum communication distance is divided into several distance segments according to the exponential partitioning method.

[0087] Specifically, considering that for the sending node, the farther the distance segment of the same length is from the sending node, the larger its area will be, and theoretically the more vehicles it will contain. This shows that it is unreasonable to divide the distance segments with equal lengths. Therefore, in order to make the area of ​​each segment and the number of vehicles that may be contained in it as uniform as possible, the exponential partitioning method is adopted in this application to divide the distance segments, that is, each distance segment is exponentially distributed from far to near according to the distance from the sending node.

[0088] Please refer to Figure 3 , Figure 3 A schematic diagram of a structure of a vehicle networking relay node selection device provided by the present invention, the vehicle networking relay node selection device comprising:

[0089] A partitioning module 31 is used to divide the interval from zero to the estimated maximum communication distance into a plurality of distance segments after receiving the sending node position broadcast by the sending node and the estimated maximum communication distance of the sending node, and to divide the interval greater than the estimated maximum communication distance into a distance segment;

[0090] A judgment module 32 is used to judge whether the target distance segment to which the distance between itself and the sending node position belongs is the distance segment of the last division from far to near in the specified order before the arrival of the specified order time slot after the distance segment division, and if so, trigger the first broadcast module 23;

[0091] The first broadcast module 33 is used to broadcast a flag signal in the vehicle network so that vehicles that do not belong to the distance segment to which they belong exit the competition for the relay node;

[0092] A generating module 34, configured to randomly generate a backoff time for itself and start timing when the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance;

[0093] The second broadcast module 35 is used to broadcast the selected signal in the vehicle network if the selected signal broadcast by other vehicles in the vehicle network is not received before the timing time reaches the backoff time, so that the sending node selects itself as a relay node.

[0094] As a preferred embodiment, the Internet of Vehicles is a three-dimensional Internet of Vehicles.

[0095] For an introduction to the vehicle networking relay node selection device provided in the embodiment of the present invention, please refer to the aforementioned vehicle networking relay node selection method embodiment, and the embodiment of the present invention will not be repeated here.

[0096] Please refer to Figure 4 , Figure 4 A schematic diagram of a structure of a vehicle networking relay node selection device provided by the present invention, wherein the vehicle networking relay node selection device comprises:

[0097] A memory 41, used for storing computer programs;

[0098] The processor 42 is used to implement the steps of the method for selecting a relay node in the Internet of Vehicles in the aforementioned embodiment when executing a computer program.

[0099] For an introduction to the vehicle networking relay node selection device provided in the embodiment of the present invention, please refer to the aforementioned vehicle networking relay node selection method embodiment, and the embodiment of the present invention will not be repeated here.

[0100] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for selecting a relay node in an Internet of Vehicles in the aforementioned embodiment are implemented.

[0101] For an introduction to the computer-readable storage medium provided in the embodiments of the present invention, please refer to the aforementioned embodiments of the method for selecting a relay node in the Internet of Vehicles, and the embodiments of the present invention will not be described in detail here.

[0102] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "includes", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the element.

[0103] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for selecting a relay node in an Internet of Vehicles, characterized in that: include: After receiving the sending node position broadcasted by the sending node and the estimated maximum communication distance of the sending node, dividing the interval from zero to the estimated maximum communication distance into a plurality of distance segments, and taking the interval greater than the estimated maximum communication distance as a distance segment; Before the arrival of the specified time slot after the distance segment division, determine whether the target distance segment to which the distance between itself and the sending node position belongs is the specified distance segment from far to near obtained by the last division; If so, a flag signal is broadcasted in the vehicle network so that vehicles that do not belong to the distance segment to which they belong can withdraw from the competition for the relay node; When the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance, randomly generating a backoff time for itself and starting timing; If the selected signal broadcasted by other vehicles in the vehicle network is not received before the timing time reaches the backoff time, broadcasting the selected signal in the vehicle network so that the sending node selects itself as a relay node; Wherein, when the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance, randomly generating a backoff time for itself and starting timing is specifically: Determine whether the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance; If the distance segment is greater than the estimated maximum communication distance, a backoff time is randomly generated for itself and the timing is started; If it is not a distance segment greater than the estimated maximum communication distance, then the number of iterations whose initial value is zero is increased by one and it is determined whether the current number of iterations reaches the preset termination number of iterations; If it is reached, the step of randomly generating a backoff time for itself and starting the timing is executed; If not reached, the distance segment corresponding to itself is divided into several distance segments according to the preset partitioning method, and the step of judging whether the target distance segment to which the distance between itself and the sending node position belongs is the specified sequence of distance segments from far to near among the several distance segments obtained by the last division before the arrival of the specified sequence time slot after the last distance segment division is executed.

2. The method for selecting a relay node in an Internet of Vehicles according to claim 1, characterized in that: If the selected signal broadcasted by other vehicles in the vehicle network is not received before the timing time reaches the backoff time, the selected signal is broadcasted in the vehicle network so that the sending node selects itself as a relay node. Specifically, Determining whether a selected signal broadcast by other vehicles in the vehicle network is received before the timing time reaches the backoff time; If not received, broadcasting the selected signal in the vehicle network so that the sending node selects itself as a relay node; If received, the node will exit the relay node competition.

3. The method for selecting a relay node in an Internet of Vehicles according to claim 2, characterized in that: After the selected signal is broadcasted in the Internet of Vehicles, the method for selecting a relay node in the Internet of Vehicles further includes: Determine whether the distance between itself and the sending node is greater than the estimated maximum communication distance; If so, the distance between the sending node and itself is recorded.

4. The method for selecting a relay node in an Internet of Vehicles according to claim 1, characterized in that: The Internet of Vehicles is a three-dimensional Internet of Vehicles.

5. The method for selecting a relay node in an Internet of Vehicles according to any one of claims 1 to 4, characterized in that: The step of dividing the interval from zero to the estimated maximum communication distance into a plurality of distance sections is specifically as follows: The interval from zero to the estimated maximum communication distance is divided into a plurality of distance segments according to an exponential partitioning method.

6. A device for selecting a relay node in an Internet of Vehicles, characterized in that: include: A partitioning module, configured to, after receiving the sending node position broadcasted by the sending node and the estimated maximum communication distance of the sending node, divide the interval from zero to the estimated maximum communication distance into a plurality of distance segments, and regard the interval greater than the estimated maximum communication distance as a distance segment; A judgment module, used for judging whether the target distance segment to which the distance between itself and the sending node position belongs is the distance segment of the specified order from far to near obtained by the last division before the arrival of the specified order time slot after the distance segment division, and if so, triggering the first broadcast module; The first broadcast module is used to broadcast a flag signal in the vehicle network so that vehicles that do not belong to the distance segment to which they belong exit the competition for the relay node; A generating module, configured to randomly generate a backoff time for itself and start timing when the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance; A second broadcast module, configured to broadcast the selected signal in the vehicle network if the selected signal broadcast by other vehicles in the vehicle network is not received before the timing time reaches the backoff time, so that the sending node selects itself as a relay node; The generation module is specifically used to: determine whether the distance segment corresponding to itself is a distance segment greater than the estimated maximum communication distance; if it is a distance segment greater than the estimated maximum communication distance, randomly generate a backoff time for itself and start timing; if it is not a distance segment greater than the estimated maximum communication distance, increase the number of iterations whose initial value is zero by one and determine whether the current number of iterations reaches a preset termination number of iterations; If it is reached, the step of randomly generating a backoff time for itself and starting the timing is executed; if it is not reached, the distance segment corresponding to itself is divided into several distance segments according to the preset partitioning method, and the step of judging whether the target distance segment to which the distance between itself and the sending node position belongs is the specified sequence of distance segments from far to near among the several distance segments obtained by the last division before the arrival of the specified sequence time slot after the last distance segment division is executed.

7. The device for selecting a relay node in an Internet of Vehicles according to claim 6, characterized in that: The Internet of Vehicles is a three-dimensional Internet of Vehicles.

8. A device for selecting a relay node of an Internet of Vehicles, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the method for selecting a relay node in the Internet of Vehicles as described in any one of claims 1 to 5 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for selecting a relay node in an Internet of Vehicles as claimed in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Internet of vehicles communication method based on link quality

    CN106851770A

  • A general relay node selection method for vehicle networking intersection

    CN109257792A