The first IEEE 802.11 standard included the
WEP ("Wired Equivalent Privacy") mechanism.
WEP requires that every packets exchanged among
'access point and clients must be encrypted using
the RC4 algorithm, with a secret key of of 40 or 104 bits,
prefixed by a random sequence of 24 bits (Initialization
Vector) different for each packet.
The secret key must be known to all the clients
associating to the
access point.
In 2001 some researchers demonstrated that the RC4 implementation inside
WEP had some critical flaws. So the IEEE founded a task group, the
"Task Group i", for defining a new security standard,
the IEEE 802.11i.
IEEE e Wi-Fi Alliance,
the commercial organization which promotes the diffusion of wireless networks,
defined a new standard, that can be used on existing equipments, without
the flaws of WEP.
The new mechanism, named WPA (Wireless Protected Access),
was designed as a temporary replacement of WEP, waiting for the definitive
802.11i.
WPA included a new protocol, named TKIP
(Temporal Key Integrity Protocol), still based on RC4,
that add a software algorithm for each packets
before the WEP (hardware implemented).
WPA uses TKIP for the encryption, while uses a new user authentication
mechanism based on 802.1x.
802.11i, defined in July, 2004, is now commonly known as WPA2.
WPA2 employs again 802.1x for authentication, while defines a
new protocol for encryption,
CCMP (Counter Mode with CBC-MAC Protocol),
that replaces RC4 with
AES.
The more reliability of AES (and CCMP) has a price: the more
CPU speed needed to calculate the algorithm, requiring thus
some changing in the hardware of equipments.
IEEE 802.1x is a port-based authentication protocol, which requires that each client must authenticate at the first access, and at periodic interval of time. For the real authentication the standard usually requires a remote RADIUS (Remote Authentication Dial-In User Service) server.
The 802.1x architecture is composed by the following objects:
The following picture shows the 802.1x architecture.
The authentication system employs the transport protocol EAP (Extensible Authentication Protocol), which does not define an authentication protocol, but defines an extensible platform that makes possible to employ different authentication protocols, avoiding the problem of the discover of flaws on a protocol.
EAP defines over 40 methods for the authentication. The main ones are: