The present invention is directed to wireless communications, and more specifically to aspects of WiFi network architecture and services.
Methods, systems, user interfaces, and other aspects of the invention are described. Reference will be made to certain embodiments of the invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with the embodiments, it will be understood that it is not intended to limit the invention to these particular embodiments alone. On the contrary, the invention is intended to cover alternatives, modifications and equivalents that are within the spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.
Moreover, in the following description, numerous specific details are set forth to provide a thorough understanding of the present invention. However, it will be apparent to one of ordinary skill in the art that the invention may be practiced without these particular details. In other instances, methods, procedures, components, and networks that are well known to those of ordinary skill in the art are not described in detail to avoid obscuring aspects of the present invention.
According to certain embodiments, the consumption of airtime allocated to each connected wireless client device (also referred to herein as a connected wireless node) of at least a subset of wireless client devices/nodes that are connected to corresponding access point devices in a wireless system is distributed across a cycle time. According to certain embodiments, a cycle time is a predetermined value and is the duration of time per iteration.
According to certain embodiments, the consumption of airtime that is allocated to each wireless client device/node is distributed across a cycle period based on calculating the airtime required for the given wireless client device/node of a plurality of wireless client devices/nodes for transmitting a packet when connected to a corresponding access point device in the wireless communication system.
According to certain embodiments, the airtime allocated to each connected wireless client device/node is estimated based on comparing the required airtime for the respective connected wireless client device/node with the available airtime for each connected wireless client device/node, where available time is the total available airtime in the cycle divided by the total number of connected wireless nodes.
According to certain embodiments, the consumption of airtime that is allocated to each wireless client device is distributed across a cycle period based on comparing the consumed airtime of the given wireless client device/node with the elapsed cycle time when the given wireless client is connected to a corresponding access point device in the wireless communication system.
According to certain embodiments, the distribution of consumption of airtime allocated to each connected wireless client device/node across a cycle period in the wireless communication system of a plurality of wireless client devices/nodes includes throttling transmission of packets of the given connected wireless client device/node based on one or more pre-determined criteria.
According to certain embodiments, the distribution of consumption of airtime allocated to each connected wireless client device/node across a cycle period in the wireless communication system of a plurality of wireless client devices/nodes includes providing feedback information including computation of airtime transmission of a given packet by the given connected wireless client device/node through its associated access point device.
A given connected wireless client device/node in a wireless communication system can consume its corresponding allocated airtime per cycle all at once in the cycle. Such a connected wireless client device/node can result in hogging the transmission channel at its associated access point device. Thus, according to certain embodiments, a given connected wireless client device/node in a wireless communication system is controlled to consume its allocated airtime in a controlled distributed manner across a cycle to prevent excessive hogging of a transmission channel and/or to prevent excessive dropping of packets.
According to certain embodiments, such a wireless communication system periodically estimates the airtime required by a given connected wireless node and throttles the given node's transmission of packets across a given cycle based on the usage of airtime per cycle. Further, such a wireless communication system provides correction feedback information per cycle to the airtime estimation engine.
At block 202 in
Re-transmissions are also known as retries. A Wifi medium is not a deterministic medium because of channel interference. There may be many retries in the channel due to interference. Retries are the number of times a connected wireless node tries to transmit a data packet until the packet is successfully transmitted. For example, a successful transmission is when the connected wireless node receives an acknowledgment for each of the data packets it has transmitted. A given connected wireless node will retry sending packets that are not acknowledged by the receiver. Retries are more frequent when the Wifi channel is congested, or if the given connected wireless node is far away from the access point and/or is not in the line of sight of the access point. In some wireless chipsets of wireless nodes, the number of retries may be pre-programmed for every packet so that the packets are resent automatically.
A connected wireless node that attempts many retries will occupy much more airtime than a connected wireless node that is able to send data packets successfully with few or no retires. RTS/CTS (Request to Send/Clear to Send) comprise an optional mechanism used by the 802.11 wireless networking protocol to reduce frame collisions introduced by wireless node problems. As the number of retries grows, the rate controller of the Wifi system will assume that the link quality is bad and will try to protect each frame with RTS/CTS messages. The amount of airtime consumed by RTS/CTS messages needs to be accounted for with respect to the given connected wireless node that is attempting to send the data packet. For purposes of illustration, assume that connected Wireless Node1 and Wireless Node2 are attempting to send packets. Further assume that Wireless Node1 is sending packets with RTS/CTS exchange mechanism. The airtime consumed by Wireless Node1 will be higher than that of Wireless Node2.
At block 210 of
At block 212 of
At block 220 of
If at block 220, it is determined that the node required airtime is not greater than the node initial airtime, then at block 222, the node allocated airtime is set as equal to the node required airtime, according to certain embodiments. Next, at block 226, it is determined if the node allocated airtime is less than the node minimum airtime threshold. The node minimum airtime threshold is a predetermined value, according to certain embodiments. If it is determined that the node allocated airtime is not less than the node minimum airtime threshold, then control passes to block 230. Block 230 is previously described above. If it is determined that the node allocated airtime is less than the node minimum airtime threshold, then at block 228, the node allocated airtime is set as equal to node minimum airtime threshold, in order to avoid a zero value, according to certain embodiments.
As shown in
As shown at block B1 of
If at block 262, it is determined that there are no more connected wireless nodes to be considered, then at block 264, it is determined if the remaining airtime is greater than zero. If it is determined that the remaining airtime is not greater than zero, then the process ends at block 266. If however it is determined at block 264 that the remaining airtime is greater than zero, then at block 268 each connected wireless node is considered for calculating its node share at block 270 as: node share=remaining airtime/number of wireless nodes connected to the access point. At block 272, the airtime estimation engine sets the node allocated airtime for the given connected wireless node under consideration as: node allocated airtime=node allocated airtime+node share. Further at block 272, the airtime estimation engine sets the remaining airtime as: remaining airtime=remaining airtime−node share. At block 272, it is determined if there are more connected wireless nodes to be considered. If there are no more connected wireless nodes to be considered, then the process ends at block 276. If however, there are more connected wireless nodes to be considered, then control passes back to block 268.
However, if it is determined that the size of the aggregate packet is greater than the minimum required aggregate size, then at block 426, it is determined if the transmission time for the aggregate packet is less than the remaining airtime of the destination node. If it is determined that the transmission time for the aggregate packet is less than the remaining airtime of the destination node then at block 430, the aggregate packet is sent to the wireless transceiver. However, if it is determined at block 426 that the transmission time for the aggregate packet is not less than the remaining airtime of the destination node, then at block 428, the aggregate packet is dropped.
If at block 410, it is determined that the current packet is not an aggregate packet, then at block 412, it is determined if the packet is a UDP packet. If it is determined that the packet is a UDP packet, then at block 416, the UDP packet is queued for transmission during the idle cycle time if there is an un-utilized airtime available at the end of cycle. According to certain embodiments, a decision may be made to drop the UDP packet if the number of packets queued thus far for the given connected wireless node exceeds a predetermined maximum value. When queuing each of the packets, the throttler will track the time required to transmit each of the packets based on the size of the packet, according to certain embodiments. As the time elapses in the current cycle, if the connected wireless nodes become idle (for example, there are no packets to be transmitted for any of the connected wireless nodes), then the throttler will transmit the queued UDP packets until one of the connected wireless nodes makes a transmission request. At the end of the cycle period, the packets remaining in the UDP queue will be dropped, according to certain embodiments.
However, if a block 412, it is determined that the packet is not a UDP packet (e.g., it is a TCP packet), then at block 414, the packet is dropped. The process ends at block 408.
At the end of each cycle time, the feedback engine provides feedback to the airtime estimation engine. The feedback information can include the number of packet dropped, the time take for transmission, the time wasted in retries and the time consumed for receiving the packets. According to certain embodiments, the feedback engine can be queried by the airtime distribution engine for the required airtime to transmit a packet.
According to certain embodiments, the airtime of a packet is computed at the completion of transmission of each packet. At the completion of transmission, the following information can be obtained from the access point hardware for computing airtime:
According to certain embodiments, the access point hardware decides the rate of transmission for packets associated with each wireless node. According to certain embodiments, the feedback engine builds a lookup table referred to as a feedback table. As a non-limiting example, the feedback table includes supported PHY layer statistics such as:
According to certain embodiments, a wireless communication system comprises an airtime estimation engine for determining a respective node allocated airtime in a cycle time period for a given wireless node connected to an access point in the wireless communication system and is based on comparing a required airtime for the given wireless node with an available airtime for the given wireless node in the wireless communication system. According to certain embodiments, the available time is a total available airtime in a cycle divided by a total number of connected wireless nodes in the wireless communication system. According to certain embodiments, such a system further comprises an airtime distribution engine for controlling the given wireless node's consumption of its node allocated airtime across the cycle time period and is based on comparing a consumed airtime percentage of the given wireless node with an elapsed cycle time percentage of the cycle time period.
According to certain embodiments, the wireless communication system further comprises a throttler engine for determining a packet type of each respective packet in a queue of the throttler engine. According to certain embodiments, the throttler engine queues the respective packet for transmission during idle cycle time if the packet type is determined to be a UDP type.
According to certain embodiments, the throttler engine limits packet size if the packet type of the respective packet is determined to be an aggregate type. According to certain embodiments, the throttler engine drops the respective packet if the packet type is determined to be a TCP type.
According to certain embodiments, the airtime distribution engine calculates a required packet airtime for a respective packet based on information from a feedback table. According to certain embodiments, the feedback engine obtains a respective packet transmission time.
According to certain embodiments, the wireless communication system further comprises a feedback engine for obtaining a respective packet transmission rate. According to certain embodiments, the feedback engine obtains a respective packet transmission time. According to certain embodiments, the feedback engine updates a feedback table.
The foregoing description, for purpose of explanation, has been described with reference to specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in view of the above teachings. The embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated.