STA (Station) ใน IEEE 802.11 (Wi-Fi) คืออะไร?
STA (Station) ย่อมาจาก Station คือ อุปกรณ์ปลายทาง (End Device) ที่เชื่อมต่อกับเครือข่ายไร้สาย (Wi-Fi) เพื่อใช้บริการเครือข่าย
ในมาตรฐาน IEEE 802.11 STA คืออุปกรณ์ที่มี Wireless Network Interface Controller (WNIC) และสามารถสื่อสารตามโปรโตคอล 802.11 ได้
ตัวอย่าง STA
- 📱 Smartphone (iPhone, Android)
- 💻 Laptop, Tablet
- 🖥️ Desktop PC with Wi-Fi Card
- 📷 IP Camera, Smart TV, Printer, IoT Devices
- 🎮 Game Console (PS5, Xbox, Switch)
- 🤖 Robot Vacuum, Smart Fridge, Sensor
STA vs AP (Access Point) - ความแตกต่างสำคัญ
| ลักษณะ | STA (Station / Client) | AP (Access Point) |
|---|---|---|
| บทบาท | Client - ใช้บริการเครือข่าย | Infrastructure - ให้บริการเครือข่าย |
| การเชื่อมต่อ | Association/Authenticate กับ AP | รอ Client Associate, จัดการ BSS |
| Traffic Flow | ส่ง/รับผ่าน AP เท่านั้น (Infrastructure Mode) | Forward traffic ระหว่าง STA และ Wired Network |
| Management | Managed by AP (Power Save, Roaming, QoS) | Manage STAs (Beacon, Probe, Auth, Assoc) |
| MAC Address Role | Source/Destination ใน Data Frame | BSSID (MAC ของ Radio) - Identity ของ BSS |
| Power Management | Sleep/Doze เพื่อประหยัดแบตเตอรี่ | Always On ( mains powered) |
โหมดการทำงานของ Wi-Fi Device (Dual Role)
อุปกรณ์หลายตัวทำได้ทั้ง 2 บทบาท (แต่ไม่พร้อมกันบน Radio เดียวกันมักจะเป็น):
- Station Mode (STA/Client Mode): โหมดปกติ - เชื่อมต่อกับ AP (Router) เพื่อใช้อินเทอร์เน็ต
- AP Mode (Master Mode): ทำหน้าที่เป็น Hotspot/Router ให้อุปกรณ์อื่นเชื่อมต่อ (เช่น Phone Hotspot, Router, Repeater/Extender ด้าน Client)
- Mesh/Repeater: เป็น STA ต่อ Root AP พร้อมกันเป็น AP ให้ Client อื่น (Dual Radio หรือ Time-slicing)
ขั้นตอนการเชื่อมต่อ STA กับ AP (Connection Process)
- Scanning: STA ส่ง Probe Request (Active) หรือฟัง Beacon Frame (Passive) หา SSID
- Authentication: Open System (Most common) หรือ Shared Key (Legacy/WEP)
- Association: STA ส่ง Association Request → AP ตอบ Association Response (ได้ AID - Association ID)
- 4-Way Handshake (WPA2/WPA3): Key Exchange, Confirmation, Install PTK/GTK
- Data Transfer: สื่อสารได้ปกติ
STA Types (การจัดประเภท)
- Fixed STA: Desktop, AP, Server (ไม่เคลื่อนที่)
- Portable STA: Laptop, Tablet (เคลื่อนที่ได้ แต่ไม่บ่อย)
- Mobile STA: Smartphone, Robot, Vehicle (เคลื่อนที่ต่อเนื่อง - ต้อง Roaming)
คำศัพท์เกี่ยวข้อง
- BSS (Basic Service Set): กลุ่ม STA ที่เชื่อมต่อกับ AP เดียวกัน
- BSSID: MAC Address ของ AP Radio (Identity ของ BSS)
- ESS (Extended Service Set): หลาย BSS เชื่อมต่อด้วย Distribution System (DS) - ใช้ SSID เดียวกัน (Roaming)
- DS (Distribution System): Backbone เชื่อม AP หลายตัว (Wired/Ethernet)
สรุป
STA = Client Device (โทรศัพท์, โน้ตบุ๊ก, IoT) ที่เชื่อมต่อกับ AP = Access Point (Router, Hotspot) เพื่อใช้เครือข่าย Wi-Fi การเข้าใจบทบาท STA/AP สำคัญสำหรับ Troubleshooting, Design, และ Security (เช่น Rogue AP, Evil Twin, Client Isolation)