Compare Infrastructure Based Network with Ad-hoc network.

Basis Infrastructure-Based Networks Ad-hoc Networks
Definition Uses a fixed infrastructure like access points, base stations, or routers No fixed infrastructure; nodes communicate directly with each other
Network Setup Centralized setup with predefined components Decentralized and self-organizing
Communication All communication passes through a central access point Direct communication between nodes or via multi-hop routing
Control Managed and controlled by infrastructure No central control; each node acts as a router
Scalability Easier to manage and scale due to centralized control Scalability can be complex due to dynamic topology
Mobility Handling Supported via infrastructure (handoff between access points) Highly dynamic; nodes can join/leave freely
Reliability Generally more reliable due to stable infrastructure Less reliable due to frequent topology changes
Examples Wi-Fi networks with routers, cellular networks (4G/5G) MANETs (Mobile Ad-hoc Networks), disaster recovery networks

Explain the protocol architecture of IEEE 802.11 with diagram.

The IEEE 802.11 protocol architecture defines the rules for how wireless devices communicate within a Local Area Network (LAN). The architecture is structured into layers, primarily focusing on the Physical (PHY) and Medium Access Control (MAC) layers, which correspond to the lower levels of the OSI model.

image.png

IEEE 802.11 Protocol Architecture Diagram The architecture illustrates how a mobile terminal (wireless) communicates with a fixed terminal (wired) through an Access Point.

**Detailed Layer Functions

  1. Physical Layer (PHY)** This layer handles the actual transmission of signals through the air.

Functions: It performs Clear Channel Assessment (checking if the medium is free), modulation (converting data to radio signals), and coding for reliable transmission.

PHY Management: Handles channel selection and monitors wireless signal conditions.

Legacy Technologies: Early versions supported FHSS (Frequency Hopping), DSSS (Direct Sequence), and Infrared.

2. Medium Access Control (MAC) Layer This layer sits above the PHY layer and controls how multiple devices share the same wireless channel to avoid collisions.

Access Mechanisms: Includes DCF (Distributed Coordination Function) using CSMA/CA and PCF (Point Coordination Function) for contention-free access.

Fragmentation: Breaks large data packets into smaller pieces to improve transmission success rates.

Encryption: Provides security protocols (like WEP or WPA) to protect private data.

MAC Management: Handles critical network maintenance tasks such as:
Synchronization: Ensuring all devices follow the same timing.
Roaming: Managing a device's switch from one Access Point to another.
Power Management: Putting devices in "sleep mode" to save battery.

3. Logical Link Control (LLC) The LLC layer sits above the MAC layer and provides a common, standardized interface for higher-level protocols like IP and TCP. This allows the higher layers to remain the same regardless of whether the underlying hardware is wired (802.3) or wireless (802.11).

4. Station Management This component coordinates all management functions between the MAC and PHY layers, such as when a mobile phone needs to change its radio frequency while moving through a building.

Access Point (AP) Role in Architecture In an infrastructure network, the Access Point acts as a translator. It supports the 802.11 protocol stack on the wireless side and the 802.3 (Ethernet) stack on the wired side, converting Wi-Fi frames into Ethernet frames and vice-versa.

Feature IEEE 802.11a IEEE 802.11b
Operating Frequency 5 GHz 2.4 GHz
Maximum Data Rate 54 Mbps 11 Mbps
Multiplexing / Technology OFDM (Orthogonal Frequency Division Multiplexing) DSSS (Direct Sequence Spread Spectrum)
Sub-carriers Uses 52 sub-carriers Uses Barker code for spreading
Range Typically shorter due to higher frequency Roughly 35m indoors / 140m outdoors

Describe Wireless Security in reference to WEP, WPA, Wireless LAN Threats. Discuss in detail about Wi-Fi security protocol.

Wireless security protocols are designed to prevent unauthorized parties from connecting to your network and to encrypt private data transmitted over radio waves, which are otherwise easy to "eavesdrop" on.

**Wi-Fi Security Protocols

  1. WEP (Wired Equivalent Privacy)** WEP was specified by the original IEEE 802.11 standard to provide a level of security similar to a wired network. It operates at the Physical and Data Link layers.

Authentication: Uses a challenge-response mechanism where the Access Point (AP) sends a "Challenge Text Packet," and the station must encrypt it using the WEP key and return it for verification.
Encryption: Uses the RC4 stream cipher and an Initialization Vector (IV) to produce ciphertext.
Vulnerabilities: WEP is now considered insecure because:
◦ The IV is too small (24 bits) and transmitted in clear text.
◦ The IV is static or reuses values frequently, making the key stream vulnerable to cracking.
◦ It provides no strong cryptographic integrity protection.

2. WPA (Wi-Fi Protected Access) WPA was developed by the Wi-Fi Alliance as a major improvement over WEP, focusing on better user authentication and data integrity.

TKIP (Temporal Key Integrity Protocol): This is the core improvement in WPA. It still uses RC4 but with a 128-bit key and a 48-bit IV, significantly reducing the risks associated with IV reuse.
Michael: A Message Integrity Check (MIC) solution used by WPA to ensure that packets haven't been tampered with.
Modes:Personal Mode (Pre-Shared Key): Designed for home networks using a single password.
Enterprise Mode: Uses 802.1x authentication for higher security in business environments.

Wireless LAN Threats Security protocols must defend against a variety of specific threats common to wireless environments:

Rogue Access Points: Unauthorized APs set up within a network area that can bypass security controls or capture data.
Evil Twin APs: A fraudulent Wi-Fi access point that appears to be a legitimate one (e.g., matching the SSID of a coffee shop) to trick users into connecting.
Denial of Service (DoS): Flooding the network with fake traffic or signals to make it unavailable to legitimate users.
Passive Capturing: Eavesdropping on wireless traffic to collect data for later decryption or analysis.
Configuration Problems: Vulnerabilities created by incomplete or incorrect security settings (mis-configuration).

Securing Wireless Networks Beyond using protocols like WPA2/WPA3, the following steps are recommended to maintain a secure WLAN:

Use Inconspicuous SSIDs: Avoid using a network name that gives away your identity or location.
Enable Firewalls: Secure the boundary between your Wi-Fi network and the internet.
Keep Software Updated: Regularly patch and update Access Point firmware to fix known security holes.
Use Virtual Private Networks (VPNs): Provide an extra layer of encryption for data traveling over the Wi-Fi link.
Restrict Access: Use 802.1x authentication in enterprise settings to ensure only approved devices can connect.

Draw a neat sketch of Bluetooth protocol stack and explain the same. (P4 short note: Bluetooth.)

Bluetooth is a short-range wireless technology designed by Ericsson in 1994 to replace cables for connecting peripheral devices and supporting ad hoc networking. It operates in the 2.4 GHz ISM band and utilizes Frequency Hopping Spread Spectrum (FHSS) at a rate of 1600 hops/s to reduce interference.

Bluetooth Protocol Stack Diagram The protocol stack is structured into layers that manage everything from physical radio waves to high-level applications.

image.png

**Explanation of Protocol Layers

  1. Core Layers (The Foundation)** • Radio Layer: This is the physical layer that defines the air interface, frequency bands, and modulation (G-FSK). It handles the actual transmission and reception of data bits.

Baseband Layer: This layer manages physical channels and links. It handles error correction (FEC), hop selection, and security. It also defines two types of links:

◦ **SCO (Synchronous Connection-Oriented):** Used for voice traffic.  

◦ **ACL (Asynchronous Connection-Less):** Used for data traffic.  

Link Manager (LM): Responsible for set-up, authentication, and configuration of links between Bluetooth devices.

L2CAP (Logical Link Control and Adaptation Protocol): Provides data services to upper layers. It handles protocol multiplexing, segmentation, and reassembly of large packets.

2. Middleware Layers (The Enablers)RFCOMM: A serial line interface that emulates RS-232 serial ports, allowing legacy applications to run over Bluetooth.
SDP (Service Discovery Protocol): Allows a device to query other devices for supported services (e.g., "Can this device print?" or "Does it support audio?").
TCS BIN (Telephony Control Protocol Specification): Defines how telephone calls are established and controlled.
OBEX (Object Exchange): A session-layer protocol used to exchange objects, such as vCards or calendar entries.

3. Application Layer This top layer contains the actual user applications, such as audio streaming, network access (via BNEP/PPP), and device management tools.

Key Bluetooth Concepts (Short Note)Piconet: A collection of up to 8 devices connected in an ad hoc fashion. One unit acts as the Master, determining the hopping pattern, while the others act as Slaves.

Scatternet: Formed by linking multiple co-located piconets. A device can be a slave in one piconet and the master in another, allowing data to jump between them.

Baseband States: Devices move through various states including Standby, Inquiry (searching for devices), Page (connecting), and Connected.

Low Power Modes: To save battery, connected devices can enter Sniff, Hold, or Park modes.

Explain Pico-net and scatter-net with respect to Bluetooth.

Bluetooth piconets are small, ad-hoc personal area networks with one master and up to 7 active slave devices, using frequency hopping for coordination.

Scatternets are formed by linking multiple piconets together, allowing a device to act as a slave in one piconet and a master/slave in another to extend range.

**Piconet (Bluetooth)**