WO2024021859A1 - Data transmission methods and apparatus, storage medium, and program product - Google Patents

Data transmission methods and apparatus, storage medium, and program product Download PDF

Info

Publication number
WO2024021859A1
WO2024021859A1 PCT/CN2023/097876 CN2023097876W WO2024021859A1 WO 2024021859 A1 WO2024021859 A1 WO 2024021859A1 CN 2023097876 W CN2023097876 W CN 2023097876W WO 2024021859 A1 WO2024021859 A1 WO 2024021859A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
data transmission
time slice
sta
information
Prior art date
Application number
PCT/CN2023/097876
Other languages
French (fr)
Chinese (zh)
Inventor
王智飞
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2024021859A1 publication Critical patent/WO2024021859A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/1221Wireless traffic scheduling based on age of data to be sent
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/08Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access]
    • H04W74/0808Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using carrier sensing, e.g. as in CSMA
    • H04W74/0816Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using carrier sensing, e.g. as in CSMA carrier sensing with collision avoidance

Definitions

  • the embodiments of the present application relate to the field of communication technology, and in particular to a data transmission method, device, storage medium and program product.
  • the Carrier Sense Multiple Access with Collision Avoid (CSMA/CA) protocol is usually used to avoid multiple stations (Station, STA) transmitting data to the access point (Access) at the same time.
  • Point, AP Point, AP to send data, that is, the STA needs to detect whether the channel is idle before sending data. If it detects that the channel is idle, it will wait for a random period of time before sending data to the AP. Since the waiting time is random, the CSMA/CA protocol can effectively avoid conflicts when STAs send data at the same time to a certain extent, but it will cause a waste of network resources and a reduction in transmission efficiency in certain scenarios. .
  • Embodiments of the present application provide a data transmission method, device, storage medium and program product.
  • embodiments of the present application provide a data transmission method, including: receiving multiple requests to send data frames sent by multiple sites; sending data frames according to the requests to obtain time slice schedules corresponding to multiple sites Result: The time slice scheduling result is sent to all the stations, so that the stations perform data transmission according to the time scheduling result.
  • embodiments of the present application provide a data transmission method, including: sending a request to an access point to send a data frame; receiving a time slice scheduling result sent by the access point; and sending a data frame to the access point according to the time slice scheduling result.
  • the access point sends communication data.
  • embodiments of the present application provide a data transmission device, which includes at least one processor; at least one memory for storing at least one program; when at least one of the programs is executed by at least one of the processors Implement the data transmission method as described in the first aspect or the second aspect.
  • embodiments of the present application provide a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to perform the tasks described in the first aspect or the second aspect. data transmission method.
  • embodiments of the present application provide a computer program product, including a computer program or computer instructions, characterized in that the computer program or the computer instructions are stored in a computer-readable storage medium, and the processor of the computer device is configured to The computer-readable storage medium reads the computer program or the computer instructions, and the processor executes The computer program or the computer instruction causes the computer device to execute the data transmission method as described in the first aspect or the second aspect.
  • Figure 1 is a schematic diagram of a hidden terminal in a wireless network in related technologies
  • Figure 2 is a schematic flow chart of the method of applying RTS/CTS mechanism to solve hidden terminals
  • FIG. 3 is a schematic diagram of the WLAN system architecture provided by an embodiment of the present application.
  • Figure 4 is a flow chart of a data transmission method provided by an embodiment of the present application.
  • Figure 5 is a flow chart for generating data transmission time slices provided by an embodiment of the present application.
  • Figure 6 is a flow chart for verifying transmission data provided by an embodiment of the present application.
  • Figure 7 is a flow chart of a data transmission method provided by yet another embodiment of the present application.
  • Figure 8 is a module diagram of an example access point device in this application.
  • Figure 9 is a schematic flow chart of a data transmission method provided by an example of this application.
  • Figure 10 is a module diagram of another example site equipment of this application.
  • Figure 11 is a schematic flow chart of a data transmission method provided by another example of this application.
  • Figure 12 is a schematic structural diagram of a data transmission device provided by an embodiment of the present application.
  • the wireless channel has only one collision domain, for a specific AP, there can only be one STA transmitting data with it within its sending and receiving range at the same time.
  • the CSMA/CA protocol stipulates that before sending data, all STAs must wait for a short period of time (continue to listen) before sending the next frame. This period of time is commonly called the InterFrame Space (IFS).
  • IFS InterFrame Space
  • the length of the inter-frame interval depends on the type of frame the STA wants to send. High-priority frames need to wait for a shorter time, so they can be sent first, but low-priority frames have to wait for a longer time.
  • the media becomes busy, and the low-priority frame can only be sent later, thus reducing the chance of collision. .
  • this mechanism can effectively avoid conflicts caused by multiple STAs accessing the network, it also greatly wastes network resources to a certain extent.
  • FIG. 1 is a schematic diagram of a hidden terminal in a wireless network. As shown in the figure, there is one AP10 and two STAs, namely STA1 and STA2. The dotted line range around STA1 indicates the sending range of STA1, and the dotted line range surrounding STA2 indicates the sending range of STA2. It can be seen that the sending ranges of the two STAs do not overlap. Therefore, when the two STAs are sending data, they cannot be physically monitored. method to detect whether the other party has sent data, that is, the two STAs are each other's hidden terminals.
  • RTS/CTS Request To Send/Clear To Send
  • STA1 and STA2 will always mistakenly think that the channel is idle. Therefore, if STA1 and STA2 send data to AP 10 at the same time, a conflict will occur, causing AP 10 to be unable to receive data normally. Therefore, when the terminal is hidden, data packets cannot be delivered when the network performance is at its worst. In other words, the throughputs of STA1 and STA2 are both close to 0.
  • FIG. 2 is a schematic flow chart of the RTS/CTS mechanism in solving hidden terminals.
  • STA2 wants to send data to AP 10
  • it will first send a request to send an RTS data frame to AP 10. If there is no conflict at AP 10, that is, AP 10 successfully demodulates the RTS of STA2, AP 10 will send a CTS data frame allowed to be sent to STA2 after waiting for a certain period of time. Neither the RTS data frame nor the CTS data frame is encrypted.
  • the wireless channel is a broadcast channel
  • all STAs can receive and parse the information, so STA1 can also receive and parse the CTS information.
  • STA1 receives the CTS frame
  • STA1 will not send data packets to AP 10 during this period, thus solving the problem of hidden STA conflict.
  • the RTS/CTS mechanism also has its limitations. Because this mechanism is based on the CSMA/CA protocol, it still wastes a lot of resources in the process of competing for channels, such as the waste of backoff time caused by the backoff mechanism and the waiting time before sending packets. The waste and the waste of time to resend data packets when conflicts occur, etc.
  • embodiments of the present application provide a data transmission method, device, storage medium and program product.
  • the AP actively generates a time slice scheduling result for the STA by receiving and parsing the request data frame sent by the STA in advance, and assigns the time slice to the STA.
  • the scheduling results are sent to each STA, allowing the STA to transmit data within the specified time slice, reducing the waiting time of each STA before transmitting data, saving channel resources and improving transmission efficiency while avoiding conflicts.
  • the embodiments of this application can be applied to various site STAs. It is a device with wireless connection function and capable of providing voice and/or data connectivity to users. It can also be called a terminal device or user equipment (UE). , mobile station (MS), mobile terminal (mobile terminal, MT), etc.
  • UE user equipment
  • MS mobile station
  • MT mobile terminal
  • sites include: mobile phones, tablets, laptops, PDAs, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (augmented reality, AR) equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, and smart grids Wireless terminals, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, vehicle-mounted equipment, etc.
  • the embodiments of this application can be applied to various access points AP, which are devices in communication systems that connect sites to wireless networks. They can also be called radio access network (radio access network, RAN) nodes (or devices) and base stations. wait.
  • access points are: gNB, transmission reception point (TRP), evolved Node B (eNB), radio network controller (radio network controller, RNC), Node B ( Node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), Home base station (for example, home evolved NodeB, or home Node B, HNB), base band unit (base band unit, BBU), or Wi-Fi access point device, or home gateway device, or has the ability to connect the site to the wireless network Functional optical network unit (ONU), or it can also be called an ONU that inherits the function of a Wi-Fi access point, or other devices that can connect sites to wireless network functions, or other devices that can operate in a wireless environment Interface equipment working in.
  • ONU
  • the embodiments of this application can be applied to WLAN systems.
  • the WLAN system may include one or more APs and one or more STAs.
  • Figure 3 is a schematic diagram of the WLAN system architecture provided by the embodiment of the present application.
  • the WLAN system 100 in Figure 3 exemplarily includes an access point AP 110 and three STAs, namely a terminal 120, a terminal 130 and a terminal 140.
  • STAs each terminal is associated with AP 110 and needs to transmit data with AP 100.
  • the number of APs and STAs in the above WLAN system is only exemplary and does not constitute a limitation on the embodiments of the present application.
  • Figure 4 is a flow chart of a data transmission method provided by an embodiment of the present application.
  • the data transmission method at least includes but is not limited to steps S1000, S2000, and S3000.
  • Step S1000 Receive multiple request-to-send data frames sent by multiple sites.
  • one or more STAs connected to the AP need to actively send a request to send RTS data frame to the AP.
  • the AP is responsible for receiving the request to send RTS data frame actively sent by the STA.
  • the AP has a designated time period for receiving RTS data frames. Only within the time period of the RTS data frame specified by the AP, the STA can send RTS data. The frame is sent to the AP and received by the AP; if the STA finds that the current time is not within the time period of the RTS data frame specified by the AP, it needs to wait until the time period of the next RTS data frame specified by the AP before sending the RTS data frame.
  • Step S2000 Send data frames according to the request to obtain time slice scheduling results corresponding to multiple sites.
  • the AP parses the RTS data frames and extracts all required data.
  • the RTS data frame contains at least one of the following information: the identification of the STA (such as MAC address), the size of the data packet to be transmitted, the type of data to be transmitted (video, voice, text, etc.), the number of data packets to be transmitted, and STA processing capability information.
  • the AP calculates the data transmission time slice corresponding to the site and obtains the time scheduling result.
  • the time scheduling result includes the data transmission time slice corresponding to one or more sites.
  • the STA identifier is used to identify which STA needs to perform data transmission, so that when the AP feeds back the time slice scheduling result, it can feed back the time slice information to the corresponding STA.
  • the size of the data packet to be sent and the number of data packets to be transmitted are used by the AP to evaluate the time required for transmission. If the data packet is large or there are many data packets, a longer time slice may be allocated to the corresponding STA for data transmission. , if the data packet is small or there are few data packets, a shorter time slice may be allocated to the corresponding STA for transmitting data.
  • the type of data to be transmitted determines the priority of data transmission. For video data or audio data with high real-time requirements, the transmission priority may be higher than the priority of text data transmission.
  • the data priority can also be pre-set according to the needs of the scenario, so as to meet the data transmission requirements in specific application scenarios.
  • FIG. 5 is a flow chart for generating data transmission time slices provided by an embodiment of the present application, illustrating the generation process of data transmission time slices.
  • the data transmission time slice generation process includes at least steps S2100, S2200, and S2300.
  • Step S2100 Obtain weight parameters.
  • the time slice scheduling algorithm needs to fully consider the processing capability of the STA, the amount of data to be transmitted, and the type of data to be transmitted. Therefore, preset weight parameters corresponding to the above variables are obtained, and these weight parameters are used to make a comprehensive evaluation of each data to be transmitted by each STA. It is understandable that these weight parameters can be flexibly adjusted according to the different needs of different scenarios. For example, in scenarios with high real-time requirements for data transmission, the weight value corresponding to the data type to be transmitted can be configured larger, so that after calculating the evaluation results, those video data will be sent with higher priority to ensure real-time sex.
  • Step S2200 Perform weighted calculation on the site processing capability information, data volume information and data priority information according to the weight parameters to obtain the evaluation result.
  • R represents the evaluation result obtained by the final weighted calculation
  • A represents the evaluation value of the number of packets sent
  • B represents the priority evaluation value of the data packet
  • C represents the numerical evaluation value of the STA's processing capability
  • ⁇ 1 represents the weighting coefficient of the number of packets A
  • ⁇ 2 Represents the weighting coefficient of data packet priority B
  • eta 3 represents the weighting coefficient of STA processing capability C.
  • Step S2300 According to the evaluation results, obtain the data transmission time slice corresponding to the site.
  • STAs are ranked according to the evaluation results. If the number of STA sites to be transmitted is less than or equal to the preset quantity threshold, the amount of data to be transmitted is less than or equal to the preset data volume threshold, or the transmission time is less than or equal to the preset time threshold, then all STAs can Obtain the opportunity to send data, and the order of sending data is in descending order according to the evaluation value (or value) of the evaluation result, and the corresponding data transmission time slice is allocated according to the amount of data to be transmitted or the transmission time.
  • STAs are ranked according to the evaluation results. If the number of STA sites to be transmitted is greater than the preset quantity threshold, or the amount of data to be transmitted is greater than the preset data volume threshold, or the transmission time is greater than the preset time threshold, only some STAs may be able to obtain Opportunities to send data, and the STAs that have obtained the opportunity to send are sorted from large to small according to the evaluation results to obtain the order of data transmission, and allocate corresponding data transmission time slices based on the amount of data to be transmitted or the transmission time.
  • the number of sent RTS data frames can also be used as a variable to participate in the calculation, and a weight can be configured for it, so that the data of earlier STAs can be sent as soon as possible.
  • Step S3000 Send the time slice scheduling results to all stations, so that the stations can perform data transmission according to the time scheduling results.
  • the AP uses the data transmission time slices corresponding to multiple STAs as the time slice scheduling results and broadcasts them to all STAs associated with them, so that all STAs can receive and parse the time slice scheduling results, so that each STA All can know whether they have the opportunity to send and within what time they can send. This reduces the waiting time of each STA before transmitting data, saves channel resources and improves transmission efficiency while avoiding conflicts.
  • Figure 6 is a flow chart for verifying transmission data provided by an embodiment of the present application, as shown in the figure.
  • Step S4100 After receiving the communication data sent by the site, verify the data transmission time of the site according to the data transmission time slice corresponding to the site, and obtain the verification result.
  • the AP when the AP receives the communication data sent by the STA, it needs to verify the relevant information, mainly to determine whether the currently received STA data was transmitted within a specified time slice. If it is the current time slice, If the STA is allowed, the data is legally transmitted; if the STA is not allowed in the current time slice, the data is illegally transmitted. Verifying the validity of data is to ensure that the STA transmits data according to the AP's scheduling time, avoids data conflicts, maintains the order of data transmission, and improves data transmission efficiency.
  • Step S4200 Is the data transmission time consistent with the corresponding data transmission time slice?
  • the verification results are two possibilities, one is that the data transmission time is consistent with the corresponding data transmission time slice, that is, the data is legally transmitted; the other is that the data transmission time is inconsistent with the corresponding data transmission time slice, That is, illegally transmitted data.
  • Step S4300 Send communication data.
  • the AP sends the STA's data and then replies with a feedback result to the STA. If the data is received normally, the feedback result is ACK; if the data is received abnormally, the feedback result is NACK.
  • Step S4400 No processing of communication data.
  • the verification result is that the data transmission time is inconsistent with the corresponding data transmission time slice, it means that the current STA does not send data correctly according to the time schedule, and the AP does not process the received communication data.
  • This communication data may be cached or discarded directly.
  • Figure 7 is a flow chart of a data transmission method provided by an embodiment of the present application.
  • the data transmission method at least includes but is not limited to steps S5000, S6000, and S7000.
  • Step S5000 Send a request to send a data frame to the access point.
  • a STA with data transmission requirements sends an RTS data frame to the AP.
  • the data frame carries at least one of the following information: site identification information, data packet size information to be transmitted, number of data packets to be transmitted, data type to be transmitted, and site processing capability information.
  • Step S6000 Receive the time slice scheduling result sent by the access point.
  • the AP parses the information in the data frame based on the received RTS data frame, and performs calculations based on the preset time slice scheduling algorithm to obtain the data transmission time slice corresponding to each STA, and combines these The data transmission time slice is used as the time slice scheduling result and is broadcast to STAs in the domain.
  • the STA parses the broadcast packet and extracts the STA that obtained the time slice and the corresponding data transmission time slice information from the broadcast packet.
  • Step S7000 Send communication data to the access point according to the time slice scheduling result.
  • the STA information of the time slice obtained in the broadcast is consistent with the current STA information, it means that the STA can send data to the AP in the corresponding time slice; if the STA information of the time slice obtained in the broadcast is consistent with the current STA information, If the information of the current STA is inconsistent, it means that the current STA has not got the opportunity to send data and needs to wait for the next round of RTS data frame request. In the request phase, the RTS data frame is sent again. If the current STA obtains the time slice, it sends the data to be sent to the AP within the corresponding time slice allowed by the AP, and waits for the feedback result and data returned by the AP. If the STA does not obtain the time slice, it cannot send data to the AP to prevent occupying wireless information, ensure that the STA obtains the time slice exclusive resources, and improve wireless resource utilization.
  • each STA Before each STA prepares to send an RTS data frame, it also needs to determine whether the AP is allowed to receive RTS data frames at the current moment, that is, determine whether the access point is currently in the request phase, and obtain the judgment result. If the judgment result is that it is in the request phase, the STA can send the RTS data frame; if the judgment result is that it is not in the request phase, the STA needs to wait for the access point to enter the RTS data frame request phase.
  • Example 1 is the AP-based module structure and the corresponding data transmission method flow
  • Example 2 is the STA-based module structure and the corresponding data transmission method flow.
  • the scheduling time is divided into three time periods.
  • the first time period is mainly to receive the RTS data frames of each STA.
  • the AP performs overall calculation on the received RTS data frames of the STA.
  • a certain algorithm arranges the priority and time of each STA's packet sending, and the third time period broadcasts the scheduling results to all STAs.
  • the communication time is when the STA and AP that meet the scheduling conditions for communication send and receive data.
  • the AP device 300 has four modules, which are a receiving module 310, a sending module 320, a time slice scheduling module 330 and a processing module 340. Next, each module will be introduced respectively.
  • Receiving module 310 This module is responsible for receiving data packets from STAs. It mainly receives two aspects of data. On the one hand, it receives RTS data frames of all currently connected STAs. On the other hand, it receives data packets of STAs that have obtained communication time slices. . The STA reports the data information that the STA needs to send through the RTS data frame, and the scheduling time stage receiving module is responsible for receiving this information. When the STA meets the scheduling results and obtains the time slice, and needs to send data to the AP within the specified time, the receiving module receives the STA's data packet and processes the data.
  • Sending module 320 This module is responsible for sending data. It needs to send two aspects of data, broadcast the time slice scheduling result, and after receiving the data from the STA, reply to the STA to indicate that the packet data has been received. After the AP schedules the STA's packet sending order, it needs to broadcast the results. On the one hand, it tells the corresponding STA to obtain the corresponding time slice and can send data to the AP within the corresponding time slice. On the other hand, it tells other STAs that the AP in this time period Busy, the AP will not receive data sent by other STAs, and the next time the AP receives data. During the communication phase, after receiving the data sent by the STA, the AP replies with a confirmation message ACK or NACK to the STA, indicating whether the data is normal.
  • Time slice scheduling module 330 This module is responsible for AP channel time scheduling, which is mainly divided into two aspects of scheduling, one is the allocation of scheduling time, and the other is the scheduling of STA packet sending time.
  • Scheduling time is divided into RTS time, scheduling time, and broadcast time.
  • the RTS time period receives RTS requests from all STAs, the scheduling time period coordinates the received requests and obtains the allocation results, and the broadcast time broadcasts the allocation results.
  • Scheduling time RTS time T1 + calculation time T2 + broadcast time T3. The three times are dynamically adjusted. If there are fewer STAs currently connected, the RTS time will be shorter; if there are more STAs currently connected, more RTS time can be allocated.
  • the scheduling of packet sending time means that the AP parses the RTS data frame received from the STA, allocates the time slice according to the current situation of each STA, and then forwards the time slice allocation result to the sending
  • the module is broadcast to all STAs.
  • the time slice scheduling algorithm needs to comprehensively consider the situation of the AP and all STAs.
  • the AP not only needs to perform data services, but also needs to reserve a certain amount of time to communicate with other STAs other than the current STA, and needs to be updated in real time to ensure that each STAs have the opportunity to report RTS data frames.
  • the RTS data frame includes information such as the size, quantity and priority of the data packets to be sent by the STA.
  • the time scheduling module performs a weighted average of the RTS data of each STA, and then allocates the packet sending time to the specific STA according to the priority.
  • the communication time can consider the number and priority of the current STAs. If there are fewer STAs currently connected, the communication time can be allocated longer, and vice versa. If the priority of the current data packet is higher, the weighting can be appropriately increased during calculation. coefficient.
  • Processing module 340 This module is responsible for coordinating the contract sending module, receiving module and time slice scheduling module. Process the data received by the receiving module. If there is data to be sent to the sending module, transfer the sending data to the sending module, and hand over the RTS data frame to the time slice scheduling module.
  • Figure 9 is a schematic flowchart of a data transmission method provided in an example of this application. As shown in the figure, the data transmission method performed by the AP device includes at least steps S101 to S106.
  • Step S101 Monitor the RTS data frame of the STA
  • the STA connected to the AP needs to proactively report RTS data frames to the AP.
  • the AP is responsible for receiving the RTS data frames proactively reported by the STA.
  • Step S102 Parse the RTS data frame of the STA
  • RTS data contains at least one of the following information: STA identification (such as MAC address), the size of the data packet to be sent, the type of data (video, voice, text, etc.), the number of packets needed to be sent, and the processing capability information of the STA .
  • STA identification such as MAC address
  • the size of the data packet to be sent the size of the data packet to be sent
  • the type of data video, voice, text, etc.
  • the number of packets needed to be sent the processing capability information of the STA .
  • Step S103 Perform time slice scheduling based on the analysis results
  • the RTS data of all STAs are summarized and calculated, and the weighted average number of packets sent by each STA is calculated according to the time slice scheduling algorithm, and then the STA and STA sending data of the obtained time slice are obtained.
  • the time slice scheduling algorithm fully considers the processing capability of the STA, the number of data packets to be sent by the STA, and the data type.
  • R represents the result of the final weighted calculation
  • A represents the evaluation value of the number of packets sent
  • B represents the priority evaluation value of the data packet
  • C represents the numerical evaluation value of the STA's processing capability
  • eta 1 represents the weighting coefficient of the number of packets sent A
  • eta 2 represents the data.
  • the weighting coefficient of packet priority B, eta 3 represents the weighting coefficient of STA processing capability C.
  • the data type is used to evaluate the priority of the package. For example, video data has high real-time requirements and needs to be sent first. Obtain The priority of sending the package will be higher. Finally, a comprehensive evaluation is performed to obtain the STA that obtains the contract issuance time slice and the assigned contract issuance time.
  • Step S104 Broadcast the time scheduling result to the STA.
  • the scheduling result of step S103 is sent to all STAs in the form of broadcast.
  • the content of the broadcast includes the STA that obtains the time slice and the time the STA is allowed to send data. Then if the corresponding time slice arrives, the AP communicates with the STA in the corresponding time slice, and other STAs stop sending data to the AP.
  • Step S105 Transmit communication data with STA.
  • the AP receives the communication data of the STA that has obtained the time slice. After receiving the data, the AP verifies the STA information. If it is an STA allowed by the current time slice, the AP saves the data. If the received information If the data of the STA does not obtain the time slice, it will not be processed.
  • the STA's data will be sent, and then the result will be replied to the STA. If the data is received normally, an ACK will be replied. If the data is received abnormally, a NACK will be replied. At the same time, if there is return data that needs to be sent to STA, the data will be sent to STA.
  • the communication cycle between the AP and STA continues without waiting until the end of the time slice, which maximizes the utilization of the time slice.
  • Step S106 Carry out the next round of process.
  • the data transmission method provided in this example can improve channel resource utilization and data transmission efficiency based on high utilization of time slices.
  • the scheduling time is divided into two time periods.
  • the first time period is when the STA sends RTS data frames to the AP.
  • the second time period is when the STA receives the scheduling information broadcast by the AP.
  • the communication time is if the current STA is assigned the corresponding time slice, the STA and the AP communicate.
  • the STA device 400 has three modules, namely a receiving module 410, a sending module 420 and a processing module 430. Next, each module will be introduced respectively.
  • Receiving module 410 This module is responsible for receiving data packets sent by the AP. It mainly receives two types of data, broadcast packets from the AP during the scheduling period and reply packets from the AP during the communication phase. After the STA sends the RTS data frame to the AP during the scheduling time period, the receiving module starts waiting for the broadcast packet from the AP. In the communication phase, if the current STA obtains the communication time slice and sends the communication data to the AP, the receiving module is responsible for receiving the AP's reply packet.
  • Sending module 420 This module is responsible for sending data packets to the AP. Mainly sends two types of data, RTS data frame and communication data. During the scheduling period, the sending module is responsible for sending the STA's RTS data frame to the AP. In the communication phase, if the current STA obtains a communication time slice, the sending module is responsible for sending communication data to the AP.
  • Processing module 430 This module is responsible for processing the data received by the receiving module. If there is data to be sent to the AP, the processing module will transfer the data to the sending module.
  • Figure 11 is a schematic flowchart of a data transmission method provided by another example of this application.
  • Step C201 Determine whether data is sent?
  • Step C202 Is the monitoring AP busy?
  • the STA if the current STA has data to send, it needs to determine the status of the AP. If the current AP is in the RTS request phase, the STA will send the RTS data to the AP. If the current AP is not in the RTS request phase, it needs to wait for the AP to arrive. RTS requests can be sent only during the RTS request phase.
  • Step S201 Send RTS data frame.
  • the STA sends an RTS data frame to the AP.
  • the RTS data frame needs to contain the STA's identification information, the size of the data packet sent by the STA, the type of data, and the STA's processing capability information.
  • the STA's identification information is to identify the current STA to facilitate distinction from other STAs; the data packet size indicates the amount of data that the current STA needs to send; the data type is used to indicate the priority of the data to be sent; and the STA's processing capability information is used to indicate STA's processing capability. If the current STA's processing capability is strong, it can quickly process the data after receiving the data. If the STA's processing capability is weak, it will take a long time to process the data, resulting in a certain degree of time waste.
  • Step S202 Receive the time slice scheduling result broadcast packet of the AP.
  • the STA after the STA sends the RTS data frame to the AP, it then waits for the AP's time slice to schedule broadcast packets.
  • Step S203 Parse the time slice scheduling broadcast packet.
  • the STA after receiving the AP's time slice scheduling broadcast packet, the STA parses the broadcast packet and extracts the STA that obtained the time slice and the corresponding time slice information from the broadcast packet.
  • Step C203 Determine whether the time slice is obtained?
  • the STA information of the time slice obtained in the broadcast is consistent with the current STA information, it means that the STA can send data to the AP within the corresponding time slice; if the STA information of the time slice obtained in the broadcast is consistent with the current STA information, If the information of the STA is inconsistent, it means that the current STA has not been given the opportunity to send data and needs to wait for the next round of RTS request phase to send the RTS data frame again.
  • Step S204 Transmit communication data with the STA.
  • the current STA obtains the time slice, it will send the data to be sent to the AP within the corresponding time slice allowed by the AP, and wait for the return result and data from the AP; if the STA does not obtain the time slice, it cannot send data to the AP. Prevent the occupation of wireless information, ensure the acquisition of STA exclusive resources in time slices, and improve wireless resource utilization.
  • Step S205 Carry out the next round of process.
  • the data transmission method provided in this example can improve channel resource utilization and data transmission efficiency based on high utilization of time slices.
  • Figure 12 is a schematic structural diagram of a data transmission device provided by an embodiment of the present application. As shown in Figure 12, an embodiment of the present application also provides a data transmission device 500, including: at least one processor 502; at least one memory 501, Used to store at least one program; when at least one program is executed by at least one of the processors, the above data transmission method is implemented.
  • a data transmission device 500 including: at least one processor 502; at least one memory 501, Used to store at least one program; when at least one program is executed by at least one of the processors, the above data transmission method is implemented.
  • An embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions.
  • the computer-executable instructions are used to execute the data transmission method provided by any embodiment of the present application.
  • An embodiment of the present application also provides a computer program product, which includes a computer program or computer instructions.
  • the computer program or computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer program from the computer-readable storage medium.
  • Program or computer instructions the processor executes the computer program or computer instructions, so that the computer device performs the data transmission method provided by any embodiment of the present application.
  • the AP receives and parses the request sending number sent by the STA in advance. According to the data frame, it actively generates the time slice scheduling results for STA, and delivers the time slice scheduling results to each STA, so that the STA can transmit data in the specified time slice, reducing the waiting time of each STA before transmitting data. On the premise of avoiding conflicts, channel resources are saved and transmission efficiency is improved.
  • the division between functional modules/modules mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may consist of several physical components. Components execute cooperatively. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage devices, or may Any other medium used to store the desired information and that can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
  • a component may be, but is not limited to, a process, processor, object, executable file, thread of execution, program or computer running on a processor.
  • applications running on the computing device and the computing device may be components.
  • One or more components can reside in a process or thread of execution, and the component can be localized on one computer or distributed between 2 or more computers. Additionally, these components can execute from various computer-readable media having various data structures stored thereon.
  • a component may, for example, be based on a signal having one or more data packets (eg, data from two components interacting with another component, such as a local system, a distributed system, or a network, such as the Internet, which interacts with other systems via signals) Communicate through local or remote processes.
  • data packets eg, data from two components interacting with another component, such as a local system, a distributed system, or a network, such as the Internet, which interacts with other systems via signals

Abstract

Provided in the embodiments of the present application are data transmission methods and apparatus, a storage medium, and a program product. A data transmission method comprises: receiving a plurality of data transmission request frames sent by a plurality of stations (S1000); according to the data transmission request frames, obtaining a time slice scheduling result corresponding to the plurality of stations (S2000); and sending the time slice scheduling result to all the stations, so that the stations perform data transmission according to the time scheduling result (S3000).

Description

数据传输方法、装置、存储介质及程序产品Data transmission methods, devices, storage media and program products
相关申请的交叉引用Cross-references to related applications
本申请基于申请号为202210907486.1、申请日为2022年7月29日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is filed based on a Chinese patent application with application number 202210907486.1 and a filing date of July 29, 2022, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference into this application.
技术领域Technical field
本申请实施例涉及通信技术领域,特别涉及一种数据传输方法、装置、存储介质及程序产品。The embodiments of the present application relate to the field of communication technology, and in particular to a data transmission method, device, storage medium and program product.
背景技术Background technique
在无线网络传输中,通常采用带有冲突避免的载波侦听多路访问(Carrier Sense Multiple Access with Collision Avoid,CSMA/CA)协议来避免多个站点(Station,STA)同时向接入点(Access Point,AP)发送数据导致的冲突,即,STA需要在发送数据前检测信道是否空闲,如果检测到信道空闲,则等待一段随机时间后,才向AP发出数据。由于等待的时间是随机的,所以CSMA/CA协议在一定程度上可以有效地避免各STA同时发送数据时产生的冲突,但其在某种特定场景中会造成网络资源的浪费与传输效率的降低。In wireless network transmission, the Carrier Sense Multiple Access with Collision Avoid (CSMA/CA) protocol is usually used to avoid multiple stations (Station, STA) transmitting data to the access point (Access) at the same time. Point, AP) to send data, that is, the STA needs to detect whether the channel is idle before sending data. If it detects that the channel is idle, it will wait for a random period of time before sending data to the AP. Since the waiting time is random, the CSMA/CA protocol can effectively avoid conflicts when STAs send data at the same time to a certain extent, but it will cause a waste of network resources and a reduction in transmission efficiency in certain scenarios. .
发明内容Contents of the invention
本申请实施例提供一种数据传输方法、装置、存储介质及程序产品。Embodiments of the present application provide a data transmission method, device, storage medium and program product.
第一方面,本申请实施例提供一种数据传输方法,包括:接收多个站点发送的多个请求发送数据帧;根据所述请求发送数据帧,得到对应于多个所述站点的时间片调度结果;将所述时间片调度结果发送给所有所述站点,使得所述站点根据所述时间调度结果进行数据传输。In a first aspect, embodiments of the present application provide a data transmission method, including: receiving multiple requests to send data frames sent by multiple sites; sending data frames according to the requests to obtain time slice schedules corresponding to multiple sites Result: The time slice scheduling result is sent to all the stations, so that the stations perform data transmission according to the time scheduling result.
第二方面,本申请实施例提供一种数据传输方法,包括:向接入点发送请求发送数据帧;接收所述接入点发送的时间片调度结果;根据所述时间片调度结果,向所述接入点发送通信数据。In the second aspect, embodiments of the present application provide a data transmission method, including: sending a request to an access point to send a data frame; receiving a time slice scheduling result sent by the access point; and sending a data frame to the access point according to the time slice scheduling result. The access point sends communication data.
第三方面,本申请实施例提供一种数据传输装置,所述装置包括至少一个处理器;至少一个存储器,用于存储至少一个程序;当至少一个所述程序被至少一个所述处理器执行时实现如第一方面或第二方面所述的数据传输方法。In a third aspect, embodiments of the present application provide a data transmission device, which includes at least one processor; at least one memory for storing at least one program; when at least one of the programs is executed by at least one of the processors Implement the data transmission method as described in the first aspect or the second aspect.
第四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于执行如第一方面或第二方面所述的数据传输方法。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to perform the tasks described in the first aspect or the second aspect. data transmission method.
第五方面,本申请实施例提供一种计算机程序产品,包括计算机程序或计算机指令,其特征在于,所述计算机程序或所述计算机指令存储在计算机可读存储介质中,计算机设备的处理器从所述计算机可读存储介质读取所述计算机程序或所述计算机指令,所述处理器执行 所述计算机程序或所述计算机指令,使得所述计算机设备执行如第一方面或第二方面所述的数据传输方法。In a fifth aspect, embodiments of the present application provide a computer program product, including a computer program or computer instructions, characterized in that the computer program or the computer instructions are stored in a computer-readable storage medium, and the processor of the computer device is configured to The computer-readable storage medium reads the computer program or the computer instructions, and the processor executes The computer program or the computer instruction causes the computer device to execute the data transmission method as described in the first aspect or the second aspect.
附图说明Description of drawings
图1是相关技术中无线网络隐藏终端的示意图;Figure 1 is a schematic diagram of a hidden terminal in a wireless network in related technologies;
图2是应用RTS/CTS机制解决隐藏终端的方法流程示意图;Figure 2 is a schematic flow chart of the method of applying RTS/CTS mechanism to solve hidden terminals;
图3是本申请一实施例提供的WLAN系统架构示意图;Figure 3 is a schematic diagram of the WLAN system architecture provided by an embodiment of the present application;
图4是本申请一实施例提供的数据传输方法的流程图;Figure 4 is a flow chart of a data transmission method provided by an embodiment of the present application;
图5是本申请一实施例提供的生成数据传输时间片的流程图;Figure 5 is a flow chart for generating data transmission time slices provided by an embodiment of the present application;
图6是本申请一实施例提供的对传输数据进行验证的流程图;Figure 6 is a flow chart for verifying transmission data provided by an embodiment of the present application;
图7是本申请又一实施例提供的数据传输方法的流程图;Figure 7 is a flow chart of a data transmission method provided by yet another embodiment of the present application;
图8是本申请一示例接入点设备的模块图;Figure 8 is a module diagram of an example access point device in this application;
图9为本申请一示例提供的数据传输方法的流程示意图;Figure 9 is a schematic flow chart of a data transmission method provided by an example of this application;
图10是本申请另一示例站点设备的模块图;Figure 10 is a module diagram of another example site equipment of this application;
图11为本申请另一示例提供的数据传输方法的流程示意图;Figure 11 is a schematic flow chart of a data transmission method provided by another example of this application;
图12是本申请实施例提供的数据传输装置的结构示意图。Figure 12 is a schematic structural diagram of a data transmission device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
需要说明的是,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although the functional modules are divided in the device schematic diagram and the logical sequence is shown in the flow chart, in some cases, the modules can be divided into different modules in the device or the order in the flow chart can be executed. The steps shown or described. The terms "first", "second", etc. in the description, claims, and above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific sequence or sequence.
本申请实施例中,“进一步地”、“示例性地”或者“可选地”等词用于表示作为例子、例证或说明,不应被解释为比其它实施例或设计方案更优选或更具有优势。使用“进一步地”、“示例性地”或者“可选地”等词旨在以具体方式呈现相关概念。In the embodiments of this application, words such as "further", "exemplarily" or "optionally" are used as examples, illustrations or illustrations, and should not be interpreted as being more preferable or better than other embodiments or designs. Advantages. The use of the words "further," "exemplarily," or "optionally" is intended to present the relevant concepts in a specific manner.
由于无线信道只有一个冲突域的特性,因此对于某个特定的AP,在其收发范围内,同时只能有一个STA与其进行数据传输,无线网络中为了避免多个STA同时访问网络所带来的冲突问题,采用协议CSMA/CA协议。协议中规定,所有的STA发送数据前,必须再等待一段很短的时间(继续监听)才能发送下一帧。这段时间通称为帧间间隔(InterFrame Space,IFS)。帧间间隔的长短取决于STA要发送的帧的类型。高优先级帧需要等待的时间较短,因此可优先获得发送权,但低优先级帧就必须等待较长的时间。若低优先级帧还没来得及发送而其他站的高优先级帧已发送到媒体,则媒体变为忙态,那么低优先级帧就只能再推迟发送了,这样就减少了发生碰撞的机会。该机制虽然可以有效地避免多STA访问网络时所带来的冲突问题,但在某种程度上也极大地浪费了网络资源。 Since the wireless channel has only one collision domain, for a specific AP, there can only be one STA transmitting data with it within its sending and receiving range at the same time. In the wireless network, in order to avoid the problems caused by multiple STAs accessing the network at the same time, For conflict issues, the CSMA/CA protocol is adopted. The protocol stipulates that before sending data, all STAs must wait for a short period of time (continue to listen) before sending the next frame. This period of time is commonly called the InterFrame Space (IFS). The length of the inter-frame interval depends on the type of frame the STA wants to send. High-priority frames need to wait for a shorter time, so they can be sent first, but low-priority frames have to wait for a longer time. If the low-priority frame has not had time to be sent but high-priority frames from other stations have been sent to the media, the media becomes busy, and the low-priority frame can only be sent later, thus reducing the chance of collision. . Although this mechanism can effectively avoid conflicts caused by multiple STAs accessing the network, it also greatly wastes network resources to a certain extent.
CSMA/CA协议中具有请求发送/允许发送(Request To Send/Clear To Send,RTS/CTS)机制,该机制主要是用来解决无线网络中的隐藏终端问题。图1是无线网络中隐藏终端的示意图。如图所示,图中具有一个AP10和两个STA,分别为STA1与STA2。围绕STA1的虚线范围表示STA1的发送范围,围绕STA2的虚线范围表示STA2的发送范围,可以看出,两个STA的发送范围没有重叠,因此,两个STA在发送数据时,是无法通过物理监听的方法,探测对方是否有发送数据,即两个STA互为隐藏终端。按照CSMA/CA机制,STA1和STA2会一直误认为信道空闲,因此,如果当STA1和STA2同时向AP 10发送数据时,就会引起冲突,导致AP 10无法正常接收数据。所以在隐藏终端的情况下,网络性能最差时是无法传递数据包的,换言之,STA1与STA2的吞吐量都趋近于0。The CSMA/CA protocol has a Request To Send/Clear To Send (RTS/CTS) mechanism, which is mainly used to solve the problem of hidden terminals in wireless networks. Figure 1 is a schematic diagram of a hidden terminal in a wireless network. As shown in the figure, there is one AP10 and two STAs, namely STA1 and STA2. The dotted line range around STA1 indicates the sending range of STA1, and the dotted line range surrounding STA2 indicates the sending range of STA2. It can be seen that the sending ranges of the two STAs do not overlap. Therefore, when the two STAs are sending data, they cannot be physically monitored. method to detect whether the other party has sent data, that is, the two STAs are each other's hidden terminals. According to the CSMA/CA mechanism, STA1 and STA2 will always mistakenly think that the channel is idle. Therefore, if STA1 and STA2 send data to AP 10 at the same time, a conflict will occur, causing AP 10 to be unable to receive data normally. Therefore, when the terminal is hidden, data packets cannot be delivered when the network performance is at its worst. In other words, the throughputs of STA1 and STA2 are both close to 0.
为了解决上述隐藏终端的问题,故在CSMA/CA中引入了RTS/CTS机制。图2是RTS/CTS机制在解决隐藏终端过程中的流程示意图,如图所示,当STA2要给AP 10发送数据前,首先会发送请求发送RTS数据帧给AP 10。若在AP 10处没有冲突,即AP 10成功解调出STA2的RTS,AP 10会在等待某时长后发送允许发送CTS数据帧给STA2。RTS数据帧和CTS数据帧都没有加密,由于无线信道是一个广播信道,当数据帧没有加密时,那么所有STA都是可以接收并解析其信息的,所以STA1也可以接收并解析该CTS信息。STA1在接收到CTS帧时,当其解析出某时间段AP 10允许STA2发数据,STA1在这段时间内就不会向AP 10发送数据包,这样就解决了隐藏STA冲突问题。然而,RTS/CTS机制也有其局限性,因为该机制是基于CSMA/CA协议的,其在竞争信道的过程中仍然会浪费大量的资源,比如退避机制导致的退避时间的浪费、发包前等待时间的浪费以及发生冲突重发数据包时间的浪费等。In order to solve the above-mentioned hidden terminal problem, the RTS/CTS mechanism was introduced in CSMA/CA. Figure 2 is a schematic flow chart of the RTS/CTS mechanism in solving hidden terminals. As shown in the figure, when STA2 wants to send data to AP 10, it will first send a request to send an RTS data frame to AP 10. If there is no conflict at AP 10, that is, AP 10 successfully demodulates the RTS of STA2, AP 10 will send a CTS data frame allowed to be sent to STA2 after waiting for a certain period of time. Neither the RTS data frame nor the CTS data frame is encrypted. Since the wireless channel is a broadcast channel, when the data frame is not encrypted, all STAs can receive and parse the information, so STA1 can also receive and parse the CTS information. When STA1 receives the CTS frame, when it parses that AP 10 allows STA2 to send data during a certain period of time, STA1 will not send data packets to AP 10 during this period, thus solving the problem of hidden STA conflict. However, the RTS/CTS mechanism also has its limitations. Because this mechanism is based on the CSMA/CA protocol, it still wastes a lot of resources in the process of competing for channels, such as the waste of backoff time caused by the backoff mechanism and the waiting time before sending packets. The waste and the waste of time to resend data packets when conflicts occur, etc.
基于此,本申请实施例提供一种数据传输方法、装置、存储介质及程序产品,AP通过接收并解析STA预先发送的请求发送数据帧,主动生成对STA的时间片调度结果,并将时间片调度结果下发给各STA,使STA能够在规定的时间片中进行数据传输,减少了各STA在传输数据前的等待时间,在避免冲突的前提下,节省了信道资源,提高了传输效率。Based on this, embodiments of the present application provide a data transmission method, device, storage medium and program product. The AP actively generates a time slice scheduling result for the STA by receiving and parsing the request data frame sent by the STA in advance, and assigns the time slice to the STA. The scheduling results are sent to each STA, allowing the STA to transmit data within the specified time slice, reducing the waiting time of each STA before transmitting data, saving channel resources and improving transmission efficiency while avoiding conflicts.
本申请实施例可以应用于各种站点STA,是一种具有无线连接功能,能够向用户提供语音和/或数据连通性的设备,又可以称之为终端设备、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。目前,一些站点的举例包括:手机(mobile phone)、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、车载设备等。The embodiments of this application can be applied to various site STAs. It is a device with wireless connection function and capable of providing voice and/or data connectivity to users. It can also be called a terminal device or user equipment (UE). , mobile station (MS), mobile terminal (mobile terminal, MT), etc. Currently, some examples of sites include: mobile phones, tablets, laptops, PDAs, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (augmented reality, AR) equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, and smart grids Wireless terminals, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, vehicle-mounted equipment, etc.
本申请实施例可以应用于各种接入点AP,是通信系统中将站点接入到无线网络的设备,又可以称为无线接入网(radio access network,RAN)节点(或设备)、基站等。目前,一些接入点的举例为:gNB、传输接收点(transmission reception point,TRP)、演进型节点B(evolved Node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(Node B,NB)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、 家庭基站(例如,home evolved NodeB,或home Node B,HNB)、基带单元(base band unit,BBU),或Wi-Fi接入点设备,或者家庭网关设备,或者具备将站点接入到无线网络功能的光网络单元(optical network unit,ONU),或者也可以称为继承了Wi-Fi接入点功能的ONU,或者其他能够将站点接入到无线网络功能的设备,或者其他能够在无线环境中工作的接口设备。The embodiments of this application can be applied to various access points AP, which are devices in communication systems that connect sites to wireless networks. They can also be called radio access network (radio access network, RAN) nodes (or devices) and base stations. wait. Currently, some examples of access points are: gNB, transmission reception point (TRP), evolved Node B (eNB), radio network controller (radio network controller, RNC), Node B ( Node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), Home base station (for example, home evolved NodeB, or home Node B, HNB), base band unit (base band unit, BBU), or Wi-Fi access point device, or home gateway device, or has the ability to connect the site to the wireless network Functional optical network unit (ONU), or it can also be called an ONU that inherits the function of a Wi-Fi access point, or other devices that can connect sites to wireless network functions, or other devices that can operate in a wireless environment Interface equipment working in.
本申请实施例可以应用于WLAN系统。该WLAN系统可以包括一个或者多个AP,以及一个或多个STA。图3是本申请实施例提供的WLAN系统架构示意图,在图3中的WLAN系统100示例性地包含了一个接入点AP 110以及三个STA,分别为终端120、终端130和终端140,三个终端作为STA均与AP 110关联,并需要与AP 100进行数据传输。可以理解的是,上述WLAN系统中的AP和STA的数量仅是示例性的,并不构成对本申请实施例的限定。The embodiments of this application can be applied to WLAN systems. The WLAN system may include one or more APs and one or more STAs. Figure 3 is a schematic diagram of the WLAN system architecture provided by the embodiment of the present application. The WLAN system 100 in Figure 3 exemplarily includes an access point AP 110 and three STAs, namely a terminal 120, a terminal 130 and a terminal 140. As STAs, each terminal is associated with AP 110 and needs to transmit data with AP 100. It can be understood that the number of APs and STAs in the above WLAN system is only exemplary and does not constitute a limitation on the embodiments of the present application.
图4是本申请一实施例提供的数据传输方法的流程图,数据传输方法至少包括但不限于步骤S1000、S2000、S3000。Figure 4 is a flow chart of a data transmission method provided by an embodiment of the present application. The data transmission method at least includes but is not limited to steps S1000, S2000, and S3000.
步骤S1000:接收多个站点发送的多个请求发送数据帧。Step S1000: Receive multiple request-to-send data frames sent by multiple sites.
在一实施例中,连接在AP的一个或多个STA如果有数据发送,则需要给AP主动发送请求发送RTS数据帧,AP负责接收STA主动发送的请求发送RTS数据帧。In one embodiment, if one or more STAs connected to the AP have data to send, they need to actively send a request to send RTS data frame to the AP. The AP is responsible for receiving the request to send RTS data frame actively sent by the STA.
需要说明的是,为了保证对STA的调度效率与数据传输效率,AP具有指定的用于接收RTS数据帧的时间段,只有在AP指定的RTS数据帧的时间段內,STA才可以发送RTS数据帧给AP,并被AP接收;如果STA经过检测发现当前时刻不在AP指定的RTS数据帧的时间段內,则需要等待至下一AP指定的RTS数据帧的时间段再发送RTS数据帧。It should be noted that in order to ensure the scheduling efficiency and data transmission efficiency of STA, the AP has a designated time period for receiving RTS data frames. Only within the time period of the RTS data frame specified by the AP, the STA can send RTS data. The frame is sent to the AP and received by the AP; if the STA finds that the current time is not within the time period of the RTS data frame specified by the AP, it needs to wait until the time period of the next RTS data frame specified by the AP before sending the RTS data frame.
步骤S2000:根据请求发送数据帧,得到对应于多个站点的时间片调度结果。Step S2000: Send data frames according to the request to obtain time slice scheduling results corresponding to multiple sites.
在一实施例中,当AP接收完所有STA的RTS数据帧后,解析RTS数据帧,提取所有需要的数据。RTS数据帧至少包含如下信息之一:STA的标识(例如MAC地址)、待传输的数据包的大小、待传输的数据类型(视频、语音、文本等)、待传输的数据包个数、以及STA的处理能力信息。AP根据得到的站点信息以及待传输数据信息,对站点对应的数据传输时间片进行计算,得到时间调度结果,时间调度结果中包含有一个或多个站点对应的数据传输时间片。In one embodiment, after receiving the RTS data frames of all STAs, the AP parses the RTS data frames and extracts all required data. The RTS data frame contains at least one of the following information: the identification of the STA (such as MAC address), the size of the data packet to be transmitted, the type of data to be transmitted (video, voice, text, etc.), the number of data packets to be transmitted, and STA processing capability information. Based on the obtained site information and data information to be transmitted, the AP calculates the data transmission time slice corresponding to the site and obtains the time scheduling result. The time scheduling result includes the data transmission time slice corresponding to one or more sites.
可以理解的是,STA的标识用于标识是哪个STA需要进行数据传输,使得AP在反馈时间片调度结果时,能够将时间片信息反馈给对应的STA。待发送的数据包大小和待传输的数据包个数用于AP评估传输所需的时间,如果数据包大或者数据包多,则可能分配更长的时间片给对应的STA用于其传输数据,如果数据包小或者数据包少,则可能分配更短的时间片给对应的STA用于其传输数据。待传输的数据类型决定了数据传输的优先级,对于实时性要求较高的视频数据或音频数据,其传输的优先级可能高于文本数据传输的优先级。It can be understood that the STA identifier is used to identify which STA needs to perform data transmission, so that when the AP feeds back the time slice scheduling result, it can feed back the time slice information to the corresponding STA. The size of the data packet to be sent and the number of data packets to be transmitted are used by the AP to evaluate the time required for transmission. If the data packet is large or there are many data packets, a longer time slice may be allocated to the corresponding STA for data transmission. , if the data packet is small or there are few data packets, a shorter time slice may be allocated to the corresponding STA for transmitting data. The type of data to be transmitted determines the priority of data transmission. For video data or audio data with high real-time requirements, the transmission priority may be higher than the priority of text data transmission.
可以理解的是,数据优先级也可以根据场景需要而预先设置,从而满足特定应用场景下的数据传输需求。It is understandable that the data priority can also be pre-set according to the needs of the scenario, so as to meet the data transmission requirements in specific application scenarios.
图5是本申请实施例提供的生成数据传输时间片的流程图,说明数据传输时间片的生成过程。在本实施例中,数据传输时间片的生成过程至少包括步骤S2100、S2200、S2300。FIG. 5 is a flow chart for generating data transmission time slices provided by an embodiment of the present application, illustrating the generation process of data transmission time slices. In this embodiment, the data transmission time slice generation process includes at least steps S2100, S2200, and S2300.
步骤S2100:获取权重参数。 Step S2100: Obtain weight parameters.
在一实施例中,时间片调度算法需要充分考虑STA的处理能力、待传输的数据量以及待传输的数据类型。因此,获取对应于上述变量的预设权重参数,这些权重参数用于对每个STA的每次待传输的数据作出综合评估。可以理解的是,根据不同场景的不同需求,这些权重参数可以被灵活调整。例如,在数据传输实时性要求较高的场景中,可以将待传输的数据类型对应的权重值配置的大一些,这样在计算评估结果后,将更为优先地发送那些视频数据,以保证实时性。In one embodiment, the time slice scheduling algorithm needs to fully consider the processing capability of the STA, the amount of data to be transmitted, and the type of data to be transmitted. Therefore, preset weight parameters corresponding to the above variables are obtained, and these weight parameters are used to make a comprehensive evaluation of each data to be transmitted by each STA. It is understandable that these weight parameters can be flexibly adjusted according to the different needs of different scenarios. For example, in scenarios with high real-time requirements for data transmission, the weight value corresponding to the data type to be transmitted can be configured larger, so that after calculating the evaluation results, those video data will be sent with higher priority to ensure real-time sex.
步骤S2200:根据权重参数,对站点处理能力信息、数据量信息与数据优先级信息进行加权计算,得到评估结果。Step S2200: Perform weighted calculation on the site processing capability information, data volume information and data priority information according to the weight parameters to obtain the evaluation result.
在一实施例中,采用下述公式进行评估结果的计算:
R=η1×A+η2×B+η3×C
In one embodiment, the following formula is used to calculate the evaluation result:
R=n 1 ×A+n 2 ×B+n 3 ×C
其中R表示最后加权计算得到的评估结果,A表示发包数量评估值,B表示数据包的优先级评估值,C表示STA的处理能力数值评估值,η1表示发包数量A的加权系数,η2表示数据包优先级B的加权系数,η3表示STA处理能力C的加权系数。发包数量A越大,获取到发包的机会就越大;数据类型B用于评估发包的优先级,例如视频数据对实时性要求较高,需要优先发送,获取发包的优先级也会越高;STA处理能力C越强,发包的机会越大。Among them, R represents the evaluation result obtained by the final weighted calculation, A represents the evaluation value of the number of packets sent, B represents the priority evaluation value of the data packet, C represents the numerical evaluation value of the STA's processing capability, η 1 represents the weighting coefficient of the number of packets A, η 2 Represents the weighting coefficient of data packet priority B, and eta 3 represents the weighting coefficient of STA processing capability C. The larger the number of packets A, the greater the chance of obtaining the packet; the data type B is used to evaluate the priority of the packet. For example, video data has high real-time requirements and needs to be sent first, and the priority of obtaining the packet will be higher; The stronger the STA's processing capability C, the greater the chance of sending a contract.
步骤S2300:根据评估结果,得到站点对应的数据传输时间片。Step S2300: According to the evaluation results, obtain the data transmission time slice corresponding to the site.
在一实施例中,根据评估结果对STA进行排序。如果待传输数据的STA站点的数量小于或等于预设的数量阈值,且传输的数据量小于或等于预设的数据量阈值或者传输时间小于或等于预设的时间阈值,则所有的STA均能够获得发送数据的机会,并且发送数据的顺序按照评估结果的评估值(或数值)从大到小依次进行,并根据待传输的数据量或者传输时间分配对应的数据传输时间片。In one embodiment, STAs are ranked according to the evaluation results. If the number of STA sites to be transmitted is less than or equal to the preset quantity threshold, the amount of data to be transmitted is less than or equal to the preset data volume threshold, or the transmission time is less than or equal to the preset time threshold, then all STAs can Obtain the opportunity to send data, and the order of sending data is in descending order according to the evaluation value (or value) of the evaluation result, and the corresponding data transmission time slice is allocated according to the amount of data to be transmitted or the transmission time.
在一实施例中,根据评估结果对STA进行排序。如果待传输数据的STA站点的数量大于预设的数量阈值,或者,传输的数据量大于预设的数据量阈值,或者,传输时间大于预设的时间阈值,则可能仅有部分的STA能够获得发送数据的机会,并对获得发送机会的STA按照评估结果从大到小排序,得到数据传输的顺序,并根据待传输的数据量或者传输时间分配对应的数据传输时间片。需要说明的是,对于没有在本次获得数据传输时间片的STA,可以等待下一次AP指定的用于接收RTS数据帧的时间段再发送一次RTS数据帧,并按照前述步骤再次参与评估结果的计算。而为了避免有些STA的数据始终无法获得对应的数据传输时间片,也可以将发送的RTS数据帧次数作为一个变量参与计算,并为其配置权重,使更早期的STA的数据能够尽快发送。In one embodiment, STAs are ranked according to the evaluation results. If the number of STA sites to be transmitted is greater than the preset quantity threshold, or the amount of data to be transmitted is greater than the preset data volume threshold, or the transmission time is greater than the preset time threshold, only some STAs may be able to obtain Opportunities to send data, and the STAs that have obtained the opportunity to send are sorted from large to small according to the evaluation results to obtain the order of data transmission, and allocate corresponding data transmission time slices based on the amount of data to be transmitted or the transmission time. It should be noted that for STAs that have not obtained the data transmission time slice this time, they can wait for the next time period designated by the AP for receiving RTS data frames before sending an RTS data frame, and follow the aforementioned steps to participate in the evaluation results again. calculate. In order to avoid that the data of some STAs cannot always obtain the corresponding data transmission time slice, the number of sent RTS data frames can also be used as a variable to participate in the calculation, and a weight can be configured for it, so that the data of earlier STAs can be sent as soon as possible.
步骤S3000:将时间片调度结果发送给所有站点,使得站点根据时间调度结果进行数据传输。Step S3000: Send the time slice scheduling results to all stations, so that the stations can perform data transmission according to the time scheduling results.
在一实施例中,AP将多个STA对应的数据传输时间片作为时间片调度结果,广播发送给与其关联的所有STA,使得所有的STA都能够接收并解析时间片调度结果,从而每个STA均能了解自身是否具有发送机会以及在什么时间内进行发送。从而减少了各STA在传输数据前的等待时间,在避免冲突的前提下,节省了信道资源,提高了传输效率。In one embodiment, the AP uses the data transmission time slices corresponding to multiple STAs as the time slice scheduling results and broadcasts them to all STAs associated with them, so that all STAs can receive and parse the time slice scheduling results, so that each STA All can know whether they have the opportunity to send and within what time they can send. This reduces the waiting time of each STA before transmitting data, saves channel resources and improves transmission efficiency while avoiding conflicts.
图6是本申请一实施例提供的对传输数据进行验证的流程图,如图所示。 Figure 6 is a flow chart for verifying transmission data provided by an embodiment of the present application, as shown in the figure.
步骤S4100:在接收站点发送的通信数据后,根据站点对应的数据传输时间片,对站点的数据传输时间进行验证,得到验证结果。Step S4100: After receiving the communication data sent by the site, verify the data transmission time of the site according to the data transmission time slice corresponding to the site, and obtain the verification result.
在一实施例中,当AP接收到STA发送的通信数据后,需要对相关信息进行校验,主要为判断当前接收的STA的数据是否为在规定的时间片内传输的,如果是当前时间片允许的STA,则属于合法传输的数据;如果不是当前时间片允许的STA,则属于非法传输的数据。校验数据得合法性是为了确保STA按照AP的调度时间进行数据传输,避免数据的冲突,并且维持数据传输的秩序,提升数据传输效率。In one embodiment, when the AP receives the communication data sent by the STA, it needs to verify the relevant information, mainly to determine whether the currently received STA data was transmitted within a specified time slice. If it is the current time slice, If the STA is allowed, the data is legally transmitted; if the STA is not allowed in the current time slice, the data is illegally transmitted. Verifying the validity of data is to ensure that the STA transmits data according to the AP's scheduling time, avoids data conflicts, maintains the order of data transmission, and improves data transmission efficiency.
步骤S4200:数据传输时间与对应的数据传输时间片是否一致?Step S4200: Is the data transmission time consistent with the corresponding data transmission time slice?
在一实施例中,验证结果为两种可能性,一种数据传输时间与对应的数据传输时间片一致,即合法传输的数据;另一种为数据传输时间与对应的数据传输时间片不一致,即非法传输的数据。In one embodiment, the verification results are two possibilities, one is that the data transmission time is consistent with the corresponding data transmission time slice, that is, the data is legally transmitted; the other is that the data transmission time is inconsistent with the corresponding data transmission time slice, That is, illegally transmitted data.
步骤S4300:对通信数据进行发送处理。Step S4300: Send communication data.
在一实施例中,验证结果为数据传输时间与对应的数据传输时间片一致,则AP将STA的数据发送出去,然后给STA回复一个反馈结果。如果数据接收正常,则反馈结果为ACK;如果数据接收异常,则反馈结果为NACK。In one embodiment, if the verification result is that the data transmission time is consistent with the corresponding data transmission time slice, the AP sends the STA's data and then replies with a feedback result to the STA. If the data is received normally, the feedback result is ACK; if the data is received abnormally, the feedback result is NACK.
步骤S4400:不对通信数据进行处理。Step S4400: No processing of communication data.
在一实施例中,验证结果为数据传输时间与对应的数据传输时间片不一致,则说明当前STA没有按照时间调度正确的发送数据,则AP对接收到的通信数据不做处理。这些通信数据可能被缓存,也可能被直接丢弃。In one embodiment, if the verification result is that the data transmission time is inconsistent with the corresponding data transmission time slice, it means that the current STA does not send data correctly according to the time schedule, and the AP does not process the received communication data. This communication data may be cached or discarded directly.
通过本申请上述实施例,可以看出,AP和STA的通信循环连续进行,不进行等待,直至时间片结束,这样能够提高网络资源的利用效率与数据传输效率。Through the above embodiments of the present application, it can be seen that the communication cycle between the AP and the STA continues without waiting until the time slice ends, which can improve the utilization efficiency of network resources and data transmission efficiency.
图7是本申请一实施例提供的数据传输方法的流程图。数据传输方法至少包括但不限于步骤S5000、S6000、S7000。Figure 7 is a flow chart of a data transmission method provided by an embodiment of the present application. The data transmission method at least includes but is not limited to steps S5000, S6000, and S7000.
步骤S5000:向接入点发送请求发送数据帧。Step S5000: Send a request to send a data frame to the access point.
在一实施例中,具有数据传输需求的STA向AP发送RTS数据帧。数据帧中携带有至少以下之一的信息:站点标识信息、待传输的数据包大小信息、待传输的数据包数量信息、待传输的数据类型以及站点处理能力信息。In one embodiment, a STA with data transmission requirements sends an RTS data frame to the AP. The data frame carries at least one of the following information: site identification information, data packet size information to be transmitted, number of data packets to be transmitted, data type to be transmitted, and site processing capability information.
步骤S6000:接收接入点发送的时间片调度结果。Step S6000: Receive the time slice scheduling result sent by the access point.
在一实施例中,AP根据接收到的RTS数据帧,对数据帧内的信息进行解析,并根据预设的时间片调度算法进行计算,得到每个STA对应的数据传输时间片,并将这些数据传输时间片作为时间片调度结果,广播发送给域内的STA。STA接收到AP的时间片调度结果广播包后,解析该广播包,并从广播包中提取获取到时间片的STA以及对应的数据传输时间片信息。In one embodiment, the AP parses the information in the data frame based on the received RTS data frame, and performs calculations based on the preset time slice scheduling algorithm to obtain the data transmission time slice corresponding to each STA, and combines these The data transmission time slice is used as the time slice scheduling result and is broadcast to STAs in the domain. After receiving the broadcast packet of the AP's time slice scheduling result, the STA parses the broadcast packet and extracts the STA that obtained the time slice and the corresponding data transmission time slice information from the broadcast packet.
步骤S7000:根据时间片调度结果,向接入点发送通信数据。Step S7000: Send communication data to the access point according to the time slice scheduling result.
在一实施例中,如果广播中获取到时间片的STA信息和当前STA信息一致,则说明该STA可以在对应的时间片内将数据发送给AP;如果广播中获取到时间片的STA信息和当前STA的信息不一致,则说明当前STA未获得发送数据的机会,需要等待下一轮RTS数据帧请 求阶段再次发送RTS数据帧。如果当前STA获取到时间片,则在AP允许的对应的时间片内把需要发送的数据发送给AP,等待AP的返回的反馈结果及数据。如果STA未获取到时间片,则不能给AP发送数据,防止占用无线信息,保证获取到时间片的STA独占资源,提高无线资源利用率。In one embodiment, if the STA information of the time slice obtained in the broadcast is consistent with the current STA information, it means that the STA can send data to the AP in the corresponding time slice; if the STA information of the time slice obtained in the broadcast is consistent with the current STA information, If the information of the current STA is inconsistent, it means that the current STA has not got the opportunity to send data and needs to wait for the next round of RTS data frame request. In the request phase, the RTS data frame is sent again. If the current STA obtains the time slice, it sends the data to be sent to the AP within the corresponding time slice allowed by the AP, and waits for the feedback result and data returned by the AP. If the STA does not obtain the time slice, it cannot send data to the AP to prevent occupying wireless information, ensure that the STA obtains the time slice exclusive resources, and improve wireless resource utilization.
可以理解的是,每个STA在准备发送RTS数据帧之前,也需要判断当前时刻AP是否允许接收RTS数据帧,即,判断接入点当前是否处于请求阶段,并得到判断结果。若判断结果为处于请求阶段,则STA可以发送RTS数据帧;若判断结果为不处于请求阶段,则STA需要等待接入点进入RTS数据帧请求阶段。It is understandable that before each STA prepares to send an RTS data frame, it also needs to determine whether the AP is allowed to receive RTS data frames at the current moment, that is, determine whether the access point is currently in the request phase, and obtain the judgment result. If the judgment result is that it is in the request phase, the STA can send the RTS data frame; if the judgment result is that it is not in the request phase, the STA needs to wait for the access point to enter the RTS data frame request phase.
下述示例能够详细说明本申请实施例提供的数据传输方法。示例1为基于AP的模块结构以及对应的数据传输方法流程;示例2为基于STA的模块结构以及对应的数据传输方法流程。The following examples can explain in detail the data transmission method provided by the embodiment of the present application. Example 1 is the AP-based module structure and the corresponding data transmission method flow; Example 2 is the STA-based module structure and the corresponding data transmission method flow.
示例1:Example 1:
将整个空口时间分为调度时间和通信时间。Divide the entire air interface time into scheduling time and communication time.
对于AP而言,调度时间又分为三个时间段,第一个时间段主要是接收各STA的RTS数据帧,第二个时间段AP对接收到的STA的RTS数据帧进行统筹计算,按照一定算法排列出各STA的发包的优先级及时间,第三个时间段将广播调度结果给所有STA。通信时间是符合调度条件进行通信的STA和AP进行收发数据。For the AP, the scheduling time is divided into three time periods. The first time period is mainly to receive the RTS data frames of each STA. In the second time period, the AP performs overall calculation on the received RTS data frames of the STA. According to A certain algorithm arranges the priority and time of each STA's packet sending, and the third time period broadcasts the scheduling results to all STAs. The communication time is when the STA and AP that meet the scheduling conditions for communication send and receive data.
如图8所示,AP设备300具有四个模块,分别为接收模块310、发送模块320、时间片调度模块330及处理模块340,接下来分别介绍各个模块。As shown in Figure 8, the AP device 300 has four modules, which are a receiving module 310, a sending module 320, a time slice scheduling module 330 and a processing module 340. Next, each module will be introduced respectively.
接收模块310:该模块负责接收STA发来的数据包,主要接收两方面的数据,一方面是接收当前所有连接的STA的RTS数据帧,另一方面是接收获得通信时间片的STA的数据包。STA通过RTS数据帧上报STA需要发送的数据信息,调度时间阶段接收模块负责接收这一信息。当STA满足调度结果,获得时间片后,需要在规定的时间内给AP发送数据时,接收模块接收STA的数据包,并对数据进行处理。Receiving module 310: This module is responsible for receiving data packets from STAs. It mainly receives two aspects of data. On the one hand, it receives RTS data frames of all currently connected STAs. On the other hand, it receives data packets of STAs that have obtained communication time slices. . The STA reports the data information that the STA needs to send through the RTS data frame, and the scheduling time stage receiving module is responsible for receiving this information. When the STA meets the scheduling results and obtains the time slice, and needs to send data to the AP within the specified time, the receiving module receives the STA's data packet and processes the data.
发送模块320:该模块负责发送数据,需要发送两方面数据,广播时间片调度结果,以及收到STA的数据后,给STA进行回复表示当前已经收到该包数据。AP调度好STA的发包次序后,需要将结果广播出去,一方面告诉对应的STA获得对应的时间片,可以在对应的时间片内给AP发送数据,另一方面告诉其余STA,该时间段AP忙碌,AP不会接收其它STA发送的数据,以及AP接下来接收数据的时间。通信阶段当AP收到STA发送的数据后,给STA回复确认信息ACK或者NACK,说明数据是否正常。Sending module 320: This module is responsible for sending data. It needs to send two aspects of data, broadcast the time slice scheduling result, and after receiving the data from the STA, reply to the STA to indicate that the packet data has been received. After the AP schedules the STA's packet sending order, it needs to broadcast the results. On the one hand, it tells the corresponding STA to obtain the corresponding time slice and can send data to the AP within the corresponding time slice. On the other hand, it tells other STAs that the AP in this time period Busy, the AP will not receive data sent by other STAs, and the next time the AP receives data. During the communication phase, after receiving the data sent by the STA, the AP replies with a confirmation message ACK or NACK to the STA, indicating whether the data is normal.
时间片调度模块330:该模块负责AP的信道时间调度,主要分为两个方面的调度,一方面是调度时间的分配,另一方面是STA发包时间的调度。调度时间分为RTS时间,调度时间,以及广播时间。RTS时间段接收所有STA的RTS请求,调度时间段将接收到的请求进行统筹运算,得出分配结果,广播时间将分配的结果广播出去。调度时间=RTS时间T1+计算时间T2+广播时间T3。三个时间动态调整,如果当前连接的STA较少,则RTS时间较短;如果当前连接的STA较多,则RTS时间可以分配多一些。发包时间的调度即AP对收到STA的RTS数据帧进行解析,根据当前各STA的情况进行时间片分配,然后将时间片分配结果转给发送 模块广播给所有STA。时间片调度的算法需要对AP及所有STA的情况进行综合考虑,AP不仅要进行数据业务,还需要预留一定的时间与当前STA之外的其它STA进行通信,而且需要实时更新,确保每个STA都有机会上报RTS数据帧。RTS数据帧包括STA待发送的数据包的大小,数量及优先级等信息,时间调度模块对各个STA的RTS数据进行加权平均,然后按照优先级将发包时间分配到具体的STA。通信时间可以考虑当前STA的个数及优先级,如果当前连接的STA较少,可以将通信时间分配久一些,反之分配少一些;如果当前数据包的优先级较高,计算时可以适当提高加权系数。Time slice scheduling module 330: This module is responsible for AP channel time scheduling, which is mainly divided into two aspects of scheduling, one is the allocation of scheduling time, and the other is the scheduling of STA packet sending time. Scheduling time is divided into RTS time, scheduling time, and broadcast time. The RTS time period receives RTS requests from all STAs, the scheduling time period coordinates the received requests and obtains the allocation results, and the broadcast time broadcasts the allocation results. Scheduling time = RTS time T1 + calculation time T2 + broadcast time T3. The three times are dynamically adjusted. If there are fewer STAs currently connected, the RTS time will be shorter; if there are more STAs currently connected, more RTS time can be allocated. The scheduling of packet sending time means that the AP parses the RTS data frame received from the STA, allocates the time slice according to the current situation of each STA, and then forwards the time slice allocation result to the sending The module is broadcast to all STAs. The time slice scheduling algorithm needs to comprehensively consider the situation of the AP and all STAs. The AP not only needs to perform data services, but also needs to reserve a certain amount of time to communicate with other STAs other than the current STA, and needs to be updated in real time to ensure that each STAs have the opportunity to report RTS data frames. The RTS data frame includes information such as the size, quantity and priority of the data packets to be sent by the STA. The time scheduling module performs a weighted average of the RTS data of each STA, and then allocates the packet sending time to the specific STA according to the priority. The communication time can consider the number and priority of the current STAs. If there are fewer STAs currently connected, the communication time can be allocated longer, and vice versa. If the priority of the current data packet is higher, the weighting can be appropriately increased during calculation. coefficient.
处理模块340:该模块负责统筹发包模块,接收模块以及时间片调度模块。处理接收模块收到的数据,如果有数据发送给发送模块,将发送数据转给发送模块,以及将RTS数据帧交给时间片调度模块。Processing module 340: This module is responsible for coordinating the contract sending module, receiving module and time slice scheduling module. Process the data received by the receiving module. If there is data to be sent to the sending module, transfer the sending data to the sending module, and hand over the RTS data frame to the time slice scheduling module.
图9为本申请一示例提供的数据传输方法的流程示意图。如图所示,AP设备执行的数据传输方法至少包括步骤S101至步骤S106。Figure 9 is a schematic flowchart of a data transmission method provided in an example of this application. As shown in the figure, the data transmission method performed by the AP device includes at least steps S101 to S106.
步骤S101:监听STA的RTS数据帧Step S101: Monitor the RTS data frame of the STA
在本示例中,在允许接收RTS时间段内,连接在AP的STA如果有数据发送,需要给AP主动上报RTS数据帧,AP负责接收STA主动上报的RTS数据帧。In this example, during the time period when receiving RTS, if the STA connected to the AP has data to send, it needs to proactively report RTS data frames to the AP. The AP is responsible for receiving the RTS data frames proactively reported by the STA.
步骤S102:解析STA的RTS数据帧Step S102: Parse the RTS data frame of the STA
在本示例中,当AP接收完所有STA的RTS数据帧后,解析RTS数据帧中携带的数据信息,提取所有需要的数据。RTS数据至少包含如下信息之一:STA的标识(例如MAC地址),需要发送的数据包的大小、数据的类型(视频、语音、文本等)、需要的发包个数、以及STA的处理能力信息。In this example, after the AP receives the RTS data frames of all STAs, it parses the data information carried in the RTS data frames and extracts all required data. RTS data contains at least one of the following information: STA identification (such as MAC address), the size of the data packet to be sent, the type of data (video, voice, text, etc.), the number of packets needed to be sent, and the processing capability information of the STA .
步骤S103:根据解析结果进行时间片调度Step S103: Perform time slice scheduling based on the analysis results
在本示例中,根据步骤S102获取的RTS数据,将所有STA的RTS数据进行汇总计算,根据时间片调度算法计算每个STA的发包加权平均数,然后得出获得时间片的STA及STA发送数据包的时间。时间片调度算法充分考虑STA的处理能力,STA要发送的数据包的个数以及数据类型。In this example, based on the RTS data obtained in step S102, the RTS data of all STAs are summarized and calculated, and the weighted average number of packets sent by each STA is calculated according to the time slice scheduling algorithm, and then the STA and STA sending data of the obtained time slice are obtained. Package time. The time slice scheduling algorithm fully considers the processing capability of the STA, the number of data packets to be sent by the STA, and the data type.
采用下述公式计算对每个STA的评估结果:
R=η1×A+η2×B+η3×C
Use the following formula to calculate the evaluation result for each STA:
R=n 1 ×A+n 2 ×B+n 3 ×C
其中R表示最后加权计算的结果,A表示发包数量评估值,B表示数据包的优先级评估值,C表示STA的处理能力数值评估值,η1表示发包数量A的加权系数,η2表示数据包优先级B的加权系数,η3表示STA处理能力C的加权系数。Among them, R represents the result of the final weighted calculation, A represents the evaluation value of the number of packets sent, B represents the priority evaluation value of the data packet, C represents the numerical evaluation value of the STA's processing capability, eta 1 represents the weighting coefficient of the number of packets sent A, and eta 2 represents the data. The weighting coefficient of packet priority B, eta 3, represents the weighting coefficient of STA processing capability C.
发包数量A越大,获取到发包的机会就越大,能力越强,发包的机会越大,数据类型用于评估发包的优先级,例如视频数据对实时性要求较高,需要优先发送,获取发包的优先级也会越高。最后综合评估出获取到发包时间片的STA及分配的发包时间。The larger the number of packages A, the greater the chance of obtaining the package. The stronger the ability, the greater the opportunity of obtaining the package. The data type is used to evaluate the priority of the package. For example, video data has high real-time requirements and needs to be sent first. Obtain The priority of sending the package will be higher. Finally, a comprehensive evaluation is performed to obtain the STA that obtains the contract issuance time slice and the assigned contract issuance time.
步骤S104:广播时间调度结果给STA。Step S104: Broadcast the time scheduling result to the STA.
在本示例中,将步骤S103的调度结果以广播的形式发给所有STA。广播的内容包括获得时间片的STA以及该STA允许发送数据的时间。然后如果到了对应时间片,AP和对应时间片的STA通信,其它STA停止发送数据给AP。 In this example, the scheduling result of step S103 is sent to all STAs in the form of broadcast. The content of the broadcast includes the STA that obtains the time slice and the time the STA is allowed to send data. Then if the corresponding time slice arrives, the AP communicates with the STA in the corresponding time slice, and other STAs stop sending data to the AP.
步骤S105:与STA进行通信数据的传输。Step S105: Transmit communication data with STA.
在本示例中,AP接收获取到时间片的STA的通信数据,AP收到数据后,对STA的信息进行校验,如果是当前时间片允许的STA,则保存该数据,如果收到的信息并非获取到时间片的STA的数据,则不处理。In this example, the AP receives the communication data of the STA that has obtained the time slice. After receiving the data, the AP verifies the STA information. If it is an STA allowed by the current time slice, the AP saves the data. If the received information If the data of the STA does not obtain the time slice, it will not be processed.
如果收到的数据是合法的STA,则将STA的数据发出去,然后给STA回复结果,如果数据接收正常,回复ACK,如果数据接收异常,回复NACK。同时如果有返回数据需要发送给STA,则将数据发送给STA。If the received data is a legal STA, the STA's data will be sent, and then the result will be replied to the STA. If the data is received normally, an ACK will be replied. If the data is received abnormally, a NACK will be replied. At the same time, if there is return data that needs to be sent to STA, the data will be sent to STA.
AP和STA的通信循环连续进行,不进行等待,直到时间片结束,使得时间片的利用率最高。The communication cycle between the AP and STA continues without waiting until the end of the time slice, which maximizes the utilization of the time slice.
步骤S106:进行下一轮流程。Step S106: Carry out the next round of process.
在本示例中,重复上述步骤,即返回步骤S101。In this example, repeat the above steps, that is, return to step S101.
通过本示例提供的数据传输方法,基于对时间片的高利用率,能够提高信道资源利用率,提高数据传输效率。The data transmission method provided in this example can improve channel resource utilization and data transmission efficiency based on high utilization of time slices.
示例2:Example 2:
将整个空口时间分为调度时间和通信时间。Divide the entire air interface time into scheduling time and communication time.
对于STA而言,调度时间分为两个时间段,第一个时间段是STA将RTS数据帧发给AP,第二个时间段STA接收AP广播的调度信息。通信时间是如果当前STA分到了对应的时间片,则STA和AP进行通信。For STA, the scheduling time is divided into two time periods. The first time period is when the STA sends RTS data frames to the AP. The second time period is when the STA receives the scheduling information broadcast by the AP. The communication time is if the current STA is assigned the corresponding time slice, the STA and the AP communicate.
如图10所示,STA设备400具有三个模块,分别为接收模块410、发送模块420及处理模块430,接下来分别介绍各个模块。As shown in Figure 10, the STA device 400 has three modules, namely a receiving module 410, a sending module 420 and a processing module 430. Next, each module will be introduced respectively.
接收模块410:该模块负责接收AP发来的数据包。主要接收两类数据,调度时间段AP的广播包及通信阶段AP的回复包。调度时间段STA发送RTS数据帧给AP后,接收模块开始等待AP的广播包。通信阶段,如果当前STA获得通信时间片,将通信数据发送给AP后,接收模块负责接收AP的回复包。Receiving module 410: This module is responsible for receiving data packets sent by the AP. It mainly receives two types of data, broadcast packets from the AP during the scheduling period and reply packets from the AP during the communication phase. After the STA sends the RTS data frame to the AP during the scheduling time period, the receiving module starts waiting for the broadcast packet from the AP. In the communication phase, if the current STA obtains the communication time slice and sends the communication data to the AP, the receiving module is responsible for receiving the AP's reply packet.
发送模块420:该模块负责给AP发送数据包。主要发送两类数据,RTS数据帧及通信数据。在调度时间段,发送模块负责将STA的RTS数据帧发送给AP。在通信阶段,如果当前STA获得通信时间片,发送模块负责将通信数据发送给AP。Sending module 420: This module is responsible for sending data packets to the AP. Mainly sends two types of data, RTS data frame and communication data. During the scheduling period, the sending module is responsible for sending the STA's RTS data frame to the AP. In the communication phase, if the current STA obtains a communication time slice, the sending module is responsible for sending communication data to the AP.
处理模块430:该模块负责处理接收模块收到的数据,如果有数据发送给AP,处理模块将发送数据转给发送模块。Processing module 430: This module is responsible for processing the data received by the receiving module. If there is data to be sent to the AP, the processing module will transfer the data to the sending module.
图11为本申请另一示例提供的数据传输方法的流程示意图。Figure 11 is a schematic flowchart of a data transmission method provided by another example of this application.
步骤C201:判断是否有数据发送?Step C201: Determine whether data is sent?
在本示例中,检测当前是否有数据发送,如果没有数据发送,则继续检测,如果有数据发送,到下一步骤C202。In this example, it is detected whether data is currently sent. If no data is sent, the detection continues. If data is sent, go to the next step C202.
步骤C202:监听AP是否忙碌?Step C202: Is the monitoring AP busy?
在本示例中,如果当前STA有数据发送,则需要判断AP的状态,如果当前AP在RTS请求阶段,STA将RTS数据发送给AP,如果当前AP非RTS请求阶段,则需要等待AP到 RTS请求阶段才能发送RTS请求。In this example, if the current STA has data to send, it needs to determine the status of the AP. If the current AP is in the RTS request phase, the STA will send the RTS data to the AP. If the current AP is not in the RTS request phase, it needs to wait for the AP to arrive. RTS requests can be sent only during the RTS request phase.
步骤S201:发送RTS数据帧。Step S201: Send RTS data frame.
在本示例中,STA发送RTS数据帧给AP,RTS数据帧需要包含STA的标识信息、STA发送的数据包大小、数据的类型以及STA的处理能力信息。In this example, the STA sends an RTS data frame to the AP. The RTS data frame needs to contain the STA's identification information, the size of the data packet sent by the STA, the type of data, and the STA's processing capability information.
其中,STA的标识信息是为了标识当前STA,便于和其余STA区分;数据包大小表示当前STA需要发送的数据量;数据类型用来说明要发送数据的优先级;STA的处理能力信息用来表示STA的处理能力,如果当前STA处理能力较强,则收到数据后可以快速将数据处理完,如果STA处理能力较弱,则处理数据的时间较久,有一定程度的时间浪费。Among them, the STA's identification information is to identify the current STA to facilitate distinction from other STAs; the data packet size indicates the amount of data that the current STA needs to send; the data type is used to indicate the priority of the data to be sent; and the STA's processing capability information is used to indicate STA's processing capability. If the current STA's processing capability is strong, it can quickly process the data after receiving the data. If the STA's processing capability is weak, it will take a long time to process the data, resulting in a certain degree of time waste.
步骤S202:接收AP的时间片调度结果广播包。Step S202: Receive the time slice scheduling result broadcast packet of the AP.
在本示例中,STA将RTS数据帧发送给AP后,接下来等待AP的时间片调度广播包。In this example, after the STA sends the RTS data frame to the AP, it then waits for the AP's time slice to schedule broadcast packets.
步骤S203:解析时间片调度广播包。Step S203: Parse the time slice scheduling broadcast packet.
在本示例中,STA接收到AP的时间片调度广播包后,解析该广播包,从广播包中提取获取到时间片的STA以及对应的时间片信息。In this example, after receiving the AP's time slice scheduling broadcast packet, the STA parses the broadcast packet and extracts the STA that obtained the time slice and the corresponding time slice information from the broadcast packet.
步骤C203:判断是否获取到时间片?Step C203: Determine whether the time slice is obtained?
在本示例中,如果广播中获取到时间片的STA信息和当前STA信息一致,则说明该STA可以在对应的时间片内将数据发送给AP;如果广播中获取到时间片的STA信息和当前STA的信息不一致,则说明当前STA未获得发送数据的机会,需要等待下一轮RTS请求阶段再次发送RTS数据帧。In this example, if the STA information of the time slice obtained in the broadcast is consistent with the current STA information, it means that the STA can send data to the AP within the corresponding time slice; if the STA information of the time slice obtained in the broadcast is consistent with the current STA information, If the information of the STA is inconsistent, it means that the current STA has not been given the opportunity to send data and needs to wait for the next round of RTS request phase to send the RTS data frame again.
步骤S204:与STA进行通信数据的传输。Step S204: Transmit communication data with the STA.
如果当前STA获取到时间片,则在AP允许的对应的时间片内把需要发送的数据发送给AP,等待AP的返回结果及数据;如果STA未获取到时间片,则不能给AP发送数据,防止占用无线信息,保证获取到时间片的STA独占资源,提高无线资源利用率。If the current STA obtains the time slice, it will send the data to be sent to the AP within the corresponding time slice allowed by the AP, and wait for the return result and data from the AP; if the STA does not obtain the time slice, it cannot send data to the AP. Prevent the occupation of wireless information, ensure the acquisition of STA exclusive resources in time slices, and improve wireless resource utilization.
步骤S205:进行下一轮流程。Step S205: Carry out the next round of process.
在本示例中,重复上述步骤,即返回步骤S101。In this example, repeat the above steps, that is, return to step S101.
通过本示例提供的数据传输方法,基于对时间片的高利用率,能够提高信道资源利用率,提高数据传输效率。The data transmission method provided in this example can improve channel resource utilization and data transmission efficiency based on high utilization of time slices.
图12是本申请实施例提供的数据传输装置的结构示意图,如图12所示,本申请一实施例还提供了一种数据传输装置500,包括:至少一个处理器502;至少一个存储器501,用于存储至少一个程序;当至少一个程序被至少一个所述处理器执行时实现上述数据传输方法。Figure 12 is a schematic structural diagram of a data transmission device provided by an embodiment of the present application. As shown in Figure 12, an embodiment of the present application also provides a data transmission device 500, including: at least one processor 502; at least one memory 501, Used to store at least one program; when at least one program is executed by at least one of the processors, the above data transmission method is implemented.
本申请一实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,该计算机可执行指令用于执行如本申请任一实施例提供的数据传输方法。An embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions. The computer-executable instructions are used to execute the data transmission method provided by any embodiment of the present application.
本申请一实施例还提供了一种计算机程序产品,包括计算机程序或计算机指令,该计算机程序或计算机指令存储在计算机可读存储介质中,计算机设备的处理器从计算机可读存储介质读取计算机程序或计算机指令,处理器执行计算机程序或计算机指令,使得计算机设备执行如本申请任一实施例提供的数据传输方法。An embodiment of the present application also provides a computer program product, which includes a computer program or computer instructions. The computer program or computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium. Program or computer instructions, the processor executes the computer program or computer instructions, so that the computer device performs the data transmission method provided by any embodiment of the present application.
本申请实施例提供的数据传输方法中的AP通过接收并解析STA预先发送的请求发送数 据帧,主动生成对STA的时间片调度结果,并将时间片调度结果下发给各STA,使STA能够在规定的时间片中进行数据传输,减少了各STA在传输数据前的等待时间,在避免冲突的前提下,节省了信道资源,提高了传输效率。In the data transmission method provided by the embodiment of the present application, the AP receives and parses the request sending number sent by the STA in advance. According to the data frame, it actively generates the time slice scheduling results for STA, and delivers the time slice scheduling results to each STA, so that the STA can transmit data in the specified time slice, reducing the waiting time of each STA before transmitting data. On the premise of avoiding conflicts, channel resources are saved and transmission efficiency is improved.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、设备中的功能模块/模块可以被实施为软件、固件、硬件及其适当的组合。Those of ordinary skill in the art can understand that all or some steps in the methods, systems, and functional modules/modules in the devices disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof.
在硬件实施方式中,在以上描述中提及的功能模块/模块之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。In hardware implementations, the division between functional modules/modules mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may consist of several physical components. Components execute cooperatively. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is known to those of ordinary skill in the art, the term computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage devices, or may Any other medium used to store the desired information and that can be accessed by a computer. Additionally, it is known to those of ordinary skill in the art that communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序或计算机。通过图示,在计算设备上运行的应用和计算设备都可以是部件。一个或多个部件可驻留在进程或执行线程中,部件可位于一个计算机上或分布在2个或更多个计算机之间。此外,这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可例如根据具有一个或多个数据分组(例如来自于自与本地系统、分布式系统或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地或远程进程来通信。The terms "component", "module", "system", etc. used in this specification are used to refer to computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to, a process, processor, object, executable file, thread of execution, program or computer running on a processor. Through the illustrations, both applications running on the computing device and the computing device may be components. One or more components can reside in a process or thread of execution, and the component can be localized on one computer or distributed between 2 or more computers. Additionally, these components can execute from various computer-readable media having various data structures stored thereon. A component may, for example, be based on a signal having one or more data packets (eg, data from two components interacting with another component, such as a local system, a distributed system, or a network, such as the Internet, which interacts with other systems via signals) Communicate through local or remote processes.
以上参照附图说明了本申请的一些实施例,并非因此局限本申请的权利范围。本领域技术人员不脱离本申请的范围和实质内所作的任何修改、等同替换和改进,均应在本申请的权利范围之内。 Some embodiments of the present application have been described above with reference to the accompanying drawings, but the scope of rights of the present application is not thereby limited. Any modifications, equivalent substitutions and improvements made by those skilled in the art without departing from the scope and essence of this application shall be within the scope of rights of this application.

Claims (11)

  1. 一种数据传输方法,应用于接入点设备AP,包括:A data transmission method, applied to access point device AP, including:
    接收多个站点发送的多个请求发送数据帧;Receive multiple requests from multiple sites to send data frames;
    根据所述请求发送数据帧,得到对应于多个所述站点的时间片调度结果;Send data frames according to the request to obtain time slice scheduling results corresponding to multiple sites;
    将所述时间片调度结果发送给所有所述站点,使得所述站点根据所述时间调度结果进行数据传输。The time slice scheduling result is sent to all the stations, so that the stations perform data transmission according to the time scheduling result.
  2. 根据权利要求1所述的数据传输方法,其中,所述根据所述请求发送数据帧,得到对应于多个所述站点的时间片调度结果,包括:The data transmission method according to claim 1, wherein said sending data frames according to said request to obtain time slice scheduling results corresponding to multiple said sites includes:
    根据所述请求发送数据帧中携带的站点信息及待传输数据信息,对所述站点进行评估,得到评估结果;Evaluate the site according to the site information and the data information to be transmitted carried in the data frame sent by the request, and obtain the evaluation result;
    根据所述评估结果,得到所述站点对应的所述数据传输时间片;According to the evaluation result, the data transmission time slice corresponding to the site is obtained;
    将所有所述数据传输时间片确定为所述时间片调度结果。All the data transmission time slices are determined as the time slice scheduling results.
  3. 根据权利要求2所述的数据传输方法,其中,所述站点信息包括站点处理能力信息,所述待传输数据信息包括待传输的数据量信息以及数据优先级信息;The data transmission method according to claim 2, wherein the site information includes site processing capability information, and the data information to be transmitted includes information on the amount of data to be transmitted and data priority information;
    所述根据所述请求发送数据帧中携带的站点信息及待传输数据信息,对所述站点进行评估,得到评估结果,包括:The step of sending the site information and the data information to be transmitted according to the request to send the data frame, evaluating the site, and obtaining the evaluation results, including:
    获取权重参数;Get weight parameters;
    根据所述权重参数,对所述站点处理能力信息、所述数据量信息与所述数据优先级信息进行加权计算,得到所述评估结果。According to the weight parameter, a weighted calculation is performed on the site processing capability information, the data volume information and the data priority information to obtain the evaluation result.
  4. 根据权利要求1所述的数据传输方法,还包括:The data transmission method according to claim 1, further comprising:
    在接收所述站点发送的通信数据后,根据所述站点对应的数据传输时间片,对所述站点的数据传输时间进行验证,得到验证结果;After receiving the communication data sent by the site, verify the data transmission time of the site according to the data transmission time slice corresponding to the site, and obtain the verification result;
    在所述验证结果为数据传输时间与对应的数据传输时间片一致的情况下,对所述通信数据进行发送处理;If the verification result is that the data transmission time is consistent with the corresponding data transmission time slice, send the communication data;
    在所述验证结果为数据传输时间与对应的数据传输时间片不一致的情况下,不对所述通信数据进行处理。If the verification result is that the data transmission time is inconsistent with the corresponding data transmission time slice, the communication data will not be processed.
  5. 一种数据传输方法,应用于站点设备STA,包括:A data transmission method applied to site equipment STA, including:
    向接入点发送请求发送数据帧;Send a request to the access point to send a data frame;
    接收所述接入点发送的时间片调度结果;Receive the time slice scheduling result sent by the access point;
    根据所述时间片调度结果,向所述接入点发送通信数据。Send communication data to the access point according to the time slice scheduling result.
  6. 根据权利要求5所述的数据传输方法,其中,所述根据所述时间片调度结果,向所述接入点发送通信数据,包括:The data transmission method according to claim 5, wherein the sending communication data to the access point according to the time slice scheduling result includes:
    解析所述时间片调度结果,得到对应的数据传输时间片;Analyze the time slice scheduling results to obtain the corresponding data transmission time slice;
    在所述数据传输时间片定义的时间内,向所述接入点发送通信数据。Within the time defined by the data transmission time slice, communication data is sent to the access point.
  7. 根据权利要求5所述的数据传输方法,其中,向接入点发送请求发送数据帧之前,所述方法还包括:The data transmission method according to claim 5, wherein before sending the request to the access point to send the data frame, the method further includes:
    判断所述接入点当前是否处于请求阶段,得到判断结果;其中,所述请求阶段为所述接入点允许接收所述站点发送请求发送数据帧的阶段; Determine whether the access point is currently in the request phase, and obtain a judgment result; wherein the request phase is the phase in which the access point is allowed to receive a data frame sent by the station requesting to be sent;
    在所述判断结果为处于所述请求阶段的情况下,进入请求发送数据帧发送步骤;When the judgment result is that it is in the request stage, enter the request to send data frame sending step;
    在所述判断结果为不处于所述请求阶段的情况下,等待所述接入点进入所述请求阶段。If the judgment result is that the access point is not in the request phase, wait for the access point to enter the request phase.
  8. 根据权利要求6至7任一项所述的数据传输方法,其中,所述请求发送数据帧携带有至少以下之一:The data transmission method according to any one of claims 6 to 7, wherein the request to send data frame carries at least one of the following:
    站点标识信息,或待传输的数据包大小信息,或待传输的数据包数量信息,或待传输的数据类型,或站点处理能力信息。Site identification information, or data packet size information to be transmitted, or data packet number information to be transmitted, or data type to be transmitted, or site processing capability information.
  9. 一种数据传输装置,包括:A data transmission device including:
    至少一个处理器;at least one processor;
    至少一个存储器,用于存储至少一个程序;At least one memory for storing at least one program;
    当至少一个所述程序被至少一个所述处理器执行时实现如权利要求1至8任意一项所述的数据传输方法。The data transmission method according to any one of claims 1 to 8 is implemented when at least one of the programs is executed by at least one of the processors.
  10. 一种计算机可读存储介质,存储有处理器可执行的程序,所述处理器可执行的程序被处理器执行时用于实现如权利要求1至8任意一项所述的数据传输方法。A computer-readable storage medium stores a program executable by a processor. The program executable by the processor is used to implement the data transmission method according to any one of claims 1 to 8 when executed by the processor.
  11. 一种计算机程序产品,包括计算机程序或计算机指令,所述计算机程序或所述计算机指令存储在计算机可读存储介质中,计算机设备的处理器从所述计算机可读存储介质读取所述计算机程序或所述计算机指令,所述处理器执行所述计算机程序或所述计算机指令,使得所述计算机设备执行如权利要求1至8中任意一项所述的数据传输方法。 A computer program product comprising a computer program or computer instructions stored in a computer-readable storage medium from which a processor of a computer device reads the computer program Or the computer instructions, the processor executes the computer program or the computer instructions, so that the computer device performs the data transmission method according to any one of claims 1 to 8.
PCT/CN2023/097876 2022-07-29 2023-06-01 Data transmission methods and apparatus, storage medium, and program product WO2024021859A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210907486.1 2022-07-29
CN202210907486.1A CN117528820A (en) 2022-07-29 2022-07-29 Data transmission method, device, storage medium and program product

Publications (1)

Publication Number Publication Date
WO2024021859A1 true WO2024021859A1 (en) 2024-02-01

Family

ID=89705306

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/097876 WO2024021859A1 (en) 2022-07-29 2023-06-01 Data transmission methods and apparatus, storage medium, and program product

Country Status (2)

Country Link
CN (1) CN117528820A (en)
WO (1) WO2024021859A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101553005A (en) * 2009-04-29 2009-10-07 重庆四联微电子有限公司 Method for adding time division mechanism in CSMA/CA by the aid of CTS
CN102238749A (en) * 2010-04-15 2011-11-09 杭州华三通信技术有限公司 Channel competition method and AP (access point) equipment
CN102461003A (en) * 2009-06-17 2012-05-16 高通股份有限公司 Multi-user multiple input multiple output wireless communications
WO2020173493A1 (en) * 2019-02-28 2020-09-03 华为技术有限公司 Method for determining weighting parameter of beamforming, and ap in wlan
CN111885738A (en) * 2014-12-18 2020-11-03 华为技术有限公司 Method for acquiring site equipment request, access point equipment and site equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101553005A (en) * 2009-04-29 2009-10-07 重庆四联微电子有限公司 Method for adding time division mechanism in CSMA/CA by the aid of CTS
CN102461003A (en) * 2009-06-17 2012-05-16 高通股份有限公司 Multi-user multiple input multiple output wireless communications
CN102238749A (en) * 2010-04-15 2011-11-09 杭州华三通信技术有限公司 Channel competition method and AP (access point) equipment
CN111885738A (en) * 2014-12-18 2020-11-03 华为技术有限公司 Method for acquiring site equipment request, access point equipment and site equipment
WO2020173493A1 (en) * 2019-02-28 2020-09-03 华为技术有限公司 Method for determining weighting parameter of beamforming, and ap in wlan

Also Published As

Publication number Publication date
CN117528820A (en) 2024-02-06

Similar Documents

Publication Publication Date Title
US11903029B2 (en) Trigger frames adapted to packet-based policies in an 802.11 network preliminary class
US10674539B2 (en) System and method for managing contention in a wireless communications system
US10959266B2 (en) OFDMA contention method and access point
US11812467B2 (en) Emission of a signal in unused resource units to increase energy detection of an 802.11 channel
US8730905B2 (en) Transmission resource reservation scheme
US20210282183A1 (en) Communication method, apparatus, computer-readable medium and electronic device
US20160295612A1 (en) Information sending method and apparatus
WO2016188245A1 (en) Channel negotiation method, station and system
US11350435B2 (en) Method for obtaining request of station, access point, and station
WO2016127348A1 (en) Access point (ap), station (sta), communication system and data transmission method
JP2017508405A (en) Multi-channel access method and apparatus
EP3079432B1 (en) Channel reservation method and communications device
GB2540184A (en) Dynamic ajusting of contention mechanism for access to random resource units in an 802.11 channel
US20220116997A1 (en) Communication devices and methods
WO2024021859A1 (en) Data transmission methods and apparatus, storage medium, and program product
US20160119952A1 (en) Method and Network Node for Coordination of Channel Resources Between Transmissions
CN115226159A (en) Method and device for determining backoff parameters based on spatial multiplexing mechanism
JP2023546232A (en) Communication methods and devices
CN106488580B (en) Competition access method, competition access device, station and competition access system
WO2017036258A1 (en) Contention access method, contention access device, base station and contention access system
CN117769047A (en) Data transmission method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23845072

Country of ref document: EP

Kind code of ref document: A1