CN115567987A - Data transmission method, device, equipment and medium - Google Patents
Data transmission method, device, equipment and medium Download PDFInfo
- Publication number
- CN115567987A CN115567987A CN202211104018.7A CN202211104018A CN115567987A CN 115567987 A CN115567987 A CN 115567987A CN 202211104018 A CN202211104018 A CN 202211104018A CN 115567987 A CN115567987 A CN 115567987A
- Authority
- CN
- China
- Prior art keywords
- data block
- service data
- service
- contention window
- cwmax
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 55
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000010586 diagram Methods 0.000 description 12
- 238000004590 computer program Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/18—Negotiating wireless communication parameters
- H04W28/22—Negotiating communication rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/18—Negotiating wireless communication parameters
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本公开涉及一种数据传输方法、装置、设备及介质,该方法包括:基于需要发送的业务数据块的大小和有效发送速率,确定发送时间,其中所述有效发送速率是基于实际发送速率和设定的有效发送速率系数确定的;根据确定的所述发送时间与设定的偏差系数,确定所述业务数据块对应的发送机会限制TXOP Limit;根据所述业务数据块的最小竞争窗口CWmin、最大竞争窗口CWmax以及仲裁帧间间隔AIFSN,抢占目标信道;基于所述TXOP Limit,通过抢占的所述目标信道发送所述业务数据块包括的业务报文。本公开能够降低现有基于WIFI的数据传输的延时。
The present disclosure relates to a data transmission method, device, equipment and medium, the method includes: determining the sending time based on the size of the service data block to be sent and the effective sending rate, wherein the effective sending rate is based on the actual sending rate and the set Determined by the specified effective transmission rate coefficient; according to the determined transmission time and the set deviation coefficient, determine the transmission opportunity limit TXOP Limit corresponding to the service data block; according to the minimum contention window CWmin, maximum The contention window CWmax and the inter-arbitration frame interval AIFSN preempt the target channel; based on the TXOP Limit, send the service message included in the service data block through the preempted target channel. The present disclosure can reduce the delay of existing WIFI-based data transmission.
Description
技术领域technical field
本公开涉及通信技术领域,尤其涉及一种数据传输方法、装置、设备及介质。The present disclosure relates to the field of communication technologies, and in particular, to a data transmission method, device, equipment and medium.
背景技术Background technique
在基于WIFI(无线网络通信技术)的音视频传输过程中,音视频一般采用IEEE802.11e协议。IEEE 802.11e协议定义的EDCA(Enhanced Distributed Channel Access,增强分布式信道访问)指定了四种访问类型(Access Category,AC),每一种类型对应一类数据。每一个访问类别配置了TXOP(Transmission Opportunity,发送机会)参数:CWmin(最小竞争窗口)、CWmax(最大竞争窗口)、TXOP Limit(Transmission Opportunity Limit,发送机会限制)和AIFS(仲裁帧间间隔)。In the audio and video transmission process based on WIFI (wireless network communication technology), the audio and video generally adopt the IEEE802.11e protocol. EDCA (Enhanced Distributed Channel Access) defined by the IEEE 802.11e protocol specifies four types of access (Access Category, AC), and each type corresponds to a type of data. Each access category is configured with TXOP (Transmission Opportunity, sending opportunity) parameters: CWmin (minimum contention window), CWmax (maximum contention window), TXOP Limit (Transmission Opportunity Limit, sending opportunity limit) and AIFS (arbitration interframe space).
在现有的音视频传输过程中,通常基于设置的固定TXOP参数进行数据传输,音视频一般都是以帧(数据块)的形式来编码、传递、解码的,音视频中的一个帧往往通过多个报文发送,由于多个报文太大,并不能在TXOP Limit内发送,一般都会通过多个TXOP来发送,而每一个TXOP都需要基于配置的TXOP参数进行竞争,如果竞争失败就需要退避再次竞争直到成功发送。而这增加了音视频传输的延时,并且音视频帧所占的报文越多,发送的延时越大。In the existing audio and video transmission process, data transmission is usually performed based on the set fixed TXOP parameters. Audio and video are generally encoded, transmitted, and decoded in the form of frames (data blocks). A frame in audio and video is often passed through Multiple packets are sent. Since multiple packets are too large to be sent within the TXOP Limit, they are generally sent through multiple TXOPs, and each TXOP needs to compete based on the configured TXOP parameters. If the competition fails, it needs to Backoff races again until a successful send. This increases the delay of audio and video transmission, and the more packets occupied by audio and video frames, the greater the delay in sending.
发明内容Contents of the invention
本公开提供一种数据传输方法、装置、设备及介质,降低现有基于WIFI的数据传输的延时。The present disclosure provides a data transmission method, device, equipment and medium to reduce the delay of existing WIFI-based data transmission.
根据本公开实施例的第一方面,提供一种数据传输方法,该方法包括:According to a first aspect of an embodiment of the present disclosure, there is provided a data transmission method, the method comprising:
基于需要发送的业务数据块的大小和有效发送速率,确定发送时间,其中所述有效发送速率是基于实际发送速率和设定的有效发送速率系数确定的;Determine the sending time based on the size of the service data block to be sent and the effective sending rate, wherein the effective sending rate is determined based on the actual sending rate and the set effective sending rate coefficient;
根据确定的所述发送时间与设定的偏差系数,确定所述业务数据块对应的TXOPLimit;Determine the TXOPLimit corresponding to the service data block according to the determined sending time and the set deviation coefficient;
根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道;Seize the target channel according to the CWmin, CWmax and AIFSN of the service data block;
基于所述TXOP Limit,通过抢占的所述目标信道发送所述业务数据块包括的业务报文。Based on the TXOP Limit, send the service packet included in the service data block through the preempted target channel.
本公开通过业务数据块的大小、实际发送速率、有效发送速率系数和偏差系数确定所述业务数据块对应的TXOP Limit,能够让业务数据块包括的业务报文通过一个TXOP发送出去,降低现有基于WIFI的数据传输的延时。This disclosure determines the TXOP Limit corresponding to the service data block through the size of the service data block, the actual transmission rate, the effective transmission rate coefficient and the deviation coefficient, so that the service message included in the service data block can be sent through one TXOP, reducing the existing Latency of data transmission based on WIFI.
在一种可能的实现方式中,所述根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道之前,还包括:In a possible implementation manner, before preempting the target channel according to the CWmin, CWmax and AIFSN of the service data block, further includes:
根据预先设置的数据块类型与参数集合的对应关系,确定所述业务数据块的业务类型对应的参数集合,其中所述参数集合包括CWmin、CWmax以及AIFSN中的部分或全部。Determine the parameter set corresponding to the service type of the service data block according to the preset correspondence between the data block type and the parameter set, where the parameter set includes part or all of CWmin, CWmax, and AIFSN.
本公开根据预先设置的数据块类型与参数集合的对应关系,确定所述业务数据块的业务类型对应的参数集合,增加业务数据块抢占目标信道的成功率,降低现有基于WIFI的数据传输的延时。The disclosure determines the parameter set corresponding to the service type of the service data block according to the preset correspondence between the data block type and the parameter set, increases the success rate of the service data block to seize the target channel, and reduces the existing WIFI-based data transmission. delay.
在一种可能的实现方式中,所述根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道之前,还包括:In a possible implementation manner, before preempting the target channel according to the CWmin, CWmax and AIFSN of the service data block, further includes:
确定设定数量个已成功发送的历史业务报文中未带有源端口信息的第一业务报文和带有源端口信息的第二业务报文;Determine the first service message without source port information and the second service message with source port information among the set number of successfully sent historical service messages;
根据所述第一业务报文的数量与所述第二业务报文的数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部。Adjust part or all of the CWmin, CWmax, and AIFSN of the service data block according to the ratio of the quantity of the first service packets to the quantity of the second service packets.
本公开通过历史业务报文中第一业务报文的数量和第二业务报文的数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部,从而动态地保证其他业务数据块的业务报文的发送机会,防止因为抢占导致其他业务数据块的业务报文无法及时送出。This disclosure adjusts some or all of the CWmin, CWmax, and AIFSN of the service data block through the ratio of the number of the first service message in the historical service message to the number of the second service message, so as to dynamically ensure that other services The opportunity to send the service message of the data block to prevent the service message of other service data blocks from being sent out in time due to preemption.
在一种可能的实现方式中,所述根据所述第一业务报文的数量与所述第二业务报文的数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部,包括:In a possible implementation manner, according to the ratio of the number of the first service message to the number of the second service message, adjusting part or all of the CWmin, CWmax and AIFSN of the service data block All, including:
若所述第一业务报文的数量与所述第二业务报文的数量的比值低于设定的第一阈值,则增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部;If the ratio of the number of the first service packets to the number of the second service packets is lower than a set first threshold, increasing some or all of the CWmin, CWmax, and AIFSN of the service data block;
若所述第一业务报文的数量与所述第二业务报文的数量的比值高于设定的第二阈值,则减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部;If the ratio of the number of the first service packets to the number of the second service packets is higher than the set second threshold, reduce some or all of the CWmin, CWmax and AIFSN of the service data block;
其中,所述第一阈值小于所述第二阈值。Wherein, the first threshold is smaller than the second threshold.
本公开在第一报文占比较少时,通过增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部,来降低所述业务数据块包括的业务报文的优先级,从而增大其他业务数据块的业务报文的发送机会;在第一报文占比较多时,通过减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部,来增加所述业务数据块包括的业务报文的优先级,从而降低其他业务数据块的业务报文的发送机会。In this disclosure, when the proportion of the first message is small, by increasing some or all of the CWmin, CWmax, and AIFSN of the service data block, the priority of the service message included in the service data block is reduced, thereby increasing other The opportunity to send the service message of the service data block; when the first message accounts for more, by reducing some or all of the CWmin, CWmax and AIFSN of the service data block, increase the service message included in the service data block The priority of the message, thereby reducing the chance of sending service messages of other service data blocks.
在一种可能的实现方式中,所述增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部,包括:In a possible implementation manner, the adding part or all of the CWmin, CWmax and AIFSN of the service data block includes:
将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的设定的第一倍数进行增加;或者increasing some or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding set first multiple; or
根据预先设置的差值范围与参数集合中各参数对应的第一倍数的对应关系,确定所述第一阈值与所述比值之间的第一差值所在的差值范围对应的参数集合中各参数对应的第一倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第一倍数进行增加。According to the correspondence between the preset difference range and the first multiple corresponding to each parameter in the parameter set, determine each of the parameter sets corresponding to the difference range where the first difference between the first threshold and the ratio is located. The first multiple corresponding to the parameter is to increase part or all of the CWmin, CWmax and AIFSN of the service data block according to the corresponding determined first multiple.
在一种可能的实现方式中,所述减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部,包括:In a possible implementation manner, the reducing part or all of the CWmin, CWmax and AIFSN of the service data block includes:
将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的设定的第二倍数进行减少;或者Reducing some or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding set second multiple; or
根据预先设置的差值范围与参数集合中各参数对应的第二倍数的对应关系,确定所述第二阈值与所述比值之间的第二差值所在的差值范围对应的参数集合中各参数对应的第二倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第二倍数进行减少,其中,同一参数对应的所述第一倍数小于所述第二倍数。According to the correspondence between the preset difference range and the second multiple corresponding to each parameter in the parameter set, determine each of the parameter sets corresponding to the difference range where the second difference between the second threshold and the ratio is located. The second multiple corresponding to the parameter, reducing part or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding determined second multiple, wherein the first multiple corresponding to the same parameter is less than the second multiple.
根据本公开实施例的第二方面,提供一种数据传输装置,该装置包括:According to a second aspect of an embodiment of the present disclosure, there is provided a data transmission device, the device comprising:
第一确定模块,用于基于需要发送的业务数据块的大小和有效发送速率,确定发送时间,其中所述有效发送速率是基于实际发送速率和设定的有效发送速率系数确定的;The first determining module is configured to determine the sending time based on the size of the service data block to be sent and the effective sending rate, wherein the effective sending rate is determined based on the actual sending rate and the set effective sending rate coefficient;
第二确定模块,用于根据确定的所述发送时间与设定的偏差系数,确定所述业务数据块对应的TXOP Limit;The second determining module is used to determine the TXOP Limit corresponding to the service data block according to the determined sending time and the set deviation coefficient;
抢占模块,用于根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道;A preemption module, configured to preempt the target channel according to the CWmin, CWmax and AIFSN of the service data block;
发送模块,用于基于所述TXOP Limit,通过抢占的所述目标信道发送所述业务数据块包括的业务报文。A sending module, configured to send the service message included in the service data block through the preempted target channel based on the TXOP Limit.
在一种可能的实现方式中,所述根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道之前,所述装置还包括:In a possible implementation manner, before preempting the target channel according to the CWmin, CWmax and AIFSN of the service data block, the device further includes:
第三确定模块,用于根据预先设置的数据块类型与参数集合的对应关系,确定所述业务数据块的业务类型对应的参数集合,其中所述参数集合包括CWmin、CWmax以及AIFSN中的部分或全部。The third determination module is configured to determine the parameter set corresponding to the service type of the service data block according to the preset correspondence between the data block type and the parameter set, wherein the parameter set includes CWmin, CWmax, and part of AIFSN or all.
在一种可能的实现方式中,所述根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道之前,所述装置还包括:In a possible implementation manner, before preempting the target channel according to the CWmin, CWmax and AIFSN of the service data block, the device further includes:
第四确定模块,用于确定设定数量个已成功发送的历史业务报文中未带有源端口信息的第一业务报文和带有源端口信息的第二业务报文;The fourth determination module is used to determine the first service message without source port information and the second service message with source port information among the set number of successfully sent historical service messages;
调整模块,用于根据所述第一业务报文的数量与所述第二业务报文的数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部。An adjustment module, configured to adjust part or all of the CWmin, CWmax, and AIFSN of the service data block according to the ratio of the quantity of the first service message to the quantity of the second service message.
在一种可能的实现方式中,所述调整模块,用于根据所述第一业务报文的数量与所述第二业务报文的数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部,包括:In a possible implementation manner, the adjustment module is configured to adjust the CWmin, CWmax, and Some or all of the AIFSN, including:
若所述第一业务报文的数量与所述第二业务报文的数量的比值低于设定的第一阈值,则增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部;If the ratio of the number of the first service packets to the number of the second service packets is lower than a set first threshold, increasing some or all of the CWmin, CWmax, and AIFSN of the service data block;
若所述第一业务报文的数量与所述第二业务报文的数量的比值高于设定的第二阈值,则减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部;If the ratio of the number of the first service packets to the number of the second service packets is higher than the set second threshold, reduce some or all of the CWmin, CWmax and AIFSN of the service data block;
其中,所述第一阈值小于所述第二阈值。Wherein, the first threshold is smaller than the second threshold.
在一种可能的实现方式中,所述调整模块,用于增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部,包括:In a possible implementation manner, the adjustment module is configured to increase part or all of the CWmin, CWmax and AIFSN of the service data block, including:
将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的设定的第一倍数进行增加;或者increasing some or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding set first multiple; or
根据预先设置的差值范围与参数集合中各参数对应的第一倍数的对应关系,确定所述第一阈值与所述比值之间的第一差值所在的差值范围对应的参数集合中各参数对应的第一倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第一倍数进行增加。According to the correspondence between the preset difference range and the first multiple corresponding to each parameter in the parameter set, determine each of the parameter sets corresponding to the difference range where the first difference between the first threshold and the ratio is located. The first multiple corresponding to the parameter is to increase part or all of the CWmin, CWmax and AIFSN of the service data block according to the corresponding determined first multiple.
在一种可能的实现方式中,所述调整模块,用于减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部,包括:In a possible implementation manner, the adjustment module, configured to reduce part or all of the CWmin, CWmax and AIFSN of the service data block, includes:
将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的设定的第二倍数进行减少;或者Reducing some or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding set second multiple; or
根据预先设置的差值范围与参数集合中各参数对应的第二倍数的对应关系,确定所述第二阈值与所述比值之间的第二差值所在的差值范围对应的参数集合中各参数对应的第二倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第二倍数进行减少,其中,同一参数对应的所述第一倍数小于所述第二倍数。According to the correspondence between the preset difference range and the second multiple corresponding to each parameter in the parameter set, determine each of the parameter sets corresponding to the difference range where the second difference between the second threshold and the ratio is located. The second multiple corresponding to the parameter, reducing part or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding determined second multiple, wherein the first multiple corresponding to the same parameter is less than the second multiple.
根据本公开实施例的第三方面,提供一种电子设备包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器通过运行所述可执行指令以实现上述数据传输方法的步骤。According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device including: a processor; a memory for storing processor-executable instructions; wherein, the processor executes the executable instructions to implement the above data transmission method A step of.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现上述数据传输方法的步骤。According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the above-mentioned data transmission method are implemented.
附图说明Description of drawings
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
图1是根据一示例性实施例示出的应用场景示意图;Fig. 1 is a schematic diagram of an application scenario according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种数据传输方法的流程图;Fig. 2 is a flow chart showing a data transmission method according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种数据传输方法的模块示意图;Fig. 3 is a schematic block diagram of a data transmission method according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种数据传输方法的详细流程图;Fig. 4 is a detailed flowchart of a data transmission method according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种数据传输装置的示意图;Fig. 5 is a schematic diagram of a data transmission device according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种数据传输方法的电子设备示意图;Fig. 6 is a schematic diagram of an electronic device showing a data transmission method according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种数据传输方法的程序产品示意图。Fig. 7 is a schematic diagram of a program product showing a data transmission method according to an exemplary embodiment.
具体实施方式detailed description
为了使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开作进一步地详细描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本公开的保护范围。In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in conjunction with the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of the present disclosure, not all of them. Based on the embodiments in the present disclosure, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present disclosure.
下面对文中出现的一些词语进行解释:The following is an explanation of some words that appear in the text:
1、本公开实施例中术语“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。1. The term "and/or" in the embodiments of the present disclosure describes the association relationship of associated objects, indicating that there may be three relationships, for example, A and/or B, which may mean: A exists alone, A and B exist simultaneously, and There are three cases of B. The character "/" generally indicates that the contextual objects are an "or" relationship.
2、本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。2. The terms "first", "second" and the like in the description and claims of the present disclosure and the above drawings are used to distinguish similar objects, and not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein.
本公开实施例描述的应用场景是为了更加清楚的说明本公开实施例的技术方案,并不构成对于本公开实施例提供的技术方案的限定,本领域普通技术人员可知,随着新应用场景的出现,本公开实施例提供的技术方案对于类似的技术问题,同样适用。其中,在本公开的描述中,除非另有说明,“多个”的含义是两个或两个以上。The application scenarios described in the embodiments of the present disclosure are to illustrate the technical solutions of the embodiments of the present disclosure more clearly, and do not constitute limitations on the technical solutions provided by the embodiments of the present disclosure. It appears that the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems. Wherein, in the description of the present disclosure, unless otherwise specified, "plurality" means two or more.
在基于WIFI的音视频传输过程中,音视频一般采用IEEE 802.11e协议。IEEE802.11e协议定义的EDCA指定了四种访问类型,每一种类型对应一类数据。每一个访问类别配置了TXOP参数:CWmin、CWmax、TXOP Limit和AIFS。其中,AIFS是传输数据之前等待的帧间间隔,其值根据不同的业务类型而变化,低等级业务的大于高等级业务的,即等待信道空闲的时间长,延迟接入信道;CWmin和CWmax是在等待了一个AIFS后,每个退避过程将计时器设置成[1,CW+1]之间的任意一个值,越小的CWmin和CWmax意味着站点可以以更大的几率接入信道,从而对应的优先级越高;TXOP Limit是TXOP的最大持续时间值,一个站点获得了TXOP就可以在TXOP Limit时间内连续传输多个帧而无需重新竞争信道,有助于提高信道的利用率。In the audio and video transmission process based on WIFI, the audio and video generally adopt the IEEE 802.11e protocol. EDCA defined by the IEEE802.11e protocol specifies four access types, and each type corresponds to a type of data. Each access category is configured with TXOP parameters: CWmin, CWmax, TXOP Limit and AIFS. Among them, AIFS is the inter-frame interval waiting before transmitting data, and its value varies according to different service types. The low-level service is greater than the high-level service, that is, the waiting time for the channel to be idle is long, and the access channel is delayed; CWmin and CWmax are After waiting for an AIFS, each backoff process sets the timer to any value between [1, CW+1]. The smaller CWmin and CWmax means that the station can access the channel with a greater probability, thus The corresponding priority is higher; TXOP Limit is the maximum duration value of TXOP, and a station can continuously transmit multiple frames within the TXOP Limit time without re-competing for the channel after obtaining TXOP Limit, which helps to improve channel utilization.
在现有的音视频传输过程中,通常基于设置的固定TXOP参数进行数据传输,音视频一般都是以帧(数据块)的形式来编码、传递、解码的,音视频中的一个帧往往通过多个报文发送,由于多个报文太大,并不能在TXOP Limit内发送,一般都会通过多个TXOP来发送,而每一个TXOP都需要基于配置的TXOP参数进行竞争,如果竞争失败就需要退避再次竞争直到成功发送。而这增加了音视频传输的延时,并且音视频帧所占的报文越多,发送的延时越大。In the existing audio and video transmission process, data transmission is usually performed based on the set fixed TXOP parameters. Audio and video are generally encoded, transmitted, and decoded in the form of frames (data blocks). A frame in audio and video is often passed through Multiple packets are sent. Since multiple packets are too large to be sent within the TXOP Limit, they are generally sent through multiple TXOPs, and each TXOP needs to compete based on the configured TXOP parameters. If the competition fails, it needs to Backoff races again until a successful send. This increases the delay of audio and video transmission, and the more packets occupied by audio and video frames, the greater the delay in sending.
因此,为了解决上述问题,本公开提供了一种数据传输方法、装置、设备及介质,降低现有基于WIFI的数据传输的延时。Therefore, in order to solve the above-mentioned problems, the present disclosure provides a data transmission method, device, equipment and medium to reduce the delay of existing WIFI-based data transmission.
首先参考图1,其为本公开实施例的应用场景示意图,包括通信设备A和通信设备B。其中通信设备A和通信设备B可以为手机、计算机等,通信设备A用于通过WIFI网络与通信设备B进行数据传输。First refer to FIG. 1 , which is a schematic diagram of an application scenario of an embodiment of the present disclosure, including a communication device A and a communication device B. Referring to FIG. The communication device A and the communication device B can be mobile phones, computers, etc., and the communication device A is used for data transmission with the communication device B through the WIFI network.
在一些实施例中,下面通过具体的实施例对本公开提供的一种数据传输方法进行说明,如图2所示,包括:In some embodiments, a data transmission method provided by the present disclosure is described below through a specific embodiment, as shown in FIG. 2 , including:
步骤201,基于需要发送的业务数据块的大小和有效发送速率,确定发送时间,其中所述有效发送速率是基于实际发送速率和设定的有效发送速率系数确定的;Step 201: Determine the sending time based on the size of the service data block to be sent and the effective sending rate, wherein the effective sending rate is determined based on the actual sending rate and the set effective sending rate coefficient;
本公开可以通过实时监测当前WIFI协商速率获得实际发送速率,上述有效发送速率系数可以为70%,也可以为其他数值。上述业务数据块的大小是基于所述业务数据块,通过业务层调用发送接口DH_TXOP_SOCKET获取的。In the present disclosure, the actual transmission rate can be obtained by monitoring the current WIFI negotiation rate in real time, and the above-mentioned effective transmission rate coefficient can be 70% or other values. The size of the above service data block is obtained by calling the sending interface DH_TXOP_SOCKET from the service layer based on the service data block.
步骤202,根据确定的所述发送时间与设定的偏差系数,确定所述业务数据块对应的TXOP Limit;Step 202: Determine the TXOP Limit corresponding to the service data block according to the determined sending time and the set deviation coefficient;
上述设定的偏差系数可以为150%,也可以为其他数值。The deviation coefficient set above may be 150%, or other values.
步骤203,根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道;
上述所述业务数据块的CWmin、CWmax以及AIFSN可以是预先设置的固定值,也可以利用预先设置的数据块类型与参数集合的对应关系确定。所述业务数据块的CWmin、CWmax以及AIFSN越小,抢占目标信道的成功率越高,反之,抢占目标信道的成功率越低。而根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道的具体过程为现有技术,此处不再详细赘述。The CWmin, CWmax, and AIFSN of the above-mentioned service data blocks may be preset fixed values, or may be determined by using a preset correspondence between data block types and parameter sets. The smaller the CWmin, CWmax, and AIFSN of the service data block, the higher the success rate of preempting the target channel; otherwise, the lower the success rate of preempting the target channel. According to the CWmin, CWmax and AIFSN of the service data block, the specific process of preempting the target channel is the prior art, and will not be described in detail here.
步骤204,基于所述TXOP Limit,通过抢占的所述目标信道发送所述业务数据块包括的业务报文。Step 204: Based on the TXOP Limit, send the service message included in the service data block through the preempted target channel.
基于所述TXOP Limit,通过抢占的所述目标信道发送所述业务数据块包括的业务报文的具体过程为现有技术,此处不再详细赘述。Based on the TXOP Limit, the specific process of sending the service message included in the service data block through the preempted target channel is an existing technology, and will not be described in detail here.
本公开通过业务数据块的大小、实际发送速率、有效发送速率系数和偏差系数确定所述业务数据块对应的TXOP Limit,能够让业务数据块包括的业务报文通过一个TXOP发送出去,降低现有基于WIFI的数据传输的延时。This disclosure determines the TXOP Limit corresponding to the service data block through the size of the service data block, the actual transmission rate, the effective transmission rate coefficient and the deviation coefficient, so that the service message included in the service data block can be sent through one TXOP, reducing the existing Latency of data transmission based on WIFI.
下面将对上述提供的数据传输方法进行详细说明:The data transmission method provided above will be described in detail below:
首先,基于需要发送的业务数据块的大小和有效发送速率,确定发送时间,其中所述有效发送速率是基于实际发送速率和设定的有效发送速率系数确定的;First, determine the sending time based on the size of the service data block to be sent and the effective sending rate, wherein the effective sending rate is determined based on the actual sending rate and the set effective sending rate coefficient;
如图3所示,DH_TXOP APP模块用于基于业务数据块,获取所述业务数据块的大小、业务类型和各业务报文的源端口信息,将其填充到BLOCK_INFO数据块信息结构并发送给DH_TXOP CORE模块。DH_TXOP CORE模块用于根据接收的BLOCK_INFO数据块信息确定所述业务数据块对应的TXOP参数,并下发给DH_TXOP DRIVER模块。DH_TXOP DRIVER模块用于根据历史业务报文调整接收的TXOP参数。As shown in Figure 3, the DH_TXOP APP module is used to obtain the size, service type and source port information of each service message based on the service data block, fill it into the BLOCK_INFO data block information structure and send it to DH_TXOP CORE module. The DH_TXOP CORE module is used to determine the TXOP parameters corresponding to the service data block according to the received BLOCK_INFO data block information, and send it to the DH_TXOP DRIVER module. The DH_TXOP DRIVER module is used to adjust the received TXOP parameters according to historical service messages.
可以利用以下公式计算发送时间:The sending time can be calculated using the following formula:
T=block_info.len/(V*a);T=block_info.len/(V*a);
其中,T为发送时间,block_info.len为业务数据块的大小,V为实际发送速率,a为有效发送速率系数,a可以为70%,也可以为其他数值。Among them, T is the sending time, block_info.len is the size of the service data block, V is the actual sending rate, a is the effective sending rate coefficient, and a can be 70% or other values.
然后,根据确定的所述发送时间与设定的偏差系数,确定所述业务数据块对应的TXOP Limit;Then, according to the determined sending time and the set deviation coefficient, determine the TXOP Limit corresponding to the service data block;
如图3所示,DH_TXOP CORE模块用于根据实际发送速率、有效发送速率系数、偏差系数以及接收的BLOCK_INFO数据块信息中的所述业务数据块的大小确定所述业务数据块对应的TXOP Limit。As shown in Figure 3, the DH_TXOP CORE module is used to determine the TXOP Limit corresponding to the service data block according to the actual transmission rate, effective transmission rate coefficient, deviation coefficient and the size of the service data block in the received BLOCK_INFO data block information.
可以通过以下公式计算所述业务数据块对应的TXOP Limit:The TXOP Limit corresponding to the service data block can be calculated by the following formula:
TXOP Limit=T*b;TXOP Limit = T*b;
其中,T为发送时间,b为设定的偏差系数,b可以为150%,也可以为其他数值。Wherein, T is the sending time, b is a set deviation coefficient, and b can be 150% or other values.
其次,根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道;Secondly, according to the CWmin, CWmax and AIFSN of the service data block, preempt the target channel;
在上述步骤之前,可以通过以下方法确定所述业务数据块的CWmin、CWmax以及AIFSN的部分或全部:Before the above steps, part or all of the CWmin, CWmax and AIFSN of the service data block can be determined by the following method:
根据预先设置的数据块类型与参数集合的对应关系,确定所述业务数据块的业务类型对应的参数集合,其中所述参数集合包括CWmin、CWmax以及AIFSN中的部分或全部。Determine the parameter set corresponding to the service type of the service data block according to the preset correspondence between the data block type and the parameter set, where the parameter set includes part or all of CWmin, CWmax, and AIFSN.
如图3所示,DH_TXOP CORE模块用于根据预先设置的数据块类型与参数集合的对应关系以及接收的BLOCK_INFO数据块信息中的所述业务数据块的业务类型确定对应的CWmin、CWmax以及AIFSN中的部分或全部。As shown in Figure 3, the DH_TXOP CORE module is used to determine the corresponding CWmin, CWmax, and AIFSN according to the preset correspondence between the data block type and the parameter set and the service type of the service data block in the received BLOCK_INFO data block information. part or all of .
上述参数集合是需要确定的参数,当CWmin、CWmax以及AIFSN都需要确定时,上述参数集合为CWmin、CWmax以及AIFSN。The above parameter set is a parameter that needs to be determined. When CWmin, CWmax, and AIFSN all need to be determined, the above parameter set is CWmin, CWmax, and AIFSN.
例如,当业务数据块的业务类型为音视频类型时,根据预先设置的数据块类型与CWmin、CWmax以及AIFSN的对应关系,可以确定该音视频类型的业务数据块对应的CWmin=2,CWmax=2,AIFSN=2;当业务数据块的业务类型为下载类型时,根据预先设置的数据块类型与CWmin、CWmax以及AIFSN的对应关系,可以确定该下载类型的业务数据块对应的CWmin=100,CWmax=3000,AIFSN=10。For example, when the service type of the service data block is an audio-video type, according to the preset correspondence between the data block type and CWmin, CWmax, and AIFSN, it can be determined that CWmin=2, CWmax=2 corresponding to the service data block of the audio-video type 2, AIFSN=2; when the service type of the service data block is the download type, according to the corresponding relationship between the preset data block type and CWmin, CWmax and AIFSN, it can be determined that the corresponding CWmin=100 of the service data block of the download type, CWmax=3000, AIFSN=10.
当CWmin、CWmax以及AIFSN中存在部分参数为设定的固定值时,CWmin、CWmax以及AIFSN中的未被设定为固定值的参数是需要确定的参数,即参数集合。When some parameters in CWmin, CWmax, and AIFSN are set fixed values, the parameters in CWmin, CWmax, and AIFSN that are not set to fixed values are parameters that need to be determined, that is, parameter sets.
例如,若预先设置CWmin为固定值2,当业务数据块的业务类型为音视频类型时,根据预先设置的数据块类型与CWmax以及AIFSN的对应关系,可以确定该音视频类型的业务数据块对应的CWmax=2,AIFSN=2;若预先设置CWmin和CWmax分别为固定值2和2,当业务数据块的业务类型为音视频类型时,根据预先设置的数据块类型与AIFSN的对应关系,可以确定该音视频类型的业务数据块对应的AIFSN=2。若预先设置AIFSN为固定值10,当业务数据块的业务类型为下载类型时,根据预先设置的数据块类型与CWmin和CWmax的对应关系,可以确定该音视频类型的业务数据块对应的CWmin=100,CWmax=3000;若预先设置CWmin和AIFSN分别为固定值100和10,当业务数据块的业务类型为下载类型时,根据预先设置的数据块类型与CWmax的对应关系,可以确定该音视频类型的业务数据块对应的CWmax=3000。For example, if CWmin is preset to a fixed value of 2, when the service type of the service data block is audio and video type, according to the preset correspondence between the data block type and CWmax and AIFSN, it can be determined that the service data block of the audio and video type corresponds to CWmax=2, AIFSN=2; if preset CWmin and CWmax are fixed values 2 and 2 respectively, when the service type of the service data block is audio and video type, according to the correspondence between the preset data block type and AIFSN, it can AIFSN=2 corresponding to the service data block of the audio and video type is determined. If the preset AIFSN is a fixed value of 10, when the service type of the service data block is the download type, according to the correspondence between the preset data block type and CWmin and CWmax, it can be determined that the corresponding CWmin= of the service data block of the audio and video type 100, CWmax=3000; if preset CWmin and AIFSN are fixed values of 100 and 10 respectively, when the service type of the service data block is download type, according to the correspondence between the preset data block type and CWmax, the audio and video can be determined CWmax=3000 corresponding to the type of service data block.
如图3所示,通过DH_TXOP CORE模块将确定的TXOP Limit、CWmin、CWmax以及AIFSN下发到DH_TXOP DRIVER模块,为了动态的保证其它业务数据报文的发送机会,通过DH_TXOPDRIVER模块在得到所述业务数据块的CWmin、CWmax以及AIFSN之后,可以通过以下方法判定调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部:As shown in Figure 3, the determined TXOP Limit, CWmin, CWmax, and AIFSN are sent to the DH_TXOP DRIVER module through the DH_TXOP CORE module. After the block's CWmin, CWmax, and AIFSN, the following method can be used to determine and adjust part or all of the CWmin, CWmax, and AIFSN of the service data block:
确定设定数量个已成功发送的历史业务报文中未带有源端口信息的第一业务报文和带有源端口信息的第二业务报文;Determine the first service message without source port information and the second service message with source port information among the set number of successfully sent historical service messages;
具体的,上述设定数量可以为50,也可以为其他数值。上述第一业务报文为其他业务报文,第二报文为所述业务数据块包括的业务报文。其中,所述其他业务报文可以是与所述业务数据块类型不同的多个数据块包括的业务报文,也可以是与所述业务数据块类型不同的一个数据块包括的业务报文。Specifically, the above-mentioned set number may be 50, or other numerical values. The above-mentioned first service message is another service message, and the second message is a service message included in the service data block. Wherein, the other service message may be a service message included in multiple data blocks of a different type from the service data block, or may be a service message included in a data block of a different type from the service data block.
根据所述第一业务报文的数量与所述第二业务报文的数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部。Adjust part or all of the CWmin, CWmax, and AIFSN of the service data block according to the ratio of the quantity of the first service packets to the quantity of the second service packets.
可选的,也可以根据所述第一业务报文的数量与所述设定数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部;还可以根据所述第二业务报文的数量与所述设定数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部。Optionally, some or all of the CWmin, CWmax, and AIFSN of the service data block may be adjusted according to the ratio of the number of the first service packets to the set number; it may also be adjusted according to the second The ratio of the number of service packets to the set number adjusts some or all of the CWmin, CWmax, and AIFSN of the service data block.
上述根据所述第一业务报文的数量与所述第二业务报文的数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部,分为以下两种情况:According to the ratio of the quantity of the first service message to the quantity of the second service message, adjusting part or all of the CWmin, CWmax and AIFSN of the service data block is divided into the following two situations:
第一种情况,若所述第一业务报文的数量与所述第二业务报文的数量的比值低于设定的第一阈值,则增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部;In the first case, if the ratio of the number of the first service packets to the number of the second service packets is lower than the set first threshold, then increase the CWmin, CWmax and AIFSN of the service data block part or all of
具体的,当所述第一业务报文的数量与所述第二业务报文的数量的比值低于设定的第一阈值,意味着影响了第一业务报文的发送,而为了保证第一业务报文的发送机会,需要降低所述业务数据块的优先级,即增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部,从而降低抢占目标信道的成功率。Specifically, when the ratio of the number of the first service packets to the number of the second service packets is lower than the set first threshold, it means that the sending of the first service packets is affected, and in order to ensure that the second For an opportunity to send a service message, it is necessary to reduce the priority of the service data block, that is, increase some or all of the CWmin, CWmax, and AIFSN of the service data block, thereby reducing the success rate of preempting the target channel.
第二种情况,若所述第一业务报文的数量与所述第二业务报文的数量的比值高于设定的第二阈值,则减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部;其中,所述第一阈值小于所述第二阈值。In the second case, if the ratio of the quantity of the first service message to the quantity of the second service message is higher than the set second threshold, then reduce the CWmin, CWmax and AIFSN of the service data block Part or all of ; wherein, the first threshold is smaller than the second threshold.
具体的,当所述第一业务报文的数量与所述第二业务报文的数量的比值高于设定的第一阈值,意味着影响了第二业务报文的发送,而为了保证第二业务报文的发送机会,需要增加所述业务数据块的优先级,即减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部,从而提高抢占目标信道的成功率。Specifically, when the ratio of the number of the first service packets to the number of the second service packets is higher than the set first threshold, it means that the sending of the second service packets is affected, and in order to ensure that the first 2. The opportunity to send a service message needs to increase the priority of the service data block, that is, reduce part or all of the CWmin, CWmax and AIFSN of the service data block, so as to increase the success rate of preempting the target channel.
除了上述两种情况,还包括:若所述第一业务报文的数量与所述第二业务报文的数量的比值高于设定的第一阈值且低于设定的第二阈值,则不调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部。In addition to the above two conditions, it also includes: if the ratio of the number of the first service packets to the number of the second service packets is higher than the set first threshold and lower than the set second threshold, then Some or all of CWmin, CWmax and AIFSN of the service data block are not adjusted.
以根据所述第一业务报文的数量与所述设定数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部为例,若所述设定数量为50,第一阈值为10%,第二阈值为40%。当第一业务报文的数量为4时,第一业务报文的数量与设定数量的比值为8%,8%<10%,则增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部;当第一业务报文的数量为25时,第一业务报文的数量与设定数量的比值为50%,50%>40%,则减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部;当第一业务报文的数量为16时,第一业务报文的数量与设定数量的比值为32%,10%<32%<40%,则不调整所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部。Taking adjusting part or all of the CWmin, CWmax, and AIFSN of the service data block according to the ratio of the number of the first service message to the set number as an example, if the set number is 50, the first One threshold is 10%, and the second threshold is 40%. When the quantity of the first service message is 4, the ratio of the quantity of the first service message to the set quantity is 8%, and 8%<10%, then increase the CWmin, CWmax and AIFSN of the service data block Part or all; when the quantity of the first service message is 25, the ratio of the quantity of the first service message to the set quantity is 50%, and if 50%>40%, then reduce the CWmin and CWmax of the service data block and part or all of the AIFSN; when the number of the first service message is 16, the ratio of the number of the first service message to the set number is 32%, and if 10%<32%<40%, the all part or all of CWmin, CWmax and AIFSN of the above service data block.
当为上述第一种情况时,可以通过以下两种方法增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部:When it is the first case above, some or all of the CWmin, CWmax and AIFSN of the service data block can be increased by the following two methods:
第一种方法,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的设定的第一倍数进行增加;The first method is to increase part or all of the CWmin, CWmax and AIFSN of the service data block according to the first multiple of the corresponding setting;
可选的,可以将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部按照相同的第一倍数进行增加。Optionally, part or all of the CWmin, CWmax and AIFSN of the service data block may be increased by the same first multiple.
例如,若第一倍数为1.05倍,则将所述业务数据块的CWmin、CWmax和AIFSN的部分或全部按照1.05倍增加。For example, if the first multiple is 1.05, part or all of the CWmin, CWmax, and AIFSN of the service data block are increased by 1.05.
可选的,还可以将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的不同第一倍数进行增加。Optionally, part or all of the CWmin, CWmax and AIFSN of the service data block may be increased according to different corresponding first multiples.
例如,若增加所述业务数据块的CWmin、CWmax和AIFSN,则将所述业务数据块的CWmin按照对应的1.03倍增加,CWmax按照1.05倍增加,AIFSN按照1.08倍增加。For example, if the CWmin, CWmax and AIFSN of the service data block are increased, then the CWmin of the service data block is increased by 1.03 times, the CWmax is increased by 1.05 times, and the AIFSN is increased by 1.08 times.
第二种方法,根据预先设置的差值范围与参数集合中各参数对应的第一倍数的对应关系,确定所述第一阈值与所述比值之间的第一差值所在的差值范围对应的参数集合中各参数对应的第一倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第一倍数进行增加。In the second method, according to the correspondence between the preset difference range and the first multiple corresponding to each parameter in the parameter set, it is determined that the first threshold corresponds to the difference range where the first difference between the ratios is located. The first multiplier corresponding to each parameter in the parameter set, increasing part or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding determined first multiplier.
可选的,当所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部对应的第一倍数相同时,可以根据预先设置的差值范围与第一倍数的对应关系,确定所述第一阈值与所述比值之间的第一差值所在的差值范围对应的第一倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照所述确定的第一倍数进行增加。Optionally, when part or all of the first multiples corresponding to CWmin, CWmax, and AIFSN of the service data block are the same, the first multiple may be determined according to a preset relationship between the difference range and the first multiple. The first multiple corresponding to the difference range where the first difference between the threshold and the ratio is located, part or all of the CWmin, CWmax, and AIFSN of the service data block are respectively performed according to the determined first multiple Increase.
例如,若所述第一阈值为10%,预先设置的差值范围包括(0-2%]、(2%-4%]、(4%-6%]、(6%-8%]和(8%-10%),其对应的第一倍数分别为1.03倍、1.04倍、1.05倍、1.06倍和1.07倍,当所述比值为5%,则第一差值为5%,所在的差值范围为(4%-6%],则对应的第一倍数为1.05倍,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照1.05倍进行增加。For example, if the first threshold is 10%, the preset difference ranges include (0-2%], (2%-4%], (4%-6%], (6%-8%] and (8%-10%), the corresponding first multiples are 1.03 times, 1.04 times, 1.05 times, 1.06 times and 1.07 times respectively, when the ratio is 5%, then the first difference is 5%, where If the difference range is (4%-6%], then the corresponding first multiple is 1.05 times, and part or all of the CWmin, CWmax and AIFSN of the service data block are respectively increased by 1.05 times.
可选的,当所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部对应的第一倍数不同时,根据预先设置的差值范围与参数集合中各参数对应的第一倍数的对应关系,确定所述第一阈值与所述比值之间的第一差值所在的差值范围对应的参数集合中各参数对应的第一倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第一倍数进行增加。Optionally, when the first multiples corresponding to some or all of the CWmin, CWmax, and AIFSN of the service data block are different, according to the correspondence between the preset difference range and the first multiples corresponding to each parameter in the parameter set , determine the first multiple corresponding to each parameter in the parameter set corresponding to the difference range corresponding to the first difference between the first threshold and the ratio, and divide the CWmin, CWmax and AIFSN of the service data block into Part or all of them are respectively increased according to the corresponding determined first multiple.
例如,若所述第一阈值为10%,预先设置的差值范围包括(0-2%]、(2%-4%]、(4%-6%]、(6%-8%]和(8%-10%),针对CWmin,其对应的第一倍数分别为1.03倍、1.04倍、1.05倍、1.06倍和1.07倍,针对CWmax,其对应的第一倍数分别为1.01倍、1.02倍、1.03倍、1.04倍和1.05倍,针对AIFSN,其对应的第一倍数分别为1.04倍、1.05倍、1.06倍、1.07倍和1.08倍。当所述比值为5%,则第一差值为5%,所在的差值范围为(4%-6%],若需要增加所述业务数据块的CWmin、CWmax和AIFSN,则所述业务数据块的CWmin、CWmax和AIFSN对应的第一倍数分别1.05倍、1.03倍和1.06倍,将所述业务数据块的CWmin、CWmax和AIFSN分别按照对应的1.05倍、1.03倍和1.06倍进行增加。For example, if the first threshold is 10%, the preset difference ranges include (0-2%], (2%-4%], (4%-6%], (6%-8%] and (8%-10%). For CWmin, the corresponding first multiples are 1.03 times, 1.04 times, 1.05 times, 1.06 times and 1.07 times respectively. For CWmax, the corresponding first multiples are 1.01 times and 1.02 times respectively , 1.03 times, 1.04 times and 1.05 times, for AIFSN, the corresponding first multiples are 1.04 times, 1.05 times, 1.06 times, 1.07 times and 1.08 times respectively. When the ratio is 5%, the first difference is 5%, where the difference range is (4%-6%], if it is necessary to increase the CWmin, CWmax and AIFSN of the service data block, the corresponding first multiple of the CWmin, CWmax and AIFSN of the service data block is respectively 1.05 times, 1.03 times and 1.06 times, the CWmin, CWmax and AIFSN of the service data block are respectively increased according to the corresponding 1.05 times, 1.03 times and 1.06 times.
除了上述第二种方法外,还包括下面的第三种方法:In addition to the second method above, the third method below is also included:
根据预先设置的比值范围与参数集合中各参数对应的第一倍数的对应关系,确定所述比值所在的比值范围对应的参数集合中各参数对应的第一倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第一倍数进行增加。According to the corresponding relationship between the preset ratio range and the first multiple corresponding to each parameter in the parameter set, determine the first multiple corresponding to each parameter in the parameter set corresponding to the ratio range where the ratio is located, and calculate the CWmin of the business data block Part or all of , CWmax and AIFSN are respectively increased according to the corresponding determined first multiple.
可选的,当所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部对应的第一倍数相同时,可以根据预先设置的比值范围与第一倍数的对应关系,确定所述比值所在的比值范围对应的第一倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部按照所述确定的第一倍数进行增加。Optionally, when part or all of the CWmin, CWmax, and AIFSN of the service data block correspond to the same first multiple, the corresponding relationship between the preset ratio range and the first multiple can be used to determine the ratio. The first multiplier corresponding to the ratio range increases part or all of the CWmin, CWmax and AIFSN of the service data block according to the determined first multiplier.
例如,若所述比值为9%,预先设置的比值范围包括(0-2%]、(2%-4%]、(4%-6%]、(6%-8%]和(8%-10%),其对应的第一倍数分别为1.07倍、1.06倍、1.05倍、1.04倍和1.03倍,则所述比值所在的比值范围为(8%-10%),则对应的第一倍数为1.03倍,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照1.03倍进行增加。For example, if the ratio is 9%, the preset ratio ranges include (0-2%], (2%-4%], (4%-6%], (6%-8%] and (8% -10%), the corresponding first multiples are 1.07 times, 1.06 times, 1.05 times, 1.04 times and 1.03 times respectively, then the ratio range of the ratio is (8%-10%), then the corresponding first The multiple is 1.03 times, and part or all of the CWmin, CWmax, and AIFSN of the service data block are respectively increased by 1.03 times.
可选的,当所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部对应的第一倍数不同时,根据预先设置的比值范围与参数集合中各参数对应的第一倍数的对应关系,确定所述比值所在的比值范围对应的参数集合中各参数对应的第一倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第一倍数进行增加。Optionally, when the first multiples corresponding to some or all of the CWmin, CWmax, and AIFSN of the service data block are different, according to the correspondence between the preset ratio range and the first multiples corresponding to each parameter in the parameter set, Determine the first multiple corresponding to each parameter in the parameter set corresponding to the ratio range where the ratio is located, and perform part or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding determined first multiple. Increase.
例如,若所述比值为9%,预先设置的比值范围包括(0-2%]、(2%-4%]、(4%-6%]、(6%-8%]和(8%-10%),针对CWmin,其对应的第一倍数分别为1.07倍、1.06倍、1.05倍、1.04倍和1.03倍,针对CWmax,其对应的第一倍数分别为1.06倍、1.05倍、1.04倍、1.03倍和1.02倍,针对AIFSN,其对应的第一倍数分别为1.08倍、1.07倍、1.06倍、1.05倍和1.04倍。则所述比值所在的比值范围为(8%-10%),若需要增加所述业务数据块的CWmin、CWmax和AIFSN,则所述业务数据块的CWmin、CWmax和AIFSN对应的第一倍数分别1.03倍、1.02倍和1.04倍,将所述业务数据块的CWmin、CWmax和AIFSN分别按照对应的1.03倍、1.02倍和1.04倍进行增加。For example, if the ratio is 9%, the preset ratio ranges include (0-2%], (2%-4%], (4%-6%], (6%-8%] and (8% -10%), for CWmin, the corresponding first multiples are 1.07 times, 1.06 times, 1.05 times, 1.04 times and 1.03 times respectively; for CWmax, the corresponding first multiples are 1.06 times, 1.05 times, 1.04 times respectively . If it is necessary to increase CWmin, CWmax and AIFSN of the service data block, the corresponding first multiple of CWmin, CWmax and AIFSN of the service data block is 1.03 times, 1.02 times and 1.04 times respectively, and the CWmin of the service data block , CWmax and AIFSN are increased by the corresponding 1.03 times, 1.02 times and 1.04 times respectively.
当为第二种情况时,可以通过以下两种方式减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部:When it is the second case, part or all of the CWmin, CWmax and AIFSN of the service data block can be reduced in the following two ways:
第一种方式,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的设定的第二倍数进行减少;In the first way, part or all of the CWmin, CWmax and AIFSN of the service data block are respectively reduced according to the second multiple of the corresponding setting;
可选的,可以将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照设定的第二倍数进行减少。其中,第一倍数小于第二倍数。Optionally, some or all of the CWmin, CWmax, and AIFSN of the service data block may be respectively reduced by a set second multiple. Wherein, the first multiple is smaller than the second multiple.
例如,若第二倍数为1.2倍,则将所述业务数据块的CWmin、CWmax和AIFSN的部分或全部按照1.2倍减少。For example, if the second multiple is 1.2 times, part or all of the CWmin, CWmax and AIFSN of the service data block are reduced by 1.2 times.
可选的,还可以将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的设定的第二倍数进行减少。Optionally, some or all of the CWmin, CWmax, and AIFSN of the service data block may also be reduced by a corresponding set second multiple.
例如,若减少所述业务数据块的CWmin、CWmax和AIFSN,则将所述业务数据块的CWmin按照对应的1.2倍减少,CWmax按照1.21倍减少,AIFSN按照1.22倍减少。For example, if the CWmin, CWmax and AIFSN of the service data block are reduced, then the CWmin of the service data block is reduced by a corresponding 1.2 times, the CWmax is reduced by a 1.21 times, and the AIFSN is reduced by a 1.22 times.
第二种方式,根据预先设置的差值范围与参数集合中各参数对应的第二倍数的对应关系,确定所述第二阈值与所述比值之间的第二差值所在的差值范围对应的参数集合中各参数对应的第二倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第二倍数进行减少,其中,同一参数对应的所述第一倍数小于所述第二倍数。In the second way, according to the correspondence between the preset difference range and the second multiple corresponding to each parameter in the parameter set, it is determined that the second threshold corresponds to the difference range where the second difference between the ratios is located. The second multiple corresponding to each parameter in the parameter set of the parameter set, part or all of the CWmin, CWmax, and AIFSN of the service data block are respectively reduced according to the corresponding second multiple determined, wherein the same parameter corresponds to all The first multiple is smaller than the second multiple.
可选的,当所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部对应的第二倍数相同时,根据预先设置的差值范围与第二倍数的对应关系,确定所述第二阈值与所述比值之间的第二差值所在的差值范围对应的第二倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照所述确定的第二倍数进行减少。Optionally, when part or all of the CWmin, CWmax, and AIFSN of the service data block correspond to the same second multiple, the second threshold is determined according to the preset correspondence between the difference range and the second multiple A second multiple corresponding to the difference range where the second difference between the ratios is located, reducing part or all of the CWmin, CWmax, and AIFSN of the service data block according to the determined second multiple .
例如,若所述第二阈值为40%,预先设置的差值范围包括(0-15%]、(15%-30%]、(30%-45%]和(45%-60%),其对应的第二倍数分别为1.2倍、1.21倍、1.22倍和1.23倍,当所述比值为45%,则第二差值为5%,所在的差值范围为(0-15%],则对应的第二倍数为1.2倍,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照1.2倍进行减少。For example, if the second threshold is 40%, the preset difference ranges include (0-15%], (15%-30%], (30%-45%] and (45%-60%), The corresponding second multiples are 1.2 times, 1.21 times, 1.22 times and 1.23 times respectively. When the ratio is 45%, the second difference is 5%, and the difference range is (0-15%], Then the corresponding second multiple is 1.2 times, and part or all of the CWmin, CWmax, and AIFSN of the service data block are respectively reduced by 1.2 times.
可选的,当所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部对应的第二倍数不同时,根据预先设置的差值范围与参数集合中各参数对应的第二倍数的对应关系,确定所述第二阈值与所述比值之间的第二差值所在的差值范围对应的参数集合中各参数对应的第二倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第二倍数进行减少。Optionally, when part or all of the CWmin, CWmax, and AIFSN of the service data block have different second multiples, according to the correspondence between the preset difference range and the second multiples corresponding to the parameters in the parameter set , determining the second multiple corresponding to each parameter in the parameter set corresponding to the difference range where the second difference between the second threshold and the ratio is located, and dividing the CWmin, CWmax and AIFSN of the service data block Part or all of them are respectively reduced according to the corresponding determined second multiple.
例如,若所述第二阈值为40%,预先设置的差值范围包括(0-15%]、(15%-30%]、(30%-45%]和(45%-60%),针对CWmin,其对应的第二倍数分别为1.21倍、1.22倍、1.23倍和1.24倍,针对CWmax,其对应的第二倍数分别为1.2倍、1.21倍、1.22倍和1.23倍,针对AIFSN,其对应的第二倍数分别为1.24倍、1.25倍、1.26倍和1.27倍。当所述比值为45%,则第二差值为5%,所在的差值范围为(0-15%],若需要减少所述业务数据块的CWmin、CWmax和AIFSN,则所述业务数据块的CWmin、CWmax和AIFSN对应的第二倍数分别1.21倍、1.2倍和1.24倍,将所述业务数据块的CWmin、CWmax和AIFSN分别按照对应的1.21倍、1.2倍和1.24倍进行减少。For example, if the second threshold is 40%, the preset difference ranges include (0-15%], (15%-30%], (30%-45%] and (45%-60%), For CWmin, the corresponding second multiples are 1.21 times, 1.22 times, 1.23 times and 1.24 times respectively; for CWmax, the corresponding second multiples are 1.2 times, 1.21 times, 1.22 times and 1.23 times respectively; for AIFSN, its The corresponding second multiples are 1.24 times, 1.25 times, 1.26 times and 1.27 times respectively. When the ratio is 45%, the second difference is 5%, and the difference range is (0-15%], if Need to reduce the CWmin, CWmax and AIFSN of the service data block, then the second multiple corresponding to the CWmin, CWmax and AIFSN of the service data block is 1.21 times, 1.2 times and 1.24 times respectively, and the CWmin, CWmax and AIFSN of the service data block are reduced. CWmax and AIFSN are reduced by the corresponding 1.21 times, 1.2 times and 1.24 times respectively.
除了上述第二种方式外,还包括下面的第三种方式:In addition to the second method above, the following third method is also included:
根据预先设置的比值范围与参数集合中各参数对应的第二倍数的对应关系,确定所述比值所在的比值范围对应的参数集合中各参数对应的第二倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第二倍数进行减少。According to the correspondence between the preset ratio range and the second multiple corresponding to each parameter in the parameter set, determine the second multiple corresponding to each parameter in the parameter set corresponding to the ratio range where the ratio is located, and calculate the CWmin of the business data block Part or all of , CWmax and AIFSN are respectively reduced according to the corresponding determined second multiple.
可选的,当所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部对应的第二倍数相同时,可以根据预先设置的比值范围与第二倍数的对应关系,确定所述比值所在的比值范围对应的第二倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部按照所述确定的第二倍数进行减少。Optionally, when part or all of the CWmin, CWmax, and AIFSN of the service data block correspond to the same second multiple, the corresponding relationship between the preset ratio range and the second multiple can be used to determine the ratio. The second multiplier corresponding to the ratio range reduces part or all of the CWmin, CWmax and AIFSN of the service data block according to the determined second multiplier.
例如,若所述比值为45%,预先设置的比值范围包括(40%-50%]、(50%-60%]、(60%-70%]、(70%-80%]、(80%-90%]和(90%-100%),其对应的第二倍数分别为1.2倍、1.21倍、1.22倍、1.23倍、1.24倍和1.25倍,则所述比值所在的比值范围为(40%-50%],则对应的第二倍数为1.2倍,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照1.2倍进行减少。For example, if the ratio is 45%, the preset ratio ranges include (40%-50%], (50%-60%], (60%-70%], (70%-80%], (80% %-90%] and (90%-100%), the corresponding second multiples are 1.2 times, 1.21 times, 1.22 times, 1.23 times, 1.24 times and 1.25 times respectively, then the ratio range where the ratio is ( 40%-50%], then the corresponding second multiple is 1.2 times, and part or all of the CWmin, CWmax, and AIFSN of the service data block are respectively reduced by 1.2 times.
可选的,当所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部对应的第二倍数不同时,根据预先设置的比值范围与参数集合中各参数对应的第二倍数的对应关系,确定所述比值所在的比值范围对应的参数集合中各参数对应的第二倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第二倍数进行减少。Optionally, when part or all of the second multiples corresponding to CWmin, CWmax, and AIFSN of the service data block are different, according to the correspondence between the preset ratio range and the second multiple corresponding to each parameter in the parameter set, Determine the second multiple corresponding to each parameter in the parameter set corresponding to the ratio range where the ratio is located, and perform part or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding determined second multiple. reduce.
例如,若所述比值为45%,预先设置的比值范围包括(40%-50%]、(50%-60%]、(60%-70%]、(70%-80%]、(80%-90%]和(90%-100%),针对CWmin,其对应的第二倍数分别为1.2倍、1.21倍、1.22倍、1.23倍、1.24倍和1.25倍,针对CWmax,其对应的第一倍数分别为1.22倍、1.23倍、1.24倍、1.25倍、1.26倍和1.27倍,针对AIFSN,其对应的第一倍数分别为1.21倍、1.22倍、1.23倍、1.24倍、1.25倍和1.26倍。则所述比值所在的比值范围为(40%-50%],若需要增加所述业务数据块的CWmin、CWmax和AIFSN,则所述业务数据块的CWmin、CWmax和AIFSN对应的第一倍数分别1.2倍、1.22倍和1.21倍,将所述业务数据块的CWmin、CWmax和AIFSN分别按照对应的1.2倍、1.22倍和1.21倍进行减少。For example, if the ratio is 45%, the preset ratio ranges include (40%-50%], (50%-60%], (60%-70%], (70%-80%], (80% %-90%] and (90%-100%), for CWmin, its corresponding second multiple is 1.2 times, 1.21 times, 1.22 times, 1.23 times, 1.24 times and 1.25 times, for CWmax, its corresponding second multiple The multiples are 1.22 times, 1.23 times, 1.24 times, 1.25 times, 1.26 times and 1.27 times respectively. For AIFSN, the corresponding first multiples are 1.21 times, 1.22 times, 1.23 times, 1.24 times, 1.25 times and 1.26 times respectively The ratio range where the ratio is located is (40%-50%], if the CWmin, CWmax and AIFSN of the service data block need to be increased, the corresponding first multiple of the CWmin, CWmax and AIFSN of the service data block Respectively 1.2 times, 1.22 times and 1.21 times, the CWmin, CWmax and AIFSN of the service data block are respectively reduced according to the corresponding 1.2 times, 1.22 times and 1.21 times.
最后,基于所述TXOP Limit,通过抢占的所述目标信道发送所述业务数据块包括的业务报文。Finally, based on the TXOP Limit, send the service message included in the service data block through the preempted target channel.
以需要确定业务数据块对应的TXOP参数为例,本公开提出的数据传输方法的具体过程,如图4所示,包括:Taking the need to determine the TXOP parameter corresponding to the service data block as an example, the specific process of the data transmission method proposed in the present disclosure, as shown in Figure 4, includes:
步骤401,需要发送的业务调用DH_TXOP APP模块中的发送接口DH_TXOP_SOCKET向DH_TXOP APP模块发送业务数据块;
其中,DH_TXOP_SOCKET封装了系统的SOCKET SEND函数。Among them, DH_TXOP_SOCKET encapsulates the SOCKET SEND function of the system.
步骤402,DH_TXOP APP模块获取所述业务数据块的大小、业务类型以及各报文的源端口信息,并填充到BLOCK_INFO数据块信息结构;
由于业务层调用了DH_TXOP_SOCKET,DH_TXOP APP模块可以获取到业务数据块的大小。Since the business layer calls DH_TXOP_SOCKET, the DH_TXOP APP module can obtain the size of the business data block.
步骤403,DH_TXOP APP模块将BLOCK_INFO数据块信息发送给DH_TXOP CORE模块;
其中,DH_TXOP APP模块调用系统函数将业务数据块发送给其他层进行处理,此为现有技术,不再详细赘述。Wherein, the DH_TXOP APP module calls the system function to send the service data block to other layers for processing, which is a prior art and will not be described in detail.
步骤404,DH_TXOP CORE模块接收并解析DH_TXOP APP模块发送的BLOCK_INFO数据块信息;
步骤405,DH_TXOP CORE模块根据实际发送速率、业务数据块的大小、有效发送速率系数和偏差系数确定所述业务数据块对应的TXOP Limit;
步骤406,DH_TXOP CORE模块根据预先设置的数据块类型与参数集合的对应关系,确定所述业务数据块的业务类型对应的CWmin、CWmax以及AIFSN;
步骤407,DH_TXOP CORE模块将确定的所述业务数据块对应的TXOP参数下发给DH_TXOP DRIVER模块;
步骤408,DH_TXOP DRIVER模块接收所述业务数据块对应的TXOP参数;
步骤409,DH_TXOP DRIVER模块确定设定数量个已成功发送的历史业务报文中未带有源端口信息的第一业务报文和带有源端口信息的第二业务报文;
步骤410,DH_TXOP DRIVER模块确定所述第一业务报文的数量与所述第二业务报文的数量的比值在第一阈值与第二阈值之间,则不调整所述业务数据块的CWmin、CWmax和AIFSN;
步骤411,DH_TXOP DRIVER模块确定所述第一业务报文的数量与所述第二业务报文的数量的比值低于设定的第一阈值,则增加所述业务数据块的CWmin、CWmax和AIFSN;
步骤412,DH_TXOP DRIVER模块确定所述第一业务报文的数量与所述第二业务报文的数量的比值高于设定的第二阈值,则减少所述业务数据块的CWmin、CWmax和AIFSN;
步骤413,DH_TXOP DRIVER模块通过NetLink接口或其他接口将所述业务数据块的TXOP参数下发到WIFI Driver;
步骤414,WIFI Driver根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道;
步骤415,WIFI Driver基于所述TXOP Limit,通过抢占的所述目标信道发送所述业务数据块包括的业务报文。
在一些实施例中,基于相同的发明构思,本公开实施例还提供一种数据传输装置,由于该装置即是本公开实施例中的方法中的装置,并且该装置解决问题的原理与该方法相似,因此该装置的实施可以参见方法的实施,重复之处不再赘述。In some embodiments, based on the same inventive concept, an embodiment of the present disclosure also provides a data transmission device, since the device is the device in the method in the embodiment of the present disclosure, and the problem-solving principle of the device is the same as that of the method Similar, therefore, the implementation of the device can refer to the implementation of the method, and the repetition will not be repeated.
如图5所示,上述装置包括以下模块:As shown in Figure 5, the above-mentioned device includes the following modules:
第一确定模块501,用于基于需要发送的业务数据块的大小和有效发送速率,确定发送时间,其中所述有效发送速率是基于实际发送速率和设定的有效发送速率系数确定的;The first determining
第二确定模块502,用于根据确定的所述发送时间与设定的偏差系数,确定所述业务数据块对应的TXOP Limit;The second determining
抢占模块503,用于根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道;A
发送模块504,用于基于所述TXOP Limit,通过抢占的所述目标信道发送所述业务数据块包括的业务报文。The sending
作为一种可选的实施方式,所述根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道之前,所述装置还包括:As an optional implementation manner, before preempting the target channel according to the CWmin, CWmax and AIFSN of the service data block, the device further includes:
第三确定模块,用于根据预先设置的数据块类型与参数集合的对应关系,确定所述业务数据块的业务类型对应的参数集合,其中所述参数集合包括CWmin、CWmax以及AIFSN中的部分或全部。The third determination module is configured to determine the parameter set corresponding to the service type of the service data block according to the preset correspondence between the data block type and the parameter set, wherein the parameter set includes CWmin, CWmax, and part of AIFSN or all.
作为一种可选的实施方式,所述根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道之前,所述装置还包括:As an optional implementation manner, before preempting the target channel according to the CWmin, CWmax and AIFSN of the service data block, the device further includes:
第四确定模块,用于确定设定数量个已成功发送的历史业务报文中未带有源端口信息的第一业务报文和带有源端口信息的第二业务报文;The fourth determination module is used to determine the first service message without source port information and the second service message with source port information among the set number of successfully sent historical service messages;
调整模块,用于根据所述第一业务报文的数量与所述第二业务报文的数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部。An adjustment module, configured to adjust part or all of the CWmin, CWmax, and AIFSN of the service data block according to the ratio of the quantity of the first service message to the quantity of the second service message.
作为一种可选的实施方式,所述调整模块,用于根据所述第一业务报文的数量与所述第二业务报文的数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部,包括:As an optional implementation manner, the adjustment module is configured to adjust the CWmin, CWmax, and Some or all of the AIFSN, including:
若所述第一业务报文的数量与所述第二业务报文的数量的比值低于设定的第一阈值,则增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部;If the ratio of the number of the first service packets to the number of the second service packets is lower than a set first threshold, increasing some or all of the CWmin, CWmax, and AIFSN of the service data block;
若所述第一业务报文的数量与所述第二业务报文的数量的比值高于设定的第二阈值,则减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部;If the ratio of the number of the first service packets to the number of the second service packets is higher than the set second threshold, reduce some or all of the CWmin, CWmax and AIFSN of the service data block;
其中,所述第一阈值小于所述第二阈值。Wherein, the first threshold is smaller than the second threshold.
作为一种可选的实施方式,所述调整模块,用于增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部,包括:As an optional implementation manner, the adjustment module is configured to increase part or all of the CWmin, CWmax, and AIFSN of the service data block, including:
将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的设定的第一倍数进行增加;或者increasing some or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding set first multiple; or
根据预先设置的差值范围与参数集合中各参数对应的第一倍数的对应关系,确定所述第一阈值与所述比值之间的第一差值所在的差值范围对应的参数集合中各参数对应的第一倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第一倍数进行增加。According to the correspondence between the preset difference range and the first multiple corresponding to each parameter in the parameter set, determine each of the parameter sets corresponding to the difference range where the first difference between the first threshold and the ratio is located. The first multiple corresponding to the parameter is to increase part or all of the CWmin, CWmax and AIFSN of the service data block according to the corresponding determined first multiple.
作为一种可选的实施方式,所述调整模块,用于减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部,包括:As an optional implementation manner, the adjustment module is configured to reduce part or all of the CWmin, CWmax and AIFSN of the service data block, including:
将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的设定的第二倍数进行减少;或者Reducing some or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding set second multiple; or
根据预先设置的差值范围与参数集合中各参数对应的第二倍数的对应关系,确定所述第二阈值与所述比值之间的第二差值所在的差值范围对应的参数集合中各参数对应的第二倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第二倍数进行减少,其中,同一参数对应的所述第一倍数小于所述第二倍数。According to the correspondence between the preset difference range and the second multiple corresponding to each parameter in the parameter set, determine each of the parameter sets corresponding to the difference range where the second difference between the second threshold and the ratio is located. The second multiple corresponding to the parameter, reducing part or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding determined second multiple, wherein the first multiple corresponding to the same parameter is less than the second multiple.
在一些实施例中,基于相同的发明构思,本公开实施例中还提供了一种数据传输设备,该设备可以实现前文论述的数据传输功能,请参考图6,该设备包括处理器601和存储器602,其中所述存储器602用于存储程序指令;In some embodiments, based on the same inventive concept, embodiments of the present disclosure also provide a data transmission device, which can implement the data transmission function discussed above, please refer to FIG. 6 , the device includes a
所述处理器601调用所述存储器中存储的程序指令,通过运行所述程序指令以实现:The
基于需要发送的业务数据块的大小和有效发送速率,确定发送时间,其中所述有效发送速率是基于实际发送速率和设定的有效发送速率系数确定的;Determine the sending time based on the size of the service data block to be sent and the effective sending rate, wherein the effective sending rate is determined based on the actual sending rate and the set effective sending rate coefficient;
根据确定的所述发送时间与设定的偏差系数,确定所述业务数据块对应的TXOPLimit;Determine the TXOPLimit corresponding to the service data block according to the determined sending time and the set deviation coefficient;
根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道;Seize the target channel according to the CWmin, CWmax and AIFSN of the service data block;
基于所述TXOP Limit,通过抢占的所述目标信道发送所述业务数据块包括的业务报文。Based on the TXOP Limit, send the service packet included in the service data block through the preempted target channel.
作为一种可选的实施方式,所述根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道之前,所述处理器还执行:As an optional implementation manner, before preempting the target channel according to the CWmin, CWmax and AIFSN of the service data block, the processor further executes:
根据预先设置的数据块类型与参数集合的对应关系,确定所述业务数据块的业务类型对应的参数集合,其中所述参数集合包括CWmin、CWmax以及AIFSN中的部分或全部。Determine the parameter set corresponding to the service type of the service data block according to the preset correspondence between the data block type and the parameter set, where the parameter set includes part or all of CWmin, CWmax, and AIFSN.
作为一种可选的实施方式,所述根据所述业务数据块的CWmin、CWmax以及AIFSN,抢占目标信道之前,所述处理器还执行:As an optional implementation manner, before preempting the target channel according to the CWmin, CWmax and AIFSN of the service data block, the processor further executes:
确定设定数量个已成功发送的历史业务报文中未带有源端口信息的第一业务报文和带有源端口信息的第二业务报文;Determine the first service message without source port information and the second service message with source port information among the set number of successfully sent historical service messages;
根据所述第一业务报文的数量与所述第二业务报文的数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部。Adjust part or all of the CWmin, CWmax, and AIFSN of the service data block according to the ratio of the quantity of the first service packets to the quantity of the second service packets.
作为一种可选的实施方式,所述根据所述第一业务报文的数量与所述第二业务报文的数量的比值,调整所述业务数据块的CWmin、CWmax以及AIFSN中的部分或全部,包括:As an optional implementation manner, according to the ratio of the number of the first service message to the number of the second service message, adjusting part or all of the CWmin, CWmax and AIFSN of the service data block All, including:
若所述第一业务报文的数量与所述第二业务报文的数量的比值低于设定的第一阈值,则增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部;If the ratio of the number of the first service packets to the number of the second service packets is lower than a set first threshold, increasing some or all of the CWmin, CWmax, and AIFSN of the service data block;
若所述第一业务报文的数量与所述第二业务报文的数量的比值高于设定的第二阈值,则减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部;If the ratio of the number of the first service packets to the number of the second service packets is higher than the set second threshold, reduce some or all of the CWmin, CWmax and AIFSN of the service data block;
其中,所述第一阈值小于所述第二阈值。Wherein, the first threshold is smaller than the second threshold.
作为一种可选的实施方式,所述增加所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部,包括:As an optional implementation manner, the adding part or all of the CWmin, CWmax and AIFSN of the service data block includes:
将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的设定的第一倍数进行增加;或者increasing some or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding set first multiple; or
根据预先设置的差值范围与参数集合中各参数对应的第一倍数的对应关系,确定所述第一阈值与所述比值之间的第一差值所在的差值范围对应的参数集合中各参数对应的第一倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第一倍数进行增加。According to the correspondence between the preset difference range and the first multiple corresponding to each parameter in the parameter set, determine each of the parameter sets corresponding to the difference range where the first difference between the first threshold and the ratio is located. The first multiple corresponding to the parameter is to increase part or all of the CWmin, CWmax and AIFSN of the service data block according to the corresponding determined first multiple.
作为一种可选的实施方式,所述减少所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部,包括:As an optional implementation manner, the reducing part or all of the CWmin, CWmax and AIFSN of the service data block includes:
将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的设定的第二倍数进行减少;或者Reducing some or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding set second multiple; or
根据预先设置的差值范围与参数集合中各参数对应的第二倍数的对应关系,确定所述第二阈值与所述比值之间的第二差值所在的差值范围对应的参数集合中各参数对应的第二倍数,将所述业务数据块的CWmin、CWmax和AIFSN中的部分或全部分别按照对应的所述确定的第二倍数进行减少,其中,同一参数对应的所述第一倍数小于所述第二倍数。According to the correspondence between the preset difference range and the second multiple corresponding to each parameter in the parameter set, determine each of the parameter sets corresponding to the difference range where the second difference between the second threshold and the ratio is located. The second multiple corresponding to the parameter, reducing part or all of the CWmin, CWmax, and AIFSN of the service data block according to the corresponding determined second multiple, wherein the first multiple corresponding to the same parameter is less than the second multiple.
在一些可能的实施方式中,本公开的各个方面还可以实现为一种程序产品的形式,如图7所示,该计算机程序产品70包括计算机程序代码,当该计算机程序代码在计算机上运行时,使得计算机执行如前文论述任一的数据传输方法。由于上述计算机程序产品解决问题的原理与数据传输方法相似,因此上述计算机程序产品的实施可以参见方法的实施,重复之处不再赘述。In some possible implementations, various aspects of the present disclosure can also be implemented in the form of a program product. As shown in FIG. 7 , the
本领域内的技术人员应明白,本公开的实施例可提供为方法、系统、或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Accordingly, the present disclosure can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) having computer-usable program code embodied therein.
本公开是参照根据本公开实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的设备。The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a A device for realizing the functions specified in one or more steps of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令设备的制造品,该指令设备实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211104018.7A CN115567987A (en) | 2022-09-09 | 2022-09-09 | Data transmission method, device, equipment and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211104018.7A CN115567987A (en) | 2022-09-09 | 2022-09-09 | Data transmission method, device, equipment and medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115567987A true CN115567987A (en) | 2023-01-03 |
Family
ID=84741309
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211104018.7A Pending CN115567987A (en) | 2022-09-09 | 2022-09-09 | Data transmission method, device, equipment and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115567987A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116437486A (en) * | 2023-04-14 | 2023-07-14 | 上海物骐微电子有限公司 | Data transmission method, device and system and electronic equipment |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20070023811A (en) * | 2004-06-02 | 2007-02-28 | 퀄컴 인코포레이티드 | Scheduling Method and Device in Wireless Network |
| WO2007148027A2 (en) * | 2006-06-23 | 2007-12-27 | France Telecom | System and method for managing access to a time division multiple access network |
| US20080025342A1 (en) * | 2005-11-15 | 2008-01-31 | Samsung Electronics Co., Ltd. | Method and apparatus for allocating transmission opportunity in communication system |
| CN101582837A (en) * | 2008-05-12 | 2009-11-18 | 华为技术有限公司 | Service access control method, wireless access system and access control device |
| CN101895995A (en) * | 2004-06-02 | 2010-11-24 | 高通股份有限公司 | Method and apparatus for scheduling in a wireless network |
| CN102300262A (en) * | 2010-06-23 | 2011-12-28 | 索尼公司 | Wireless communication device, program, wireless communication method, and wireless communication system |
| US20220201622A1 (en) * | 2020-12-23 | 2022-06-23 | Intel Corporation | Devices and methods to minimize transimission energy and maximize throughput |
-
2022
- 2022-09-09 CN CN202211104018.7A patent/CN115567987A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20070023811A (en) * | 2004-06-02 | 2007-02-28 | 퀄컴 인코포레이티드 | Scheduling Method and Device in Wireless Network |
| CN101895995A (en) * | 2004-06-02 | 2010-11-24 | 高通股份有限公司 | Method and apparatus for scheduling in a wireless network |
| US20080025342A1 (en) * | 2005-11-15 | 2008-01-31 | Samsung Electronics Co., Ltd. | Method and apparatus for allocating transmission opportunity in communication system |
| WO2007148027A2 (en) * | 2006-06-23 | 2007-12-27 | France Telecom | System and method for managing access to a time division multiple access network |
| CN101582837A (en) * | 2008-05-12 | 2009-11-18 | 华为技术有限公司 | Service access control method, wireless access system and access control device |
| CN102300262A (en) * | 2010-06-23 | 2011-12-28 | 索尼公司 | Wireless communication device, program, wireless communication method, and wireless communication system |
| US20220201622A1 (en) * | 2020-12-23 | 2022-06-23 | Intel Corporation | Devices and methods to minimize transimission energy and maximize throughput |
Non-Patent Citations (1)
| Title |
|---|
| 柯熙政: "《紫外光自组织网络理论》", 30 June 2011, 科学出版社, pages: 183 - 185 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116437486A (en) * | 2023-04-14 | 2023-07-14 | 上海物骐微电子有限公司 | Data transmission method, device and system and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11937294B2 (en) | Communication method, apparatus, computer-readable medium and electronic device | |
| US20230308943A1 (en) | Communication devices and methods | |
| CN108141882B (en) | Adjustment of data flows with different priorities and contention window parameters in contention-based systems | |
| JP2023547130A (en) | Communication devices and methods | |
| WO2017201654A1 (en) | Data transmission method, network device and terminal device | |
| WO2002054671A2 (en) | Random medium access methods with backoff adaptation to traffic | |
| CN106549737B (en) | A kind of data transmission method and device | |
| US10117068B2 (en) | Multi-acked multicast protocol | |
| WO2025077533A1 (en) | Low-latency traffic transmission method and system | |
| US12317298B2 (en) | Systems, devices, and methods related to configuring multi-stream network based on stream capability | |
| CN118140523A (en) | Communication device and method for TXOP truncation | |
| CN115567987A (en) | Data transmission method, device, equipment and medium | |
| US10420140B2 (en) | Multi-destination burst protocol | |
| JP7693940B2 (en) | Communication method and device | |
| US9197482B1 (en) | Optimizing quality of service in wireless networks | |
| CN112994848B (en) | MCS (modulation and coding scheme) adjusting method and device, storage medium and wireless node | |
| CN113747602B (en) | Communication method and device | |
| CN113692717B (en) | Data transmission method, device, communication equipment and storage medium | |
| WO2022089643A1 (en) | Method for adjusting enhanced distributed channel access parameter of real-time application, and communication device | |
| CN112449255A (en) | Message processing method and computer storage medium | |
| US12363766B2 (en) | Data transmission method and communication device | |
| WO2024188113A1 (en) | Communication method and apparatus | |
| CN120602056A (en) | Communication method and communication device | |
| CN118784056A (en) | Timing advance adjustment method and system, base station, user equipment and non-terrestrial network | |
| TW202349919A (en) | Device and method of handling real-time data transmission |
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 |