Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบเครือข่าย >> ความปลอดภัยเครือข่าย

ESP ในความปลอดภัยเครือข่าย (Network Security) คืออะไร?

บทบาทของ ESP ใน IPsec

IPsec ใช้ 2 โปรโตคอลหลัก (IETF):

  • AH (Authentication Header) - รับรองความถูกต้อง
  • ESP (Encapsulating Security Payload) - ให้ Data Encryption (ความลับ) + Authentication (Integrity, Origin Authentication, Replay Protection)

ESP Mode คืออะไร? (สับสนกับ Electronic Stability Program)

ใน Network Security: ESP เป็นโปรโตคอลใน IPsec
ในรถยนต์: ESP = Electronic Stability Program (ระบบควบคุมความเสถียรอิเล็กทรอนิกส์) - คนละเรื่องกัน

ESP Header ใน IPsec

ESP Header ให้ Origin Authenticity, Integrity, Confidentiality โดย Authenticate Source และ Encrypt Data

ความแตกต่าง AH vs ESP ใน IPsec

  • AH: Authentication เท่านั้น (ไม่เข้ารหัส)
  • ESP: Encryption + Authentication (Confidentiality + Integrity + Origin Auth) ใช้ได้ทั้งคู่ หรือแค่ตัวเดียว

ESP ใช้ Encryption อะไร?

  • AES-CCM และ AES-GCM (Combined Mode: Encrypt + Auth พร้อมกัน)
  • ถ้าเลือก Combined Mode ไม่ต้องเลือก Authentication Algorithm แยก
  • GMAC (Galois Message Authentication Code) ใช้สำหรับ Auth เท่านั้น (ไม่เข้ารหัส)

ESP ใช้ทำอะไร? (สับสนกับ Electrostatic Precipitator)

ใน Network Security: ESP = Encapsulating Security Payload (IPsec)
ในอุตสาหกรรม: ESP = Electrostatic Precipitator (เครื่องกำจัดฝุ่นแบบสถิตไฟฟ้า) - คนละเรื่องกัน

บทบาท ESP ในการส่งข้อมูล IPsec

ESP เข้ารหัสและรับรอง แพ็กเก็ต Multi-layer Security: ป้องกันโจมตี, รับรองแหล่งที่มา, รักษาความสมบูรณ์ของเนื้อหา

ข้อดีของ ESP ก่อน AH ใน IPsec

  • AH: Hash ทั้ง Payload และ Header (Integrity Only, No Encryption)
  • ESP: Encryption Algorithm + Authentication Algorithm (Confidentiality + Integrity)
  • วาง ESP ก่อน AH ช่วยปกป้อง Header ด้วย Encryption

วัตถุประสงค์ของ AH และ ESP

  • AH: Authenticate ทั้ง IP Packet รวม Outer Header
  • ESP: Authenticate แค่ IP Datagram (ไม่รวม Outer Header)
  • ใช้ได้ทั้งคู่ หรือเดี่ยวก็ได้

ESP Trailer คืออะไร?

ต่อท้าย Payload เพื่อ Encryption (Padding, Next Header, Pad Length) ESP Header ไม่ถูกเข้ารหัส แต่ Payload และ Trailer ถูกเข้ารหัส

Mode ใดใช้สำหรับ IP Security?

IPsec (Internet Protocol Security) ปกป้อง IP Traffic ระหว่างอุปกรณ์ ให้ Confidentiality + Integrity ด้วย Packet Encryption

VPN Transport Mode คืออะไร?

Encrypt Data แต่ เก็บ Original IP Header ไว้ (ไม่ซ่อน IP) ESP รองรับ Transport และ Tunnel Mode

ESP Header คืออะไร?

Encapsulating Security Payload Header ให้ Security Services เหมือนกัน IPv4 และ IPv6 อาจรวมกับ AH (Ken-AH) หรือ Nested Security Architecture

ESP และ AH ใน IPSec

AH = Authentication Only, ESP = Confidentiality และ/หรือ Authentication ใช้ร่วมกันได้

Two IPSec Headers

AH และ ESP (IETF Standards)

AH และ ESP ในสถาปัตยกรรม IPSec

IPSec Architecture ใช้ 2 โปรโตคอล: ESP (Encapsulation Security Payload) และ AH (Authentication Header)

AH และ ESP ใช้ร่วมกันได้ไหม?

ได้ ใช้ AH-ESP Transform AH ใช้ Auth, ESP ใช้ Encrypt

ทำไม AH เร็วกว่า ESP?

AH ไม่เข้ารหัส (No Encryption) คำนวณ Hash จาก Payload + Header ตรวจสอบ Integrity แต่ AH ไม่ทำงานผ่าน NAT ได้ (ปัญหา NAT Traversal)