Disclosure of Invention
The technical problem to be solved by the invention is to provide a data relay transmission method, a device and equipment, which can solve the problem of beyond-the-horizon communication of a mobile device, reduce the waste of communication resources and improve the communication reliability.
In order to solve the technical problems, the technical scheme of the invention is as follows:
a data relay transmission method is applied to a control center and comprises the following steps:
acquiring first resource configuration information of at least one first terminal of a first relay area and second resource configuration information of at least one second terminal of a second relay area in at least two relay areas;
performing resource configuration for the first terminal according to the first resource configuration information and performing resource configuration for the second terminal according to the second resource configuration information, wherein the second resource configuration information comprises a second resource number smaller than the first resource number of the first resource configuration information;
when the relay link between the first terminal and the second terminal is interrupted in data transmission, releasing the second resource of the second terminal to obtain a recovered resource;
and configuring the recovery resources to at least one third terminal so that the third terminal performs data relay transmission according to the recovery resources.
Optionally, the first resource configuration information includes: a first terminal performs a first number of transmission time slots required for data relay transmission and a first routing table required for the data relay transmission;
the second resource configuration information includes: a second terminal performs a second number of transmission time slots required for data relay transmission and a second routing table required for the data relay transmission; wherein the second number is less than the first number.
Optionally, the first number is greater than or equal to a sum of a second number of transmission slots required for data relay transmission by all second terminals in the second relay area.
Optionally, performing resource allocation for the first terminal according to the first resource allocation information and performing resource allocation for the second terminal according to the second resource allocation information includes:
writing a first number of transmission time slots in the first resource configuration information into a resource configuration table of the first terminal and writing the first routing table into a local storage unit of the first terminal;
and writing a second number of transmission time slots in the second resource configuration information into a resource configuration table of the second terminal, and writing the second routing table into a local storage unit of the second terminal.
Optionally, when the relay link between the first terminal and the second terminal is interrupted, releasing the second resource of the second terminal to obtain a recovered resource, including:
determining that a relay link between the first terminal and the second terminal is interrupted for transmitting data when the second terminal is monitored that no data is transmitted through the first terminal in a preset time period;
and when determining that the relay link between the first terminal and the second terminal is interrupted in data transmission, recovering a second number of transmission time slots in the second resource configuration information to obtain recovered resources.
Optionally, the recycling resource is configured to at least one third terminal, so that the third terminal performs data relay transmission according to the recycling resource, and the method includes:
reconfiguring the second number of transmission time slots to at least one third terminal, so that the third terminal queries a third routing table in a local storage unit to obtain optimal path information sent to a target base station; the optimal path information comprises first hop node identification information reaching a target base station, hop count information reaching the target base station and stability information reaching the target base station; encapsulating the data packet according to the optimal path information, and transmitting the encapsulated data packet to a target base station on the second number of transmission time slots according to the path information; the third terminal is a terminal in a first relay area, a terminal in the second relay area, and/or a terminal in a relay area other than the first relay area and the second relay area.
Optionally, the first routing table includes identification information of at least one other terminal monitored by the first terminal, stability information of the terminal and the monitored other terminal, and optimal path information of the terminal and the target base station, where the stability information is signal-to-noise ratio information of other terminal signals monitored by the terminal;
the second routing table includes: the method comprises the steps that identification information of at least one other terminal monitored by a second terminal, stability information of the terminal and the monitored other terminal and optimal path information of the terminal and a target base station are obtained, wherein the stability information is signal-to-noise ratio information of other terminal signals monitored by the terminal;
the third routing table includes: the method comprises the steps of monitoring identification information of at least one other terminal, stability information of the terminal and the other monitored terminal and optimal path information of the terminal and a target base station by a third terminal, wherein the stability information is signal-to-noise ratio information of other terminal signals monitored by the terminal.
The invention also provides a data relay transmission device, which comprises:
the acquisition module is used for acquiring first resource configuration information of at least one first terminal of a first relay area in at least two relay areas and second resource configuration information of at least one second terminal of a second relay area;
the configuration module is used for carrying out resource configuration on the first terminal according to the first resource configuration information and carrying out resource configuration on the second terminal according to the second resource configuration information, wherein the second resource configuration information comprises a second resource number smaller than the first resource number of the first resource configuration information; when the relay link between the first terminal and the second terminal is interrupted in data transmission, releasing the second resource of the second terminal to obtain a recovered resource; and configuring the recovery resources to at least one third terminal so that the third terminal performs data relay transmission according to the recovery resources.
The present invention also provides a computing device comprising: a processor, a memory storing a computer program which, when executed by the processor, performs the method as described above.
The invention also provides a computer readable storage medium storing instructions that, when executed on a computer, cause the computer to perform a method as described above.
The scheme of the invention at least comprises the following beneficial effects:
according to the scheme, the first resource configuration information of at least one first terminal in a first relay area and the second resource configuration information of at least one second terminal in a second relay area in at least two relay areas are obtained; performing resource configuration for the first terminal according to the first resource configuration information and performing resource configuration for the second terminal according to the second resource configuration information, wherein the second resource configuration information comprises a second resource number smaller than the first resource number of the first resource configuration information; when the relay link between the first terminal and the second terminal is interrupted in data transmission, releasing the second resource of the second terminal to obtain a recovered resource; and configuring the recovery resources to at least one third terminal so that the third terminal performs data relay transmission according to the recovery resources. The communication method can solve the problem of beyond-the-horizon communication of the mobile device, reduce the waste of communication resources and improve the communication reliability.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As shown in fig. 1, an embodiment of the present invention proposes a data relay transmission method, which is applied to a control center, and includes:
step 11, obtaining first resource configuration information of at least one first terminal of a first relay area in at least two relay areas and second resource configuration information of at least one second terminal of a second relay area;
step 12, performing resource configuration for the first terminal according to the first resource configuration information and performing resource configuration for the second terminal according to the second resource configuration information, wherein the second resource configuration information comprises a second resource number smaller than the first resource number included in the first resource configuration information;
step 13, when the relay link between the first terminal and the second terminal is interrupted, releasing the second resource of the second terminal to obtain a recovered resource;
and step 14, the recovery resources are allocated to at least one third terminal, so that the third terminal performs data relay transmission according to the recovery resources.
Wherein the first resource configuration information includes: a first terminal performs a first number of transmission time slots required for data relay transmission and a first routing table required for the data relay transmission;
the second resource configuration information includes: a second terminal performs a second number of transmission time slots required for data relay transmission and a second routing table required for the data relay transmission; wherein the second number is less than the first number.
Wherein the first number is greater than or equal to a sum of a second number of transmission slots required for data relay transmission by all second terminals in the second relay zone.
In this embodiment, the control center divides the mobile terminals according to the different operation areas of the mobile terminals before the mobile terminals go to the target area to execute the tasks, the ground management software (the software used by the control center to manage the mobile terminal clusters) broadcasts the instructions wirelessly through the ground station, and assigns a second number of time slots to the second terminals ready to go to the second relay area to execute the tasks, wherein the second number of time slots can only satisfy the transmission of own data and the routing table, and assigns a first number of time slots to the first terminals ready to go to the first relay area to execute the tasks, and the number of time slots obtained by at least one first terminal going to the first relay area is the same, and the first number of time slots can satisfy all the service data (except the routing table, the routing table does not need to be relayed) of the second terminals in the second relay area.
After the first terminal and the second terminal reach the target area, a relay link is automatically established according to an ad hoc network protocol, data of the second terminal located in the second relay area is relayed to a ground control center through the first terminal of the first relay area, and similarly, an instruction of the ground control center is relayed to the second terminal of the second relay area through the first terminal of the first relay area.
The ground control center can monitor the network topology diagrams of the mobile terminals in the first relay area and the second relay area in real time through the routing tables returned by the first terminal and the second terminal, when a certain mobile terminal loses contact with all other mobile terminals and the ground station in a period of time, the mobile terminal is judged to be destroyed or disabled, the ground management software recovers the time slot carried by the mobile terminal, the recovered time slot can be distributed to a third terminal, and the third terminal can be the mobile terminal which does not reach the target area to execute tasks or the first terminal or the second terminal which are positioned in the target area, so that the first terminal or the second terminal has more time slot resources for relay.
In an alternative embodiment of the present invention, step 12 may include:
step 121, writing a first number of transmission time slots in the first resource configuration information into a resource configuration table of the first terminal and writing the first routing table into a local storage unit of the first terminal;
step 122, writing a second number of transmission slots in the second resource configuration information into a resource configuration table of the second terminal, and writing the second routing table into a local storage unit of the second terminal.
In this embodiment, the first number of transmission slots is used to transmit data of the first terminal to the ground base station and relay data of the second terminal to the ground base station. The second number of transmission slots is used for transmitting data of the second terminal to the first terminal.
In an alternative embodiment of the present invention, step 13 may include:
step 131, determining that the relay link between the first terminal and the second terminal is interrupted when the second terminal is monitored that no data is transmitted through the first terminal in a preset time period;
and step 132, when determining that the relay link between the first terminal and the second terminal is interrupted, recovering a second number of transmission time slots in the second resource allocation information to obtain recovered resources.
In this embodiment, a slot reclaimable and reassignment function is provided. Once the key nodes of the target area are destroyed or disabled, the key nodes can be timely supplemented. For example, once 1 or more first terminals are destroyed or disabled, depending on the prior art, the remaining first terminals may not be able to take on all the data relay tasks of the second terminals in the second relay area, but the method can allocate the time slots of the destroyed or disabled first terminals to other terminals in the first relay area because of the function of time slot recovery and redistribution, so that the first terminals still have the capability of completely relaying the data of the second terminals in the second relay area, and if all the first terminals in the first relay area are destroyed or disabled, the ground management software can control the new mobile terminals to go to the target area to perform the same task.
In an alternative embodiment of the present invention, step 14 may include:
reconfiguring the second number of transmission time slots to at least one third terminal, so that the third terminal queries a third routing table in a local storage unit to obtain optimal path information sent to a target base station; the optimal path information comprises first hop node identification information reaching a target base station, hop count information reaching the target base station and stability information reaching the target base station; encapsulating the data packet according to the optimal path information, and transmitting the encapsulated data packet to a target base station on the second number of transmission time slots according to the path information; the third terminal is a terminal in a first relay area, a terminal in the second relay area, and/or a terminal in a relay area other than the first relay area and the second relay area.
In an optional embodiment of the present invention, the first routing table includes identification information of at least one other terminal monitored by the first terminal, stability information of the terminal and the monitored other terminal, and optimal path information of the terminal and the target base station, where the stability information is signal-to-noise ratio information of signals of the other terminal monitored by the terminal;
the second routing table includes: the method comprises the steps that identification information of at least one other terminal monitored by a second terminal, stability information of the terminal and the monitored other terminal and optimal path information of the terminal and a target base station are obtained, wherein the stability information is signal-to-noise ratio information of other terminal signals monitored by the terminal;
the third routing table includes: the method comprises the steps of monitoring identification information of at least one other terminal, stability information of the terminal and the other monitored terminal and optimal path information of the terminal and a target base station by a third terminal, wherein the stability information is signal-to-noise ratio information of other terminal signals monitored by the terminal.
In this embodiment, the first terminal or the second terminal in the first relay area or the second relay area updates and broadcasts the local routing table in real time, where the routing table is shown in the following table 1:
TABLE 1
Wherein the IDs are the identities of the mobile devices and the ground base stations, and the mobile devices and the ground base stations are distinguished and mutually identified by the IDs. The node records the monitored signals sent by other nodes (including ground base stations) in real time, wherein the signals comprise the identification information of the monitored nodes and the signal to noise ratio of the monitored signals, and the link stability of the node and the monitored nodes is judged according to the signal to noise ratio. And obtaining the optimal path information of the node to the target base station according to the monitored other node signals. For example, if the node monitors the signal of the ground base station, the total number of hops required for reaching the ground base station in the optimal path information is updated to 0, and the stability information of the whole link is obtained according to the signal-to-noise ratio of the monitored signal of the ground base station. If the node does not monitor the ground base station signals, selecting the node corresponding to the signal with the least hop count reaching the ground base station and the greatest signal to noise ratio of the monitored signal, namely the strongest link stability, from all the monitored signals as the first hop node reaching the target base station, determining the hop count required by the first hop node to reach the target base station in the optimal path information as the hop count of the first hop node to reach the target base station plus 1, and determining the stability of the whole link as the average value of the stability from the node to the first hop node and the stability from the first hop node to the target base station. And obtaining the optimal path information of the node and a routing table containing the optimal path information. The routing table of each node is continuously broadcast outwards and updated in real time according to the received signals.
When a node sends data to a target base station, firstly, the optimal path information in a routing table is inquired, if the hop count information reaching a ground base station is a number other than 255, the data packet is transmitted according to a designated path, and is packaged according to the optimal path information, for example, if the hop count is 0, the data packet is directly sent to the target base station, and if the hop count is 1, the data packet is transmitted through other nodes in a relay mode. If the hop count information reaching the ground base station is 255, the node and each node in the network cannot stably communicate through broadcast transmission, so that each node must forward once receiving the broadcast data packet, and the packet arrival rate of the node is improved.
According to the scheme, a special relay device is not needed, hardware investment is not needed to be increased, the manpower guarantee requirement is reduced, and automatic relay communication is realized. The time slot resource utilization rate can be improved, and the communication bandwidth utilization rate is indirectly improved, namely the same communication function can be realized by using lower bandwidth, so that lower hardware cost and more reliable communication effect are realized.
As shown in fig. 2, an embodiment of the present invention further provides a data relay transmission apparatus 20, including:
an acquisition module 21 that acquires first resource configuration information of at least one first terminal of a first relay area of the at least two relay areas and second resource configuration information of at least one second terminal of a second relay area;
a configuration module 22, configured to perform resource configuration for the first terminal according to the first resource configuration information and perform resource configuration for the second terminal according to the second resource configuration information, where the second resource configuration information includes a second number of resources that is smaller than the first number of resources included in the first resource configuration information; when the relay link between the first terminal and the second terminal is interrupted in data transmission, releasing the second resource of the second terminal to obtain a recovered resource; and configuring the recovery resources to at least one third terminal so that the third terminal performs data relay transmission according to the recovery resources.
Optionally, the first resource configuration information includes: a first terminal performs a first number of transmission time slots required for data relay transmission and a first routing table required for the data relay transmission;
the second resource configuration information includes: a second terminal performs a second number of transmission time slots required for data relay transmission and a second routing table required for the data relay transmission; wherein the second number is less than the first number.
Optionally, the first number is greater than or equal to a sum of a second number of transmission slots required for data relay transmission by all second terminals in the second relay area.
Optionally, performing resource allocation for the first terminal according to the first resource allocation information and performing resource allocation for the second terminal according to the second resource allocation information includes:
writing a first number of transmission time slots in the first resource configuration information into a resource configuration table of the first terminal and writing the first routing table into a local storage unit of the first terminal;
and writing a second number of transmission time slots in the second resource configuration information into a resource configuration table of the second terminal, and writing the second routing table into a local storage unit of the second terminal.
Optionally, when the relay link between the first terminal and the second terminal is interrupted, releasing the second resource of the second terminal to obtain a recovered resource, including:
determining that a relay link between the first terminal and the second terminal is interrupted for transmitting data when the second terminal is monitored that no data is transmitted through the first terminal in a preset time period;
and when determining that the relay link between the first terminal and the second terminal is interrupted in data transmission, recovering a second number of transmission time slots in the second resource configuration information to obtain recovered resources.
Optionally, the recycling resource is configured to at least one third terminal, so that the third terminal performs data relay transmission according to the recycling resource, and the method includes:
reconfiguring the second number of transmission time slots to at least one third terminal, so that the third terminal queries a third routing table in a local storage unit to obtain optimal path information sent to a target base station; the optimal path information comprises first hop node identification information reaching a target base station, hop count information reaching the target base station and stability information reaching the target base station; encapsulating the data packet according to the optimal path information, and transmitting the encapsulated data packet to a target base station on the second number of transmission time slots according to the path information; the third terminal is a terminal in a first relay area, a terminal in the second relay area, and/or a terminal in a relay area other than the first relay area and the second relay area.
Optionally, the first routing table includes identification information of at least one other terminal monitored by the first terminal, stability information of the terminal and the monitored other terminal, and optimal path information of the terminal and the target base station, where the stability information is signal-to-noise ratio information of other terminal signals monitored by the terminal;
the second routing table includes: the method comprises the steps that identification information of at least one other terminal monitored by a second terminal, stability information of the terminal and the monitored other terminal and optimal path information of the terminal and a target base station are obtained, wherein the stability information is signal-to-noise ratio information of other terminal signals monitored by the terminal;
the third routing table includes: the method comprises the steps of monitoring identification information of at least one other terminal, stability information of the terminal and the other monitored terminal and optimal path information of the terminal and a target base station by a third terminal, wherein the stability information is signal-to-noise ratio information of other terminal signals monitored by the terminal.
It should be noted that, the device is a device corresponding to the above method, and all implementation manners in the above method embodiments are applicable to the embodiment of the device, so that the same technical effects can be achieved.
Embodiments of the present invention also provide a computing device comprising: a processor, a memory storing a computer program which, when executed by the processor, performs the method as described above.
Embodiments of the present invention also provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform a method as described above. All the implementation manners in the method embodiment are applicable to the embodiment, and the same technical effect can be achieved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
Furthermore, it should be noted that in the apparatus and method of the present invention, it is apparent that the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects of the present invention. Also, the steps of performing the series of processes described above may naturally be performed in chronological order in the order of description, but are not necessarily performed in chronological order, and some steps may be performed in parallel or independently of each other. It will be appreciated by those of ordinary skill in the art that all or any of the steps or components of the methods and apparatus of the present invention may be implemented in hardware, firmware, software, or a combination thereof in any computing device (including processors, storage media, etc.) or network of computing devices, as would be apparent to one of ordinary skill in the art after reading this description of the invention.
The object of the invention can thus also be achieved by running a program or a set of programs on any computing device. The computing device may be a well-known general purpose device. The object of the invention can thus also be achieved by merely providing a program product containing program code for implementing said method or apparatus. That is, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. It is apparent that the storage medium may be any known storage medium or any storage medium developed in the future. It should also be noted that in the apparatus and method of the present invention, it is apparent that the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects of the present invention. The steps of executing the series of processes may naturally be executed in chronological order in the order described, but are not necessarily executed in chronological order. Some steps may be performed in parallel or independently of each other.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that various modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.