Aggregated message sending method and device and network equipment
By considering packet loss rate, physical layer wireless rate, and maximum transmission duration in the aggregated message transmission method, the problem of insufficient throughput in the prior art is solved, and more efficient throughput and channel resource utilization are achieved.
Patent Information
- Application Number
- CN202410905810.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-11-05
AI Technical Summary
Existing methods for sending aggregated messages only consider packet loss rate and physical layer radio rate when calculating throughput, which prevents the achievement of optimal throughput and may result in wasted channel resources and insufficient throughput.
When calculating throughput, packet loss rate, physical layer wireless rate, and maximum transmission duration of aggregated packets are considered. By obtaining the parameters corresponding to different combinations, the combination with the highest throughput is selected for sending aggregated packets.
It improves the accuracy of throughput calculation, ensuring better throughput when actually sending aggregated messages, reducing packet loss events, and improving channel resource utilization efficiency.
Smart Images

Figure CN118900160A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a method, apparatus, network device and computer-readable storage medium for sending aggregated messages. Background Art
[0002] Throughput refers to the amount of data transmitted through the network per unit time, which can reflect the transmission capacity of the network. In computer networks, the number of spatial streams (NSS), modulation and coding scheme (MCS), and bandwidth (BW) are usually combined as a combination, and the packet loss rate (PER) and physical layer wireless rate (phyrate) under different combinations are maintained. Since both PER and phyrate affect throughput, the throughput corresponding to PER and phyrate under different combinations is usually different.
[0003] When an aggregate message needs to be sent, the sender (transmit, Tx) selects a phyrate corresponding to the maximum throughput from the PERs and phyrates corresponding to different combinations, and uses the selected phyrate to send the aggregate message.
[0004] However, when the above method is used to send aggregated messages, the optimal throughput may still not be obtained.
[0005] Therefore, it is necessary to provide a new method for sending aggregated messages to solve the above technical problems. Summary of the invention
[0006] The embodiments of the present application provide a method, an apparatus, a network device, and a computer-readable storage medium for sending aggregated messages, which can solve the problem that the throughput of existing aggregated messages is still relatively low when being sent.
[0007] In a first aspect, an embodiment of the present application provides a method for sending an aggregated message, which is applied to a sending end. The method for sending an aggregated message includes:
[0008] When a transmission requirement of an aggregated message is detected, parameters corresponding to different target combinations are obtained, wherein the target combination is a combination corresponding to the number of spatial streams, modulation and coding strategy, and bandwidth, and the parameters include: packet loss rate, physical layer wireless rate, and maximum transmission duration of the aggregated message;
[0009] Determine the throughput corresponding to the different target combinations according to the parameters;
[0010] The aggregated message to be sent is sent according to the target combination corresponding to the maximum throughput and the corresponding parameters.
[0011] In a second aspect, an embodiment of the present application provides an aggregate message sending device, which is applied to a sending end, and the aggregate message sending device includes:
[0012] A parameter acquisition module, used to acquire parameters corresponding to different target combinations when a transmission requirement of an aggregate message is detected, wherein the target combination is a combination corresponding to the number of spatial streams, modulation and coding strategy, and bandwidth, and the parameters include: packet loss rate, physical layer wireless rate, and maximum transmission duration of the aggregate message;
[0013] A throughput calculation module, used to determine the throughput corresponding to the different target combinations according to the parameters;
[0014] The aggregate message sending module is used to send the aggregate message to be sent according to the target combination corresponding to the maximum throughput and the corresponding parameters.
[0015] In a third aspect, an embodiment of the present application provides a network device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a network device, enables the network device to execute the method described in the first aspect above.
[0018] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0019] In the embodiment of the present application, since not only the packet loss rate and the physical layer wireless rate are taken into account when calculating the throughput, the maximum transmission time of the aggregated message is also taken into account, and the maximum transmission time of the aggregated message will affect the transmission efficiency, that is, the maximum transmission time of the aggregated message will affect the throughput. Therefore, calculating the throughput based on the packet loss rate, the physical layer wireless rate and the maximum transmission time of the aggregated message can improve the calculated throughput more accurately, so that when the aggregated message to be sent is subsequently sent according to the target combination and corresponding parameters corresponding to the more accurate maximum throughput, it is beneficial for the sending end to have a better throughput. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0021] Figure 1 It is a flowchart of a method for sending an aggregated message provided in one embodiment of the present application;
[0022] Figure 2 It is a structural diagram of an aggregate message sending device provided in one embodiment of the present application;
[0023] Figure 3 It is a structural diagram of a network device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0025] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0026] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0027] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
[0028] Currently, before sending an aggregate message to a receiver (receive, Rx), a sender usually selects a phyrate corresponding to a maximum throughput as a physical layer wireless rate of the sender, and sends the aggregate message to the receiver at the selected phyrate.
[0029] Before determining the maximum throughput, you need to obtain the PER and phyrate of different combinations, and calculate the throughput of the corresponding combination based on the obtained PER and phyrate, such as using the formula (1-PER)*phyrate to determine the throughput. After obtaining the throughput corresponding to each combination, the maximum throughput is determined by comparing the throughputs.
[0030] When determining the throughput based on PER and phyrate, since only PER and phyrate are considered, the optimal throughput may not be obtained when data is transmitted according to the phyrate determined in the above manner. This is because the throughput is related to the maximum transmission time of the aggregated message in addition to PER and phyrate.
[0031] When the maximum transmission duration of the aggregate message is greater than the channel coherence time, data frames may be sent outside the channel coherence time, and the phase and amplitude of the signal corresponding to the data frame sent outside the channel coherence time may be unstable. Therefore, when the transmission duration corresponding to the aggregate frame in the aggregate message (the aggregate frame is a data frame obtained by aggregating multiple subframes) is greater than the channel coherence time, packet loss events are likely to occur, such as causing all subframes in the aggregate frame to be lost starting from a certain position. That is, when sending an aggregate message, if you always try to send the aggregate message with the maximum transmission duration allowed by the protocol (such as the 802.11 protocol), packet loss events are likely to occur. At this time, in order to increase the probability of the receiving end receiving the aggregate message, Tx needs to retransmit or even reduce the phyrate, resulting in a waste of channel resources, which in turn causes the wireless throughput to not reach the optimal throughput.
[0032] In order to enable the sender to have the best throughput when sending aggregated messages, an embodiment of the present application provides an aggregated message sending method. In this method, when calculating the throughput, in addition to considering PER and phyrate, the maximum transmission duration of the aggregated message is also considered, so that the calculated throughput is more accurate, which is conducive to having a better throughput when actually sending the aggregated message.
[0033] The following describes the method for sending aggregated messages provided in an embodiment of the present application in conjunction with the accompanying drawings.
[0034] Figure 1The flowchart of a method for sending an aggregated message provided by an embodiment of the present application is shown. The method for sending an aggregated message is applied to a sending end, which refers to a device end for sending an aggregated message. For example, when a STA sends an aggregated message to an access point (AP), the STA is the above-mentioned sending end. STA is the abbreviation of Station, which is a terminal station device in a wireless network. The details are as follows:
[0035] S11, when the demand for sending an aggregated message is detected, parameters corresponding to different target combinations are obtained, wherein the target combination is a combination corresponding to the number of spatial streams NSS, the modulation and coding strategy MCS, and the bandwidth BW, and the parameters include: packet loss rate PER, physical layer wireless rate phyrate, and maximum transmission time of the aggregated message.
[0036] Among them, the aggregate message here is obtained by encapsulating the aggregate frame. The aggregate frame here includes multiple subframes, each subframe is a data frame. Optionally, the subframe may be a MAC protocol data unit (MAC Protocol Data Unit, MPDU) frame, and the MPDU frame is a frame delivered by the MAC layer to the physical layer in the 802.11 protocol. Multiple MPDUs are aggregated to obtain an aggregate MAC protocol data unit (Aggregate MAC Protocol Data Unit, A-MPDU). When the aggregate frame is A-MPDU, the corresponding aggregate message may be a protocol data unit (PLCP Protocol Data Unit, PPDU), and all wifi wireless frames belong to PPDU.
[0037] The maximum transmission duration of the aggregate message is determined according to the duration required to transmit the maximum number of subframes at a time. Generally speaking, the longer the maximum transmission duration of the aggregate message is, the more subframes of the aggregate frame that can be transmitted at a time are.
[0038] In the embodiment of the present application, the parameters corresponding to different target combinations are maintained. Generally, the parameters corresponding to different target combinations (each target combination is obtained by combining the three combination parameters of NSS, MCS and B2) (i.e., PER, phyrate and maximum transmission duration) are all different. For example, assuming that the number of target combinations is 5, the 5 groups of parameters maintained can be shown in Table 1.
[0039] Table 1:
[0040]
[0041] In Table 1 above, NSS1, NSS2, NSS3, and NSS4 represent different NSS values, respectively; MCS1, MCS2, MCS3, and MCS4 represent different MCS values, respectively; BW1, BW2, and BW3 represent different BW values, respectively; and the characters corresponding to the maximum transmission duration are similar to these and will not be repeated here.
[0042] It should be pointed out that, in any two target combinations, there is at least one different combination parameter, that is, there may be a case where one combination parameter is the same (such as the two target combinations (NSS1\MCS1\BW1) and (NSS4\MCS4\BW1)), or there may be two identical combination parameters (such as the two target combinations (NSS1\MCS1\BW1) and (NSS1\MCS2\BW1)), which is not limited here.
[0043] Since the parameters corresponding to different target combinations are maintained in advance, when the demand for sending an aggregate message is detected, the parameters corresponding to each target combination can be quickly acquired.
[0044] Optionally, whether a demand for sending an aggregated message is detected may be determined in the following manner:
[0045] When it is detected that the preset time has arrived, it is determined that a demand for sending the aggregated message has been detected;
[0046] In the case where it is detected that an instruction to send the aggregated message is received, it is determined that a requirement to send the aggregated message is detected.
[0047] Of course, in actual situations, other methods can be used for judgment, which are not listed here one by one.
[0048] S12, determining the throughput corresponding to the above different target combinations according to the above parameters.
[0049] Specifically, the throughput corresponding to each target combination is calculated according to the parameters corresponding to the target combination. For example, referring to Table 1, for target combination 1 (NSS1\MCS1\BW1), the throughput corresponding to the target combination 1 is calculated according to PER1, phyrate1 and T1.
[0050] Optionally, considering that the larger the PER, the smaller the throughput; the larger the phyrate, the larger the throughput, and the longer the maximum transmission time of the aggregated message, the higher the transmission efficiency is generally, therefore, the PER and the throughput may be set to be negatively correlated, while the phyrate and the maximum transmission time of the aggregated message may be set to be positively correlated with the throughput.
[0051] Optionally, considering that the transmission efficiency of the Media Access Control (MAC) layer (assuming that MAC efficiency is used) will be affected by the maximum transmission time of the aggregated message, for example, when the maximum transmission time of the aggregated message is too short, the MAC efficiency is relatively low, and more time is required on the physical layer frame header and the contention channel, which in turn causes the actual throughput to be reduced, that is, the impact of MAC efficiency on throughput is more intuitive. Therefore, the MAC efficiency can be calculated based on the maximum transmission time of the aggregated message, and then the throughput can be calculated based on the MAC efficiency, PER and phyrate. At this time, the throughput is negatively correlated with the PER, and positively correlated with the MAC efficiency and phyrate. For example, the throughput can be calculated using the following formula:
[0052] (1-PER)*phyrate*MAC_efficiency;
[0053] MAC_efficiency=(ppdu_dur–preamble_dur) / (ppdu_dur+SIFS+BA+SIFS)=(ppdu_dur–preamble_dur) / (ppdu_dur+2*SIFS+BA).
[0054] In the above formula, MAC_efficiency represents MAC efficiency.
[0055] Among them, ppdu_dur is the maximum transmission duration of the aggregated message, and preamble_dur is the length of the physical layer frame header, which can be determined according to the 802.11 protocol.
[0056] The short interframe space (SIFS) is determined according to the 802.11 protocol.
[0057] BA is the length of the blockack frame, which can be estimated according to the 802.11 protocol.
[0058] S13: Send the aggregated message to be sent according to the target combination corresponding to the maximum throughput and the corresponding parameters.
[0059] After obtaining the throughput corresponding to each target combination, the obtained throughputs are compared to determine the maximum throughput among the throughputs. When sending the aggregate message to be sent, the aggregate message will be sent according to the parameters corresponding to the target combination where the maximum throughput is located.
[0060] In the embodiment of the present application, since not only the packet loss rate and the physical layer wireless rate are taken into account when calculating the throughput, the maximum transmission time of the aggregated message is also taken into account, and the maximum transmission time of the aggregated message will affect the transmission efficiency, that is, the maximum transmission time of the aggregated message will affect the throughput. Therefore, calculating the throughput based on the packet loss rate, the physical layer wireless rate and the maximum transmission time of the aggregated message can improve the calculated throughput more accurately, so that when the aggregated message to be sent is subsequently sent according to the target combination and corresponding parameters corresponding to the more accurate maximum throughput, it is beneficial for the sending end to have a better throughput.
[0061] In some embodiments, considering that in some scenarios, the channel coherence time corresponding to the transmitter and the receiver may change, for example, in a high-speed motion scenario (such as a transmitter installed on a rail vehicle, transmitting data back to a receiver next to the track during motion), the channel coherence time may become shorter. At this time, in order to reduce PER, it is necessary to reduce the maximum transmission time of the aggregate message that matches the channel coherence time before the shortening, so that the maximum transmission time of the reduced aggregate message matches the shortened channel coherence time. That is, in order to improve the accuracy of the maximum transmission time of the maintained aggregate message, before the above S11, it also includes:
[0062] A1. For any of the above target combinations, detect whether the aggregated frame sent by the above sending end to the receiving end loses the last subframe sequence for K consecutive times under the parameters corresponding to the above target combination, and obtain a detection result, wherein the above aggregated frame is the above aggregated message before encapsulation, the above aggregated frame includes N subframes, the above last subframe sequence includes each subframe from the Mth subframe to the Nth subframe in the above aggregated frame, M and N are natural numbers greater than or equal to 1, and M is less than or equal to (N-1), and K is a natural number greater than or equal to 1.
[0063] Specifically, since M is less than or equal to (N-1), it indicates that the number of subframes included in the last subframe sequence (i.e., each subframe from the Mth subframe to the Nth subframe) is greater than 1, that is, the number of subframes included in the last subframe sequence is greater than or equal to 2.
[0064] In an embodiment of the present application, the transmitting end may detect whether all packets of the last subframe sequence in the aggregated frame are lost according to the block acknowledgment (block ACK) fed back by the receiving end. Specifically, after the transmitting end sends the aggregated frame to the receiving end, the receiving end will feed back a block ACK to the transmitting end, and the block ACK includes information indicating whether each subframe is correctly received. For example, assuming that the three subframe MPDUs included in the aggregated frame A-MPDU are numbered as "1", "2", and "3" respectively, and T is pre-set to indicate that the subframe is correctly received, and F indicates that the subframe is lost. If the information recorded in the block ACK is "1-T", "2-F", "3-F", it means that the MPDU numbered "1" is received correctly, while the MPDUs numbered "2" and "3" are lost. Since the lost subframes are MPDUs numbered "2" and "3", and the A-MPDU includes 3 subframes, that is, the 2nd to 3rd subframes of the A-MPDU are all lost, that is, according to the block ACK, it can be determined that the A-MPDU has lost the last subframe sequence once.
[0065] Of course, the transmitting end may also obtain the corresponding detection result according to the information sent by the third party including whether all packets of the last subframe sequence are lost, which will not be described in detail here.
[0066] It should be pointed out that the end subframe sequence in the embodiment of the present application refers to the subframes starting from a certain subframe in the aggregated frame to the last subframe of the aggregated frame, and any two adjacent subframes in these end subframe sequences are also adjacent in the aggregated frame. For example, assume that the information recorded in the block ACK is "1-T", "2-F", "3-T", "4-F", that is, the MPDUs numbered "1" and "3" are received correctly, while the MPDUs numbered "2" and "4" are lost. In the above-mentioned A-MPDU, the longest end subframe sequence includes the subframes numbered "2", "3" and "4". Since the MPDUs numbered "2" and "4" are not consecutive subframes, in the above-mentioned case, the A-MPDU does not lose the end subframe sequence.
[0067] It should be noted that when the aggregated frame loses the last subframe sequence for K consecutive times, and K is greater than 1, the last subframe sequence lost each time is not necessarily the same. For example, assuming K=3, the last subframe sequence lost for the first time may be the second-to-last frame and the first-to-last frame, the last subframe sequence lost for the second time may be the third-to-last frame, the second-to-last frame, and the first-to-last frame, and the last subframe sequence lost for the third time may be the second-to-last frame and the first-to-last frame.
[0068] A2. Select whether to adjust the maximum transmission duration of the above-mentioned aggregate message corresponding to the above-mentioned target combination according to the above-mentioned detection result.
[0069] In an embodiment of the present application, when the detection result reflects that the packet loss rate corresponding to a certain target combination is larger or smaller, it may indicate that the maximum transmission duration of the aggregate message does not match the channel coherence duration. At this time, you can choose to adjust the maximum transmission duration of the aggregate message corresponding to the target combination; conversely, when the detection result reflects that the packet loss rate corresponding to a certain target combination changes little and the packet loss rate is acceptable, you can choose not to adjust the maximum transmission duration of the aggregate message corresponding to the target combination.
[0070] The adjusting the maximum transmission time of the aggregated message includes increasing the maximum transmission time of the aggregated message or decreasing the maximum transmission time of the aggregated message.
[0071] Optionally, considering that the aggregate message includes necessary information, the adjusted maximum transmission duration of the aggregate message needs to be greater than the first preset duration, which is determined according to the duration required to send the necessary information. In addition, different protocols usually specify frame length limits in various physical layer modes, and wireless drivers provided by various chip manufacturers usually also limit frame lengths. Therefore, the adjusted transmission duration needs to be less than the second preset duration.
[0072] For example, assuming that the aggregated message is PPDU, since PPDU needs to contain at least a frame header and a 1500-byte Ethernet frame, the first preset duration is the duration corresponding to transmitting the frame header and a 1500-byte Ethernet frame. The second preset duration is determined according to the frame length limited by the protocol and the chip manufacturer, which will not be described here.
[0073] When the aggregated frame loses the last subframe sequence K times in a row, it indicates that there may be a rapid channel change (such as a shortened channel coherence time), and when the aggregated frame does not lose the last subframe sequence K times in a row (such as only partial packet loss), it indicates that there may be interference or a reduction in the signal-to-noise ratio. That is, whether the aggregated frame loses the last subframe sequence K times in a row reflects that the transmitter is in different scenarios. Therefore, choosing whether to adjust the maximum transmission duration of the aggregated message according to the detection result of whether the aggregated frame loses the last subframe sequence K times in a row is beneficial to improving the adaptability of the adjusted maximum transmission duration to the current scenario of the transmitter, thereby helping to improve the throughput of the transmitter.
[0074] Optionally, considering that after the maximum transmission time of the aggregated message is adjusted, the corresponding packet loss rate and the physical layer wireless rate will usually also change, therefore, after the maximum transmission time of the aggregated message corresponding to a certain target combination is adjusted, the new PER and the new phyrate can be estimated based on the adjusted maximum transmission time, and the new PER and the new phyrate are used to replace the original PER and the original phyrate under the target combination, so as to improve the accuracy of the parameters corresponding to the recorded target combination.
[0075] In some embodiments, the above A2 includes:
[0076] A21. When the detection result indicates that the aggregate frame loses the tail subframe sequence K times in succession, reduce the maximum transmission duration of the aggregate message corresponding to the target combination.
[0077] Specifically, when the aggregated frame loses the last subframe sequence for K consecutive times, it indicates that the channel coherence time may become shorter (because when the channel coherence time becomes shorter, all subframes sent beyond the channel coherence time are prone to loss, and if the subframe loss is caused by interference, the lost subframes are random, that is, the last subframes are usually not all lost). At this time, reducing the maximum transmission time of the aggregated message can reduce the number of subframes sent beyond the channel coherence time, which is beneficial to reducing PER, and then to improving the throughput of the sending end.
[0078] Optionally, the maximum transmission duration of the aggregated message corresponding to the target combination is reduced by:
[0079] Reduce the maximum transmission duration of the above-mentioned aggregate message corresponding to the above-mentioned target combination according to a preset fixed adjustment value; or, determine a dynamic adjustment value according to the number of subframes included in the K above-mentioned last subframe sequences, and reduce the maximum transmission duration of the above-mentioned aggregate message corresponding to the above-mentioned target combination according to the above-mentioned dynamic adjustment value.
[0080] The fixed adjustment value is determined based on experience, for example, it can be determined as 50 microseconds (us). Of course, it can also be set to other values, which are not limited here.
[0081] Among them, when K is greater than 1, the dynamic adjustment value can be determined according to the maximum value of the number of subframes included in the K last subframe sequences, or the dynamic adjustment value can be determined according to the minimum value of the number of subframes included in the K last subframe sequences, or the dynamic adjustment value can be determined according to the average value of the number of subframes included in the K last subframe sequences.
[0082] For example, assuming that K=3, the number of subframes included in the first end subframe sequence is 2, the number of subframes included in the second end subframe sequence is 3, and the number of subframes included in the third end subframe sequence is 4. If the dynamic adjustment value is determined based on the maximum value of the number of subframes included in the K end subframe sequences, the dynamic adjustment value is determined based on "4".
[0083] Optionally, the dynamic adjustment value is positively correlated with the number of subframes involved in the determination. For example, if the dynamic adjustment value is determined according to the maximum value of the number of subframes included in the K last subframe sequences, the larger the maximum value, the larger the dynamic adjustment value, and vice versa.
[0084] In an embodiment of the present application, when a fixed adjustment value (or a dynamic adjustment value) is used to reduce the maximum transmission time of an aggregate message, if it is determined that the maximum transmission time needs to be reduced, the currently recorded maximum transmission time is subtracted from the preset fixed adjustment value (or dynamic adjustment value), and the difference is used as the new maximum transmission time of the aggregate message and recorded.
[0085] A22. When the detection result indicates that the aggregate frame has not lost the tail subframe sequence for K consecutive times, increase the maximum transmission duration of the aggregate message corresponding to the target combination.
[0086] Specifically, when the aggregated frame does not lose the last subframe sequence for K consecutive times, it indicates that the probability that the time of sending the subframe exceeds the channel coherence time is low. At this time, increasing the maximum transmission time of the aggregated message is beneficial to improving transmission efficiency, thereby helping to improve the throughput of the sending end.
[0087] Optionally, the maximum transmission duration of the aggregated message corresponding to the target combination is increased by:
[0088] Increase the maximum transmission duration of the above-mentioned aggregate message corresponding to the above-mentioned target combination according to a preset fixed adjustment value; or, determine a dynamic adjustment value according to the number of subframes included in the K above-mentioned last subframe sequences, and increase the maximum transmission duration of the above-mentioned aggregate message corresponding to the above-mentioned target combination according to the above-mentioned dynamic adjustment value.
[0089] In an embodiment of the present application, the maximum transmission time of the current aggregate message is recorded. When it is determined that the maximum transmission time needs to be increased, the recorded maximum transmission time is added to a preset fixed adjustment value (or dynamic adjustment value), and the sum is used as the new maximum transmission time of the aggregate message and recorded.
[0090] In the embodiment of the present application, the maximum transmission duration of the aggregate message is reduced or increased according to different detection results, that is, the maximum transmission duration of the aggregate message is dynamically adjusted according to the current scene of the sender, so it is helpful to obtain a more accurate maximum transmission duration of the aggregate message in time. In addition, since the maximum transmission duration of the current aggregate message is gradually approached to the optimal transmission duration by iterative addition or iterative subtraction, the amount of calculation can be reduced and the code can be simplified.
[0091] In some embodiments, considering that in the case of low signal-to-noise ratio or interference, all subframes of the aggregated frame may be lost, that is, when all subframes of the aggregated frame are lost, it is difficult to determine whether the packet loss is caused by the shortening of the channel coherence time or the packet loss is caused by the low signal-to-noise ratio or interference. Therefore, in order to improve the accuracy of the subsequent adjustment of the maximum transmission duration of the aggregated message, the above A1 includes:
[0092] Detect whether the aggregated frame sent by the transmitting end to the receiving end loses the tail subframe sequence for K consecutive times under the parameters corresponding to the target combination, and detect whether there is a correctly demodulated subframe in the subframes sent to the receiving end to obtain a detection result.
[0093] In an embodiment of the present application, when determining whether an aggregate frame has lost the last subframe sequence for K consecutive times, it is also necessary to determine whether there are subframes in the aggregate frame sent to the receiving end that are correctly demodulated by the receiving end. If the aggregate frame loses the last subframe sequence for K consecutive times and there are subframes that are correctly demodulated by the receiving end, it indicates that the sending end has received the blockACK sent by the receiving end, and the signal-to-noise ratio of the aggregate frame sent by the sending end is not too low for the receiving end, then it is determined that the packet loss is caused by the shortening of the channel coherence time, and the maximum transmission duration of the aggregate message will be reduced subsequently. If the aggregate frame does not lose the last subframe sequence for K consecutive times and there are subframes that are correctly demodulated by the receiving end, then it is determined that the channel coherence time may be greater than the maximum transmission duration of the aggregate message, and the maximum transmission duration of the aggregate message can be increased subsequently.
[0094] In the embodiment of the present application, since not only is it detected whether the aggregated frame sent by the transmitting end to the receiving end loses the tail subframe sequence for K consecutive times, it is also detected whether there is a correctly demodulated subframe in the subframes sent to the above-mentioned receiving end, and these two results can improve the accuracy of the judgment result of the channel coherence time and the maximum transmission duration of the aggregated message, that is, these two results are conducive to improving the accuracy of the judgment result of whether to adjust the maximum transmission duration of the aggregated message. Therefore, the above-mentioned detection method is conducive to improving the accuracy of the maximum transmission duration of the aggregated message obtained subsequently.
[0095] In some embodiments, before sending the aggregate message to be sent, it is necessary to generate the aggregate message to be sent, that is, before the above S13, it also includes:
[0096] B1. Aggregate subframes according to the target maximum transmission duration to obtain an aggregated frame to be sent, wherein the transmission duration corresponding to the aggregated frame to be sent is less than or equal to the target maximum transmission duration, and the target maximum transmission duration is the maximum transmission duration of the aggregated message corresponding to the maximum throughput.
[0097] For example, assuming that the maximum throughput among the three throughputs calculated according to the three groups of parameters recorded in Table 1 is the throughput corresponding to the target combination of "NSS3\MCS3\BW3", the subframes are aggregated according to T3, for example, the transmission duration corresponding to each subframe is accumulated until the sum is equal to T3 or slightly less than T3 (but not greater than T3), and the subframes corresponding to the sum are aggregated to obtain the above-mentioned aggregated frame to be sent.
[0098] B2. Encapsulate the above-mentioned aggregate frame to be sent to obtain the above-mentioned aggregate message to be sent.
[0099] Encapsulating an aggregate frame means adding a frame header to form an aggregate message.
[0100] In the embodiment of the present application, since the transmission duration of the aggregate frame to be sent is less than or equal to the maximum transmission duration of the aggregate message, when the sending end sends the aggregate frame to be sent, it is rare that the subframe is sent beyond the maximum transmission duration of the aggregate message, which is beneficial to reducing PER and further beneficial to improving the throughput of the sending end.
[0101] In order to more clearly describe the situations where the maximum transmission duration of the aggregated message needs to be adjusted and where the maximum transmission duration of the aggregated message does not need to be adjusted, a description is given below with reference to specific examples.
[0102] Assume that K=3, and use PPDU to represent the maximum transmission duration of the aggregated message. The values "1", "2", "3", etc. after the PPDU represent different PPDUs. Individual values "1", "2", "3", "4", ..., "14", "15" represent the sequence numbers of the subframes. When there is a deletion line in the sequence number of the subframe, it indicates that the corresponding subframe is lost. Otherwise, it indicates that the corresponding subframe is demodulated correctly.
[0103] (1) There are three consecutive end subframe losses, and there are subframes that are correctly demodulated:
[0104] PPDU1: 1, 2, 3, 4, 5,
[0105] PPDU2: 6, 7 ,8,9,10,
[0106] PPDU3: 7, 11, 13.
[0107] In the scenario (1), there are three consecutive end subframe losses and there are subframes that are correctly demodulated. In this case, the maximum transmission time of the aggregated message will be reduced.
[0108] (2) The last subframe is not lost for three consecutive times
[0109] PPDU1: 1, 2, 3, 4, 5
[0110] PPDU2: 8, 9, 10
[0111] PPDU3: 6, 7, 11, 12, 13
[0112] In the scenario (2), there is packet loss at the beginning of PPDU2, but no packet loss at the end, that is, there is no loss of the last subframe sequence, and the last subframe is not lost for three consecutive times. At this time, the maximum transmission time of the aggregate message will be increased.
[0113] (3) A scenario that does not fall into (1) or (2) above:
[0114] PPDU1: 1, 2, 3, 4, 5,
[0115] PPDU2: 6, 7, 8, 9, 10,
[0116] PPDU3: 7, 11, 12, 13,
[0117] In this scenario, PPDU2 does not meet the situation where the last two subframes are lost. In this case, the maximum transmission duration of the aggregated message is not adjusted.
[0118] (4) Another scenario that does not fall into (1) or (2) above:
[0119] PPDU1: 1, 2, 3, 4, 5,
[0120] PPDU2: 6, 7, 8, 9,
[0121] PPDU3:
[0122] In this scenario, PPDU3 does not meet the requirement of "there are correctly demodulated subframes". In this case, the maximum transmission duration of the aggregated message is not adjusted.
[0123] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0124] Corresponding to the method for sending aggregated messages described in the above embodiment, Figure 2 A structural block diagram of an aggregated message sending device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0125] Reference Figure 2 The aggregated message sending device 2 is applied to the sending end, and includes: a parameter acquisition module 21, a throughput calculation module 22, and an aggregated message sending module 23. Among them:
[0126] The parameter acquisition module 21 is used to obtain parameters corresponding to different target combinations when the demand for sending aggregated messages is detected, wherein the above-mentioned target combination is a combination corresponding to the number of spatial streams, modulation and coding strategy, and bandwidth, and the above-mentioned parameters include: packet loss rate, physical layer wireless rate and maximum transmission time of aggregated messages.
[0127] The throughput calculation module 22 is used to determine the throughput corresponding to the above different target combinations according to the above parameters.
[0128] The aggregate message sending module 23 is used to send the aggregate message to be sent according to the target combination corresponding to the maximum throughput and the corresponding parameters.
[0129] In the embodiment of the present application, since not only the packet loss rate and the physical layer wireless rate are taken into account when calculating the throughput, the maximum transmission time of the aggregated message is also taken into account, and the maximum transmission time of the aggregated message will affect the transmission efficiency, that is, the maximum transmission time of the aggregated message will affect the throughput. Therefore, calculating the throughput based on the packet loss rate, the physical layer wireless rate and the maximum transmission time of the aggregated message can improve the calculated throughput more accurately, so that when the aggregated message to be sent is subsequently sent according to the target combination and corresponding parameters corresponding to the more accurate maximum throughput, it is beneficial for the sending end to have a better throughput.
[0130] In some embodiments, the aggregated message sending device 2 provided in the embodiment of the present application further includes:
[0131] A detection result determination module is used to detect, for any of the above target combinations, whether the aggregate frame sent by the above sending end to the receiving end loses the last subframe sequence for K consecutive times under the parameters corresponding to the above target combination before obtaining the parameters corresponding to the different target combinations, and obtain a detection result, wherein the above aggregate frame is the above aggregate message before encapsulation, the above aggregate frame includes N subframes, the above last subframe sequence includes each subframe from the Mth subframe to the Nth subframe in the above aggregate frame, M and N are natural numbers greater than or equal to 1, and M is less than or equal to (N-1), and K is a natural number greater than or equal to 1.
[0132] The maximum transmission duration adjustment module is used to select whether to adjust the maximum transmission duration of the above-mentioned aggregate message corresponding to the above-mentioned target combination according to the above-mentioned detection result.
[0133] In some embodiments, the maximum transmission duration adjustment module includes:
[0134] The maximum transmission duration reducing unit is used to reduce the maximum transmission duration of the above-mentioned aggregate message corresponding to the above-mentioned target combination when the above-mentioned detection result indicates that the above-mentioned aggregate frame has lost the tail subframe sequence for K consecutive times.
[0135] The maximum transmission duration increasing unit is used to increase the maximum transmission duration of the above-mentioned aggregate message corresponding to the above-mentioned target combination when the above-mentioned detection result indicates that the above-mentioned aggregate frame has not lost the tail subframe sequence for K consecutive times.
[0136] In some embodiments, reducing the maximum transmission duration of the aggregate message corresponding to the target combination includes:
[0137] Reducing the maximum transmission duration of the aggregate message corresponding to the target combination according to a preset fixed adjustment value;
[0138] or,
[0139] A dynamic adjustment value is determined according to the number of subframes included in the K last subframe sequences, and the maximum transmission duration of the aggregate message corresponding to the target combination is reduced according to the dynamic adjustment value.
[0140] In some embodiments, the increasing the maximum transmission duration of the aggregate message corresponding to the target combination includes:
[0141] Increasing the maximum transmission duration of the aggregate message corresponding to the target combination according to a preset fixed adjustment value;
[0142] or,
[0143] A dynamic adjustment value is determined according to the number of subframes included in the K last subframe sequences, and the maximum transmission duration of the aggregate message corresponding to the target combination is increased according to the dynamic adjustment value.
[0144] In some embodiments, the detection result determination module detects whether the aggregated frame sent by the transmitting end to the receiving end loses the tail subframe sequence for K consecutive times under the parameters corresponding to the target combination, and obtains the detection result, specifically used to:
[0145] Detect whether the aggregated frame sent by the transmitting end to the receiving end loses the tail subframe sequence for K consecutive times under the parameters corresponding to the target combination, and detect whether there is a correctly demodulated subframe in the subframes sent to the receiving end to obtain a detection result.
[0146] In some embodiments, the aggregated message sending device 2 provided in the embodiment of the present application further includes:
[0147] The module for determining the aggregated frames to be sent is used to aggregate subframes according to the target maximum transmission duration before sending the aggregated messages to be sent according to the parameters corresponding to the above-mentioned maximum throughput, so as to obtain the aggregated frames to be sent, wherein the transmission duration corresponding to the aggregated frames to be sent is less than or equal to the above-mentioned target maximum transmission duration, and the above-mentioned target maximum transmission duration is the maximum transmission duration of the aggregated messages corresponding to the above-mentioned maximum throughput.
[0148] The module for encapsulating the aggregated frame to be sent is used to encapsulate the aggregated frame to be sent to obtain the aggregated message to be sent.
[0149] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0150] Figure 3 This is a schematic diagram of the structure of a network device provided in an embodiment of the present application. Figure 3 As shown, the network device 3 of this embodiment includes: at least one processor 30 ( Figure 3 Only one processor is shown in the figure), a memory 31, and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, wherein the processor 30 implements the steps in any of the above-mentioned method embodiments when executing the computer program 32.
[0151] The network device 3 may be a computing device such as a router, a switch, a desktop computer, a notebook, a PDA, or a cloud server. The network device may include, but is not limited to, a processor 30 and a memory 31. Those skilled in the art will appreciate that Figure 3It is only an example of the network device 3 and does not constitute a limitation on the network device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0152] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0153] In some embodiments, the memory 31 may be an internal storage unit of the network device 3, such as a hard disk or memory of the network device 3. In other embodiments, the memory 31 may also be an external storage device of the network device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the network device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the network device 3. The memory 31 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 31 may also be used to temporarily store data that has been output or is to be output.
[0154] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0155] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0156] An embodiment of the present application provides a computer program product. When the computer program product runs on a network device, the network device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0157] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / network device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, RandomAccess Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0158] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0159] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0160] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0161] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0162] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for sending an aggregated message, characterized in that: Applied to the sending end, the aggregate message sending method includes: When a transmission requirement of an aggregated message is detected, parameters corresponding to different target combinations are obtained, wherein the target combination is a combination corresponding to the number of spatial streams, modulation and coding strategy, and bandwidth, and the parameters include: packet loss rate, physical layer wireless rate, and maximum transmission duration of the aggregated message; Determine the throughput corresponding to the different target combinations according to the parameters; The aggregated message to be sent is sent according to the target combination corresponding to the maximum throughput and the corresponding parameters.
2. The method for sending aggregated messages according to claim 1, characterized in that: Before obtaining the parameters corresponding to different target combinations, the method further includes: For any of the target combinations, detect whether the aggregated frame sent by the sender to the receiver loses the last subframe sequence for K consecutive times under the parameters corresponding to the target combination, and obtain a detection result, wherein the aggregated frame is the aggregated message before encapsulation, the aggregated frame includes N subframes, and the last subframe sequence includes each subframe from the Mth subframe to the Nth subframe in the aggregated frame, M and N are natural numbers greater than or equal to 1, and M is less than or equal to (N-1), and K is a natural number greater than or equal to 1; Whether to adjust the maximum transmission duration of the aggregate message corresponding to the target combination is selected according to the detection result.
3. The method for sending aggregated messages according to claim 2, characterized in that: The selecting, according to the detection result, whether to adjust the maximum transmission duration of the aggregate message corresponding to the target combination includes: When the detection result indicates that the aggregate frame has lost the tail subframe sequence K times in succession, reducing the maximum transmission duration of the aggregate message corresponding to the target combination; When the detection result indicates that the aggregate frame has not lost the tail subframe sequence for K consecutive times, the maximum transmission duration of the aggregate message corresponding to the target combination is increased.
4. The method for sending aggregated messages according to claim 3, characterized in that: The reducing the maximum transmission duration of the aggregated message corresponding to the target combination includes: Reducing the maximum transmission duration of the aggregated message corresponding to the target combination according to a preset fixed adjustment value; or, A dynamic adjustment value is determined according to the number of subframes included in the K tail subframe sequences, and a maximum transmission duration of the aggregate message corresponding to the target combination is reduced according to the dynamic adjustment value.
5. The method for sending aggregated messages according to claim 3, characterized in that: The increasing the maximum transmission duration of the aggregated message corresponding to the target combination includes: Increasing the maximum transmission duration of the aggregated message corresponding to the target combination according to a preset fixed adjustment value; or, A dynamic adjustment value is determined according to the number of subframes included in the K tail subframe sequences, and the maximum transmission duration of the aggregate message corresponding to the target combination is increased according to the dynamic adjustment value.
6. The method for sending aggregated messages according to claim 2, wherein: The detecting, under the parameters corresponding to the target combination, whether the aggregated frame sent by the transmitting end to the receiving end loses the tail subframe sequence for K consecutive times, and obtaining the detection result includes: Detect whether the aggregated frame sent by the transmitting end to the receiving end loses the tail subframe sequence for K consecutive times under the parameters corresponding to the target combination, and detect whether there is a correctly demodulated subframe in the subframes sent to the receiving end to obtain a detection result.
7. The method for sending an aggregated message according to any one of claims 1 to 6, characterized in that: Before sending the aggregate message to be sent according to the target combination corresponding to the maximum throughput and the corresponding parameters, the method further includes: Aggregate subframes according to the target maximum transmission duration to obtain an aggregate frame to be sent, wherein the transmission duration corresponding to the aggregate frame to be sent is less than or equal to the target maximum transmission duration, and the target maximum transmission duration is the maximum transmission duration of the aggregate message corresponding to the maximum throughput; The aggregate frame to be sent is encapsulated to obtain the aggregate message to be sent.
8. A device for sending aggregated messages, characterized in that: Applied to the sending end, the aggregated message sending device includes: A parameter acquisition module, used to acquire parameters corresponding to different target combinations when a transmission requirement of an aggregate message is detected, wherein the target combination is a combination corresponding to the number of spatial streams, modulation and coding strategy, and bandwidth, and the parameters include: packet loss rate, physical layer wireless rate, and maximum transmission duration of the aggregate message; A throughput calculation module, used to determine the throughput corresponding to the different target combinations according to the parameters; The aggregate message sending module is used to send the aggregate message to be sent according to the target combination corresponding to the maximum throughput and the corresponding parameters.
9. A network device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
