Network devices may perform a variety of tasks. For example, a device may determine when to access a channel, when to transmit packets over the channel, and how to prioritize the transmission of packets. Some of the current approaches are inadequate, and a need may exist for improved such techniques.
In the detailed description, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the invention. It will be understood by those skilled in the art, however, that embodiments of the invention may be practiced without these specific details. In other instances, well-known methods, procedures and techniques have not been described in detail so as not to obscure the foregoing embodiments.
Some portions of the detailed description that follows are presented in terms of algorithms and symbolic representations of operations on data bits or binary digital signals within a computer memory. These algorithmic descriptions and representations may be the techniques used by those skilled in the data processing arts to convey the substance of their work to others skilled in the art.
An algorithm is here, and generally, considered to be a self-consistent sequence of acts or operations leading to a desired result. These include physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers or the like. It should be understood, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities.
Unless specifically stated otherwise, as apparent from the following discussions, it is appreciated that throughout the specification discussions utilizing terms such as processing, computing, calculating, determining, or the like, refer to the action or processes of a computer or computing system, or similar electronic computing device, that manipulate or transform data represented as physical, such as electronic, quantities within the registers or memories of the computing system into other data similarly represented as physical quantities within the memories, registers or other such information storage, transmission or display devices of the computing system.
Embodiments of the present invention may include apparatuses for performing the operations herein. This apparatus may be specially constructed for the desired purposes, or it may comprise a general purpose computing device selectively activated or reconfigured by a program stored in the device. Such a program may be stored on a storage medium, such as, but is not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, magnetic-optical disks, read-only memories (ROMs), random access memories (RAMs), electrically programmable read-only memories (EPROMs), electrically erasable and programmable read only memories (EEPROMs), flash memory, magnetic or optical cards, or any other type of media suitable for storing electronic instructions, and capable of being coupled to a system bus for a computing device.
The processes and displays presented herein are not inherently related to any particular computing device or other apparatus. Various general purpose systems may be used with programs in accordance with the teachings herein, or it may prove convenient to construct a more specialized apparatus to perform the desired method. The desired structure for a variety of these systems will appear from the description below. In addition, embodiments of the present invention are not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the invention as described herein.
In the following description and claims, the terms coupled and connected, along with their derivatives, may be used. In particular embodiments, connected may be used to indicate that two or more elements are in direct physical or electrical contact with each other. Coupled may mean that two or more elements are in direct physical or electrical contact. However, coupled may also mean that two or more elements may not be in direct contact with each other, but yet may still cooperate or interact with each other.
It is worthy to note that any reference in the specification to “one embodiment”or “an embodiment”means in this context that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of the phrase “in one embodiment”or “an embodiment”in various places in the specification do not necessarily refer to the same embodiment, but may be referring to different embodiments.
It should be understood that embodiments of the present invention may be used in a variety of applications. Although the present invention is not limited in this respect, the circuits disclosed herein may be used in many apparatuses such as in the transmitters and receivers of a radio system. Radio systems intended to be included within the scope of the present invention include, by way of example only, wireless local area networks (WLAN) devices and wireless wide area network (WWAN) devices including wireless network interface devices and network interface cards (NICs), base stations, access points (APs), gateways, bridges, hubs, cellular radiotelephone communication systems, satellite communication systems, two-way radio communication systems, one-way pagers, two-way pagers, personal communication systems (PCS), personal computers (PCs), personal digital assistants (PDAs), and the like, although the scope of the invention is not limited in this respect.
A node may refer to any computing system or computing device, such as, for example, a PDA, AP, NIC, wireless device, pager, cellular telephone, switch, gateway, router, computer, handheld computer or device. The node may, for example, communicate with other nodes over one or more channels. The channel may be provided over any communications media, such as a wireless media, or a wired media such as copper line, coaxial cable, fiber optic line, etc.
As used herein, the term packet may include a unit of data that may be routed or transmitted between nodes or stations or across a network. As used herein, the term packet may include frames, protocol data units or other units of data. A packet may include a group of bits, which may include one or more address fields, control fields and data, for example. A data block may be any unit of data or information bits. A data burst may, for example, refer to a plurality of packets or a group of data.
Referring to the Figures in which like numerals indicate like elements,
Processor 112 may couple to a memory 114 which may include volatile memory such as DRAM, non-volatile memory such as flash memory, or alternatively may include other types of storage such as a hard disk drive, although the scope of the invention is not limited in this respect. Some portion or all of memory 114 may be included on the same integrated circuit as processor 112, or alternatively some portion or all of memory 114 may be disposed on an integrated circuit or other medium, for example a hard disk drive, that is external to the integrated circuit of processor 112, although the scope of the invention is not limited in this respect. According to one embodiment, software may be provided in memory 114 to be executed by processor 112 to allow wireless system 116 to perform a variety of tasks, some of which may be described herein.
Wireless system 116 may communicate with an access point (AP) 128 (or other wireless system) via wireless communication link 134, where access point 128 may include at least one antenna 118. Antennas 117 and 118 may each be, for example, a directional antenna or an omni directional antenna, although the invention is not limited thereto. Although not shown in
Access point 128 may be coupled to network 130 so that wireless system 116 may communicate with network 130, including devices coupled to network 130, by communicating with access point 128 via wireless communication link 134. Network 130 may include a public network such as a telephone network or the Internet, or alternatively network 130 may include a private network such as an intranet, or a combination of a public and a private network, although the scope of the invention is not limited in this respect.
Communication between wireless system 116 and access point 128 may be implemented via a wireless local area network (WLAN), for example a network which may be compliant with an Institute of Electrical and Electronics Engineers (IEEE) standard such as IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, the standard produced by IEEE 802.11 task group n, and so on, although the scope of the invention is not limited in this respect.
In another embodiment, communication between wireless system 116 and access point 128 may be implemented via a cellular communication network compliant with a 3GPP standard, although the scope of the invention is not limited in this respect.
A timer 210 may be associated with each transmit queue 205 to measure, for example, an amount of time elapsed since a packet (or other data) was stored in the queue. Alternatively, the timer may be set to a selected value and started when a packet is initially received at an empty queue. For example, timers 210A, 210B, 210C and 210D may be associated with transmit queues 205A, 205B, 205C and 205D.
The queues and timers may be logically provided, and may be in any form. The present invention is not dependent upon timers or queues being provided in any particular form. For example, the timer may be provided in hardware, software or a combination of hardware and software. A queue may be provided as a plurality of separate queues, or a single queue with sections allocated for each of queues 205A-D, for example, although the invention is not limited thereto. The queues may take a wide variety of forms.
According to an example embodiment, when a packet is received from a node's MAC, it may be queued in an appropriate queue based upon the receiver address. A receiver address may refer to an address of the entity (e.g., node) that may be the immediate recipient of the transmitted packet (e.g., address of the next hop). The receiver address may be the same as or different from the destination address of the packet, which may refer to a final destination of the packet. For example, the receiver address may be different from the destination address of the packet where the packet may be transmitted via wireless link to an AP (the receiver address or next hop), which may then forward the packet via wired link to a server (the final destination for the packet).
The node may be in communication with at least one other node, and in some cases, node 200 may be in communication with a plurality of other nodes. As a result, packets received from MAC 112 for transmission may include different receiver addresses, depending on the next hop for the packet. According to an example embodiment, the node may include at least one transmit queue 205 per receiver address. In another embodiment, a plurality of transmit queues may be provided for each receiver address, with a different queue provided for each connection with the receiver address (e.g., a different queue for each connection).
According to yet another embodiment, a plurality of transmit queues 205 may be provided in node 200 for each receiver address. In such an example embodiment, a transmit queue may be provided for each of a plurality of different packet priorities for one or more receiver addresses. For example, as shown in
As noted above, according to an example embodiment, when a packet is received from a node's MAC, it may be queued in an appropriate transmit queue based upon the receiver address for the packet. The packet may also be queued based on the priority of the packet, if different queues are provided for different priorities, e.g., for that receiver address. If this is the first packet in the queue 205, then the associated timer 210 may be started.
A channel access may refer to a node's attempt to communicate over the channel, such as to obtain permission to transmit data over the channel. The permission to transmit, once gained, may also be referred to as a transmit opportunity. In an example embodiment, where the channel may be a shared medium, such as a shared wireless channel, a node may listen for an idle, and then wait a random period of time before transmitting. This may be a contention-based channel access, and is simply an example, although the invention is not limited thereto. According to an example embodiment, a successful outcome or result of a channel access may be receipt of a transmit opportunity (e.g., permission to transmit data over the channel), although the invention is not limited thereto. In another example embodiment of channel access, the node may make an explicit request for a transmit opportunity to a device (such as an AP for example) responsible for managing access to the medium. In yet another example embodiment, the node may report the amount of data it has to transmit when requested by an access point. Reporting a non-zero amount may be considered to be an implicit request for channel access, according to an example embodiment, although the invention is not limited thereto.
A node may initiate a channel access in response to different conditions. For example, the node may initiate a channel access: 1) when a transmit queue 205 is non-empty (e.g., upon receipt of a packet in the queue); or 2) delaying the channel access based upon the state of an associated transmit queue 205 and/or the state of an associated timer 210.
According to an example embodiment, either of two events may trigger (or cause the node to initiate) a channel access:
1) expiration of a timer associated with a queue; and
2) addition or storage of a packet to a queue that may cause the count for the queue to exceed a threshold. For example, a threshold 207 shown in
When a channel access is completed, the node may select a transmit queue from among any eligible transmit queues. Each queue may, for example, be in one of four possible states:
In the case where the technique of
Although not required, according to an example embodiment, a queue may be considered to be eligible or ineligible (non-eligible) based on the channel access rules applicable for the current transmit opportunity. For example, a node may initiate a channel access and receive permission to transmit only high priority packets. Alternatively, a node may implement a policy according to channel access rules that requires high priority packets to be transmitted before low priority packets. In either such case, high priority queues 205A and 205C may be considered eligible since they meet the channel access rules (e.g., for this transmit opportunity or at this time), while low priority queues 205B and 205D are non-eligible (since only high priority packets may be sent right now). This is just one example illustrating eligibility for queues based upon channel access rules, and the invention is not limited thereto.
There may be several different techniques to select one of the eligible queues having a timer expired. For example, depending on the design, node 200 may select: 1) an eligible queue with an expired timer having the oldest data; 2) an eligible queue having a timer that expired the longest ago; 3) an eligible queue with an expired timer having the highest count; or 4) some combination of these.
If there are no eligible queues with a timer expired, then at 415, node 200 determines whether there are any eligible queues that have a count that exceeds a threshold (queue in state 2). If there is, then node 200 selects one of these transmit queues and transmits data from the queue during the transmit opportunity. According to an example embodiment, node 200 may select the eligible transmit queue that has the largest count (e.g., the eligible transmit queue having the most data), although the invention is not limited thereto.
If there are no eligible queues that have a count that exceeds a threshold, then, according to an example embodiment, there may be a non-empty queue (queue in state 3) that is eligible. The node 200 may then select of these non-empty eligible queues, and transmit data from the queue during the transmit opportunity. Therefore, node 200 may give first preference to eligible queues having a timer expired, then a preference to eligible queues having a count that exceeded a threshold, and then to other eligible non-empty queues.
While certain features of the embodiments of the invention have been illustrated as described herein, many modifications, substitutions, changes and equivalents will now occur to those skilled in the art. It is, therefore, to be understood that the appended claims are intended to cover all such modifications and changes as fall within the true spirit of the embodiments of the invention.