Disclosure of Invention
In view of the above problems, the present invention aims to provide a method for hybrid networking of multiple carrier bandwidths of a distributed wireless ad hoc network, which provides a method for hybrid networking of wireless ad hoc network devices with multiple carrier bandwidths, does not need to schedule a central node, negotiates carrier bandwidths and subcarrier blocks used by a data time slot point-to-point unidirectional link in a distributed manner by all nodes, provides a workflow for switching carrier bandwidths and a workflow for deducting carrier bandwidths and subcarriers, solves the bottleneck problem that the service rate of the whole network is limited by the minimum carrier bandwidth node of the whole network caused by using the same carrier bandwidth by the whole network of the existing wireless ad hoc network, and greatly improves the service rate of the whole network.
The first aspect of the present invention provides a method for hybrid networking of multi-carrier bandwidths of a distributed wireless ad hoc network, comprising:
Acquiring data to be transmitted;
when data to be transmitted exist, determining anti-interference measures of wireless ad hoc networks corresponding to a sending node and a receiving node, wherein the anti-interference measures of the wireless ad hoc networks comprise a first anti-interference measure and a second anti-interference measure;
controlling a transmitting node to reserve a data channel time slot to a receiving node according to the anti-interference measure of the wireless ad hoc network, and determining a first carrier bandwidth, a second carrier bandwidth and a third carrier bandwidth which are used for reserving the data channel time slot, wherein the first carrier bandwidth is the minimum value of the maximum available carrier bandwidth of the transmitting node and the maximum available carrier bandwidth of the receiving node, the second carrier bandwidth is the maximum value of the maximum available carrier bandwidth of the transmitting node and the minimum available carrier bandwidth of the receiving node, and the third carrier bandwidth is the same available carrier bandwidth of the transmitting node and the receiving node;
calculating the receiving error rate and average receiving signal strength of a first carrier bandwidth of a receiving node;
Adjusting a received signal strength threshold of the receiving node according to the received error rate to finish carrier bandwidth switching;
Analyzing the third carrier bandwidth, and dividing the third carrier bandwidth into a plurality of subcarrier blocks;
verifying the subcarrier blocks to determine available subcarrier blocks;
Counting the number of available subcarrier blocks in each third carrier bandwidth, and determining a data time slot allocation proportion according to the number ratio of the available subcarrier blocks in each third carrier bandwidth;
carrying out data transmission on the data to be transmitted through a third carrier bandwidth based on the data time slot allocation proportion;
and after the data to be transmitted is transmitted, controlling the sending node and the receiving node to continue networking.
In this scheme, the method for controlling the transmitting node to reserve the data channel time slot to the receiving node according to the anti-interference measure of the wireless ad hoc network, and determining the first carrier bandwidth, the second carrier bandwidth and the third carrier bandwidth used for reserving the data channel time slot includes:
When the anti-interference measure of the wireless ad hoc network is a first anti-interference measure, reserving a data channel time slot to a receiving node through the transmitting node, and inquiring the maximum available carrier bandwidth of the receiving node, wherein the first anti-interference measure is adaptive frequency modulation or adaptive frequency selection;
And the sending node acquires response data of the receiving node for reserving and inquiring the maximum available carrier bandwidth of the data channel time slot, and determines a first carrier bandwidth, a second carrier bandwidth and a third carrier bandwidth used for reserving the data channel time slot by combining the maximum available carrier bandwidth of the sending node.
In this scheme, still include:
when the anti-interference measure of the wireless ad hoc network is a second anti-interference measure, carrying out data channel time slot reservation to a receiving node through the transmitting node, and inquiring the maximum available carrier bandwidth and subcarrier interference condition of the receiving node, wherein the second anti-interference measure is adaptive frequency modulation combined subcarrier deduction or adaptive frequency selection combined subcarrier deduction;
And the sending node acquires response data of the receiving node for reserving the data channel time slot, inquiring the maximum available carrier bandwidth and the subcarrier interference condition, and determines a first carrier bandwidth, a second carrier bandwidth and a third carrier bandwidth used for reserving the data channel time slot by combining the maximum available carrier bandwidth and the subcarrier interference condition of the sending node.
In this scheme, the calculating the receiving error rate and the average received signal strength of the first carrier bandwidth of the receiving node includes:
initializing statistical information in a new preset statistical period, wherein the statistical information comprises the number of sending data packets, the number of receiving data packets and the number of error data packets;
Analyzing the received data packets to obtain the number of the transmitted data packets, the number of the received data packets and the number of the error data packets;
calculating real-time signal strength according to the number of the transmitted data packets and the number of the received data packets;
judging whether the preset statistical period is ended or not;
If not, continuing to receive the data packets, and updating the number of the data packets to be sent, the number of the data packets to be received and the number of the error data packets until the preset statistical period is over;
if yes, calculating a receiving error rate and average receiving signal intensity according to the number of the sending data packets, the number of the receiving data packets and the number of the error data packets.
In this scheme, the adjusting the received signal strength threshold of the receiving node according to the received error rate includes:
Comparing the received error rate P with an error rate threshold Pa for reducing the carrier bandwidth level and an error rate threshold Pb for allowing the carrier bandwidth level to be improved respectively;
when P > Pa, updating the received signal strength threshold of the carrier bandwidth of the receiving node based on a preset threshold factor for improving the received signal strength;
When P < Pb, updating the received signal strength threshold of the carrier bandwidth of the receiving node based on a preset reduced received signal strength threshold factor;
when Pb is less than or equal to P and less than or equal to Pa, the original state is maintained, and no treatment is carried out.
In this scheme, the updating the received signal strength threshold of the carrier bandwidth of the receiving node based on the preset threshold factor for improving the received signal strength includes:
Acquiring a second carrier bandwidth of a receiving node;
increasing the received signal strength threshold of the second carrier bandwidth by a preset threshold factor for improving the received signal strength, and updating the received signal strength threshold of the second carrier bandwidth;
Judging whether the received signal strength threshold after the second carrier bandwidth is updated is greater than the received signal strength threshold before the next carrier bandwidth is updated;
If yes, increasing the available received signal strength threshold of the next carrier bandwidth by a preset received signal strength threshold increasing factor, and updating the received signal strength threshold of the next carrier bandwidth; analyzing each carrier bandwidth of the receiving node in turn until all third carrier bandwidths are analyzed or the received signal strength threshold after the carrier bandwidth n is updated is smaller than the received signal strength threshold before the carrier bandwidth n+1 is updated, and completing the updating of the received signal strength threshold of the carrier bandwidth of the receiving node;
If not, the updating of the received signal strength threshold of the carrier bandwidth of the receiving node is directly completed.
In this scheme, the updating the received signal strength threshold of the carrier bandwidth of the receiving node based on the preset threshold factor for reducing the received signal strength includes:
Acquiring a third carrier bandwidth of a receiving node;
reducing the received signal strength threshold of the third carrier bandwidth by a preset reduced received signal strength threshold factor, and updating the received signal strength threshold of the third carrier bandwidth;
Judging whether the updated received signal strength threshold of the third carrier bandwidth is larger than a preset received signal strength threshold;
if yes, finishing updating the received signal strength threshold of the carrier bandwidth of the receiving node;
If not, the third carrier bandwidth received signal strength threshold is set as the preset minimum received signal strength threshold.
In this scheme, the analyzing the third carrier bandwidth divides the third carrier bandwidth into a plurality of subcarrier blocks, including:
dividing the carrier bandwidth of a communication node into a plurality of subcarrier blocks based on a system preset rule, wherein the communication node comprises a sending node and a receiving node, and the number of the subcarrier blocks is even;
and numbering the subcarrier blocks in sequence.
In this solution, the verifying the plurality of subcarrier blocks, determining an available subcarrier block, includes:
The receiving node determines the subcarrier block interference condition of the receiving node according to a preset subcarrier block interference judgment basis, and sends the subcarrier block interference condition of the receiving node to a sending node;
the transmitting node determines the interference condition of the subcarrier block of the transmitting node according to the preset subcarrier block interference judging basis, and combines the received interference condition of the subcarrier block of the receiving node to transmit to the transmitting node for comparison, and determines the subcarrier blocks which have the same number and no interference or acceptable interference in the transmitting node and the receiving node as available subcarrier blocks.
In this solution, the determining the data slot allocation ratio according to the number ratio of the available subcarrier blocks in each third carrier bandwidth includes:
Descending order sorting is carried out on the third carrier bandwidths according to the carrier bandwidth grades;
judging whether the number of the available subcarrier blocks of the third carrier bandwidth of the highest level is smaller than a preset subcarrier block number threshold value;
If yes, determining the available subcarrier block of the highest-level third carrier bandwidth as a first subcarrier block, and carrying out data transmission on data to be transmitted through the first subcarrier block;
If not, calculating the number difference value between the number of the available subcarrier blocks of the third carrier bandwidth of the highest level and the preset subcarrier block number threshold value, and updating the preset subcarrier block number threshold value according to the number difference value;
judging whether the number of available subcarrier blocks of the third carrier bandwidth of the next level is smaller than a preset subcarrier block number threshold value;
If yes, determining available subcarrier blocks with preset subcarrier block quantity thresholds in the third carrier bandwidth of the next level as first subcarrier blocks;
if not, determining the available subcarrier blocks of the third carrier bandwidth of the next level as first subcarrier blocks, and sequentially analyzing the number of the available subcarrier blocks of each remaining third carrier bandwidth according to the descending order of the carrier bandwidth levels until the number of the available subcarrier blocks with the third carrier bandwidth is smaller than a preset subcarrier block number threshold value, and ending the analysis;
The data slot allocation proportion is determined according to the number of the first subcarrier blocks of each third carrier bandwidth.
The invention discloses a method for a distributed wireless ad hoc network multi-carrier bandwidth hybrid networking, which comprises the steps of controlling a sending node to reserve a data channel time slot to a receiving node according to anti-interference measures, determining a first carrier bandwidth, a second carrier bandwidth and a third carrier bandwidth used for reserving the data channel time slot, calculating a receiving error rate and average receiving signal intensity of the first carrier bandwidth of the receiving node, adjusting a receiving signal intensity threshold to complete carrier bandwidth switching, dividing the third carrier bandwidth into a plurality of subcarrier blocks, verifying, determining available subcarrier blocks, carrying out data transmission according to a data time slot allocation proportion, and controlling the sending node and the receiving node to continue networking after transmission is completed. The invention solves the bottleneck problem that the whole network service rate caused by the fact that the whole network of the existing wireless ad hoc network uses the same carrier bandwidth is limited by the minimum carrier bandwidth node of the whole network, and greatly improves the whole network service rate.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will be more clearly understood, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description. It should be noted that, without conflict, the embodiments of the present application and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
Fig. 1 shows a flowchart of a method for multi-carrier bandwidth hybrid networking of a distributed wireless ad hoc network.
As shown in fig. 1, the invention discloses a method for hybrid networking of multi-carrier bandwidths of a distributed wireless ad hoc network, which comprises the following steps:
S102, acquiring data to be transmitted;
S104, when data to be transmitted exist, determining anti-interference measures of the wireless ad hoc network corresponding to the sending node and the receiving node, wherein the anti-interference measures of the wireless ad hoc network comprise a first anti-interference measure and a second anti-interference measure;
s106, controlling a transmitting node to reserve a data channel time slot to a receiving node according to an anti-interference measure of the wireless ad hoc network, and determining a first carrier bandwidth, a second carrier bandwidth and a third carrier bandwidth which are used for reserving the data channel time slot, wherein the first carrier bandwidth is the minimum value of the maximum available carrier bandwidth of the transmitting node and the maximum available carrier bandwidth of the receiving node;
S108, calculating the receiving error rate and the average receiving signal strength of the first carrier bandwidth of the receiving node;
s110, adjusting a received signal strength threshold of a receiving node according to a received error rate to finish carrier bandwidth switching;
S112, analyzing the third carrier bandwidth, and dividing the third carrier bandwidth into a plurality of subcarrier blocks;
s114, verifying the subcarrier blocks to determine available subcarrier blocks;
S116, counting the number of available subcarrier blocks in each third carrier bandwidth, and determining a data time slot allocation proportion according to the ratio of the number of available subcarrier blocks in each third carrier bandwidth;
s118, data transmission is carried out on the data to be transmitted through a third carrier bandwidth based on the data time slot allocation proportion;
and S120, after the data to be transmitted is transmitted, controlling the sending node and the receiving node to continue networking.
According to the embodiment of the invention, the carrier bandwidth parameter of each node in the wireless ad hoc network is started and defaults to multi-carrier bandwidth hybrid networking. The control channel of each node in the wireless ad hoc network is networked according to the same working frequency band, channel coding, modulation mode, communication distance, MIMO mode, anti-interference measure and other parameters. Determining a node with data to be transmitted, which needs to be transmitted, as a sending node, determining a data transmission end point as a receiving node, reserving a data channel time slot according to anti-interference measures of the sending node and the receiving node, and determining a first carrier bandwidth, a second carrier bandwidth and a third carrier bandwidth which meet data transmission conditions. The common carrier bandwidths are shown in fig. 4, the first carrier bandwidth is the maximum available carrier bandwidth of the point-to-point unidirectional link, and the minimum value of the maximum available carrier bandwidth of the sending node and the maximum available carrier bandwidth of the receiving node is taken. For example, the maximum available carrier bandwidth of the receiving node is 40MHz, the maximum available carrier bandwidth of the transmitting node is 20MHz, and the maximum available carrier bandwidth of the point-to-point unidirectional link is 20MHz. The second carrier bandwidth is the minimum available carrier bandwidth of the point-to-point unidirectional link, and the third carrier bandwidth is the total available carrier bandwidth satisfying the point-to-point unidirectional link. The third carrier bandwidth includes a first carrier bandwidth and a second carrier bandwidth, and in a certain case, the first carrier bandwidth, the second carrier bandwidth and the third carrier bandwidth may be the same carrier bandwidth. And calculating the receiving error rate and the average receiving signal intensity of the first carrier bandwidth of the receiving node according to the transmission data of the first carrier bandwidth in the preset statistical period by the sending node and the receiving node, wherein the average receiving signal intensity is used for judging whether the first carrier bandwidth meets the data transmission requirement, when the average receiving signal intensity of the first carrier bandwidth is lower than a receiving signal intensity threshold preset by a system, determining the third carrier bandwidth of the next level as a new first carrier bandwidth, analyzing again until the average receiving signal intensity is not lower than the receiving signal intensity threshold preset by the system, and determining the final first carrier bandwidth. And adjusting the receiving signal strength threshold of the receiving node through the finally determined receiving error rate corresponding to the first carrier bandwidth to finish carrier bandwidth switching, thereby adjusting the range of the selectable carrier bandwidth of each node.
According to the preset subcarrier block size of the system, the third carrier bandwidth is divided into a plurality of subcarrier blocks with the same size, as shown in fig. 8, for example, the 5MHz carrier bandwidth is divided into M subcarrier blocks, where M is an even number, and the number of subcarrier blocks with carrier bandwidths of 10MHz, 20MHz, 30MHz and 40MHz is 2M, 4M, 6M and 8M, respectively. And sequentially marking each subcarrier block to finish dividing each third carrier bandwidth into a plurality of subcarrier blocks, and judging the subcarrier blocks with the same number in the sending node and the receiving node as the usable subcarrier blocks if the subcarrier blocks with the same number are non-interference or acceptable interference. Counting the number of available subcarrier blocks in each third carrier bandwidth, based on a preset subcarrier block number threshold, preferentially transmitting data through the highest-level third carrier bandwidth, selecting one or more third carrier bandwidths according to the difference between the number of available subcarrier blocks in the highest-level third carrier bandwidth and the preset subcarrier block number threshold, and then sorting according to the descending order of the levels, and determining the data time slot allocation proportion according to the number ratio of the available subcarrier blocks in the selected third carrier bandwidth.
And the sending node and the receiving node select one or more carrier bandwidths according to the data time slot allocation proportion to perform data transmission on the data to be transmitted, and the sending node and the receiving node continue networking according to the control channel parameters after the data to be transmitted is transmitted.
The parameters of the wireless self-organizing network equipment are assumed to be network scale, carrier bandwidth is that 2 nodes support 5MHz at maximum, 4 nodes support 10MHz at maximum, 10 nodes support 40MHz at maximum, channel coding is that 2/3 code rate, modulation mode is that 256QAM is at maximum, the number of antennas is 2, and MIMO is diversity.
Compared with the current method of using the same carrier bandwidth by the whole network and the method of using the multi-carrier bandwidth mixed networking, the method of using the multi-carrier bandwidth mixed networking by the invention has the advantages that the speed before the whole network coding and the actual measurement of the whole network service speed are shown in the table 1, wherein the speed before the whole network coding is the speed before the channel coding, the service speed is the UDP service speed actually available to users, compared with the speed before the whole network coding, the cost of control signaling, verification and the like of networking protocols and the cost of synchronization, clock jitter protection, air transmission protection and the like of a physical layer are deducted, the actually used wireless self-networking equipment is based on an FPGA and an integrated transceiver platform, and the three node equipment of 5MHz/10MHz/40MHz are different in that the FPGA resources are different and the supported maximum carrier bandwidth is different, and the maximum communication distance is 20km.
The carrier bandwidth theoretical calculation process in table 1 is as follows:
(1) The total carrier bandwidth of the whole network using the same carrier bandwidth is 5m×8×2/3=26.7 Mbps;
(2) The method provided by the invention divides the data time slot into three nodes of 5MHz/10MHz/40MHz, and the ratio of the three nodes is 25%, 25% and 50% of the total carrier bandwidth:
5M×8×2/3×0.25+10M×8×2/3×0.25+40M×8×2/3×0.5=126.7Mbps;
(3) The method provided by the invention is used for averagely distributing the data time slots to the total carrier bandwidths of 16 nodes:
5M×8×2/3×(2/16)+10M×8×2/3×(4/1)+40M×8×2/3×(10/16)=150.0Mbps;
(4) The method provided by the invention divides the data time slot into three nodes of 5MHz/10MHz/40MHz, and the ratio of the three nodes is 0, 0 and 100 percent of total carrier bandwidth:
5M×8×2/3×0+10M×8×2/3×0+40M×8×2/3×100%=213.3Mbps。
The calculation of the rate theory before the whole network coding shows that the method provided by the invention is respectively improved by 4.75 times, 5.62 times and 8.0 times, and the larger the proportion of data time slots divided by the nodes with large carrier bandwidth is, the larger the whole network service rate is improved by multiple.
The invention is not limited to the application of the techniques of self-adaptive frequency hopping, self-adaptive frequency selection, self-adaptive code modulation, space frequency multiplexing and the like in the method, and the protection scope comprises the application of the techniques of self-adaptive frequency hopping, self-adaptive frequency selection, self-adaptive code modulation, space frequency multiplexing and the like in the method, such as self-adaptive code modulation of point-to-point bidirectional link level and point-to-point unidirectional link level scheduling.
According to the embodiment of the invention, the transmitting node is controlled to reserve the data channel time slot to the receiving node according to the anti-interference measure of the wireless ad hoc network, and the first carrier bandwidth, the second carrier bandwidth and the third carrier bandwidth used for reserving the data channel time slot are determined, which comprises the following steps:
when the anti-interference measure of the wireless ad hoc network is a first anti-interference measure, reserving a data channel time slot to a receiving node through a transmitting node, and inquiring the maximum available carrier bandwidth of the receiving node;
The transmitting node acquires response data of the receiving node for reserving and inquiring the maximum available carrier bandwidth of the data channel time slot, and determines a first carrier bandwidth, a second carrier bandwidth and a third carrier bandwidth used for reserving the data channel time slot by combining the maximum available carrier bandwidth of the transmitting node.
It should be noted that, the first anti-interference measure is adaptive frequency hopping or adaptive frequency selection, and the data channel of the point-to-point unidirectional link level has at least 1 available frequency point. If the best frequency point is also subject to narrowband interference or/and wideband interference, communication can only be hard-interference-free. The adaptive frequency hopping or adaptive frequency selection is the prior art, and the specific method is not described in detail. When the transmitting node has service data transmission, the transmitting node makes a data channel time slot reservation for the receiving node and inquires about the maximum available carrier bandwidth. And the receiving node determines the maximum available carrier bandwidth of the receiving node according to the occupation state of each carrier bandwidth when reserving the data channel time slot, generates corresponding response data and feeds back the response data to the sending node.
The transmitting node obtains the response of the data channel time slot reservation and the maximum available carrier bandwidth of the receiving node, obtains the carrier bandwidth (comprising the first carrier bandwidth, the second carrier bandwidth and the third carrier bandwidth) used for reserving the data channel time slot by combining the maximum available carrier bandwidth of the receiving node, and confirms the carrier bandwidth used for reserving the time slot and the reserved time slot. For example, taking the first carrier bandwidth as an example, if the maximum available carrier bandwidth of the receiving node response is 40MHz and the maximum available carrier bandwidth of the transmitting node is 20MHz, the transmitting node acknowledges the first carrier bandwidth used for the reserved time slot as 20MHz. However, due to the influence of a wireless channel such as a communication distance, sometimes, the confirmed carrier bandwidth is not the smallest maximum available carrier bandwidth in the transmitting node and the receiving node, and carrier bandwidth switching needs to be performed by adjusting a receiving signal strength threshold.
And when the transmitting node has new data to be transmitted for data transmission, the first carrier bandwidth, the second carrier bandwidth and the third carrier bandwidth used for reserving the data channel time slot are redetermined.
According to an embodiment of the present invention, further comprising:
when the anti-interference measure of the wireless self-organizing network is a second anti-interference measure, carrying out data channel time slot reservation to a receiving node through a transmitting node, and inquiring the maximum available carrier bandwidth and subcarrier interference condition of the receiving node;
The transmitting node acquires response data of the receiving node for reserving the data channel time slot and inquiring the maximum available carrier bandwidth and the subcarrier interference condition, and determines a first carrier bandwidth, a second carrier bandwidth and a third carrier bandwidth used for reserving the data channel time slot by combining the maximum available carrier bandwidth and the subcarrier interference condition of the transmitting node.
It should be noted that, the second anti-interference measure is adaptive frequency hopping or adaptive frequency selection combined with subcarrier subtraction, the data channel of the point-to-point unidirectional link level has only 1 available frequency point and part of subcarriers are interfered by narrowband. When the transmitting node has service data transmission, the transmitting node makes a data channel time slot reservation for the receiving node and inquires about the maximum available carrier bandwidth and subcarrier interference condition. The receiving node determines the maximum available carrier bandwidth of the receiving node according to the occupation state of each carrier bandwidth when reserving the data channel time slot, and generates corresponding response data by combining the subcarrier interference condition of the node and feeds back the response data to the sending node.
The transmitting node obtains the response of the data channel time slot reservation, the maximum available carrier bandwidth and the subcarrier interference condition of the receiving node, obtains the carrier bandwidth (comprising the first carrier bandwidth, the second carrier bandwidth and the third carrier bandwidth) and subcarrier deduction used for reserving the data channel time slot by combining the maximum available carrier bandwidth and the subcarrier interference condition of the receiving node, and confirms the carrier bandwidth and subcarrier deduction used for reserving the data channel time slot and the reserved time slot.
The subcarrier subtraction is to take the specific subcarrier block as the minimum granularity, and/or the interference subcarriers can pollute the clean subcarriers beside when judging the size of the narrowband interference, so that the bandwidth of the subtracted subcarriers is slightly larger than the bandwidth of the narrowband interference when the subcarrier subtraction is generally carried out, and the anti-interference measure used preferentially is adaptive frequency hopping or adaptive frequency selection.
And when the transmitting node has new data to be transmitted for data transmission, the first carrier bandwidth, the second carrier bandwidth and the third carrier bandwidth used for reserving the data channel time slot are redetermined.
Fig. 2 is a flowchart illustrating a method for calculating a receiving error rate and an average received signal strength of a first carrier bandwidth of a receiving node according to the present invention.
As shown in fig. 2, according to an embodiment of the present invention, calculating a reception error rate and an average reception signal strength of a first carrier bandwidth of a receiving node includes:
s202, initializing statistical information in a new preset statistical period, wherein the statistical information comprises the number of transmitted data packets, the number of received data packets and the number of error data packets;
S204, analyzing the received data packets to obtain the number of the transmitted data packets, the number of the received data packets and the number of the error data packets;
s206, calculating the real-time signal strength according to the number of the transmitted data packets and the number of the received data packets;
s208, judging whether a preset statistical period is ended;
S210, if not, continuing to receive the data packets, and updating the number of the data packets to be transmitted, the number of the data packets to be received and the number of the error data packets until the preset statistical period is over;
And S212, if yes, calculating a receiving error rate and average receiving signal strength according to the number of the sending data packets, the number of the receiving data packets and the number of the error data packets.
It should be noted that, the real-time signal strength of the receiving node and the average received signal strength in the preset statistical period are calculated through the received signal strength Indication (RECEIVED SIGNAL STRENGTH Indication). The receiving error rate is an index of packet error rate (including packet loss), and statistics is performed by the receiving node when using idle data time slots or data transmission. Wherein, the preset statistical period is set by a person skilled in the art according to actual requirements. The number of the sending data packets is the total number of the sending data packets of the sending node, the receiving data packets comprise error data packets, and the real-time signal strength of the receiving node is determined by calculating the ratio of the number of the receiving data packets to the number of the sending data packets in each received data packet. The average received signal strength is determined according to the ratio of the total number of received data packets to the total number of transmitted data packets in a preset statistical period, and the received error rate is determined according to the ratio of the total number of erroneous data packets to the total number of transmitted data packets in the preset statistical period.
Fig. 3 is a flowchart of a method for adjusting a received signal strength threshold of a receiving node according to a received error rate according to the present invention.
As shown in fig. 3, according to an embodiment of the present invention, adjusting a received signal strength threshold of a receiving node according to a received error rate includes:
S302, comparing the received bit error rate P with a bit error rate threshold Pa for reducing the carrier bandwidth level and a bit error rate threshold Pb for allowing the carrier bandwidth level to be improved;
S304, when P > Pa, updating the received signal strength threshold of the carrier bandwidth of the receiving node based on a preset threshold factor for improving the received signal strength;
s306, when P < Pb, updating the received signal strength threshold of the carrier bandwidth of the receiving node based on a preset reduced received signal strength threshold factor;
S308, when Pb is less than or equal to P is less than or equal to Pa, maintaining the original state, and not performing any treatment.
It should be noted that, taking the third carrier bandwidth of the receiving node as an example, the third carrier bandwidth is 5MHz, 10MHz, and 40MHz, the system is set at the beginning of the preset increase of the threshold factor of the received signal strength and the preset decrease of the threshold factor of the received signal strength, and those skilled in the art can adjust the threshold factor according to the actual requirement. When the receiving error rate P of the receiving node is greater than the error rate threshold Pa of the carrier bandwidth level to be reduced, the receiving signal strength threshold of the carrier bandwidth of the receiving node is added to the preset boost receiving signal strength threshold factor, so as to boost the receiving signal strength threshold of the carrier bandwidth of the receiving node, when the receiving error rate P of the receiving node is less than the error rate threshold Pb of the carrier bandwidth level to be boosted, as shown in fig. 6, the receiving signal strength threshold of the carrier bandwidth of the receiving node is subtracted from the preset boost receiving signal strength threshold factor, so as to reduce the receiving signal strength threshold of the carrier bandwidth of the receiving node, and when the receiving error rate P of the receiving node is between the error rate threshold Pa of the carrier bandwidth level to be reduced and the error rate threshold Pb of the carrier bandwidth level to be boosted, as shown in fig. 7, the receiving signal strength threshold is kept unchanged at each carrier bandwidth level, that is, if the currently used carrier bandwidth is 5MHz, if the currently used carrier bandwidth is 10MHz, and if the currently used carrier bandwidth is 40MHz, the currently used carrier bandwidth is continuously selected, and 40MHz carrier bandwidth is continuously selected.
According to an embodiment of the present invention, updating a received signal strength threshold of a carrier bandwidth of a receiving node based on a preset raised received signal strength threshold factor includes:
Acquiring a second carrier bandwidth of a receiving node;
Increasing the received signal strength threshold of the second carrier bandwidth by a preset threshold factor for improving the received signal strength, and updating the received signal strength threshold of the second carrier bandwidth;
Judging whether the received signal strength threshold after the second carrier bandwidth is updated is greater than the received signal strength threshold before the next carrier bandwidth is updated;
If yes, increasing the available received signal strength threshold of the next carrier bandwidth by a preset received signal strength threshold increasing factor, and updating the received signal strength threshold of the next carrier bandwidth; analyzing each carrier bandwidth of the receiving node in turn until all third carrier bandwidths are analyzed or the received signal strength threshold after the carrier bandwidth n is updated is smaller than the received signal strength threshold before the carrier bandwidth n+1 is updated, and completing the updating of the received signal strength threshold of the carrier bandwidth of the receiving node;
If not, the updating of the received signal strength threshold of the carrier bandwidth of the receiving node is directly completed.
It should be noted that, taking the third carrier bandwidth of the receiving node as an example, the third carrier bandwidth is 5MHz, 10MHz, and 40MHz, when the second carrier bandwidth is 5MHz, the threshold of the available receiving signal strength of the 5MHz carrier bandwidth is increased by a preset threshold factor of the increasing receiving signal strength, and the threshold of the receiving signal strength under the 5MHz carrier bandwidth is updated. And if not, increasing the available receiving signal strength threshold of the 10MHz carrier bandwidth by a preset increasing receiving signal strength threshold factor, and updating the receiving signal strength threshold of the 10MHz carrier bandwidth. And if not, increasing the available receiving signal strength threshold of the 40MHz carrier bandwidth by a preset increasing receiving signal strength threshold factor, updating the receiving signal strength threshold of the 40MHz carrier bandwidth, and completing the analysis of the available receiving signal strength threshold of all third carrier bandwidths of the receiving node at the moment, namely completing the updating of the receiving signal strength threshold of the carrier bandwidth of the receiving node.
According to an embodiment of the present invention, updating a received signal strength threshold of a carrier bandwidth of a receiving node based on a preset reduced received signal strength threshold factor includes:
Acquiring a third carrier bandwidth of a receiving node;
Reducing the received signal strength threshold of the third carrier bandwidth by a preset reduced received signal strength threshold factor, and updating the received signal strength threshold of the third carrier bandwidth;
Judging whether the updated received signal strength threshold of the third carrier bandwidth is larger than a preset received signal strength threshold;
if yes, finishing updating the received signal strength threshold of the carrier bandwidth of the receiving node;
If not, the third carrier bandwidth received signal strength threshold is set as the preset minimum received signal strength threshold.
When the receiving node has a plurality of third carrier bandwidths, the receiving node takes the third carrier bandwidths of the receiving node as 5MHz, 10MHz and 40MHz as examples, and sequentially analyzes each third carrier bandwidth in turn, reduces the available receiving signal strength threshold of the 5MHz carrier bandwidth by a preset threshold factor for reducing the receiving signal strength, and updates the receiving signal strength threshold under the 5MHz carrier bandwidth. Judging whether the receiving signal intensity threshold after updating the 5MHz carrier bandwidth is larger than a preset receiving signal intensity threshold, if not, setting the receiving signal intensity threshold of the 5MHz carrier bandwidth as a preset minimum receiving signal intensity threshold, if so, completing updating the receiving signal intensity threshold of the 5MHz carrier bandwidth, analyzing the 10MHz carrier bandwidth and the 40MHz carrier bandwidth according to the steps, and after the receiving signal intensity threshold of the 10MHz carrier bandwidth and the 40MHz carrier bandwidth is updated, completing updating the receiving signal intensity threshold of the carrier bandwidth of the receiving node.
According to an embodiment of the present invention, analyzing the third carrier bandwidth, dividing the third carrier bandwidth into a plurality of subcarrier blocks includes:
dividing the carrier bandwidth of a communication node into a plurality of subcarrier blocks based on a system preset rule, wherein the communication node comprises a sending node and a receiving node;
the plurality of subcarrier blocks are numbered sequentially.
It should be noted that, the size of each subcarrier block is the same by default, and the interference detection and the like can be performed by using the same algorithm, where 5MHz, 10MHz, 20MHz, 30MHz, 40MHz and the like are common carrier bandwidths.
As shown in fig. 8, the 5MHz carrier bandwidth is divided into M subcarrier blocks, wherein M is an even number, the specific value of M is set by a person skilled in the art according to actual requirements, and the subcarrier blocks of the 10MHz, 20MHz, 30MHz and 40MHz carrier bandwidths are 2M, 4M, 6M and 8M. In addition, the subcarrier block sizes may be the same for various carrier bandwidths without limitation, and the subcarrier block sizes may be defined for various carrier bandwidths, for example, the subcarrier block numbers of carrier bandwidths such as 5MHz, 10MHz, 20MHz, 30MHz, 40MHz, etc. are M1, M2, M3, M4, M5, respectively, and the processing flow is the same as the subcarrier block sizes.
For the convenience of calculation, the subcarrier blocks of each carrier bandwidth are numbered, and the numbering rule of the subcarrier blocks is shown in table 2.
According to an embodiment of the present invention, verifying a plurality of subcarrier blocks, determining an available subcarrier block includes:
the receiving node determines the subcarrier block interference condition of the receiving node according to a preset subcarrier block interference judgment basis, and sends the subcarrier block interference condition of the receiving node to the sending node;
the transmitting node determines the interference condition of the subcarrier block of the transmitting node according to the preset subcarrier block interference judging basis, and combines the received interference condition of the subcarrier block of the receiving node to transmit to the transmitting node for comparison, and determines the subcarrier blocks which have the same number and no interference or acceptable interference in the transmitting node and the receiving node as available subcarrier blocks.
It should be noted that, the judgment of subcarrier block interference is based on EVM, RSSI, noise floor, signal to interference plus noise ratio, and bit error rate, and is not limited to one or more combinations.
EVM: error vector magnitude (Error Vector Magnitude), representing received signal quality, smaller EVM values represent closer received signal distances from standard modulation, smaller deviations, and better received signal quality.
RSSI is a received signal strength indicator that represents the received signal strength, including the desired signal, interfering signals, and base noise.
The noise floor comprises base noise and acceptable interference, wherein the base noise is determined by the environment in the nature under the condition that the electromagnetic environment is absolutely clean, the acceptable interference is the interference when the equipment can be manually judged to work normally under the environment of coexistence with other electronic equipment, and the noise floor is a fixed value which can be manually set and is generally determined according to engineering experience.
Signal-to-interference-plus-noise ratio, which, together with the error rate, affects the choice of modulation schemes such as QPSK, 16QAM, 64QAM, 256QAM, 1024QAM, etc.
The error rate is counted by the receiving node when using idle data time slot or data transmission, and the index of packet error rate (including packet loss) is generally used.
According to an embodiment of the present invention, determining a data slot allocation ratio according to a ratio of the number of available subcarrier blocks in each third carrier bandwidth includes:
Descending order sorting is carried out on the third carrier bandwidths according to the carrier bandwidth grades;
judging whether the number of the available subcarrier blocks of the third carrier bandwidth of the highest level is smaller than a preset subcarrier block number threshold value;
If yes, determining an available subcarrier block with the highest level of third carrier bandwidth as a first subcarrier block, and carrying out data transmission on data to be transmitted through the first subcarrier block;
if not, calculating the number difference between the number of the available subcarrier blocks of the third carrier bandwidth of the highest level and the preset subcarrier block number threshold value, and updating the preset subcarrier block number threshold value according to the number difference;
judging whether the number of available subcarrier blocks of the third carrier bandwidth of the next level is smaller than a preset subcarrier block number threshold value;
if yes, determining available subcarrier blocks with preset subcarrier block quantity thresholds in a third carrier bandwidth of a next level as first subcarrier blocks;
If not, determining the available subcarrier blocks of the third carrier bandwidth of the next level as first subcarrier blocks, sequentially analyzing the number of the available subcarrier blocks of each remaining third carrier bandwidth according to the descending order of the carrier bandwidth levels until the number of the available subcarrier blocks with the third carrier bandwidth is smaller than a preset subcarrier block number threshold value, and ending the analysis;
The data slot allocation proportion is determined according to the number of the first subcarrier blocks of each third carrier bandwidth.
It should be noted that, the analysis is preferably performed on the third carrier bandwidth of the highest level (i.e., the first carrier bandwidth), when the number of available subcarrier blocks of the third carrier bandwidth of the highest level is greater than or equal to the threshold value of the number of preset subcarrier blocks, it is determined that the third carrier bandwidth of the highest level meets the transmission requirement of the data to be transmitted, the available subcarrier block of the third carrier bandwidth of the highest level is determined as the first subcarrier block, and the data transmission of the data to be transmitted is directly performed through the first subcarrier block of the third carrier bandwidth of the highest level. When the number of available subcarrier blocks of the third carrier bandwidth of the highest level is smaller than the preset subcarrier block number threshold, updating the preset subcarrier block number threshold according to the number difference value between the third carrier bandwidth of the highest level and the preset subcarrier block number threshold, comparing the updated preset subcarrier block number threshold with the available subcarrier blocks of each third carrier bandwidth in sequence, determining the first subcarrier block of each third carrier bandwidth, and after each comparison, updating the preset subcarrier block number threshold according to the number difference value between the available subcarrier blocks of the third carrier bandwidth and the preset subcarrier block number threshold until the preset subcarrier block number threshold is 0, and ending the comparison. And accumulating the number of the first subcarrier blocks of all the third carrier bandwidths, determining the total number of the first subcarrier blocks, and determining the data time slot allocation proportion of each third carrier bandwidth by the ratio of the number of the first subcarrier blocks of each third carrier bandwidth to the total number of the first subcarrier blocks.
The preset subcarrier block number threshold is determined according to the number of nodes allowed to be transmitted simultaneously by the wireless ad hoc network device, and a person skilled in the art can adjust the preset subcarrier block number threshold according to actual requirements.
In addition, a person skilled in the art can set the data slot allocation proportion of each third carrier bandwidth according to the actual requirement. For example, taking the third carrier bandwidths of the receiving node as 5MHz, 10MHz, 40MHz as an example, the data slot allocation proportion of the three third carrier bandwidths is set to 25%, 50%, etc.
Information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, presented data, etc.), and signals (including but not limited to signals transmitted between a user terminal and other devices, etc.) referred to by the present application are all user-authorized or fully authorized by parties, and the collection, use, and processing of relevant data is required to comply with relevant laws and regulations and standards of relevant countries and regions. For example, the "data to be transmitted", "anti-interference measures of wireless ad hoc network", and the like referred to in this disclosure are all acquired under the condition of sufficient authorization.
The invention discloses a method for a distributed wireless ad hoc network multi-carrier bandwidth hybrid networking, which comprises the steps of controlling a sending node to reserve a data channel time slot to a receiving node according to anti-interference measures, determining a first carrier bandwidth, a second carrier bandwidth and a third carrier bandwidth used for reserving the data channel time slot, calculating a receiving error rate and average receiving signal intensity of the first carrier bandwidth of the receiving node, adjusting a receiving signal intensity threshold to complete carrier bandwidth switching, dividing the third carrier bandwidth into a plurality of subcarrier blocks, verifying, determining available subcarrier blocks, carrying out data transmission according to a data time slot allocation proportion, and controlling the sending node and the receiving node to continue networking after transmission is completed. The invention solves the bottleneck problem that the whole network service rate caused by the fact that the whole network of the existing wireless ad hoc network uses the same carrier bandwidth is limited by the minimum carrier bandwidth node of the whole network, and greatly improves the whole network service rate.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is merely a logical function division, and there may be additional divisions of actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate components may or may not be physically separate, and components displayed as units may or may not be physical units, may be located in one place or distributed on a plurality of network units, and may select some or all of the units according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of hardware plus a form of software functional unit.
It will be appreciated by those of ordinary skill in the art that implementing all or part of the steps of the above method embodiments may be implemented by hardware associated with program instructions, where the above program may be stored in a computer readable storage medium, where the program when executed performs the steps comprising the above method embodiments, where the above storage medium includes a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic or optical disk, or other various media that may store program code.
Or the above-described integrated units of the invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. The storage medium includes various media capable of storing program codes such as a removable storage device, a ROM, a RAM, a magnetic disk or an optical disk.