
MPLS: Multiprotocol Label Switching สำหรับ Enterprise WAN
MPLS (Multiprotocol Label Switching) เป็นเทคโนโลยี WAN ที่ใช้ labels แทน IP address ในการ forward packets ทำให้ routing เร็วขึ้นและรองรับ traffic engineering, QoS และ VPN ได้ดี MPLS เป็นมาตรฐาน WAN ขององค์กรมากว่า 20 ปี แม้ SD-WAN จะเข้ามาแข่งขัน MPLS ยังคงใช้อยู่ในองค์กรจำนวนมาก
MPLS ถูกออกแบบมาเพื่อ แก้ปัญหาของ traditional IP routing ที่ต้อง lookup routing table ทุก hop ทำให้ช้า MPLS ใช้ label switching ที่เร็วกว่า และรองรับ services หลายอย่าง เช่น L3VPN, L2VPN, Traffic Engineering บทความนี้จะอธิบาย MPLS architecture และการใช้งานสำหรับองค์กร
MPLS vs Traditional IP Routing
| คุณสมบัติ | Traditional IP Routing | MPLS |
|---|---|---|
| Forwarding Decision | IP lookup ทุก hop (longest prefix match) | Label lookup (exact match, เร็วกว่า) |
| Path Selection | Shortest path (IGP metric) | Label Switched Path (LSP) — สามารถ engineer ได้ |
| QoS | Best-effort (ต้อง config เพิ่ม) | Built-in QoS (EXP bits ใน label) |
| VPN | ต้องใช้ GRE/IPsec tunnels | Native VPN support (L3VPN, L2VPN) |
| Traffic Engineering | ไม่มี (ใช้ shortest path เสมอ) | MPLS-TE (เลือก path ตามต้องการ) |
MPLS Architecture
Key Components
| Component | บทบาท | ตำแหน่ง |
|---|---|---|
| LER (Label Edge Router) | Push/Pop labels ที่ขอบ MPLS network | Edge (ingress/egress) |
| LSR (Label Switch Router) | Swap labels และ forward packets | Core |
| LSP (Label Switched Path) | เส้นทางที่ packets ใช้ผ่าน MPLS network | End-to-end path |
| FEC (Forwarding Equivalence Class) | Group ของ packets ที่ forward เหมือนกัน | Classification |
| LDP (Label Distribution Protocol) | Protocol สำหรับแลกเปลี่ยน labels ระหว่าง routers | Control plane |
MPLS Label Operations
| Operation | ที่ไหน | ทำอะไร |
|---|---|---|
| Push | Ingress LER | เพิ่ม MPLS label ให้ IP packet |
| Swap | LSR (core) | เปลี่ยน label เป็น label ใหม่ แล้ว forward |
| Pop | Egress LER | ถอด MPLS label ออก ส่ง IP packet ต่อ |
| PHP (Penultimate Hop Popping) | Router ก่อน Egress | Pop label ก่อนถึง egress เพื่อลด processing |
MPLS L3VPN
VPN สำหรับองค์กร
MPLS L3VPN (RFC 4364) เป็น service ที่ ISP ให้บริการองค์กร: แต่ละสาขาเชื่อมต่อ PE router ของ ISP PE router ใช้ VRF (Virtual Routing and Forwarding) แยก routing table ของแต่ละลูกค้า BGP + MPLS labels ส่ง traffic ข้าม ISP backbone สาขาเห็น network ของกันและกันเหมือนอยู่ใน LAN เดียวกัน
L3VPN Components
| Component | บทบาท |
|---|---|
| CE (Customer Edge) | Router ของลูกค้า เชื่อมต่อ PE |
| PE (Provider Edge) | Router ของ ISP ที่ terminate VPN |
| P (Provider) | Core router ของ ISP (ไม่รู้จัก VPN) |
| VRF | Virtual routing table แยกลูกค้าแต่ละราย |
| RD (Route Distinguisher) | ทำให้ overlapping IP ของลูกค้าต่างกันใน BGP |
| RT (Route Target) | ควบคุมว่า route ไหนส่งไป VRF ไหน |
MPLS vs SD-WAN
| คุณสมบัติ | MPLS | SD-WAN |
|---|---|---|
| ราคา | แพง ($500-5,000/site/เดือน) | ถูกกว่า (ใช้ internet) |
| SLA | ISP guarantee (latency, jitter, uptime) | Best-effort (internet) |
| QoS | End-to-end QoS guarantee | Application-based QoS (local) |
| Security | Private network (inherently secure) | Encrypted (IPsec over internet) |
| Deployment | ช้า (weeks-months, ISP provision) | เร็ว (days, ZTP) |
| Cloud Access | Backhaul ผ่าน HQ (ช้า) | Direct internet breakout (เร็ว) |
| Flexibility | ต่ำ (เปลี่ยน bandwidth ช้า) | สูง (เพิ่ม/ลด ง่าย) |
MPLS + SD-WAN Hybrid
Best of Both Worlds
แนวทางที่นิยมที่สุดในปัจจุบัน: ใช้ MPLS สำหรับ critical applications (voice, video, ERP) ที่ต้องการ guaranteed SLA ใช้ SD-WAN + internet สำหรับ non-critical traffic และ cloud access SD-WAN overlay ครอบทั้ง MPLS + internet links ทำ intelligent path selection อัตโนมัติ ค่อยๆ ลด MPLS circuits เมื่อ SD-WAN พิสูจน์ตัว
เมื่อไหร่ยังควรใช้ MPLS
| สถานการณ์ | แนะนำ |
|---|---|
| Voice/Video ที่ต้องการ low latency guarantee | MPLS (SLA guarantee) |
| Regulatory requirement (banking, healthcare) | MPLS (private network) |
| Remote areas ที่ internet ไม่ดี | MPLS (ISP managed) |
| Cloud-first organization | SD-WAN (direct cloud access) |
| Cost-sensitive + many branches | SD-WAN (ถูกกว่ามาก) |
| Hybrid approach | MPLS + SD-WAN |
ทิ้งท้าย: MPLS ยังไม่ตาย แต่กำลังเปลี่ยนบทบาท
MPLS ยังคงเป็นตัวเลือกที่ดีสำหรับ applications ที่ต้องการ SLA guarantee แต่ SD-WAN เข้ามาแทนที่สำหรับ general purpose WAN Hybrid MPLS + SD-WAN เป็นแนวทางที่นิยมที่สุดในปัจจุบัน วางแผน migration ค่อยๆ ลด MPLS เพิ่ม SD-WAN
อ่านเพิ่มเติมเกี่ยวกับ SD-WAN และ BGP Routing ที่ siamlancard.com หรือจาก icafeforex.com และ siam2r.com