Salta al contenuto
Note per Studenti LAN - Ethernet and Wi-Fi Report

LAN - Ethernet and Wi-Fi

In questa pagina 5

What a LAN is

Definition (LAN). A Local Area Network is a network designed for a limited geographic area. Most LANs are connected to a WAN, i.e. to the Internet (Network Types and TopologiesNetworks are classified by extent (BAN, WLAN, LAN, MAN, WAN, WSN), by transmission medium (air, fibre, copper, visible light) and by topology: bus (shared medium, collisions), star (central node, bottleneck), ring (each node forwards to the next), mesh (a direct link between every pair: n(n-1)/2 links). The choice depends on reliability, scalability, protocol and physical medium.Network Types and Topologies →).

In the 1980s and 1990s many LAN types existed, each with its own medium access method: Ethernet uses CSMA/CD, Token Ring and Token Bus use token passing, and so on (Multiple Access Protocols - ALOHA and CSMAWhen several stations share a medium a medium access (MAC) protocol must decide who transmits. Random access: pure ALOHA (transmit immediately, vulnerable time 2 t_F), slotted ALOHA (start only at slot boundaries, vulnerable t_F), CSMA (listen before talking, vulnerable tau_p) with 1-persistent, non-persistent and p-persistent variants, CSMA/CD (detects collisions while transmitting: needs t_F >= 2 tau_p, hence a minimum frame) and the Wi-Fi CSMA/CA (IFS, contention window with backoff, ACK, RTS/CTS and NAV). Controlled access: reservation, polling, token. Channelization: FDMA, TDMA, OFDMA, CDMA, SDMA.Multiple Access Protocols - ALOHA and CSMA →). Almost all disappeared from the market except Ethernet, which managed to upgrade itself to meet the needs of every era.

The IEEE 802 project

The IEEE 802 project was promoted by a consortium of companies with the support of the IEEE (Institute of Electrical and Electronics Engineers), but the standards are published by other bodies under slightly different names: ISO and IEC list each IEEE 802.nn standard as ISO/IEC 8802.nn. Why 802? It was simply the next free number the IEEE could assign; it is sometimes tied to the date of the first meeting, February 1980 (80/280/2).

The 802.x family.

Standard Content
802.1 higher-layer LAN protocols; general architecture of the project; introduces the split of the data link layer (DLL) into two sublayers: LLC (Logical Link Control) and MAC (Medium Access Control)
802.2 LLC: services and interfaces, management of logical connections in a LAN
802.3 (Ethernet), 802.4 (Token Bus), 802.5 (Token Ring), 802.6 (MAN), 802.11 (wireless LAN), 802.15 (wireless PAN) define the MAC protocols (and the physical layer)

So an Ethernet or Wi-Fi interface implements the two lowest layers of the stack (ISO-OSI Model and TCP-IP StackCommunication between two computers is too varied a problem (signals, errors, medium access, routing, flow control, data representation) for a single protocol, so it is divided into layers. The ISO/OSI model has 7 layers (physical, data link, network, transport, session, presentation, application); the TCP/IP stack merges the top three into one application layer, so it has 5. Each layer offers a service to the one above and talks only to its peer layer through PDUs; going down a header (PCI) is added: encapsulation. Addresses: MAC (link, local), IP (network, global), port (transport).ISO-OSI Model and TCP-IP Stack →): LLC on top, MAC and PHY below.

Ethernet and IEEE 802.3

Developed in the 1970s by Robert Metcalfe and David Boggs; approved and standardized in 1980-81 by the DIX consortium (Digital, Intel, Xerox); standardized in 1983 as IEEE 802.3 (approved by ISO as ISO 8802.3). Ethernet and 802.3 differ very little.

The philosophy of Ethernet

The Ethernet link service is:

Why this is sensible: on the short cable of a LAN errors are rare and the cost of an ARQ for every frame would exceed the benefit; the upper layers (TCP) retransmit whatever is missing anyway.

Frame format

| Preamble | SFD | Dest. | Src. | Type / Length |      Data (+ PAD)      | CRC |
|   7 B    | 1 B |  6 B  | 6 B  |      2 B      |      46 - 1500 B       | 4 B |

Sizes: why a maximum and a minimum

The frame size is between 6464 and 15181518 bytes; 1818 bytes are header and trailer (6+6+2+46+6+2+4), so the data field ranges from 4646 to 15001500 bytes.

Example. The ratio of useful data to frame is 1500/1518=0.988=98.8 %1500/1518=0.988=98.8\,\% for the maximum frame, but only 46/64=71.9 %46/64=71.9\,\% for the minimum (same 1818 bytes of overhead on a much smaller payload). At 1010 Mbit/s the maximum frame lasts 1518⋅8/107=1.2141518\cdot8/10^{7}=1.214 ms and the minimum one 512/107=51.2 μ512/10^{7}=51.2\ \mus (multiply by 88 to go from bytes to bits before dividing by the bitrate).

Why a maximum frame:

  • prevent a station from holding the bus too long;
  • limit the error probability of the packet (if lost, it is small and just retransmitted);
  • reduce buffer memory needs (memory was expensive in the 1980s).

Why a minimum frame: not to reduce overhead (what sense would it make, if a single byte is sent?), but for the access mechanism: CSMA/CD.

The 802.3 MAC: 1-persistent CSMA/CD

The 802.3 MAC is 1-persistent CSMA/CD (Multiple Access Protocols - ALOHA and CSMAWhen several stations share a medium a medium access (MAC) protocol must decide who transmits. Random access: pure ALOHA (transmit immediately, vulnerable time 2 t_F), slotted ALOHA (start only at slot boundaries, vulnerable t_F), CSMA (listen before talking, vulnerable tau_p) with 1-persistent, non-persistent and p-persistent variants, CSMA/CD (detects collisions while transmitting: needs t_F >= 2 tau_p, hence a minimum frame) and the Wi-Fi CSMA/CA (IFS, contention window with backoff, ACK, RTS/CTS and NAV). Controlled access: reservation, polling, token. Channelization: FDMA, TDMA, OFDMA, CDMA, SDMA.Multiple Access Protocols - ALOHA and CSMA →): if the received signal differs from the transmitted one, a collision has been detected. The time to be sure the transmission did not collide is twice the maximum propagation delay (2Tp2T_p).

Formula (minimum frame size). A frame of size SS with bitrate CC lasts Tfr=S/CT_{fr}=S/C. To detect the collision it must hold Tfr≥2TpT_{fr}\ge2T_p, i.e. S ≥ C⋅2Tp.S\ \ge\ C\cdot2T_p.

The frame must contain at least the bits the medium carries in a round trip (bandwidth-delay product).

Example (historical values). Signal speed on the cable 2⋅1082\cdot10^{8} m/s; maximum cable length d=2500d=2500 m (set by the designers); C=10C=10 Mbit/s. Then Tp=d/v=2500/(2⋅108)=12.5 μT_p=d/v=2500/(2\cdot10^8)=12.5\ \mus; the constraint is Tfr≥2Tp=25 μT_{fr}\ge2T_p=25\ \mus and Smin=C⋅Tfr=107 bit/s⋅25⋅10−6 s=250 bit≈31.25 B.S_{min}=C\cdot T_{fr}=10^{7}\ \text{bit/s}\cdot25\cdot10^{-6}\ \text{s}=250\ \text{bit}\approx31.25\ \text{B}. Considering the additional delays of repeaters and some safety margin, the minimum is set to 64 bytes (512512 bits, i.e. 51.2 μ51.2\ \mus at 1010 Mbit/s). When the data field is shorter, PAD is added.

Collision, jam and backoff.

  • On collision the station stops transmitting and sends a jam signal so the others also know of the collision: 3232 bits in 802.3 (3232 to 4848 bits in Ethernet).
  • Then it waits a random time (backoff), with granularity (slot time) of 51.2 μ51.2\ \mus (the transmission time of the 6464 B minimum frame at 1010 Mbit/s) and retransmits the frame.
  • After nn consecutive collisions the backoff time is chosen at random between 00 and 2k−12^k-1 slots, with k=min⁡(n,10)k=\min(n,10) (binary exponential backoff: the window doubles at each collision).
  • After 1616 failed attempts the process is abandoned.

The 51.2 μ51.2\ \mus slot is the worst-case round-trip time, i.e. exactly the transmission time of the minimum frame (512512 bits at 1010 Mbit/s). The draw is uniform over the 2k2^k integer values 0,1,…,2k−10,1,\dots,2^k-1 (each with probability 1/2k1/2^k), so the mean is (2k−1)/2(2^k-1)/2 slots. Doubling makes a new collision less likely: two stations that already collided nn times are probably many, and widening the interval reduces the probability that they draw the same number, 1/2k1/2^k.

Example. At the third consecutive collision (n=3n=3, k=3k=3) an integer number of slots between 00 and 23−1=72^3-1=7 is drawn: the wait ranges from 00 to 7⋅51.2=358.4 μ7\cdot51.2=358.4\ \mus, on average 3.5⋅51.2=179.2 μ3.5\cdot51.2=179.2\ \mus; two stations pick the same number with probability 1/8=12.5 %1/8=12.5\,\%. From the tenth collision on the window no longer grows: 0…10230\ldots1023 slots, up to 1023⋅51.2 μs=52.41023\cdot51.2\ \mu\text{s}=52.4 ms.

The four generations of Ethernet

Generation Bitrate
Standard Ethernet 10 Mbit/s
Fast Ethernet 100 Mbit/s
Gigabit Ethernet 1 Gbit/s
10-Gigabit Ethernet 10 Gbit/s (today much higher: 25, 40, 100, 400 Gbit/s)

Standard Ethernet (10 Mbit/s), four popular implementations in the 1980s. The name 10Base-X means: 1010 Mbit/s, baseband transmission, and XX = cable length in hundreds of metres (5→5005\to500 m, 2→≈2002\to\approx200 m) or the medium type (TT = twisted pair; FF = fibre).

Implementation Medium Max length Coding
10Base5 coaxial 500 m Manchester
10Base2 coaxial 185 m Manchester
10Base-T 2 UTP pairs 100 m Manchester
10Base-F 2 fibres 2000 m Manchester

Fast Ethernet (100 Mbit/s): twisted pair or fibre; star topology with a LAN switch in the centre; supports full duplex (CSMA/CD not needed).

Implementation Medium Length Wires Coding
100Base-TX UTP or STP 100 m 2 4B5B + MLT-3
100Base-FX fibre 185 m 2 4B5B + NRZ-I
100Base-T4 UTP 100 m 4 8B6T (two)

Gigabit Ethernet (1 Gbit/s):

  • full duplex: star topology, switch with buffers, separate collision domains, no CSMA/CD;
  • half duplex: CSMA/CD with hubs and a reduced network (~2525 m) or techniques like carrier extension or frame bursting; very rare, almost never used.
Implementation Medium Length Wires Coding
1000Base-SX fibre (short wave) 550 m 2 8B/10B + NRZ
1000Base-LX fibre (long wave) 5000 m 2 8B/10B + NRZ
1000Base-CX STP 25 m 2 8B/10B + NRZ
1000Base-T4 UTP 100 m 4 4D-PAM5

10-Gigabit Ethernet (10 Gbit/s), the current implementation: possible only with optical fibre.

Implementation Medium Length Coding
10GBase-SR fibre at 850 nm 300 m 64B66B
10GBase-LR fibre at 1310 nm 10 km 64B66B
10GBase-EW fibre at 1350 nm 40 km SONET
10GBase-X4 fibre at 1310 nm 300 m ÷\div 10 km 8B10B

Why CSMA/CD disappears as bitrate grows. With the minimum frame of 512512 bits fixed, the constraint Fmin≥C⋅2τpF_{min}\ge C\cdot2\tau_p fixes the maximum distance of the collision domain. Substituting τp=d/v\tau_p=d/v and solving for dd: Fmin≥C⋅2dv ⟹ d≤dmax=Fmin v2C,v=2⋅108 m/s.F_{min}\ge C\cdot\frac{2d}{v}\ \Longrightarrow\ d\le d_{max}=\frac{F_{min}\,v}{2C},\qquad v=2\cdot10^8\ \text{m/s}. For instance at 1010 Mbit/s: dmax=512⋅2⋅108/(2⋅107)=5120d_{max}=512\cdot2\cdot10^{8}/(2\cdot10^{7})=5120 m. Each time CC grows by a factor 1010, dmaxd_{max} is divided by 1010 (inversely proportional to CC).

Bitrate 1010 Mbit/s 100100 Mbit/s 11 Gbit/s 1010 Gbit/s
dmaxd_{max} for Fmin=512F_{min}=512 bit 51205120 m 512512 m 51.251.2 m 5.125.12 m

(These are theoretical limits: real values are lower because of repeaters and margins, e.g. the 1010 Mbit/s network was limited to 25002500 m.) From 11 Gbit/s upward shared Ethernet links make no sense and only point-to-point full-duplex links between station and switch are used, without collisions.

Grafico interattivo: Maximum distance d = F_min * v / (2C) of the collision domain versus bitrate C (F_min = 512 bit, v = 2*10^8 m/s): 5120 m at 10 Mbit/s, 512 m at 100 Mbit/s, 51 m at 1 Gbit/s

The hub acts as a shared medium (a single collision domain), the switch separates collision domains (Network Devices - Hub, Switch and RouterDevices that interconnect networks differ by the highest layer of the stack they read. Hub (layer 1): a repeater, regenerates the signal and sends it out of all ports, all stations share the capacity. Bridge and switch (layer 2): read the MAC address and forward only to the right port, learning the table (FDB) from source addresses. Router (layer 3): reads the IP address and joins independent networks (internetwork). Switches and bridges isolate traffic and are plug and play; the router gives optimal routing but must be configured.Network Devices - Hub, Switch and Router →): it is the full-duplex switch that allowed Ethernet to increase speed.

Wi-Fi: IEEE 802.11

Definition (IEEE 802.11). IEEE specifications for wireless local area networks (in some countries the public calls them Wi-Fi, short for Wireless Fidelity).

Operating modes

Basic Service Set (BSS). Fixed or mobile stations plus a central base station, the Access Point (AP). Requires authentication and access rights to the network. Examples: offices, hot spots, conference rooms. Without an AP the architecture is ad hoc (it cannot send data to other BSSs). Examples: direct file sharing, printers.

Extended BSS (EBSS). Two or more BSSs (with APs) connected through a distribution system (wired, e.g. Ethernet, or wireless). When BSSs are connected, stations within range of each other can communicate without going through the AP. Communication between a station of a BSS and the outside goes through the AP and cannot happen without it.

Physical layer

802.11 supports several transmission rates. Higher rates need a higher SNR to be decoded correctly, and the bitrate is adapted automatically by the cards (NICs) with proprietary schemes.

Example. In the reference figure, at SNR=20SNR=20 dB (linear ratio 1020/10=10010^{20/10}=100): transmitting at 5454 Mbit/s 30 %30\,\% of packets are lost, at 4848 Mbit/s 3 %3\,\%, at 3636 Mbit/s 0.4 %0.4\,\%. It pays to lower the speed: although the nominal bitrate is lower, the effective throughput is higher. Useful throughput is bitrate times the fraction of delivered packets, R(1−PER)R(1-PER): at 5454 Mbit/s with 30 %30\,\% loss at most 54⋅0.7=37.854\cdot0.7=37.8 Mbit/s, and with retransmissions much less; at 4848 Mbit/s with 3 %3\,\% loss 48⋅0.97=46.648\cdot0.97=46.6 Mbit/s. The higher the bitrate, the more SNR is needed because the modulation has closer points and noise confuses them more easily.

MAC layer: CSMA/CA

802.11 uses CSMA/CA (described in Multiple Access Protocols - ALOHA and CSMAWhen several stations share a medium a medium access (MAC) protocol must decide who transmits. Random access: pure ALOHA (transmit immediately, vulnerable time 2 t_F), slotted ALOHA (start only at slot boundaries, vulnerable t_F), CSMA (listen before talking, vulnerable tau_p) with 1-persistent, non-persistent and p-persistent variants, CSMA/CD (detects collisions while transmitting: needs t_F >= 2 tau_p, hence a minimum frame) and the Wi-Fi CSMA/CA (IFS, contention window with backoff, ACK, RTS/CTS and NAV). Controlled access: reservation, polling, token. Channelization: FDMA, TDMA, OFDMA, CDMA, SDMA.Multiple Access Protocols - ALOHA and CSMA →: IFS, contention window with backoff, ACK after SIFS, RTS/CTS and NAV). Three typical wireless problems remain.

1. Collision during the handshake. What if a collision occurs while RTS or CTS frames are in transit (handshake period)? Two or more stations may send the RTS together. Solution: since there is no collision detection, the sender assumes a collision if it does not receive the CTS from the receiver, and retries (with backoff).

2. Hidden terminal. Two or more stations (A and B) sense the channel idle only because they are not within communication range of each other; both transmit to station C and the two packets overlap at the receiver (A and B cannot notice each other's presence).

Example. A, C, B are in a row: A and B are both within range of C but not of each other. A senses the channel idle and starts transmitting to C; B, which does not hear A, senses the channel idle and starts too. The two frames collide at C.

Solution: RTS/CTS handshake. Even if A's RTS does not reach B (out of range), the CTS from C (the destination) reaches both A and B: B knows a transmission is under way and sets the NAV.

Grafico interattivo: Hidden terminal: A and B are both within range of C (distance 2 against range 2.5) but not of each other (distance 4 > 2.5), so they do not hear each other's transmissions and their frames overlap at C; the CTS from C reaches both

3. Exposed terminal. A station refrains from using a channel when it is actually free: station C hears the RTS from A and does not transmit, even though a communication between C and D could not cause collisions in the area between A and C. The behaviour is too conservative: capacity is wasted.

The 802.11 family

Standard Year Frequency Max bitrate Max range
802.11a 1999 5 GHz 54 Mbit/s 400 ft (~120 m)
802.11b 1999 2.4 GHz 11 Mbit/s 450 ft
802.11g 2003 2.4 GHz 54 Mbit/s 450 ft
802.11n 2009 2.4 / 5 GHz 600 Mbit/s 825 ft
802.11ac 2014 5 GHz 1 Gbit/s 1000 ft
802.11ac Wave 2 2015 5 GHz 3.47 Gbit/s 10 m
802.11ad 2016 60 GHz 7 Gbit/s 30 ft
802.11af 2014 2.4 / 5 GHz (TV white space) 26.7 - 568.9 Mbit/s 1000 m
802.11ah 2016 below 1 GHz 347 Mbit/s 1000 m
802.11ax 2019 2.4 / 5 GHz 10 Gbit/s 1000 ft
802.11ay late 2019 60 GHz 100 Gbit/s 300-500 m

(Ranges are given in feet or metres as in the course material; values are indicative and some standards were listed as "expected" in 2019-2021.) The bandwidths are: a 2020 MHz at 55 GHz; b 2020 MHz at 2.42.4 GHz; g 2020 and 4040 MHz at 2.42.4 GHz; n 2020 and 4040 MHz at 2.42.4 and 55 GHz; ac from 2020 to 160160 MHz at 55 GHz; ad 22 GHz at 6060 GHz; af free TV spectrum; ah below 11 GHz.

Ethernet and Wi-Fi compared

Ethernet (802.3) Wi-Fi (802.11)
Medium cable (copper, fibre) radio
Medium access CSMA/CD (full duplex with switch: no collisions) CSMA/CA
Collision detection yes, during transmission no: avoided
Link-layer ACK no yes (stop-and-wait, after SIFS)
Bitrate fixed by cable type adapted to the SNR
Typical problems minimum frame, collision domain hidden and exposed terminal

The most evident sign of the difference: in Ethernet errors on the cable are rare and reliability is left to the upper layers; on the radio channel losses are normal, so Wi-Fi has link-layer ACKs and retransmissions.

Versione ripasso

LAN and IEEE 802. LAN: limited area, usually connected to a WAN; of the many 1980s-90s LANs (Ethernet with CSMA/CD, Token Ring and Token Bus with tokens) only Ethernet survived because it kept upgrading. IEEE 802.x (ISO/IEC 8802.nn; "802" == next free number, or February 1980): 802.1 architecture, DLL == LLC ++ MAC; 802.2 LLC; 802.3 Ethernet, 802.4 Token Bus, 802.5 Token Ring, 802.6 MAN, 802.11 Wi-Fi, 802.15 PAN: the MACs.

Ethernet. Metcalfe and Boggs, 1970s; DIX (Digital, Intel, Xerox) 1980-81; IEEE 802.3 in 1983 (minimal differences). Service: connectionless, no flow control (excess frames silently discarded, recovery by upper layers), no ACK (32-bit CRC; wrong CRC ⇒\Rightarrow silent discard; no ARQ for bit errors), retransmission only after a collision (CSMA/CD).

Frame. Preamble 7 B (10101010..., bit sync) ++ SFD 1 B (10101011, frame sync), added by the PHY; destination 6 B; source 6 B (unicast 0..., multicast 1..., broadcast all 1s); type/length 2 B (Ethernet: type, e.g. 0x0800 IPv4; 802.3: length, with the LLC frame inside; most significant bit 00, theoretical maximum 216−12^{16}-1); data 4646-15001500 B (++ PAD up to 4646); CRC 4 B. Total 6464-15181518 B (1818 B of header and trailer). Efficiency: 1500/1518=98.8 %1500/1518=98.8\,\% at most, 46/64=71.9 %46/64=71.9\,\% at least. At 1010 Mbit/s: 1.2141.214 ms (maximum), 51.2 μ51.2\ \mus (minimum).

  • Why a maximum: no station monopolizes the bus, limited errors (little to retransmit), small buffers (memory was expensive in the 1980s).
  • Why a minimum: not for overhead but for CSMA/CD.

1-persistent CSMA/CD. Collision if the received signal differs from the transmitted one; certainty after 2Tp2T_p. Tfr=S/C≥2Tp⇒S≥C⋅2TpT_{fr}=S/C\ge2T_p\Rightarrow S\ge C\cdot2T_p. Example: v=2⋅108v=2\cdot10^8 m/s, d=2500d=2500 m, C=10C=10 Mbit/s: Tp=12.5 μT_p=12.5\ \mus, Tfr≥25 μT_{fr}\ge25\ \mus, Smin=250S_{min}=250 bit =31.25=31.25 B; with repeaters and margin ⇒\Rightarrow 6464 B (512512 bit). Collision: jam of 3232 bits (3232-4848 in Ethernet); backoff with slot of 51.2 μ51.2\ \mus (== minimum frame at 1010 Mbit/s), after nn collisions in [0,2k−1][0,2^k-1] slots with k=min⁡(n,10)k=\min(n,10); stop after 1616 attempts. Example: n=3⇒0n=3\Rightarrow0-77 slots =0=0-358.4 μ358.4\ \mus; from n=10n=10 up to 10231023 slots =52.4=52.4 ms.

Generations.

  • 10 Mbit/s (10Base-X: baseband, XX == hundreds of metres or medium): 10Base5 coax 500500 m, 10Base2 185185 m, 10Base-T 22 UTP 100100 m, 10Base-F fibre 20002000 m; Manchester coding.
  • 100 Mbit/s: star with switch, full duplex ⇒\Rightarrow no CSMA/CD; 100Base-TX (UTP/STP 100100 m, 4B5B+MLT-3), -FX (fibre 185185 m), -T4 (UTP, 4 wires).
  • 1 Gbit/s: full duplex with switch and separate collision domains, no CSMA/CD; half duplex (hub, CSMA/CD, ∼25\sim25 m, carrier extension, frame bursting) almost never used; 1000Base-SX 550550 m, -LX 50005000 m, -CX 2525 m, -T 100100 m.
  • 10 Gbit/s: fibre only; 10GBase-SR 300300 m, -LR 1010 km, -EW 4040 km.
  • Why CSMA/CD disappears: dmax=Fminv2Cd_{max}=\frac{F_{min}v}{2C} with Fmin=512F_{min}=512 bit: 51205120, 512512, 51.251.2, 5.125.12 m at 1010 M, 100100 M, 11 G, 1010 Gbit/s (theoretical limits). The hub is one collision domain, the switch separates them.

Wi-Fi 802.11 (CSMA/CA, Multiple Access Protocols - ALOHA and CSMAWhen several stations share a medium a medium access (MAC) protocol must decide who transmits. Random access: pure ALOHA (transmit immediately, vulnerable time 2 t_F), slotted ALOHA (start only at slot boundaries, vulnerable t_F), CSMA (listen before talking, vulnerable tau_p) with 1-persistent, non-persistent and p-persistent variants, CSMA/CD (detects collisions while transmitting: needs t_F >= 2 tau_p, hence a minimum frame) and the Wi-Fi CSMA/CA (IFS, contention window with backoff, ACK, RTS/CTS and NAV). Controlled access: reservation, polling, token. Channelization: FDMA, TDMA, OFDMA, CDMA, SDMA.Multiple Access Protocols - ALOHA and CSMA →).

  • BSS: stations ++ AP (authentication and rights; offices, hot spots); without AP: ad hoc (cannot reach other BSSs). EBSS: several BSSs with a distribution system (wired or not); within a BSS stations in range talk without the AP, towards the outside the AP is needed.
  • PHY: several bitrates, higher needs more SNR; automatic adaptation (proprietary schemes). Example SNR=20SNR=20 dB: 5454 Mbit/s →30 %\to30\,\% loss, 48→3 %48\to3\,\%, 36→0.4 %36\to0.4\,\%; 48⋅0.97=46.648\cdot0.97=46.6 Mbit/s beats 54⋅0.7=37.854\cdot0.7=37.8.
  • Handshake collision: no CTS ⇒\Rightarrow a collision is assumed and the sender retries.
  • Hidden terminal: A and B do not hear each other, transmit to C and collide at C; C's CTS reaches both ⇒\Rightarrow NAV.
  • Exposed terminal: C hears A's RTS and refrains even if C-D would not disturb; too conservative.
  • Family: a (19991999, 55 GHz, 5454 Mbit/s), b (1111, 2.42.4 GHz), g (20032003, 5454), n (20092009, 600600), ac (20142014, 11 Gbit/s, 55 GHz), ad/ay (6060 GHz), af/ah (long range, 10001000 m), ax (1010 Gbit/s).

Comparison. Ethernet: cable, CSMA/CD (full duplex: no collisions), no link ACK, fixed bitrate. Wi-Fi: radio, CSMA/CA, stop-and-wait ACK after SIFS, bitrate adapted to the SNR.

  • Typical mistakes: saying Ethernet has ACKs or flow control; believing the minimum frame reduces overhead (it serves collision detection); forgetting that a wrong CRC means silent discard; applying CSMA/CD to Wi-Fi.

Teoria collegata