CN115835290A - Message transmission method and device, electronic equipment and storage medium - Google Patents

Message transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115835290A
CN115835290A CN202211717801.0A CN202211717801A CN115835290A CN 115835290 A CN115835290 A CN 115835290A CN 202211717801 A CN202211717801 A CN 202211717801A CN 115835290 A CN115835290 A CN 115835290A
Authority
CN
China
Prior art keywords
channel
radio frequency
channels
transmitting
quality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211717801.0A
Other languages
Chinese (zh)
Inventor
陈磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202211717801.0A priority Critical patent/CN115835290A/en
Publication of CN115835290A publication Critical patent/CN115835290A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a message transmission method, a message transmission device, an electronic device and a computer readable storage medium, wherein the method comprises the following steps: acquiring channel information of a plurality of channels between the wireless access client and the wireless access point, and calculating the quality scores of the plurality of channels according to the channel information of the plurality of channels; determining at least one primary channel and at least one secondary channel in the plurality of channels according to the quality scores of the plurality of channels, wherein the quality score of the at least one primary channel is higher than the quality score of the at least one secondary channel; establishing radio frequency links in the at least one primary channel and the at least one secondary channel respectively; and transmitting a predefined key message by using the radio frequency link in the main channel, and transmitting a non-key message by using the radio frequency link in the secondary channel. The message transmission method provided by the application can simultaneously ensure low-delay and high-reliability transmission of the key message.

Description

Message transmission method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for transmitting a message, an electronic device, and a computer-readable storage medium.
Background
The traditional multilink transmission scheme is divided into two types, one is traditional multilink backup, and the backup purpose is achieved under the condition that the same message redundancy is sent through two frequency bands. Since all traffic will go through both bands, there will be more contention for the air interface of any one band. In addition, if a message with a lower priority is sent before, a message with a high priority cannot be sent, and the message with the high priority can be sent only when the message with the low priority is sent, so that low-delay transmission of the message with the higher priority cannot be guaranteed. The other is traditional multilink load balancing, which can directly split the flow to be transmitted in different channels. Under the condition of 2+5 and the form of double 5G, the delay of the former 2G is high approximately, which may result in low delay of partial traffic not being guaranteed, and meanwhile, packet loss may occur due to traffic split transmission, and the reliability of the message also cannot be guaranteed. Even if the latter dual-5G transmission mode is adopted, packet loss in the flow transmission process cannot be avoided, and reliability cannot be guaranteed.
Therefore, in the prior art, low delay and high reliability of message transmission cannot be ensured simultaneously. Therefore, how to simultaneously ensure low-latency and high-reliability transmission of a message is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a message transmission method, a message transmission device, an electronic device and a computer readable storage medium, and meanwhile, low-delay and high-reliability transmission of messages is guaranteed.
In order to achieve the above object, the present application provides a packet transmission method applied to a wireless access client, where the method includes:
acquiring channel information of a plurality of channels between the wireless access client and the wireless access point, and calculating the quality scores of the plurality of channels according to the channel information of the plurality of channels;
determining at least one primary channel and at least one secondary channel in the plurality of channels according to the quality scores of the plurality of channels, wherein the quality score of the at least one primary channel is higher than the quality score of the at least one secondary channel;
establishing radio frequency links in the at least one primary channel and the at least one secondary channel respectively;
and transmitting a predefined key message by using the radio frequency link in the main channel, and transmitting a non-key message by using the radio frequency link in the secondary channel.
The channel information comprises any one or any combination of a channel utilization rate, an error rate and a retransmission rate, the quality fraction of the channel is in negative correlation with the channel utilization rate, the quality fraction of the channel is in negative correlation with the error rate, and the quality fraction of the channel is in negative correlation with the retransmission rate.
Wherein the channel information includes a channel utilization rate, a bit error rate, and a retransmission rate, and correspondingly, the calculating the quality scores of the plurality of channels according to the channel information of the plurality of channels includes:
and distributing corresponding weighting coefficients for the channel utilization rate, the bit error rate and the retransmission rate, and performing weighting calculation on the channel utilization rate, the bit error rate and the retransmission rate of the plurality of channels according to the weighting coefficients to obtain channel scores of the plurality of channels.
Wherein the determining at least one primary channel and at least one secondary channel among the plurality of channels according to the quality scores of the plurality of channels comprises:
determining the current radio frequency number of the wireless access client, and selecting a target channel from the plurality of channels according to the quality fraction and the current radio frequency number;
and determining at least one primary channel and at least one secondary channel in the target channel according to the quality fraction of the target channel.
Wherein, if the current radio frequency number is two, selecting a target channel from the plurality of channels according to the quality fraction and the current radio frequency number includes:
selecting two target channels with the highest quality scores from the plurality of channels;
correspondingly, the determining at least one primary channel and at least one secondary channel in the target channel according to the quality fraction of the target channel includes:
determining the target channel with the highest quality score as a primary channel, and determining the target channel with the lowest quality score as a secondary channel;
correspondingly, the transmitting a predefined critical packet by using the radio frequency link in the primary channel and transmitting a non-critical packet by using the radio frequency link in the secondary channel includes:
transmitting a predefined key message by using a radio frequency link in the main channel, and only transmitting a non-key message by using a radio frequency link in the secondary channel;
or, a radio frequency link in the primary channel is used for transmitting a predefined key message, and a radio frequency link in the secondary channel is used for transmitting a non-key message and a part of the key message;
or, the radio frequency link in the primary channel is used for transmitting predefined key messages, and the radio frequency link in the secondary channel is used for transmitting non-key messages and all the key messages.
Wherein, if the current radio frequency number is three, selecting a target channel from the plurality of channels according to the quality score and the current radio frequency number comprises:
selecting three target channels with the highest quality scores from the plurality of channels;
correspondingly, the determining at least one primary channel and at least one secondary channel in the target channel according to the quality score of the target channel includes:
determining a target channel with the highest quality score as a first main channel, determining a target channel with the second highest quality score as a second main channel, and determining a target channel with the lowest quality score as a secondary channel;
correspondingly, the transmitting the predefined critical packet by using the radio frequency link in the primary channel and the transmitting the non-critical packet by using the radio frequency link in the secondary channel includes:
utilizing a radio frequency link in the first main channel and a radio frequency link in the second main channel to redundantly transmit predefined key messages, and utilizing a radio frequency link in the secondary channel to transmit non-key messages;
or, the radio frequency link in the first main channel and the radio frequency link in the second main channel are used for transmitting predefined key messages according to a preset proportion, and the radio frequency link in the secondary channel is used for transmitting non-key messages, and part or all of the key messages; wherein the preset proportion is a ratio of the quality fraction of the first main channel to the quality fraction of the second main channel;
or, the radio frequency link in the first main channel is used for transmitting the key message with higher priority, the radio frequency link in the second main channel is used for transmitting the key message with lower priority, and the radio frequency link in the secondary channel is used for transmitting the non-key message, part or all of the key message; wherein the quality score of the first primary channel is greater than the quality score of the second primary channel.
Wherein, still include:
judging whether channel switching is needed according to the channel information of the primary channel and the channel information of the secondary channel;
and if so, executing channel switching between the primary channel and the secondary channel.
Wherein, the determining whether channel switching is needed according to the channel information of the primary channel and the channel information of the secondary channel includes:
calculating a score difference between the quality score of the primary channel and the quality score of the secondary channel;
if the score difference is greater than or equal to a first preset value, judging that channel switching is needed;
and if the fraction difference is smaller than the first preset value, judging that channel switching is not needed.
Wherein, the determining whether channel switching is needed according to the channel information of the primary channel and the channel information of the secondary channel includes:
calculating a utilization difference between the channel utilization of the primary channel and the channel utilization of the secondary channel;
if the utilization rate difference is greater than or equal to a second preset value, judging that channel switching is needed;
and if the utilization rate difference is smaller than the second preset value, judging that channel switching is not needed.
Wherein, the link in the secondary channel is further configured to transmit a part of the key packet, and correspondingly, the method further includes:
and adjusting the proportion of the link in the secondary channel for transmitting the key message according to the channel information of the primary channel.
Wherein, the adjusting the proportion of the link in the secondary channel for transmitting the key message according to the channel information of the primary channel includes:
and adjusting the proportion of the key message transmitted by the link in the secondary channel by adopting an exponential adjustment mode according to the quality fraction of the primary channel.
Wherein, the adjusting the proportion of the link in the secondary channel for transmitting the key message according to the channel information of the primary channel includes:
and adjusting the proportion of the key messages transmitted by the links in the secondary channel by adopting an index adjustment mode according to the retransmission rate of the primary channel.
And the wireless multimedia preemption parameter of the key message is higher than that of the non-key message.
The wireless multimedia preemption parameters include a maximum value of a contention window, a minimum value of a contention window, a time slot number and a contention transmission opportunity, the maximum value of the contention window of the key message is smaller than the maximum value of the contention window of the non-key message, the minimum value of the contention window of the key message is smaller than the minimum value of the contention window of the non-key message, the time slot number of the key message is smaller than the time slot number of the non-key message, and the contention transmission opportunity of the key message is larger than the contention transmission opportunity of the non-key message.
In order to achieve the above object, the present application provides a packet transmission apparatus, which is applied to a wireless access client, and the apparatus includes:
the acquisition module is used for acquiring channel information of a plurality of channels between the wireless access client and the wireless access point and calculating the quality scores of the plurality of channels according to the channel information of the plurality of channels;
a determining module, configured to determine at least one primary channel and at least one secondary channel in the plurality of channels according to quality scores of the plurality of channels, where a quality score of the at least one primary channel is higher than a quality score of the at least one secondary channel;
an establishing module, configured to establish radio frequency links in the at least one primary channel and the at least one secondary channel respectively;
and the transmission module is used for transmitting a predefined key message by using the radio frequency link in the main channel and transmitting a non-key message by using the radio frequency link in the secondary channel.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the message transmission method when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, realizes the steps of the above message transmission method.
According to the above scheme, the message transmission method provided by the application includes: acquiring channel information of a plurality of channels between the wireless access client and the wireless access point, and calculating the quality scores of the plurality of channels according to the channel information of the plurality of channels; determining at least one primary channel and at least one secondary channel in the plurality of channels according to the quality scores of the plurality of channels, wherein the quality score of the at least one primary channel is higher than the quality score of the at least one secondary channel; establishing radio frequency links in the at least one primary channel and the at least one secondary channel respectively; and transmitting a predefined key message by using the radio frequency link in the main channel, and transmitting a non-key message by using the radio frequency link in the secondary channel.
According to the message transmission method, the main channel with better quality and the secondary channel with poorer quality are determined together in a management frame interaction mode between the wireless access client and the wireless access point, the predefined key message is transmitted by using the main channel with better quality, other non-key messages are transmitted by using the secondary channel with poorer quality, the empty competition of the main channel is reduced, and meanwhile, the low-delay and high-reliability transmission of the key message is guaranteed. The application also discloses a message transmission device, an electronic device and a computer readable storage medium, which can also realize the technical effects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a block diagram illustrating a first type of messaging system in accordance with an exemplary embodiment;
FIG. 2 is a block diagram illustrating a second type of messaging system in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating a third message transmission system in accordance with an illustrative embodiment;
FIG. 4 is a block diagram illustrating a fourth message transmission system in accordance with an illustrative embodiment;
FIG. 5 is a flow diagram illustrating a method of message transmission in accordance with an exemplary embodiment;
FIG. 6 is a diagram of a transmission model of a QoS access mechanism;
FIG. 7 is a diagram illustrating a transmission model in accordance with an exemplary embodiment;
FIG. 8 is a flowchart of an embodiment of an application provided in the present application;
FIG. 9 is a diagram illustrating the mechanism of operation of a CSMA/CA in accordance with an exemplary embodiment;
FIG. 10 is a schematic diagram illustrating another CSMA/CA operating mechanism in accordance with an exemplary embodiment;
fig. 11 is a schematic diagram illustrating different CWmin and CWmax settings for a different AC according to an exemplary embodiment;
FIG. 12 is a block diagram illustrating a message transmission device in accordance with an exemplary embodiment;
FIG. 13 is a block diagram illustrating an electronic device in accordance with an exemplary embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. In addition, in the embodiments of the present application, "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a particular order or sequence.
For the convenience of understanding the message transmission method provided in the present application, a system to which the method is applied will be described first. Referring to fig. 1, fig. 1 is a structural diagram of a first message transmission system according to an exemplary embodiment, which depicts a general scenario of an intranet. As shown in fig. 1, the system includes a user side device, a wireless Access client (STA), a wireless Access Point (AP), a POE (Power over LAN) switch, and a Controller (WAC, web Access Control), where the user side device and the STA may be connected by a wire, for example, a CAN (Controller Area Network), a UART (Universal Asynchronous Receiver/Transmitter), an I2C (Inter-Integrated Circuit), an RS485, a wired Network port, or another connection, for example, the STA connects a UE (un-real Engine) through a serial port, or is built in the UE, which is not limited specifically herein. The STA is connected with the POE switch through the AP and further connected with the WAC, and therefore message transmission between the STA and the WAC is achieved.
Referring to fig. 2, fig. 2 is a block diagram illustrating a second type of message transmission system according to an exemplary embodiment, which depicts a general external network scenario. As shown in fig. 2, the system includes a user-side device, a STA, an AP, a POE switch, a router, and a WAC, and is different from an intranet scenario in that the STA and the WAC are in different networks, and the POE switch is connected to the ethernet through the router, and is further connected to the WAC.
Referring to fig. 3, fig. 3 is a structural diagram of a third packet transmission system according to an exemplary embodiment, which illustrates a highly reliable multi-link single-AP scenario of an intranet, and is different from a normal scenario of the intranet in that multiple links exist between an STA and an AP.
Referring to fig. 4, fig. 4 is a structural diagram of a fourth packet transmission system according to an exemplary embodiment, which illustrates a scenario of an external network high-reliability multi-link single AP, and is different from a normal scenario of the external network in that multiple links exist between an STA and an AP.
The embodiment of the application discloses a message transmission method, which simultaneously ensures low-delay and high-reliability transmission of messages.
Referring to fig. 5, a flowchart of a message transmission method according to an exemplary embodiment is shown, and as shown in fig. 5, the method includes:
s101: acquiring channel information of a plurality of channels between a wireless access client and a wireless access point, and calculating the quality scores of the plurality of channels according to the channel information of the plurality of channels;
the execution main body of this embodiment is a wireless access client, multiple channels exist between the wireless access client and a wireless access point, the wireless access client sends a Probe Request frame (Probe Request) to the wireless access point through each channel, and the wireless access point replies a Probe Response frame (Probe Response), where the Probe Response frame includes channel information of the channel, and the channel information may include a channel utilization rate, an error rate and a retransmission rate in a latest preset time period, and the like.
Further, the wireless access client calculates the quality fraction of each channel according to the channel information of each channel, the higher the quality fraction is, the better the quality of the channel is, the quality fraction of the channel is negatively related to the channel utilization rate, that is, the lower the channel utilization rate is, the higher the channel quality fraction is, the quality fraction of the channel is negatively related to the error rate, that is, the lower the error rate is, the higher the channel quality fraction is, the quality fraction of the channel is negatively related to the retransmission rate, that is, the lower the retransmission rate is, the higher the channel quality fraction is.
As a preferred embodiment, the calculating the quality scores of the channels according to the channel information of the channels includes: and distributing corresponding weighting coefficients for the channel utilization rate, the bit error rate and the retransmission rate, and performing weighting calculation on the channel utilization rate, the bit error rate and the retransmission rate of the plurality of channels according to the weighting coefficients to obtain channel scores of the plurality of channels. In the specific implementation, corresponding weighting coefficients are distributed for the channel utilization rate, the error rate and the retransmission rate, the sum of the weighting coefficients corresponding to the channel utilization rate, the error rate and the retransmission rate is less than or equal to 1, and the channel utilization rate, the error rate and the retransmission rate of the channel are weighted and calculated according to the corresponding weighting coefficients to obtain the channel fraction of the channel. For example, the channel utilization, the error rate and the retransmission rate are respectively CU, ER and ARQ, the corresponding weighting coefficients are respectively a, b and c, and the quality fraction CH grade Is calculated as CH grade =100-(a×CU+b×ER+c×ARQ)×100。
For example, there are 36, 149, 151, 161 channels between the wireless access client and the wireless access point, the wireless access client starts scanning once, sends a probe request frame to the wireless access point through the first channel, the wireless access point replies a probe response frame, and the wireless access client acquires channel information of the channel from the probe response frame. The wireless access client determines whether scanning is completed, and if not, continues scanning the next channel until channel information of all channels is acquired, as shown in table 1:
TABLE 1
Channel utilization Retransmission rate Error rate
36 20% 0% 0%
149 20% 5% 0%
157 30% 0% 0%
161 20% 0% 0%
The quality fractions of 36, 149, 151 and 161 channels calculated according to the above calculation formula are respectively: 90. 88.75, 85 and 90.
S102: determining at least one primary channel and at least one secondary channel in the plurality of channels according to the quality scores of the plurality of channels, wherein the quality score of the at least one primary channel is higher than the quality score of the at least one secondary channel;
s103: establishing radio frequency links in the at least one primary channel and the at least one secondary channel respectively;
in specific implementation, at least one main channel with a higher quality score and at least one secondary channel with a lower quality score are selected from all channels between a wireless access client and a wireless access point, and radio frequency links of different radio frequencies are respectively established in the main channel and the secondary channel to form a data transmission channel.
As a possible implementation, the determining at least one primary channel and at least one secondary channel in the plurality of channels according to the quality scores of the plurality of channels includes: determining the current radio frequency number of the wireless access client, and selecting a target channel from the plurality of channels according to the quality fraction and the current radio frequency number; and determining at least one primary channel and at least one secondary channel in the target channel according to the quality fraction of the target channel.
It can be understood that the wireless access client includes a plurality of radio frequency resources, that is, the number of the current radio frequencies is multiple. For example, a dual-rf wireless access client includes two rf resources, that is, the current number of the rf resources is two, and a triple-rf wireless access client includes three rf resources, that is, the current number of the rf resources is three. In a specific implementation, a number of target channels with the highest quality scores of the current radio frequency number are selected from all channels between the wireless access client and the wireless access point. And if the wireless access client is double radio frequencies, namely the number of the current radio frequencies is two, selecting two target channels with the highest quality scores from the channels. In the above example, the channels 161 and 36 are selected to create links of different radio frequencies for the target channel, respectively. And if the wireless access client is three radio frequencies, namely the number of the current radio frequencies is three, selecting three target channels with the highest quality scores from the channels. In the above example, channels 161, 36, and 149 are selected to create links of different radio frequencies for the target channel, respectively.
Further, at least one primary channel and at least one secondary channel are determined in the target channel according to the quality score of the target channel, specifically, the target channel with the higher quality score is determined as the primary channel, and the target channel with the lower quality score is determined as the secondary channel. The number of the primary channels and the number of the secondary channels are not limited in this embodiment, and may be set according to the current radio frequency number of the wireless access client. If the wireless access client is double radio frequencies, namely the number of the current radio frequencies is two, the target channel with higher quality score is determined as the main channel, and the target channel with lower quality score is determined as the secondary channel. In the above example, channel 161 may be determined as the primary channel and channel 36 may be determined as the secondary channel. If the wireless access client is three radio frequencies, namely the number of the current radio frequencies is three, determining the target channel with the highest quality score as a first main channel, determining the target channel with the second highest quality score as a second main channel, and determining the target channel with the lowest quality score as a secondary channel. In the above example, channel 161 may be determined as a first primary channel, channel 36 may be determined as a second primary channel, and channel 149 may be determined as a secondary channel.
S104: and transmitting a predefined key message by using the radio frequency link in the main channel, and transmitting a non-key message by using the radio frequency link in the secondary channel.
In the specific implementation, the key messages are predefined, the priority of the key messages is highest, all the key messages are transmitted by using the links in the main channel, and all or part of the key messages can be transmitted by using the links in the secondary channel. The messages except the key message are non-key messages and are transmitted by using the link in the secondary channel. In the process of message transmission, data duplication removal is carried out on the message to be transmitted at the wireless access client and the controller so as to ensure high reliability of message transmission.
It should be noted that, a user may define a message with a QOS (Quality of Service) priority as a certain priority or several priorities as a key message. WMM (Wi-Fi Multi Media, wireless multimedia) is introduced in 802.11e, introducing QoS access mechanism for the MAC layer. It defines 4 different priorities, which may also be called Access Categories (AC), and provides four different physical queues for the four priorities at the device MAC layer, as shown in fig. 6, the priorities from high to low are: voice service (Voice, AC _ VO), video service (Video, AC _ VI), best-effort (AC _ BE), and Background traffic (AC _ BK). Voice services are typically of the VoIP traffic type, most delay sensitive and also the highest priority traffic. The video service has a lower priority than the voice service and higher priority than the other two, and the video service is also a delay sensitive type service and thus has a certain priority. The best effort default type of wireless traffic is best-effort type, such as data traffic for web page access, which has a certain requirement for delay, but is less sensitive. Background traffic is traffic that is least sensitive to delay requirements, such as file transfers, print jobs. The user may define voice services as critical messages.
Certainly, the user may also define a certain type of message as a key message, for example, define serial port data as the key message, where the priority of the key message is higher than that of any AC, as shown in fig. 7, the key message is AC _ VIP, and the priority of the key message is higher than that of other ACs.
It should be noted that, if the wireless access client is a dual radio frequency, that is, the current number of radio frequencies is two, the packet transmission method can be divided into three cases, where the case is one: transmitting a predefined key message by using a radio frequency link in the main channel, and only transmitting a non-key message by using a radio frequency link in the secondary channel; case two: transmitting a predefined key message by using a radio frequency link in the main channel, and transmitting a non-key message and a part of the key message by using a radio frequency link in the secondary channel; case three: and transmitting a predefined key message by using the radio frequency link in the main channel, and transmitting a non-key message and all the key messages by using the radio frequency link in the secondary channel. That is to say, the radio frequency link in the primary channel transmits the key message, and the message types transmitted by the radio frequency link in the secondary channel are divided into three cases, where the case is one: only all non-critical messages are transmitted, case two: and simultaneously transmitting all non-key messages and part of key messages, wherein the third condition is that: all non-critical messages and all critical messages are transmitted simultaneously. The proportion of the radio frequency link in the secondary channel for transmitting the key message is adjusted in real time according to the quality of the primary channel, and when the quality of the primary channel is higher, the radio frequency link in the secondary channel can be only used for transmitting non-key messages but not transmitting the key message, namely, under the first condition, the low-delay transmission of the key message can be ensured, and meanwhile, the high-reliability transmission of the key message can be ensured due to the higher quality of the primary channel. When the quality of the primary channel is medium, the radio frequency link in the secondary channel is used for transmitting non-key messages and partial key messages, namely, under the second condition, partial redundant backup transmission is performed on the key messages, and meanwhile, low-delay and high-reliability transmission of the key messages is guaranteed. And when the quality of the main channel is poor, the radio frequency link in the secondary channel is used for transmitting non-key messages and all key messages, namely in the third situation, the radio frequency link in the main channel and the radio frequency link in the secondary channel are used for realizing redundant backup transmission of the key messages, and meanwhile, low delay and high reliability transmission of the key messages are ensured.
If the wireless access client is three radio frequencies, that is, the number of the current radio frequencies is three, the packet transmission mode can be divided into three cases, where the case is one: utilizing a radio frequency link in the first main channel and a radio frequency link in the second main channel to redundantly transmit predefined key messages, and utilizing a radio frequency link in the secondary channel to transmit non-key messages and part of the key messages; case two: transmitting a predefined key message according to a preset proportion by using a radio frequency link in the first main channel and a radio frequency link in the second main channel, and transmitting a non-key message, a part of or all of the key message by using a radio frequency link in the secondary channel; the preset proportion is a ratio of the quality fraction of the first main channel to the quality fraction of the second main channel; case three: transmitting a key message with higher priority by using the radio frequency link in the first main channel, transmitting a key message with lower priority by using the radio frequency link in the second main channel, and transmitting a non-key message, a part of or all of the key message by using the radio frequency link in the secondary channel; wherein the quality fraction of the first primary channel is greater than the quality fraction of the second primary channel.
For the first case, the redundant backup transmission of the key message is realized by using the link in the first main channel and the radio frequency link in the second main channel, and meanwhile, the low-delay and high-reliability transmission of the key message is ensured. For the second case, the first main channel and the second main channel allocate the proportion of the transmitted key messages according to the ratio of the quality fractions, that is, the higher the quality of the main channel is, the more key messages are transmitted, and the low-delay transmission of the key messages is ensured. The message types transmitted by the radio frequency link in the secondary channel are divided into three sub-cases, namely: only all non-critical messages are transmitted, sub-case two: simultaneously transmitting all non-key messages and part of key messages, wherein the sub-situation is three: all non-critical messages and all critical messages are transmitted simultaneously. The proportion of the radio frequency link in the secondary channel for transmitting the key message is adjusted in real time according to the quality of the first main channel and the quality of the second main channel, when the quality of a certain main channel is reduced, the proportion of the secondary channel for transmitting the message in the main channel can be increased, and low-delay and high-reliability transmission of the key message can be ensured at the same time. For the third case, the key packet includes a plurality of packets with different priorities, the key packet with higher priority is transmitted by using the main channel with higher quality score, the key packet with lower priority is transmitted by using the main channel with lower quality score, and the packet types transmitted by the radio frequency link in the secondary channel are also divided into the above three sub-cases, which can simultaneously ensure low-delay and high-reliability transmission of the key packet, and are not described herein again.
As can be seen, in this embodiment, the message may be allocated to multiple channels for transmission according to an actual air interface environment, so that waste of air interface resources of no channel is directly reduced, and waste of frequency band resources is reduced. Meanwhile, the transmission messages are optimized, the key messages with higher priority are adjusted to the main channel with better quality for transmission according to the channel information, the competitive advantage of the key messages can be greatly improved, low delay is realized, the proportion control of the key messages transmitted by multiple channels is combined, and the consideration of high reliability and low delay is realized.
The message transmission method provided by the embodiment of the application jointly determines the main channel with better quality and the sub-channel with poorer quality in a management frame interaction mode between the wireless access client and the wireless access point, transmits the predefined key message by using the main channel with better quality, and transmits other non-key messages by using the sub-channel with poorer quality, so that the empty competition of the main channel is reduced, and meanwhile, the low-delay and high-reliability transmission of the key message is ensured.
On the basis of the above embodiment, as a preferred implementation, the method further includes: judging whether channel switching is needed or not according to the channel information of the main channel and the channel information of the secondary channel; and if so, executing channel switching between the primary channel and the secondary channel.
It can be understood that, in the process of message transmission, whether the switching between the primary channel and the secondary channel is needed can be judged according to the channel information of the primary channel and the secondary channel. As a possible implementation, a score difference between the quality score of the primary channel and the quality score of the secondary channel is calculated; if the score difference is greater than or equal to a first preset value, judging that channel switching is needed; and if the fraction difference is smaller than the first preset value, judging that channel switching is not needed. In specific implementation, when the quality score of the primary channel and the quality score of the secondary channel have a large difference, switching between the primary channel and the secondary channel is performed, and the key message with the highest priority is transmitted on the channel with the best link quality.
As another possible implementation, a utilization difference between the channel utilization of the primary channel and the channel utilization of the secondary channel is calculated; if the utilization rate difference is greater than or equal to a second preset value, judging that channel switching is needed; and if the utilization rate difference is smaller than the second preset value, judging that channel switching is not needed. In a specific implementation, when the channel utilization rate of the primary channel is greatly different from the channel utilization rate of the secondary channel, the switching between the primary channel and the secondary channel is performed.
Of course, the switching between the primary channel and the secondary channel may be performed according to other channel information, and the user may flexibly set the channel according to actual needs, which is not specifically limited herein.
On the basis of the above embodiment, as a preferred implementation, the method further includes: and adjusting the proportion of the link in the secondary channel for transmitting the key message according to the channel information of the primary channel. It can be known from the above embodiments that the proportion of the key packets transmitted by the link in the secondary channel is adjusted in real time according to the quality of the primary channel, and the real-time quality of the primary channel can be determined by the real-time channel information of the primary channel, and the higher the quality of the primary channel is, the lower the proportion of the key packets transmitted by the secondary channel is, whereas the lower the quality of the primary channel is, the higher the proportion of the key packets transmitted by the secondary channel is, and thus, the low-delay and high-reliability transmission of the key packets can be ensured at the same time.
As a possible implementation manner, the proportion of the key packet transmitted by the link in the secondary channel is adjusted by using an exponential adjustment manner according to the quality score of the primary channel. In a specific implementation, the ratio of the link transmission key packets in the secondary channel is adjusted based on the quality score of the primary channel, and a difference between the quality score of the primary channel and the full score can be calculated, and the ratio of the link transmission key packets in the secondary channel is exponentially related to the difference. For example, if the quality score of the primary channel is 90 and the difference from the full score is 10, the link in the secondary channel transmits the key packets at a rate of 5%, the quality score of the primary channel is 80, and the difference from the full score is 20, the link in the secondary channel transmits the key packets at a rate of 10%, the quality score of the primary channel is 60, and the difference from the full score is 40, the link in the secondary channel transmits the key packets at a rate of 50%.
As another possible implementation manner, the proportion of the key packet transmitted by the link in the secondary channel is adjusted by using an index adjustment manner according to the retransmission rate of the primary channel. In specific implementation, the proportion of the link in the secondary channel for transmitting the key message is adjusted based on the retransmission rate of the primary channel, and the lower the retransmission rate is, the better the quality of the primary channel is, and the lower the proportion of the link in the secondary channel for transmitting the key message is. The proportion of the link in the secondary channel transmitting the key message is exponentially related to the retransmission rate, for example, if the retransmission rate of the primary channel is 1%, the proportion of the link in the secondary channel transmitting the key message is 2%, and if the retransmission rate of the primary channel is 5%, the proportion of the link in the secondary channel transmitting the key message is 32%, and if the retransmission rate of the primary channel is 10%, the proportion of the link in the secondary channel transmitting the key message is 100%.
Of course, the proportion of the link transmission key message in the secondary channel may also be adjusted according to other channel information, and the user may flexibly set according to actual needs without specific limitations.
Referring to fig. 8, a wireless access client is dual radio frequency, a channel a is a primary channel, a channel B is a secondary channel, the wireless access client obtains a retransmission rate and a channel utilization rate of the two channels a and B in the latest period of time, calculates a difference between the channel utilization rate of the channel a and the channel utilization rate of the channel B, performs primary and secondary channel switching if the difference is large, and does not perform primary and secondary channel switching if the difference is small. And the wireless access client adjusts the proportion of the key message transmitted by the link in the secondary channel according to the retransmission rate, and re-enters the step of acquiring the retransmission rate and the channel utilization rate of the A channel and the B channel after certain time delay.
For convenience of understanding, the following describes the operation mechanism of CSMA/CA (Carrier Sense Multiple Access with connectivity Access, carrier Sense Multiple Access/Collision Avoidance), as shown in fig. 9, wherein DIFS (Distributed Inter-frame Spacing) and SIFS (Short Inter-frame space ) both belong to IFS (Inter-frame Spacing). In CSMA/CA, before a frame is transmitted, it is necessary to "wait" for a corresponding interframe space, for example, wait for at least DIFS time before transmitting data, and wait for SIFS time before transmitting ACK (acknowledgement character). There are also other interframe spaces in 802.11, such as RIFS (Reduced Interframe Spacing), PIFS (PCF Interframe Spacing), AIFS (inhibited Interframe Spacing), EIFS (Extended Interframe Spacing). Slot Time refers to a Time slice, and in CSMA/CA, a node needs to go through a corresponding random backoff (backoff) process before contending for accessing a channel, where the backoff process is composed of many slots. The Backoff (random Backoff) procedure refers to a random Backoff procedure that each node experiences when contending for a channel. When the process starts, the node first selects a random back-off counter (backoff counter) based on a random number in a Contention Window (CW), and at the same time, for each time slot, the node "listens" whether the channel is idle, if the channel is idle, the counter is counted down once, that is, the counter is decremented by 1, if the channel is busy, the corresponding counter is not counted down. When the random back-off count value backs off to 0, the node may send data.
As shown in fig. 9, when STA1 and STA2 have data in succession and need to transmit on a contention channel, they first need to "wait" for DIFS time, and if the channel remains idle during the DIFS time, a backoff procedure may be performed. If STA1 and STA2 enter the backoff procedure, they first need to select a random number from the contention window, and in the 802.11 protocol, the default initial contention window is 31, i.e. the range of random backoff counts is [0,31]. In fig. 9, STA1 selects 8, and STA2 selects 2. In the backoff process, each Time a Slot Time passes, the node monitors a channel, and if the channel is idle, the value of the corresponding random backoff counter is decremented by 1. In fig. 9, after 3 Slot times, the random countdown counter of STA1 is decremented from 8 to 5, and STA2 is correspondingly decremented from 2 to 0. When the random countdown counter of the node counts down to 0, the node contends to acquire a channel so that data can be transmitted. In fig. 9, STA2 sends PACKET a to the AP after acquiring the channel. After receiving the data, the AP checks the data by using a CRC mechanism, and if the data passes the check, the AP feeds back an ACK acknowledgement frame after SIFS. When STA2 has successfully sent the data, the AP will feed back an ACK acknowledgement frame to the node after "waiting" for SIFS. This transmission is complete when STA2 successfully receives the ACK frame. When this transmission is completed, the node needs to "wait" for DIFS again and then restart the backoff process. If the node has just finished sending data, when the backoff process starts, a random number needs to be selected from the contention window again for counting down. If the node does not send data, the node directly continues to count down from the last counting down result. In fig. 9, STA1 does not contend for the channel, and then directly performs the reciprocal number to 4 based on the last 5 in the second backoff procedure, so as to ensure the fairness of network transmission.
If the AP does not successfully receive the data of the node or the AP performs CRC error check on the data in the above process, it does not feed back a corresponding ACK to the node. After the node receives the ACK timeout, the node knows that the other side has not successfully received the data, and the ACK timeout time is generally equal to the ACK receiving time in theoretical analysis, which may be a bit larger in a specific design. Then the node sending the error needs to wait for EIFS time to access the channel again, and EIFS > DIFS, so as to avoid some bad nodes continuously contending for the channel resource. For example, in fig. 10, STA2 needs to wait for EIFS, and then the node first performs BEB (Binary explicit Back off) and then restarts the backoff process, while STA1 performs backoff directly after DIFS.
As can be seen from the above described CSMA/CA mechanism, the DIFS and CW ranges are the influencing factors influencing the probability of wireless message competing for air interface. The above CSMA/CA is one of the core mechanisms of the DCF mode of operation of the original 802.11 MAC. Because the 802.11e introduces the concept of QOS, the existing mechanism does not meet the actual requirements, and an EDCA (Enhanced Distributed Channel Access) mode is introduced on the basis of the working mode of DCF. In fact, EDCA controls several parameters even on the basis of DCF to achieve the purpose of access priority.
The EDCA mode adds concepts of AIFS, CWmin, CWmax, and TXOP (Transmission Opportunity) to the original mode. AIFS may be understood as the IFS time "waiting" before contending for backoff in fig. 10, EDCA introduces the concept of AIFS for providing waiting IFS times of different priorities in order to provide a priority mechanism. AIFS [ AC ] for a particular AC is calculated by: AIFS [ AC ] = aSIFSTime + AIFSSN (AC) × aslotttime, where aSIFSTime is SIFS Time, AIFSSN (AC) is the number of slots of AC, and aslotttime is Slot Time.
CWmin is the minimum value of the Contention Window (CW) and CWmax is the minimum value of the Contention Window (CW). In a conventional DCF (Distributed Coordination Function), CWmin =15 and cwmax =1023, which means that all competing nodes are set identically. However, in EDCA, since the priority of a node is associated with a CW value, its CWmin and CWmax settings may be different for different ACs, as shown in fig. 11. TXOP is also a new probability introduced by 802.11e, allowing the frame transmission to change from one frame to a period of time after the contention succeeds.
On the basis of the above embodiment, as a preferred implementation manner, the wireless multimedia preemption parameter of the critical packet is higher than the wireless multimedia preemption parameter of the non-critical packet. In specific implementation, for low-latency and high-priority transmission, the WMM parameter with higher preemption capability of the critical packet is adjusted according to circumstances, so that the sending probability of the critical packet is higher than that of the non-critical packet, and meanwhile, the chance of competing for the air interface is correspondingly increased.
Preferably, the wireless multimedia preemption parameter includes a maximum contention window value (CWmax), a minimum contention window value (CWmin), a number of timeslots (AIFSSN), and a contention transmission opportunity (TXOP), where the maximum contention window value of the critical packet is smaller than the maximum contention window value of the non-critical packet, the minimum contention window value of the critical packet is smaller than the minimum contention window value of the non-critical packet, the number of timeslots of the critical packet is smaller than the number of timeslots of the non-critical packet, and the contention transmission opportunity of the critical packet is greater than the contention transmission opportunity of the non-critical packet. That is, critical packets have smaller CWmax, CWmin, AIFSSN, and larger TXOPs relative to non-critical packets.
In the following, a message transmission apparatus provided in an embodiment of the present application is introduced, and a message transmission apparatus described below and a message transmission method described above may refer to each other.
Referring to fig. 12, a block diagram of a message transmission apparatus according to an exemplary embodiment is shown, as shown in fig. 12, including:
an obtaining module 100, configured to obtain channel information of multiple channels between the wireless access client and the wireless access point, and calculate quality scores of the multiple channels according to the channel information of the multiple channels;
a determining module 200, configured to determine at least one primary channel and at least one secondary channel in the plurality of channels according to quality scores of the plurality of channels, where a quality score of the at least one primary channel is higher than a quality score of the at least one secondary channel;
an establishing module 300, configured to establish radio frequency links in the at least one primary channel and the at least one secondary channel respectively;
a transmission module 400, configured to transmit a predefined critical packet by using the radio frequency link in the primary channel, and transmit a non-critical packet by using the radio frequency link in the secondary channel.
The message transmission device provided in the embodiment of the present application determines, through a management frame interaction manner between the wireless access client and the wireless access point, a primary channel with good quality and a secondary channel with poor quality together, transmits the predefined critical message using the primary channel with good quality, and transmits other non-critical messages using the secondary channel with poor quality, so as to reduce air interface contention of the primary channel and ensure low-latency and high-reliability transmission of the critical message.
On the basis of the foregoing embodiment, as a preferred implementation manner, the channel information includes any one or a combination of any one of a channel utilization rate, a bit error rate, and a retransmission rate, a quality score of the channel is negatively correlated with the channel utilization rate, a quality score of the channel is negatively correlated with the bit error rate, and a quality score of the channel is negatively correlated with the retransmission rate.
On the basis of the foregoing embodiment, as a preferred implementation manner, the channel information includes a channel utilization rate, a bit error rate, and a retransmission rate, and correspondingly, the calculating module 200 is specifically configured to: and distributing corresponding weighting coefficients for the channel utilization rate, the bit error rate and the retransmission rate, and performing weighting calculation on the channel utilization rate, the bit error rate and the retransmission rate of the plurality of channels according to the weighting coefficients to obtain channel scores of the plurality of channels.
On the basis of the foregoing embodiment, as a preferred implementation manner, the determining module 200 includes:
a selecting unit, configured to determine a current radio frequency number of the wireless access client, and select a target channel from the multiple channels according to the quality score and the current radio frequency number;
a determining unit, configured to determine at least one primary channel and at least one secondary channel in the target channel according to the quality fraction of the target channel.
On the basis of the foregoing embodiment, as a preferred implementation manner, if the current number of radio frequencies is two, the selecting unit is specifically configured to: selecting two target channels with the highest quality scores from the plurality of channels;
correspondingly, the determining unit is specifically configured to: determining a target channel with the highest quality score as a main channel, and determining a target channel with the lowest quality score as a secondary channel;
correspondingly, the transmission module 400 is specifically configured to: transmitting a predefined key message by using a radio frequency link in the main channel, and only transmitting a non-key message by using a radio frequency link in the secondary channel; or, the radio frequency link in the primary channel is used for transmitting predefined key messages, and the radio frequency link in the secondary channel is used for transmitting non-key messages and part of the key messages; or, the radio frequency link in the primary channel is used for transmitting predefined key messages, and the radio frequency link in the secondary channel is used for transmitting non-key messages and all the key messages.
On the basis of the foregoing embodiment, as a preferred implementation manner, if the current number of radio frequencies is three, the selecting unit is specifically configured to: selecting three target channels with the highest quality scores from the plurality of channels;
correspondingly, the determining unit is specifically configured to: determining a target channel with the highest quality score as a first main channel, determining a target channel with the second highest quality score as a second main channel, and determining a target channel with the lowest quality score as a secondary channel;
correspondingly, the transmission module 400 is specifically configured to: utilizing a radio frequency link in the first main channel and a radio frequency link in the second main channel to redundantly transmit predefined key messages, and utilizing a radio frequency link in the secondary channel to transmit non-key messages; or, the radio frequency link in the first main channel and the radio frequency link in the second main channel are used for transmitting predefined key messages according to a preset proportion, and the radio frequency link in the secondary channel is used for transmitting non-key messages, and part or all of the key messages; wherein the preset proportion is a ratio of the quality fraction of the first main channel to the quality fraction of the second main channel; or, the radio frequency link in the first main channel is used for transmitting the key message with higher priority, the radio frequency link in the second main channel is used for transmitting the key message with lower priority, and the radio frequency link in the secondary channel is used for transmitting the non-key message, part or all of the key message; wherein the quality fraction of the first primary channel is greater than the quality fraction of the second primary channel.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
the switching module is used for judging whether channel switching is needed according to the channel information of the main channel and the channel information of the secondary channel; and if so, executing channel switching between the primary channel and the secondary channel.
On the basis of the foregoing embodiment, as a preferred implementation, the switching module is specifically configured to: calculating a score difference between the quality score of the primary channel and the quality score of the secondary channel; if the score difference is greater than or equal to a first preset value, judging that channel switching is needed; and if the fraction difference is smaller than the first preset value, judging that channel switching is not needed.
On the basis of the foregoing embodiment, as a preferred implementation, the switching module is specifically configured to: calculating a utilization difference between the channel utilization of the primary channel and the channel utilization of the secondary channel; if the utilization rate difference is greater than or equal to a second preset value, judging that channel switching is needed; and if the utilization rate difference is smaller than the second preset value, judging that channel switching is not needed.
On the basis of the foregoing embodiment, as a preferred implementation, the link in the secondary channel is further configured to transmit a part of the key packet, and accordingly, the apparatus further includes:
and the adjusting module is used for adjusting the proportion of the link in the secondary channel for transmitting the key message according to the channel information of the primary channel.
On the basis of the foregoing embodiment, as a preferred implementation manner, the adjusting module is specifically configured to: and adjusting the proportion of the key messages transmitted by the links in the secondary channels by adopting an exponential adjustment mode according to the quality fraction of the primary channel.
On the basis of the foregoing embodiment, as a preferred implementation manner, the adjusting module is specifically configured to: and adjusting the proportion of the key messages transmitted by the links in the secondary channel by adopting an index adjustment mode according to the retransmission rate of the primary channel.
On the basis of the foregoing embodiment, as a preferred implementation manner, the wireless multimedia preemption parameter of the critical packet is higher than the wireless multimedia preemption parameter of the non-critical packet.
On the basis of the above embodiment, as a preferred implementation manner, the wireless multimedia preemption parameter includes a maximum value of a contention window, a minimum value of the contention window, a time slot number and a contention transmission opportunity, the maximum value of the contention window of the key packet is smaller than the maximum value of the contention window of the non-key packet, the minimum value of the contention window of the key packet is smaller than the minimum value of the contention window of the non-key packet, the time slot number of the key packet is smaller than the time slot number of the non-key packet, and the contention transmission opportunity of the key packet is greater than the contention transmission opportunity of the non-key packet.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Based on the hardware implementation of the program module, and in order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides an electronic device, and fig. 13 is a structural diagram of an electronic device according to an exemplary embodiment, as shown in fig. 13, the electronic device includes:
a communication interface 1 capable of information interaction with other devices such as network devices and the like;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other equipment, and is used for executing the message transmission method provided by one or more technical schemes when running a computer program. And the computer program is stored on the memory 3.
In practice, of course, the various components in the electronic device are coupled together by means of the bus system 4. It will be appreciated that the bus system 4 is used to enable connection communication between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. For clarity of illustration, however, the various buses are labeled as bus system 4 in fig. 13.
The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory 3 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a magnetic random access Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), synchronous Static Random Access Memory (SSRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (ESDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), synchronous Dynamic Random Access Memory (SLDRAM), direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 3 described in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the embodiment of the present application may be applied to the processor 2, or may be implemented by the processor 2. The processor 2 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 2. The processor 2 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 2 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 3, and the processor 2 reads the program in the memory 3 and performs the steps of the foregoing method in combination with its hardware.
When the processor 2 executes the program, the corresponding processes in the methods according to the embodiments of the present application are realized, and for brevity, are not described herein again.
In an exemplary embodiment, the present application further provides a storage medium, i.e. a computer storage medium, specifically a computer readable storage medium, for example, including a memory 3 storing a computer program, which can be executed by a processor 2 to implement the steps of the foregoing method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
Those of ordinary skill in the art will understand that: all or part of the steps of implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer-readable storage medium, and when executed, executes the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (17)

1. A message transmission method is applied to a wireless access client, and the method comprises the following steps:
acquiring channel information of a plurality of channels between the wireless access client and the wireless access point, and calculating the quality scores of the plurality of channels according to the channel information of the plurality of channels;
determining at least one primary channel and at least one secondary channel in the plurality of channels according to the quality scores of the plurality of channels, wherein the quality score of the at least one primary channel is higher than the quality score of the at least one secondary channel;
establishing radio frequency links in the at least one primary channel and the at least one secondary channel respectively;
and transmitting a predefined key message by using the radio frequency link in the main channel, and transmitting a non-key message by using the radio frequency link in the secondary channel.
2. The message transmission method according to claim 1, wherein the channel information includes any one or a combination of a channel utilization rate, a bit error rate and a retransmission rate, the quality fraction of the channel is negatively correlated with the channel utilization rate, the quality fraction of the channel is negatively correlated with the bit error rate, and the quality fraction of the channel is negatively correlated with the retransmission rate.
3. The message transmission method according to claim 1, wherein the channel information includes a channel utilization rate, a bit error rate, and a retransmission rate, and the calculating the quality scores of the channels according to the channel information of the channels includes:
and distributing corresponding weighting coefficients for the channel utilization rate, the bit error rate and the retransmission rate, and performing weighting calculation on the channel utilization rate, the bit error rate and the retransmission rate of the plurality of channels according to the weighting coefficients to obtain channel scores of the plurality of channels.
4. The message transmission method according to claim 1, wherein the determining at least one primary channel and at least one secondary channel among the plurality of channels according to the quality scores of the plurality of channels comprises:
determining the current radio frequency number of the wireless access client, and selecting a target channel from the plurality of channels according to the quality fraction and the current radio frequency number;
and determining at least one primary channel and at least one secondary channel in the target channel according to the quality fraction of the target channel.
5. The message transmission method according to claim 4, wherein if the current number of radio frequencies is two, the selecting a target channel among the plurality of channels according to the quality score and the current number of radio frequencies comprises:
selecting two target channels with the highest quality scores from the plurality of channels;
correspondingly, the determining at least one primary channel and at least one secondary channel in the target channel according to the quality fraction of the target channel includes:
determining a target channel with the highest quality score as a main channel, and determining a target channel with the lowest quality score as a secondary channel;
correspondingly, the transmitting a predefined critical packet by using the radio frequency link in the primary channel and transmitting a non-critical packet by using the radio frequency link in the secondary channel includes:
transmitting a predefined key message by using a radio frequency link in the main channel, and only transmitting a non-key message by using a radio frequency link in the secondary channel;
or, the radio frequency link in the primary channel is used for transmitting predefined key messages, and the radio frequency link in the secondary channel is used for transmitting non-key messages and part of the key messages;
or, the radio frequency link in the primary channel is used for transmitting predefined key messages, and the radio frequency link in the secondary channel is used for transmitting non-key messages and all the key messages.
6. The message transmission method according to claim 4, wherein if the current number of radio frequencies is three, the selecting a target channel among the plurality of channels according to the quality score and the current number of radio frequencies comprises:
selecting three target channels with the highest quality scores from the plurality of channels;
correspondingly, the determining at least one primary channel and at least one secondary channel in the target channel according to the quality fraction of the target channel includes:
determining a target channel with the highest quality score as a first main channel, determining a target channel with the second highest quality score as a second main channel, and determining a target channel with the lowest quality score as a secondary channel;
correspondingly, the transmitting the predefined critical packet by using the radio frequency link in the primary channel and the transmitting the non-critical packet by using the radio frequency link in the secondary channel includes:
utilizing a radio frequency link in the first main channel and a radio frequency link in the second main channel to redundantly transmit predefined key messages, and utilizing a radio frequency link in the secondary channel to transmit non-key messages;
or, the radio frequency link in the first main channel and the radio frequency link in the second main channel are used for transmitting predefined key messages according to a preset proportion, and the radio frequency link in the secondary channel is used for transmitting non-key messages, and part or all of the key messages; wherein the preset proportion is a ratio of the quality fraction of the first main channel to the quality fraction of the second main channel;
or, the radio frequency link in the first main channel is used for transmitting the key message with higher priority, the radio frequency link in the second main channel is used for transmitting the key message with lower priority, and the radio frequency link in the secondary channel is used for transmitting the non-key message, part or all of the key message; wherein the quality fraction of the first primary channel is greater than the quality fraction of the second primary channel.
7. The message transmission method according to claim 1, further comprising:
judging whether channel switching is needed according to the channel information of the primary channel and the channel information of the secondary channel;
and if so, executing channel switching between the primary channel and the secondary channel.
8. The message transmission method according to claim 7, wherein the determining whether channel switching is required according to the channel information of the primary channel and the channel information of the secondary channel includes:
calculating a score difference between the quality score of the primary channel and the quality score of the secondary channel;
if the score difference is greater than or equal to a first preset value, judging that channel switching is needed;
and if the fraction difference is smaller than the first preset value, judging that channel switching is not needed.
9. The message transmission method according to claim 7, wherein the determining whether channel switching is required according to the channel information of the primary channel and the channel information of the secondary channel comprises:
calculating a utilization difference between the channel utilization of the primary channel and the channel utilization of the secondary channel;
if the utilization rate difference is greater than or equal to a second preset value, judging that channel switching is needed;
and if the utilization rate difference is smaller than the second preset value, judging that channel switching is not needed.
10. The message transmission method according to claim 1, wherein the link in the secondary channel is further configured to transmit a portion of the critical message, and accordingly, the method further comprises:
and adjusting the proportion of the link in the secondary channel for transmitting the key message according to the channel information of the primary channel.
11. The message transmission method according to claim 10, wherein the adjusting the proportion of the link in the secondary channel for transmitting the key message according to the channel information of the primary channel comprises:
and adjusting the proportion of the key messages transmitted by the links in the secondary channels by adopting an exponential adjustment mode according to the quality fraction of the primary channel.
12. The message transmission method according to claim 10, wherein the adjusting the proportion of the link in the secondary channel for transmitting the key message according to the channel information of the primary channel comprises:
and adjusting the proportion of the key messages transmitted by the links in the secondary channel by adopting an index adjustment mode according to the retransmission rate of the primary channel.
13. The message transmission method according to any of claims 1 to 12, wherein the radio multimedia preemption parameters for critical messages are higher than those for non-critical messages.
14. The packet transmission method according to claim 13, wherein the wireless multimedia preemption parameters include a maximum value of a contention window, a minimum value of a contention window, a number of timeslots and a contention transmission opportunity, the maximum value of the contention window for the critical packet is smaller than the maximum value of the contention window for the non-critical packet, the minimum value of the contention window for the critical packet is smaller than the minimum value of the contention window for the non-critical packet, the number of timeslots for the critical packet is smaller than the number of timeslots for the non-critical packet, and the contention transmission opportunity for the critical packet is greater than the contention transmission opportunity for the non-critical packet.
15. A message transmission apparatus, applied to a wireless access client, the apparatus comprising:
the acquisition module is used for acquiring channel information of a plurality of channels between the wireless access client and the wireless access point and calculating the quality scores of the plurality of channels according to the channel information of the plurality of channels;
a determining module, configured to determine at least one primary channel and at least one secondary channel in the plurality of channels according to quality scores of the plurality of channels, where a quality score of the at least one primary channel is higher than a quality score of the at least one secondary channel;
an establishing module, configured to establish radio frequency links in the at least one primary channel and the at least one secondary channel, respectively;
and the transmission module is used for transmitting a predefined key message by using the radio frequency link in the main channel and transmitting a non-key message by using the radio frequency link in the secondary channel.
16. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the message transmission method according to any one of claims 1 to 14 when executing the computer program.
17. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the message transmission method according to any one of claims 1 to 14.
CN202211717801.0A 2022-12-29 2022-12-29 Message transmission method and device, electronic equipment and storage medium Pending CN115835290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211717801.0A CN115835290A (en) 2022-12-29 2022-12-29 Message transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211717801.0A CN115835290A (en) 2022-12-29 2022-12-29 Message transmission method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115835290A true CN115835290A (en) 2023-03-21

Family

ID=85519472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211717801.0A Pending CN115835290A (en) 2022-12-29 2022-12-29 Message transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115835290A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033585A (en) * 2023-03-24 2023-04-28 深圳开鸿数字产业发展有限公司 Data transmission method, device, communication equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033585A (en) * 2023-03-24 2023-04-28 深圳开鸿数字产业发展有限公司 Data transmission method, device, communication equipment and storage medium

Similar Documents

Publication Publication Date Title
RU2718958C1 (en) Advanced control of acs in multi-user edca mode in wireless network
US11582162B2 (en) QoS management for multi-user and single user EDCA transmission mode in wireless networks
RU2569569C2 (en) Backoff method and device used for wireless communication system
JP5182965B2 (en) Method and apparatus for media access in a contention network
US7974302B2 (en) Hybrid implicit token carrier sensing multiple access/collision avoidance protocol
US9807792B2 (en) Method and apparatus for accessing channel
JP5182964B2 (en) Device for media access in contention network
CN109714807B (en) Cognitive radio network access method based on common control channel
US7616612B2 (en) Media access control apparatus and method for guaranteeing quality of service in wireless LAN
US7522630B2 (en) Unified channel access for supporting quality of service (QoS) in a local area network
JP5677280B2 (en) Wireless communication apparatus and wireless communication method
EP1819105B1 (en) Wireless communication device and wireless communication method
US8553658B2 (en) Method and apparatus for transmitting data over wireless LAN mesh network
US20050025131A1 (en) Medium access control in wireless local area network
US9125086B2 (en) Wireless LAN communication device, wireless LAN communication method and program
WO2016072908A1 (en) Dynamic listen before talk in license-assisted access
WO2012028035A1 (en) Resource contention method and site
CN113875272A (en) Real-time applications
JP2001237839A (en) Wireless packet priority control method
JP2023537151A (en) Channel contention method and related equipment
JP2022542460A (en) RTA queue management in wireless local area network (WLAN) stations
JP2022539407A (en) Reserving Future Channel Time in Wireless Local Area Networks
CN115835290A (en) Message transmission method and device, electronic equipment and storage medium
WO2018107370A1 (en) Point to multi-point channel allocation method, apparatus, and system
JP5376673B2 (en) Device for media access in contention network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination