Sequence Key (ในบริบท Network Security) คืออะไร?
Sequence Key ไม่ใช่คำมาตรฐานทั่วไป อาจหมายถึง:
- Sequence Number / Packet Number ในโปรโตคอลที่มี Replay Protection (TLS, IPsec, SSH, WPA2/3, QUIC) - ใช้กันไม่ให้ส่งซ้ำแพ็กเก็ตได้ (Anti-Replay)
- Key Derivation Sequence - ลำดับการสร้างกุญแจ (Key Hierarchy): Master Key → Key Encryption Key (KEK) → Data Encryption Key (DEK) → Session Keys
- WPA 4-Way Handshake Sequence - การแลกเปลี่ยน 4 ข้อความเพื่อสร้าง PTK (Pairwise Transient Key) จาก PMK
- Cryptographic Nonce/IV Sequence - ตัวเลขที่ใช้ครั้งเดียว (Nonce) หรือ Initialization Vector ที่ต้องไม่ซ้ำ
Network Security Key (Wi-Fi Password) คืออะไร?
Network Security Key = Wi-Fi Password = WPA2 Passphrase = WPA Key = Wireless Password เป็นรหัสผ่านที่ใช้ในการยืนยันตัวตนและสร้างคีย์เข้ารหัส (Key Derivation) สำหรับเซสชัน Wi-Fi
วิธีหา Network Security Key
- Router Sticker: Password/Passphrase/WPA2 Key
- Router Web UI: Wireless > Security > Passphrase
- Windows (Connected): Network & Sharing Center > Wi-Fi > Wireless Properties > Security > Show characters
- Mac: Keychain Access > System > SSID > Show Password
- Android 10+: Wi-Fi Settings > Saved Network > Share > QR Code + Password
- iOS 16+: Settings > Wi-Fi > (i) > Password > FaceID
Network Security Key Mismatch (รหัสไม่ตรง) - สาเหตุและแก้ไข
สาเหตุทั่วไป
- พิมพ์ผิด: ตัวพิมพ์ใหญ่/เล็ก, Space นำหน้า/ท้าย, Special Characters, ภาษาไทย/อังกฤษ
- Security Mode ไม่ตรง: Router ตั้ง WPA3 แต่อุปกรณ์เก่ารองรับแค่ WPA2 (หรือกลับกัน)
- Band Mismatch: 2.4GHz vs 5GHz แยก SSID/Password ต่างกัน
- Router/AP Firmware Bug: Key Derivation Error
- Driver/Firmware เก่าบน Client: ไม่รองรับ WPA3/SAE/PMF
- PMF (Protected Management Frames) Required/Optional Conflict
วิธีแก้ไข (Troubleshooting Steps)
- ลบ Profile เก่า (Forget Network) บน Client ทั้งหมด → เชื่อมต่อใหม่
- ตรวจสอบ Security Mode บน Router: ตั้งเป็น WPA2/WPA3 Mixed (Transition) เพื่อรองรับทั้งเก่าและใหม่
- อัปเดต Driver Wi-Fi / Firmware Router ให้ล่าสุด
- ตั้ง PMF = Optional/Capable (ไม่ใช่ Required) สำหรับ WPA2/WPA3 Mixed
- รีบูท Router และ Client
- ลองเชื่อมต่อด้วย WPS (Push Button) เพื่อทดสอบว่า Key ถูกต้องหรือไม่ (แล้วปิด WPS ทันที)
- Reset Router คืนค่าโรงงาน (สุดท้าย) → ตั้งค่าใหม่ทั้งหมด
WPA 4-Way Handshake & Key Hierarchy (Technical Deep Dive)
PMK (Pairwise Master Key) = PBKDF2(Passphrase, SSID, 4096 rounds) [256-bit]
│
├── ANonce (Authenticator Nonce - Router)
├── SNonce (Supplicant Nonce - Client)
├── MAC Address (Router + Client)
▼
PTK (Pairwise Transient Key) = PRF-512(PMK, "Pairwise key expansion", ...)
│
├── KCK (Key Confirmation Key) - MIC for Messages 2,3,4
├── KEK (Key Encryption Key) - Encrypt GTK in Message 3
├── TK (Temporal Key) - Encrypt Data Frames (AES-CCMP/GCMP)
└── ... (MIC Keys)
GTK (Group Temporal Key) - Broadcast/Multicast Traffic
│
└── Encrypted with KEK in Message 3
Sequence Counter / Packet Number (PN) - 48-bit
│
├── Per-TK, Per-Direction (TX/RX)
├── Increment ทุกแพ็กเก็ต
└── Anti-Replay: Receiver ตรวจสอบ PN > Last_Received_PN (Replay Window)
สรุป
- Sequence Key อาจหมายถึง Sequence Number/Packet Number (Anti-Replay) หรือ Key Derivation Sequence
- Network Security Key = Wi-Fi Password (Passphrase)
- Key Mismatch แก้โดย: Forget Network, Check Security Mode (WPA2/WPA3 Mixed), Update Driver/FW, Check PMF, Reboot
- เข้าใจ WPA 4-Way Handshake ช่วย Debug ปัญหา Authentication/Encryption ได้ลึกขึ้น