# Disassociate vs Deauthentication

**Disassociation** and **Deauthentication** are terms related to wireless network security, particularly within the context of Wi-Fi networks. Both are mechanisms defined in the IEEE 802.11 standard for managing client connections to access points, but they serve different purposes and function differently.

#### Disassociation:

* **Purpose**: Used to terminate an existing association between a client device (e.g., a laptop or smartphone) and a wireless access point (AP).
* **Function**: When a disassociation frame is sent, it informs the client that it is no longer associated with the AP. This means the client will lose its connection but can attempt to reconnect.
* **Typical Use Cases**:
  * A client device moves out of range of the AP.
  * The AP needs to free up resources or manage its connections.
  * The client voluntarily disconnects (e.g., user turns off Wi-Fi or moves to another network).

#### Deauthentication:

* **Purpose**: Used to terminate all communications and disassociate a client device from the AP, effectively logging the client out of the network.
* **Function**: When a deauthentication frame is sent, it informs the client that it has been deauthenticated from the network. This action not only disassociates the client but also removes any authentication credentials, forcing the client to reauthenticate before it can reconnect.
* **Typical Use Cases**:
  * Security policies require terminating all sessions immediately (e.g., a potential security threat is detected).
  * Network administrators need to revoke access.
  * Implementing changes in the network configuration that require clients to reauthenticate.

#### Summary:

* **Disassociation**:
  * Ends the association between a client and an AP.
  * The client can attempt to reconnect immediately.
  * Often used for resource management or voluntary disconnections.
* **Deauthentication**:
  * Ends all communications and removes the client's authentication.
  * The client must reauthenticate to reconnect.
  * Used for enforcing security policies or administrative actions.

Understanding the difference between disassociation and deauthentication is crucial for network management and security. Each serves specific purposes and impacts the client's ability to reconnect to the network differently.
