Wi-Fi stations communicate by sending each other
data packets, blocks of data individually sent and delivered over radio on various channels. As with all radio, this is done by the
modulation and demodulation of
carrier waves. Different versions of Wi-Fi use different techniques, 802.11b uses
direct-sequence spread spectrum on a single carrier, whereas 802.11a, Wi-Fi 4, 5 and 6 use
orthogonal frequency-division multiplexing. Channels are used
half duplex and can be
time-shared by multiple networks. Any packet sent by one computer is locally received by stations tuned to that channel, even if that information is intended for just one destination. Stations typically ignore information not addressed to them. The use of the same channel also means that the data bandwidth is shared, so for example, available throughput to each device is halved when two stations are actively transmitting. As with other IEEE 802 LANs, stations come programmed with a globally unique 48-bit MAC address. The MAC addresses are used to specify both the destination and the source of each data packet. On the reception of a transmission, the receiver uses the destination address to determine whether the transmission is relevant to the station or should be ignored. A scheme known as
carrier-sense multiple access with collision avoidance (CSMA/CA) governs the way stations share channels. With CSMA/CA stations attempt to avoid collisions by beginning transmission only after the channel is sensed to be idle, but then transmit their packet data in its entirety. CSMA/CA cannot completely prevent collisions, as two stations may sense the channel to be idle at the same time and thus begin transmission simultaneously. A collision happens when a station receives signals from multiple stations on a channel at the same time. This corrupts the transmitted data and can require stations to re-transmit. The lost data and re-transmission reduces throughput, in some cases severely.
Waveband The 802.11 standard provides several distinct
radio frequency ranges for use in Wi-Fi communications: 900
MHz, 2.4 GHz, 3.6 GHz, 4.9 GHz, 5 GHz, 6 GHz and 60 GHz
bands. Each range is divided into a multitude of
channels. In the standards, channels are numbered at 5 MHz spacing within a band (except in the 60 GHz band, where they are 2.16 GHz apart), and the number refers to the centre frequency of the channel. Although channels are numbered at 5 MHz spacing, transmitters generally occupy at least 20 MHz, and standards allow for neighbouring channels to be bonded together to form a wider channel for higher throughput. Countries apply their own regulations to the allowable channels, allowed users and maximum power levels within these frequency ranges. 802.11b/g/n can use the 2.4 GHz band, operating in the United States under FCC
Part 15 rules and regulations. In this frequency band, equipment may occasionally suffer
interference from microwave ovens,
Bluetooth and other devices. Spectrum assignments and operational limitations are not consistent worldwide: Australia and Europe allow for an additional two channels (12, 13) beyond the 11 permitted in the United States for the 2.4 GHz band, while Japan has three more (12–14). 802.11a/h/j/n/ac/ax can use the
5 GHz U-NII band, which, for much of the world, offers at least 23 non-overlapping 20 MHz channels. This is in contrast to the 2.4 GHz frequency band where the channels are only 5 MHz wide. In general, lower frequencies have longer range but have less capacity. The 5 GHz bands are absorbed to a greater degree by common building materials than the 2.4 GHz bands and usually give a shorter range. As 802.11 specifications evolved to support higher throughput, the protocols have become much more efficient in their bandwidth use. Additionally, they have gained the ability to
aggregate channels together to gain still more throughput where the bandwidth for additional channels is available. 802.11n allows for double radio spectrum bandwidth (40 MHz) per channel compared to
802.11a or 802.11g (20 MHz). 802.11n can be set to limit itself to 20 MHz bandwidth to prevent interference in dense communities. In the 5 GHz band, 20 MHz, 40 MHz, 80 MHz, and 160 MHz channels are permitted with some restrictions, giving much faster connections.
Communication stack Wi-Fi is part of the IEEE 802 protocol family. The data is organized into
802.11 frames that are very similar to
Ethernet frames at the data link layer, but with extra address fields. MAC addresses are used as
network addresses for routing over the LAN. Wi-Fi's MAC and
physical layer (PHY) specifications are defined by IEEE 802.11 for modulating and receiving one or more carrier waves to transmit the data in the infrared, and 2.4,
3.6, 5, 6, or
60 GHz frequency bands. They are created and maintained by the IEEE LAN/MAN Standards Committee (
IEEE 802). The base version of the standard was released in 1997 and has had many subsequent amendments. The standard and amendments provide the basis for wireless network products using the Wi-Fi brand. While each amendment is officially revoked when incorporated in the latest version of the standard, the corporate world tends to market to the revisions because they concisely denote capabilities of their products. As a result, in the market place, each revision tends to become its own standard. In addition to 802.11, the IEEE 802 protocol family has specific provisions for Wi-Fi. These are required because Ethernet's cable-based media are not usually shared, whereas with wireless all transmissions are received by all stations within the range that employ that radio channel. While Ethernet has essentially negligible error rates, wireless communication media are subject to significant interference. Therefore, the accurate transmission is not guaranteed so delivery is, therefore, a
best-effort delivery mechanism. Because of this, for Wi-Fi, the
Logical Link Control (LLC) specified by
IEEE 802.2 employs Wi-Fi's
media access control (MAC) protocols to manage retries without relying on higher levels of the protocol stack. For internetworking purposes, Wi-Fi is usually
layered as a
link layer below the
internet layer of the
Internet Protocol. This means that nodes have an associated
internet address and, with suitable connectivity, this allows full Internet access.
Modes Infrastructure In infrastructure mode, which is the most common mode used, all communications go through a base station. For communications within the network, this introduces an extra use of the airwaves but has the advantage that any two stations that can communicate with the base station can also communicate through the base station, which limits issues associated with the
hidden node problem and simplifies the protocols.
Ad hoc and Wi-Fi direct Wi-Fi also allows communications directly from one computer to another without an access point intermediary. This is called
ad hoc Wi-Fi transmission. Different types of ad hoc networks exist. In the simplest case, network nodes must talk directly to each other. In more complex protocols nodes may forward packets, and nodes keep track of how to reach other nodes, even if they move around. Ad hoc mode was first described by
Chai Keong Toh in his 1996 patent of wireless ad hoc routing, implemented on Lucent WaveLAN 802.11a wireless on IBM
ThinkPads over a size nodes scenario spanning a region of over a mile. The success was recorded in
Mobile Computing magazine (1999) and later published formally in
IEEE Transactions on Wireless Communications, 2002 and
ACM SIGMETRICS Performance Evaluation Review, 2001. This wireless ad hoc network mode has proven popular with
multiplayer video games on
handheld game consoles, such as the
Nintendo DS and
PlayStation Portable. It is also popular on
digital cameras, and other
consumer electronics devices. Some devices can also share their Internet connection using ad hoc, becoming hotspots or
virtual routers. Similarly, the Wi-Fi Alliance promotes the specification
Wi-Fi Direct for file transfers and media sharing through a new discovery and security methodology. Wi-Fi Direct launched in October 2010. Another mode of direct communication over Wi-Fi is
Tunneled Direct Link Setup (TDLS), which enables two devices on the same Wi-Fi network to communicate directly, instead of via the access point.
Multiple access points s to announce the presence of networks. An
Extended Service Set may be formed by deploying multiple access points that are configured with the same SSID and security settings. Wi-Fi client devices typically connect to the access point that can provide the strongest signal within that service set. == Performance ==