
บทนำ: ทำไม QoS ถึงเป็นหัวใจของระบบเครือข่ายองค์กรยุคใหม่?
ในยุคที่องค์กรต้องพึ่งพาระบบเครือข่ายสำหรับทุกกิจกรรมทางธุรกิจ ไม่ว่าจะเป็นการประชุมทางวิดีโอ (Video Conferencing) ผ่าน Zoom, Microsoft Teams หรือ Google Meet, ระบบ VoIP สำหรับโทรศัพท์ภายในองค์กร, แอปพลิเคชัน Cloud-based ERP/CRM, ระบบ IoT sensor ในโรงงาน หรือแม้แต่กล้อง CCTV แบบ IP Camera ที่ส่ง video stream ตลอดเวลา ปริมาณ traffic ในเครือข่ายเพิ่มขึ้นอย่างมหาศาล และไม่ใช่ทุก traffic จะมีความสำคัญเท่ากัน
ลองนึกภาพว่า CEO กำลัง video call กับลูกค้ารายใหญ่ แต่ภาพกระตุก เสียงขาดหาย เพราะมีพนักงานหลายคนกำลัง download ไฟล์ขนาดใหญ่หรือ stream YouTube พร้อมกัน สถานการณ์แบบนี้แก้ไขได้ด้วย Quality of Service (QoS) ซึ่งเป็นเทคโนโลยีที่ช่วยจัดลำดับความสำคัญของ traffic ในเครือข่าย ทำให้ traffic ที่สำคัญได้รับ bandwidth และ priority ที่เหมาะสม
บทความนี้จะอธิบายทุกแง่มุมของ QoS ตั้งแต่แนวคิดพื้นฐาน, DSCP/CoS markings, QoS models (Best Effort, IntServ, DiffServ), กลไกต่างๆ เช่น classification, marking, queuing, policing, shaping, การ configure QoS บน Cisco ด้วย MQC framework, QoS สำหรับ VoIP และ video conferencing, WAN QoS, SD-WAN QoS policies, Wireless QoS (WMM), network performance metrics, เครื่องมือทดสอบประสิทธิภาพ และ best practices ที่องค์กรในไทยควรนำไปใช้
ส่วนที่ 1: QoS คืออะไร? ทำความเข้าใจ Quality of Service
1.1 นิยามของ QoS
Quality of Service (QoS) คือชุดของเทคนิคและกลไกที่ใช้ในการจัดการ traffic ในเครือข่าย เพื่อให้แน่ใจว่าแอปพลิเคชันที่สำคัญจะได้รับ bandwidth, latency, jitter และ packet loss ที่เหมาะสมกับความต้องการ โดยไม่ได้หมายความว่า QoS จะเพิ่ม bandwidth ให้ แต่ QoS ช่วย “จัดสรร” bandwidth ที่มีอยู่ให้มีประสิทธิภาพสูงสุด
เปรียบง่ายๆ QoS เหมือนกับระบบจัดการจราจรบนถนน ถ้าถนนมีเลน Fast Lane สำหรับรถพยาบาล (VoIP/Video) และเลนปกติสำหรับรถทั่วไป (email, web browsing) รถพยาบาลจะสามารถผ่านไปได้เร็วกว่าแม้ถนนจะติดขัด นี่คือหลักการเดียวกันกับ QoS
1.2 ทำไมต้องใช้ QoS?
ปัญหาที่เกิดเมื่อไม่มี QoS:
สถานการณ์: Bandwidth 100 Mbps, 50 users
┌─────────────────────────────────────────────────────┐
│ ไม่มี QoS (Best Effort — ใครมาก่อนได้ก่อน): │
│ │
│ User A: Download 50 MB file ────────── ใช้ 40 Mbps │
│ User B: YouTube 4K ─────────────────── ใช้ 25 Mbps │
│ User C: Backup to cloud ────────────── ใช้ 20 Mbps │
│ CEO: Video Call ─────────────────────── เหลือ 15 Mbps│
│ → ภาพกระตุก, เสียงขาดหาย ❌ │
│ VoIP System: 10 calls ──────────────── เหลือ < 1 Mbps│
│ → เสียงหาย, call drop ❌ │
│ │
│ มี QoS (จัดลำดับความสำคัญ): │
│ │
│ Priority 1 — VoIP: Reserved 10 Mbps ── คุณภาพดี ✓ │
│ Priority 2 — Video Call: Reserved 20 Mbps ── ชัด ✓ │
│ Priority 3 — Business Apps: 30 Mbps ── ทำงานได้ ✓ │
│ Priority 4 — Web/Email: 25 Mbps ────── ปกติ ✓ │
│ Priority 5 — YouTube/Downloads: 15 Mbps ── จำกัด ✓ │
└─────────────────────────────────────────────────────┘
1.3 แอปพลิเคชันที่ต้องการ QoS มากที่สุด
แอปพลิเคชันแต่ละประเภทมีความต้องการด้าน network ที่แตกต่างกัน ซึ่งสามารถแบ่งออกได้ตามลักษณะ traffic ดังนี้:
ความต้องการ QoS ของแอปพลิเคชันต่างๆ:
┌──────────────────┬──────────┬──────────┬───────────┬───────────┐
│ Application │ Latency │ Jitter │ Pkt Loss │ Bandwidth │
├──────────────────┼──────────┼──────────┼───────────┼───────────┤
│ VoIP │ < 150 ms │ < 30 ms │ < 1% │ 100 Kbps │
│ Video Conference │ < 200 ms │ < 50 ms │ < 1% │ 2-10 Mbps │
│ Real-time Gaming │ < 50 ms │ < 20 ms │ < 0.5% │ 1-5 Mbps │
│ ERP/CRM (Cloud) │ < 300 ms │ N/A │ < 0.1% │ 1-5 Mbps │
│ Web Browsing │ < 500 ms │ N/A │ < 3% │ Variable │
│ Email │ Flexible │ N/A │ < 1% │ Low │
│ File Transfer │ Flexible │ N/A │ 0% │ High │
│ Backup/Sync │ Flexible │ N/A │ 0% │ High │
│ YouTube/Netflix │ < 1 sec │ Moderate │ < 2% │ 5-25 Mbps │
│ IoT Sensors │ Variable │ N/A │ < 1% │ Very Low │
│ CCTV/IP Camera │ < 500 ms │ < 100 ms │ < 1% │ 2-15 Mbps │
└──────────────────┴──────────┴──────────┴───────────┴───────────┘
สังเกตว่า:
- VoIP/Video: ต้องการ low latency + low jitter (real-time)
- Business Apps: ต้องการ low packet loss (ข้อมูลต้องถูกต้อง)
- Bulk Transfer: ต้องการ bandwidth สูง แต่ไม่สนใจ latency
ส่วนที่ 2: QoS Components — องค์ประกอบหลักของ QoS
2.1 Classification (การจำแนกประเภท Traffic)
Classification คือขั้นตอนแรกของ QoS ซึ่งเป็นการระบุและแยกประเภท traffic ที่ผ่านเข้ามาในเครือข่าย เพื่อให้สามารถกำหนด policy ที่เหมาะสมกับ traffic แต่ละชนิด การ classify สามารถทำได้หลายวิธี:
วิธีการ Classification:
1. Layer 2 Classification:
├── CoS (Class of Service): IEEE 802.1p
│ └── ใช้ 3 bits ใน 802.1Q VLAN tag (0-7)
│ ├── CoS 5: Voice (สำคัญสุด)
│ ├── CoS 4: Video
│ ├── CoS 3: Call Signaling
│ ├── CoS 2: High Priority Data
│ ├── CoS 1: Medium Priority Data
│ └── CoS 0: Best Effort (default)
└── MAC Address: จำแนกตาม source/dest MAC
2. Layer 3 Classification:
├── DSCP (Differentiated Services Code Point):
│ └── ใช้ 6 bits ใน IP header (0-63)
├── IP Precedence: ใช้ 3 bits แรกของ ToS byte (0-7)
├── Source/Dest IP Address
└── Protocol: TCP, UDP, ICMP
3. Layer 4 Classification:
├── Source/Dest Port Number
│ ├── Port 80/443: HTTP/HTTPS (Web)
│ ├── Port 5060/5061: SIP (VoIP signaling)
│ └── Port 3389: RDP (Remote Desktop)
└── TCP Flags: SYN, ACK, FIN
4. Layer 7 Classification (DPI — Deep Packet Inspection):
├── Application signatures
├── URL patterns
└── Content type
2.2 Marking (การทำเครื่องหมาย)
Marking คือการ "ประทับตรา" ลงบน packet เพื่อบอกให้อุปกรณ์เครือข่ายตัวถัดไปรู้ว่า packet นี้ควรได้รับการปฏิบัติอย่างไร Marking ที่นิยมใช้มากที่สุดคือ DSCP (Differentiated Services Code Point) ซึ่งใช้ 6 bits ในส่วน ToS (Type of Service) byte ของ IPv4 header หรือ Traffic Class byte ของ IPv6 header
DSCP Values ที่ใช้บ่อย:
┌───────────┬────────────┬───────────┬───────────────────────────┐
│ DSCP Name │ DSCP Value │ Per-Hop │ การใช้งาน │
│ │ (Decimal) │ Behavior │ │
├───────────┼────────────┼───────────┼───────────────────────────┤
│ EF │ 46 │ Expedited │ VoIP media (voice RTP) │
│ AF41 │ 34 │ Assured │ Video conferencing │
│ AF42 │ 36 │ Assured │ Video (medium drop) │
│ AF43 │ 38 │ Assured │ Video (high drop) │
│ CS5 │ 40 │ Class 5 │ Voice signaling (SIP) │
│ AF31 │ 26 │ Assured │ Mission-critical data │
│ AF21 │ 18 │ Assured │ Transactional data │
│ AF11 │ 10 │ Assured │ Bulk data (backup) │
│ CS1 │ 8 │ Scavenger │ Scavenger/Background │
│ DF/BE │ 0 │ Default │ Best effort (default) │
└───────────┴────────────┴───────────┴───────────────────────────┘
DSCP Byte Structure (IPv4 ToS Byte):
┌───┬───┬───┬───┬───┬───┬───┬───┐
│ D │ S │ C │ P │ 5 │ 4 │ 3 │ 2 │ ← 8 bits total
└───┴───┴───┴───┴───┴───┴───┴───┘
└──── DSCP (6 bits) ────┘ └ECN─┘
DSCP EF = 101110 (binary) = 46 (decimal)
→ ใช้สำหรับ VoIP traffic
→ ได้รับ priority สูงสุด, low latency, low jitter
2.3 Queuing (การจัดคิว)
Queuing เป็นหัวใจของ QoS ที่กำหนดลำดับการส่ง packet ออกจาก interface เมื่อเกิด congestion (คิวเต็ม) ระบบ queuing จะเป็นตัวตัดสินว่า packet ไหนจะถูกส่งก่อน และ packet ไหนจะต้องรอ หรือถูก drop
2.4 Policing (การควบคุมอัตรา)
Policing คือการกำหนด rate limit สำหรับ traffic บางประเภท โดยจะ drop packet ที่เกินอัตราที่กำหนดทันที (หรือ re-mark ลง priority ต่ำกว่า) ใช้สำหรับ inbound traffic เป็นหลัก เพราะ packet ที่เข้ามาแล้วถ้าเกินอัตราก็ drop ทิ้งเลยเพื่อป้องกัน congestion
2.5 Shaping (การปรับรูปแบบ)
Shaping คล้ายกับ policing แต่แทนที่จะ drop packet ที่เกินอัตรา shaping จะ buffer packet ไว้ใน queue แล้วค่อยๆ ส่งออกในอัตราที่กำหนด ทำให้ traffic ไหลออกอย่างสม่ำเสมอ (smooth) ใช้สำหรับ outbound traffic เป็นหลัก
Policing vs Shaping:
Policing (ตำรวจจราจร):
Traffic ──▶ [Rate Check] ──▶ ผ่าน (ไม่เกิน rate)
│
└──▶ DROP ❌ (เกิน rate — ตัดทิ้งเลย)
- ใช้กับ Inbound traffic
- Drop excess traffic ทันที
- ไม่ต้องใช้ buffer memory
- อาจทำให้เกิด TCP retransmission
Shaping (ด่านเก็บเงิน):
Traffic ──▶ [Rate Check] ──▶ ส่งทันที (ไม่เกิน rate)
│
└──▶ [Buffer Queue] ──▶ ส่งทีหลัง (รอคิว)
- ใช้กับ Outbound traffic
- Buffer excess traffic ใน queue
- ต้องใช้ buffer memory
- Traffic ไหลออก smooth กว่า
- เหมาะกับ Frame Relay, WAN links
ส่วนที่ 3: QoS Models — รูปแบบการทำ QoS
3.1 Best Effort Model
Best Effort คือ model เริ่มต้นของ IP network ซึ่งไม่มี QoS ใดๆ ทุก packet จะถูกปฏิบัติเท่าเทียมกัน (first come, first served) ไม่มีการ guarantee ด้าน latency, jitter หรือ packet loss เหมาะสำหรับเครือข่ายขนาดเล็กที่ traffic น้อยและไม่มี real-time application
3.2 IntServ (Integrated Services) Model
IntServ ใช้ RSVP (Resource Reservation Protocol) เพื่อจอง bandwidth ล่วงหน้าสำหรับ traffic flow แต่ละ flow ตลอดเส้นทางจาก source ถึง destination ทุก router ในเส้นทางต้อง support RSVP และต้องรักษาสถานะ (state) ของทุก flow ทำให้ IntServ มีข้อจำกัดด้าน scalability เพราะเมื่อจำนวน flow เพิ่มขึ้น router ต้องเก็บ state มากขึ้น
IntServ Architecture:
Application ──▶ RSVP Request ──▶ Router 1 ──▶ Router 2 ──▶ Destination
│ │ │
▼ ▼ ▼
Admission Admission Admission
Control Control Control
│ │ │
▼ ▼ ▼
Resources Resources Resources
Reserved Reserved Reserved
ข้อดี: Guarantee per-flow QoS
ข้อเสีย: ไม่ scale — ทุก router ต้องเก็บ state ของทุก flow
ผลลัพธ์: ไม่เหมาะกับเครือข่ายขนาดใหญ่
3.3 DiffServ (Differentiated Services) Model
DiffServ เป็น model ที่ใช้กันมากที่สุดในปัจจุบัน แทนที่จะจอง resource per-flow แบบ IntServ, DiffServ จะจัดกลุ่ม traffic เป็น class ต่างๆ ตาม DSCP marking แล้วให้แต่ละ router ปฏิบัติต่อ packet ตาม class (Per-Hop Behavior — PHB) ทำให้ scale ได้ดีกว่ามาก เพราะ router ไม่ต้องเก็บ state ของแต่ละ flow
DiffServ Architecture:
┌──────────────┐
Application ───▶ │ Edge Router │ ──▶ Core Router 1 ──▶ Core Router 2
│ (Classify + │ │ │
│ Mark DSCP) │ Per-Hop Behavior Per-Hop Behavior
└──────────────┘ (ดูแค่ DSCP) (ดูแค่ DSCP)
Per-Hop Behaviors (PHB):
├── EF (Expedited Forwarding): low delay, low jitter, low loss
│ └── เหมาะสำหรับ VoIP, video
├── AF (Assured Forwarding): 4 classes x 3 drop precedences
│ ├── AF4x: High priority data
│ ├── AF3x: Medium priority data
│ ├── AF2x: Low priority data
│ └── AF1x: Background data
└── BE (Best Effort/Default): ไม่มี guarantee
ข้อดี: Scale ได้ดี, ไม่ต้อง per-flow state
ข้อเสีย: ไม่ guarantee absolute — เป็น relative priority
ผลลัพธ์: ใช้กันทั่วไปในองค์กรและ ISP
ส่วนที่ 4: Queuing Mechanisms — กลไกการจัดคิว
4.1 FIFO (First In, First Out)
FIFO เป็นกลไกที่ง่ายที่สุด packet ที่เข้ามาก่อนจะถูกส่งออกก่อน ไม่มีการจัดลำดับความสำคัญ เป็น default behavior ของ interface ความเร็วสูง (> 2 Mbps บน Cisco) ข้อเสียคือ traffic ที่ sensitive ต่อ delay (เช่น VoIP) อาจต้องรอหลัง bulk transfer traffic
4.2 PQ (Priority Queuing)
Priority Queuing มี 4 queues: High, Medium, Normal, Low โดย queue ที่มี priority สูงกว่าจะถูกส่งก่อนเสมอ ปัญหาคืออาจเกิด "starvation" — queue ที่มี priority ต่ำอาจไม่ได้ส่ง packet เลยถ้า queue priority สูงมี traffic ตลอดเวลา
4.3 WFQ (Weighted Fair Queuing)
WFQ จัดสรร bandwidth ให้แต่ละ flow ตามน้ำหนัก (weight) ที่กำหนดจาก IP Precedence flow ที่มี precedence สูงกว่าจะได้ weight มากกว่า ทำให้ได้ bandwidth มากขึ้น WFQ ป้องกัน starvation ได้ดีกว่า PQ แต่ไม่สามารถ guarantee absolute priority สำหรับ real-time traffic ได้
4.4 CBWFQ (Class-Based Weighted Fair Queuing)
CBWFQ เป็นการปรับปรุง WFQ โดยให้ผู้ดูแลระบบสามารถกำหนด class ของ traffic ได้เอง (ใช้ class-map) และกำหนด bandwidth guarantee หรือ bandwidth percentage สำหรับแต่ละ class ทำให้มีความยืดหยุ่นสูงกว่า WFQ
4.5 LLQ (Low Latency Queuing)
LLQ เป็นการรวม CBWFQ กับ strict priority queue เข้าด้วยกัน โดยมี priority queue สำหรับ real-time traffic (VoIP, video) ที่จะถูกส่งก่อน traffic อื่นเสมอ แต่มีการ policing เพื่อป้องกัน starvation ของ queue อื่น LLQ เป็น queuing mechanism ที่แนะนำสำหรับองค์กรที่มี VoIP และ video conferencing
เปรียบเทียบ Queuing Mechanisms:
┌──────────┬────────────────┬──────────────┬──────────────┬────────────┐
│ Mechanism│ จุดเด่น │ จุดด้อย │ Starvation? │ เหมาะกับ │
├──────────┼────────────────┼──────────────┼──────────────┼────────────┤
│ FIFO │ ง่าย, ไม่ต้อง │ ไม่มี QoS │ N/A │ High-speed │
│ │ configure │ │ │ links │
│ PQ │ Real-time ดี │ Starvation │ Yes ❌ │ Legacy │
│ WFQ │ Fair sharing │ ไม่ guarantee│ No ✓ │ WAN links │
│ │ │ real-time │ │ │
│ CBWFQ │ Custom classes │ ไม่มี strict│ No ✓ │ องค์กร │
│ │ + BW guarantee │ priority │ │ ทั่วไป │
│ LLQ │ CBWFQ + strict│ ซับซ้อนกว่า │ Controlled ✓│ VoIP/Video │
│ │ priority queue │ │ │ + Data │
└──────────┴────────────────┴──────────────┴──────────────┴────────────┘
LLQ Flow:
┌─── Priority Queue (VoIP) ──── ส่งก่อน!
│ (policed: max 33% BW)
Incoming ──▶ Classify ──┤
Traffic │ ├─── CBWFQ Queue 1 (Video) ── 30% BW
│ ├─── CBWFQ Queue 2 (Data) ─── 25% BW
│ └─── Default Queue ─────────── ส่วนที่เหลือ
ส่วนที่ 5: Cisco QoS Configuration — MQC Framework
5.1 MQC (Modular QoS CLI) คืออะไร?
Cisco ใช้ MQC (Modular QoS CLI) เป็น framework หลักในการ configure QoS ซึ่งประกอบด้วย 3 ส่วนหลัก:
MQC Framework:
1. class-map → กำหนดว่า traffic ไหนจะ match (Classification)
2. policy-map → กำหนดว่าจะทำอะไรกับ traffic ที่ match (Action)
3. service-policy → ใช้ policy กับ interface (Application)
ขั้นตอน: Classify ──▶ Action ──▶ Apply
5.2 ตัวอย่างการ Configure QoS สำหรับองค์กร
! ======================================
! Cisco QoS Configuration Example
! สำหรับองค์กรที่มี VoIP + Video + Data
! ======================================
! Step 1: Class Maps (Classification)
! ------------------------------------
! VoIP Media (RTP traffic)
class-map match-any VOICE
match dscp ef
match protocol rtp audio
! VoIP Signaling (SIP/H.323)
class-map match-any VOICE-SIGNALING
match dscp cs3
match protocol sip
! Video Conferencing
class-map match-any VIDEO
match dscp af41
match protocol webex-meeting
match protocol ms-teams
! Mission Critical Data (ERP, CRM)
class-map match-any CRITICAL-DATA
match dscp af31
match access-group name ACL-CRITICAL-APPS
! Bulk Data (Backup, File Transfer)
class-map match-any BULK-DATA
match dscp af11
match protocol ftp
match protocol nfs
! Scavenger (YouTube, Social Media)
class-map match-any SCAVENGER
match dscp cs1
match protocol youtube
match protocol netflix
match protocol facebook
! Step 2: Policy Map (Actions)
! ----------------------------
policy-map QOS-POLICY-WAN
! VoIP: Strict Priority — 10% bandwidth
class VOICE
priority percent 10
! ให้ priority สูงสุด + police ไม่เกิน 10%
! Voice Signaling: Bandwidth guarantee
class VOICE-SIGNALING
bandwidth percent 2
! Video: Bandwidth guarantee — 30%
class VIDEO
bandwidth percent 30
fair-queue
! Critical Data: 25% bandwidth
class CRITICAL-DATA
bandwidth percent 25
random-detect dscp-based
! Bulk Data: 10% bandwidth
class BULK-DATA
bandwidth percent 10
random-detect
! Scavenger: จำกัด — 5% bandwidth
class SCAVENGER
bandwidth percent 5
! Default: ที่เหลือ (18%)
class class-default
bandwidth percent 18
fair-queue
! Step 3: Apply to Interface
! --------------------------
interface GigabitEthernet0/0/0
description WAN Link to ISP
service-policy output QOS-POLICY-WAN
! Apply to Sub-interface (Voice VLAN)
interface GigabitEthernet0/1
description LAN Access Port
service-policy input MARK-AND-CLASSIFY
5.3 Marking Policy สำหรับ Access Layer
! ======================================
! Trust and Marking Policy (Access Switch)
! ======================================
! Policy สำหรับ mark traffic ที่ LAN access layer
policy-map MARK-AND-CLASSIFY
class VOICE
set dscp ef
class VOICE-SIGNALING
set dscp cs3
class VIDEO
set dscp af41
class CRITICAL-DATA
set dscp af31
class BULK-DATA
set dscp af11
class SCAVENGER
set dscp cs1
class class-default
set dscp default
! Trust Policy บน Access Switch Port
! IP Phone port — trust DSCP จาก phone
interface GigabitEthernet1/0/1
switchport access vlan 10
switchport voice vlan 100
mls qos trust dscp
auto qos voip cisco-phone
! PC-only port — ไม่ trust, re-mark ใหม่
interface GigabitEthernet1/0/2
switchport access vlan 10
mls qos trust cos
service-policy input MARK-AND-CLASSIFY
ส่วนที่ 6: QoS สำหรับ VoIP (Voice over IP)
6.1 ทำไม VoIP ต้องการ QoS มากที่สุด?
VoIP เป็นแอปพลิเคชันที่ sensitive ต่อ network performance มากที่สุดประเภทหนึ่ง เพราะเสียงเป็น real-time traffic ที่ต้องส่งต่อเนื่องโดยไม่มี buffer หรือ retry ได้ ถ้า packet มาช้า มาไม่เรียงลำดับ หรือหายไป ผู้ใช้จะรับรู้ได้ทันทีในรูปแบบของเสียงกระตุก เสียงขาดหาย หรือ echo
VoIP QoS Requirements:
┌──────────────────────────────────────────────────┐
│ Parameter │ Requirement │ ถ้าเกิน │
├─────────────────┼──────────────┼──────────────────┤
│ One-way Latency │ < 150 ms │ เสียงดีเลย์ │
│ Jitter │ < 30 ms │ เสียงกระตุก │
│ Packet Loss │ < 1% │ เสียงขาดหาย │
│ Bandwidth/call │ 80-100 Kbps │ (G.711 codec) │
│ DSCP Marking │ EF (46) │ ต้อง mark ถูก │
│ Queue Type │ LLQ Priority │ strict priority │
└─────────────────┴──────────────┴──────────────────┘
Voice VLAN Architecture:
┌──────────────────────────────────────────────┐
│ IP Phone ────▶ [Voice VLAN 100] │
│ │ │
│ └── PC ──▶ [Data VLAN 10] │
│ │
│ Switch Port Configuration: │
│ switchport access vlan 10 (Data) │
│ switchport voice vlan 100 (Voice) │
│ mls qos trust dscp │
│ spanning-tree portfast │
│ auto qos voip cisco-phone │
└──────────────────────────────────────────────┘
VoIP Codec Bandwidth Comparison:
┌──────────┬──────────┬──────────┬──────────────┐
│ Codec │ Bit Rate │ MOS Score│ BW per call │
│ │ │ (1-5) │ (with header)│
├──────────┼──────────┼──────────┼──────────────┤
│ G.711 │ 64 Kbps │ 4.1 │ ~88 Kbps │
│ G.729 │ 8 Kbps │ 3.92 │ ~32 Kbps │
│ G.722 │ 64 Kbps │ 4.5 │ ~88 Kbps │
│ Opus │ 6-510 Kb │ 4.5+ │ Variable │
│ iLBC │ 13.3 Kbps│ 4.14 │ ~38 Kbps │
└──────────┴──────────┴──────────┴──────────────┘
6.2 การคำนวณ Bandwidth สำหรับ VoIP
การวางแผน bandwidth สำหรับ VoIP ต้องคำนึงถึง overhead ของ protocol headers ด้วย ไม่ใช่แค่ bit rate ของ codec เท่านั้น ตัวอย่างการคำนวณสำหรับ G.711:
VoIP Bandwidth Calculation (G.711):
Payload per packet: 160 bytes (20 ms of audio)
+ RTP Header: 12 bytes
+ UDP Header: 8 bytes
+ IP Header: 20 bytes
+ Ethernet Header: 18 bytes
= Total per packet: 218 bytes = 1,744 bits
Packets per second: 50 (20 ms interval)
Bandwidth: 1,744 × 50 = 87,200 bps ≈ 88 Kbps per call
สำหรับ 50 concurrent calls:
88 Kbps × 50 = 4,400 Kbps = 4.4 Mbps
แนะนำ: Reserve 10-15% overhead
4.4 Mbps × 1.15 = ~5 Mbps reserved for VoIP
ส่วนที่ 7: QoS สำหรับ Video Conferencing
7.1 ความท้าทายของ Video Traffic
Video conferencing traffic มีความท้าทายมากกว่า VoIP เพราะใช้ bandwidth สูงกว่ามาก และมี traffic pattern ที่ไม่สม่ำเสมอ (bursty) เนื่องจาก video codec จะสร้าง I-frames (keyframes) ที่มีขนาดใหญ่เป็นระยะ สลับกับ P-frames และ B-frames ที่มีขนาดเล็กกว่า
Video Conferencing Bandwidth Requirements:
┌─────────────────┬──────────┬───────────────┬──────────┐
│ Quality │ Resolution│ Bandwidth │ DSCP │
├─────────────────┼──────────┼───────────────┼──────────┤
│ Audio only │ N/A │ 80-100 Kbps │ EF │
│ Standard (SD) │ 480p │ 0.5-1.5 Mbps │ AF41 │
│ High (HD) │ 720p │ 1.5-3 Mbps │ AF41 │
│ Full HD │ 1080p │ 3-6 Mbps │ AF41 │
│ 4K │ 2160p │ 8-20 Mbps │ AF41 │
│ Screen Sharing │ Variable │ 0.5-2 Mbps │ AF42 │
│ Gallery View │ Multiple │ 3-8 Mbps │ AF41 │
│ (9 participants)│ │ │ │
└─────────────────┴──────────┴───────────────┴──────────┘
QoS Policy สำหรับ Microsoft Teams:
class-map match-any TEAMS-AUDIO
match dscp ef
match access-group name ACL-TEAMS-AUDIO
! UDP ports 50000-50019
class-map match-any TEAMS-VIDEO
match dscp af41
match access-group name ACL-TEAMS-VIDEO
! UDP ports 50020-50039
class-map match-any TEAMS-SHARING
match dscp af21
match access-group name ACL-TEAMS-SHARING
! UDP ports 50040-50059
ip access-list extended ACL-TEAMS-AUDIO
permit udp any range 50000 50019 any
permit udp any any range 50000 50019
ip access-list extended ACL-TEAMS-VIDEO
permit udp any range 50020 50039 any
permit udp any any range 50020 50039
ส่วนที่ 8: WAN QoS และ SD-WAN QoS
8.1 WAN QoS — ทำไมถึงสำคัญกว่า LAN QoS?
QoS บน WAN link มีความสำคัญมากกว่า LAN เพราะ WAN link มักจะมี bandwidth น้อยกว่า LAN มาก (เช่น LAN อาจเป็น 1 Gbps แต่ WAN link อาจเป็นแค่ 100 Mbps หรือน้อยกว่า) ทำให้ congestion เกิดขึ้นง่ายกว่า นอกจากนี้ WAN link ยังมี latency สูงกว่าเนื่องจากระยะทางทางกายภาพ
WAN QoS Bandwidth Allocation Model:
Total WAN Bandwidth: 100 Mbps
┌─────────────────────────────────────────────────────┐
│ Class │ % Allocation │ Bandwidth │ Queuing │
├────────────────┼──────────────┼───────────┼──────────┤
│ Voice (EF) │ 10% │ 10 Mbps │ LLQ │
│ Video (AF41) │ 25% │ 25 Mbps │ CBWFQ │
│ Signaling (CS3)│ 2% │ 2 Mbps │ CBWFQ │
│ Critical (AF31)│ 25% │ 25 Mbps │ CBWFQ │
│ Bulk (AF11) │ 10% │ 10 Mbps │ CBWFQ │
│ Scavenger (CS1)│ 5% │ 5 Mbps │ CBWFQ │
│ Best Effort │ 23% │ 23 Mbps │ WFQ │
│ Total │ 100% │ 100 Mbps │ │
└────────────────┴──────────────┴───────────┴──────────┘
หลักการ:
1. Voice ไม่ควรเกิน 33% ของ link (LLQ policing)
2. Video ควรได้ bandwidth เพียงพอสำหรับ concurrent sessions
3. Critical data ต้อง guarantee minimum bandwidth
4. Scavenger ควรถูกจำกัดไม่ให้ใช้ bandwidth มากเกินไป
8.2 SD-WAN QoS Policies
SD-WAN ทำให้การจัดการ QoS ง่ายขึ้นอย่างมาก เพราะ SD-WAN controller สามารถกำหนด QoS policy จากส่วนกลางและ deploy ไปยัง edge devices ทุกตัวในองค์กรได้ นอกจากนี้ SD-WAN ยังสามารถเลือก WAN path (MPLS, Internet, 4G/5G) ตาม real-time performance metrics
SD-WAN QoS Architecture:
┌─────────────────────────────────────────────────────┐
│ SD-WAN Controller (vManage/Orchestrator) │
│ │
│ QoS Policy: │
│ ├── App-aware Routing (เลือก path ตาม app) │
│ │ ├── VoIP → MPLS (low latency) │
│ │ ├── Video → Best path (latency + BW) │
│ │ ├── Cloud Apps → Direct Internet │
│ │ └── Backup → Internet (cheapest) │
│ ├── Real-time Performance Monitoring │
│ │ ├── BFD probes ทุก path │
│ │ ├── Latency, Jitter, Packet Loss per path │
│ │ └── Dynamic path switching │
│ └── QoS Queuing per Transport │
│ ├── MPLS: 6 queues │
│ └── Internet: 4 queues │
└─────────────────────────────────────────────────────┘
SD-WAN Vendors & QoS:
├── Cisco Viptela: Application-Aware Routing (AAR)
├── VMware VeloCloud: Dynamic Multi-Path Optimization (DMPO)
├── Fortinet: SD-WAN + NGFW (integrated security)
├── Palo Alto Prisma SD-WAN: ML-based traffic steering
└── Meraki SD-WAN: Simple cloud-managed policies
ส่วนที่ 9: Wireless QoS (WMM — Wi-Fi Multimedia)
9.1 ทำไม Wireless QoS ถึงแตกต่างจาก Wired?
Wireless network มีความท้าทายด้าน QoS มากกว่า wired เพราะ wireless เป็น shared medium ที่ทุกอุปกรณ์ต้องแชร์ channel เดียวกัน และมีปัญหา interference, hidden node, และ collision ที่ไม่มีในเครือข่าย wired
WMM (Wi-Fi Multimedia) เป็นส่วนหนึ่งของมาตรฐาน IEEE 802.11e ที่กำหนด QoS สำหรับ WiFi โดยแบ่ง traffic เป็น 4 access categories:
WMM Access Categories:
┌───────────┬─────────┬────────┬──────────────────────────┐
│ WMM AC │ CoS │ DSCP │ ตัวอย่าง Traffic │
├───────────┼─────────┼────────┼──────────────────────────┤
│ AC_VO │ 6, 7 │ EF, CS7│ Voice (VoIP) │
│ (Voice) │ │ │ → highest priority │
│ AC_VI │ 4, 5 │ AF4x │ Video Conferencing │
│ (Video) │ │ CS5 │ → high priority │
│ AC_BE │ 0, 3 │ DF, CS3│ Web, Email, General │
│ (Best Eff)│ │ │ → default │
│ AC_BK │ 1, 2 │ CS1 │ Background (Backup, │
│ (Backgrnd)│ │ │ Downloads) │
└───────────┴─────────┴────────┴──────────────────────────┘
WMM ทำงานอย่างไร:
- แต่ละ AC มีค่า AIFS, CWmin, CWmax ที่ต่างกัน
- AC_VO มี AIFS สั้นที่สุด → เข้าถึง channel ก่อน
- AC_BK มี AIFS ยาวที่สุด → รอนานสุด
- ผลลัพธ์: Voice/Video ได้ priority สูงกว่า
แม้จะใช้ wireless channel เดียวกัน
9.2 WiFi 6/6E QoS Improvements
WiFi 6 (802.11ax) และ WiFi 6E เพิ่มขีดความสามารถด้าน QoS อย่างมากด้วยเทคโนโลยีใหม่:
WiFi 6 QoS Enhancements:
1. OFDMA (Orthogonal Frequency Division Multiple Access):
└── แบ่ง channel เป็น sub-channels (Resource Units)
ให้หลายอุปกรณ์ส่งพร้อมกัน
→ ลด latency สำหรับ small packets (VoIP)
2. BSS Coloring:
└── ลด interference จาก neighboring APs
→ ปรับปรุง performance ในพื้นที่หนาแน่น
3. Target Wake Time (TWT):
└── IoT devices กำหนดเวลาส่งข้อมูลล่วงหน้า
→ ลด contention, ประหยัดพลังงาน
4. MU-MIMO (up to 8 streams):
└── AP ส่งข้อมูลถึงหลายอุปกรณ์พร้อมกัน
→ เพิ่ม throughput overall
ส่วนที่ 10: Network Performance Metrics — ตัวชี้วัดประสิทธิภาพเครือข่าย
10.1 Latency (ความหน่วง)
Latency คือเวลาที่ packet ใช้ในการเดินทางจาก source ถึง destination มีหลายองค์ประกอบ:
Latency Components:
Total Latency = Processing + Queuing + Serialization + Propagation
1. Processing Delay: เวลาที่ router ใช้ตรวจสอบ header
└── ~microseconds (ขึ้นอยู่กับ router performance)
2. Queuing Delay: เวลาที่ packet รอใน queue
└── Variable — ขึ้นอยู่กับ congestion level
└── QoS ช่วยลด queuing delay สำหรับ priority traffic
3. Serialization Delay: เวลาที่ใช้ส่ง bits ลง wire
└── = Packet size / Link bandwidth
└── 1500 bytes on 1 Gbps = 12 microseconds
4. Propagation Delay: เวลาที่ signal เดินทาง
└── ~5 μs per km (fiber/copper)
└── Bangkok to Singapore ≈ ~10 ms
Latency Thresholds:
├── Excellent: < 50 ms (LAN, same city)
├── Good: 50-100 ms (regional WAN)
├── Acceptable: 100-200 ms (intercontinental)
├── Poor: 200-300 ms (satellite, poor routing)
└── Unusable: > 300 ms (multiple hops, congestion)
10.2 Jitter (ความแปรปรวนของ Delay)
Jitter คือความแปรปรวนของ delay ระหว่าง packet ที่ส่งติดต่อกัน ถ้า packet แรกใช้เวลา 20 ms และ packet ที่สองใช้เวลา 50 ms จะมี jitter = 30 ms Jitter เป็นปัญหาสำคัญสำหรับ real-time application เช่น VoIP เพราะทำให้เสียงไม่สม่ำเสมอ แก้ไขได้ด้วย jitter buffer ที่ตัว receiver แต่ถ้า jitter สูงเกินไป buffer ก็ไม่สามารถชดเชยได้
10.3 Packet Loss (การสูญหายของ Packet)
Packet Loss คือเปอร์เซ็นต์ของ packet ที่ส่งออกไปแล้วไม่ถึง destination สาเหตุหลักๆ มาจาก congestion (buffer overflow), errors (CRC errors, collision), hardware failure หรือ misconfiguration สำหรับ VoIP packet loss แม้เพียง 1-2% ก็ทำให้คุณภาพเสียงลดลงอย่างชัดเจน
10.4 Throughput vs Bandwidth
Bandwidth คือความจุสูงสุดทางทฤษฎีของ link (เช่น 1 Gbps) ในขณะที่ Throughput คือ bandwidth ที่ใช้ได้จริงหลังหักค่า overhead ต่างๆ เช่น protocol headers, retransmissions, errors โดยทั่วไป throughput จะอยู่ที่ 60-90% ของ bandwidth ขึ้นอยู่กับ protocol และสภาพเครือข่าย
ส่วนที่ 11: เครื่องมือทดสอบ Network Performance
11.1 iPerf / iPerf3
iPerf เป็นเครื่องมือ open-source ที่ใช้ทดสอบ bandwidth, throughput และ performance ระหว่าง 2 จุดในเครือข่าย เป็นเครื่องมือที่ network engineer ทุกคนควรรู้จัก
iPerf3 Usage Examples:
# Basic TCP throughput test
Server: iperf3 -s
Client: iperf3 -c 192.168.1.100
# UDP test with bandwidth limit (VoIP simulation)
iperf3 -c 192.168.1.100 -u -b 100K -l 160
# Test with DSCP marking
iperf3 -c 192.168.1.100 -S 0xB8 # DSCP EF (46)
# Bidirectional test
iperf3 -c 192.168.1.100 --bidir
# Multiple parallel streams
iperf3 -c 192.168.1.100 -P 10
# Test duration and interval
iperf3 -c 192.168.1.100 -t 60 -i 5
# JSON output for automation
iperf3 -c 192.168.1.100 -J > result.json
Sample Output:
┌──────────────────────────────────────────────┐
│ [ 5] local 10.0.0.1 port 5201 connected │
│ [ ID] Interval Transfer Bitrate │
│ [ 5] 0.0-1.0 sec 112 MBytes 940 Mbits/s │
│ [ 5] 1.0-2.0 sec 112 MBytes 941 Mbits/s │
│ [ 5] 2.0-3.0 sec 111 MBytes 933 Mbits/s │
│ [ 5] 0.0-10.0 sec 1.09 GBytes 938 Mbits/s │
│ │
│ → 938 Mbps on 1 Gbps link = 93.8% efficiency │
└──────────────────────────────────────────────┘
11.2 PingPlotter
PingPlotter เป็นเครื่องมือ GUI ที่ใช้ทดสอบ latency, jitter และ packet loss ตลอดเส้นทางจาก source ถึง destination (traceroute + continuous ping) ช่วยให้ระบุได้ว่าปัญหา performance เกิดที่ hop ไหนในเส้นทาง เหมาะสำหรับการ troubleshoot ปัญหา WAN และ ISP
11.3 Wireshark สำหรับ QoS Analysis
Wireshark สามารถใช้ตรวจสอบว่า QoS marking ถูกต้องหรือไม่ และวิเคราะห์ VoIP quality ได้:
Wireshark QoS Analysis:
1. ตรวจสอบ DSCP Marking:
Filter: ip.dsfield.dscp == 46
→ แสดงเฉพาะ packet ที่ mark เป็น EF
2. ตรวจสอบ CoS Marking:
Filter: vlan.priority == 5
→ แสดงเฉพาะ packet ที่ CoS = 5 (Voice)
3. VoIP Analysis (Telephony → RTP Streams):
→ แสดง jitter, packet loss ของแต่ละ call
→ MOS score estimation
→ Forward/Reverse direction analysis
4. IO Graph:
→ เปรียบเทียบ throughput ของแต่ละ traffic class
→ ดู pattern การใช้ bandwidth ตาม DSCP
Useful Wireshark Filters for QoS:
├── ip.dsfield.dscp == 46 (DSCP EF — Voice)
├── ip.dsfield.dscp == 34 (DSCP AF41 — Video)
├── ip.dsfield.dscp == 0 (Best Effort)
├── tcp.analysis.retransmission (TCP retransmissions)
└── rtp (All RTP traffic)
11.4 เครื่องมืออื่นที่ควรรู้จัก
Network Performance Testing Tools:
┌─────────────────┬──────────────┬─────────────────────────┐
│ Tool │ Type │ ใช้ทำอะไร │
├─────────────────┼──────────────┼─────────────────────────┤
│ iPerf3 │ CLI/Free │ Bandwidth/Throughput │
│ PingPlotter │ GUI/Paid │ Latency/Jitter path │
│ Wireshark │ GUI/Free │ Packet analysis/QoS │
│ PRTG │ GUI/Freemium │ Network monitoring │
│ SolarWinds QoE │ GUI/Paid │ VoIP/Video quality │
│ Smokeping │ Web/Free │ Latency graphing │
│ NetFlow/sFlow │ Protocol │ Traffic analysis │
│ Cacti │ Web/Free │ SNMP graphing │
│ LibreNMS │ Web/Free │ Network monitoring │
│ ThousandEyes │ Cloud/Paid │ End-to-end monitoring │
│ MTR (mtr) │ CLI/Free │ Traceroute + ping │
│ Ntopng │ Web/Free │ Traffic analysis/DPI │
│ Zabbix │ Web/Free │ Infrastructure monitor │
└─────────────────┴──────────────┴─────────────────────────┘
ส่วนที่ 12: Bandwidth Management และ Traffic Engineering
12.1 หลักการ Bandwidth Management
การจัดการ bandwidth ที่ดีไม่ใช่แค่การ "เพิ่ม bandwidth" เพราะการเพิ่ม bandwidth แก้ปัญหาได้ชั่วคราว เมื่อ bandwidth เพิ่มขึ้น traffic ก็จะเพิ่มตามจนเต็มอีกครั้ง (ตาม Parkinson's Law) แนวทางที่ยั่งยืนคือการใช้ QoS ร่วมกับ bandwidth management เพื่อจัดสรร bandwidth อย่างชาญฉลาด
Bandwidth Management Strategies:
1. Application-based Control:
├── ระบุ top bandwidth consumers (NetFlow/sFlow)
├── จำกัด non-business apps (YouTube, Netflix)
├── Guarantee bandwidth สำหรับ business apps
└── Schedule bulk transfers นอกเวลาทำงาน
2. User-based Control:
├── Per-user bandwidth limits
├── Group policies (IT, Management, General)
├── Guest network with rate limiting
└── BYOD bandwidth capping
3. Time-based Policies:
├── Business hours: strict QoS
├── After hours: relaxed policies
├── Backup window: increase bulk BW
└── Special events: temporary policies
4. Location-based:
├── HQ: full bandwidth allocation
├── Branch offices: WAN QoS
├── Remote workers: VPN QoS
└── Cloud apps: direct internet breakout
12.2 WRED (Weighted Random Early Detection)
WRED เป็นกลไกที่ช่วยป้องกัน congestion ก่อนที่ queue จะเต็ม (congestion avoidance) แทนที่จะรอให้ queue เต็มแล้วค่อย drop (tail drop) WRED จะเริ่ม drop packet แบบ random เมื่อ queue เริ่มเต็ม โดย packet ที่มี priority ต่ำกว่าจะมีโอกาสถูก drop ก่อน
WRED Concept:
Tail Drop (ไม่มี WRED):
Queue: [||||||||||||████████] ← Full → DROP ALL ❌
→ ทำให้ TCP ทุก flow slow down พร้อมกัน (global sync)
WRED (Random Early Detection):
Queue: [||||||||████░░░░░░░] ← ยังไม่เต็ม
↑ เริ่ม random drop
→ Drop เฉพาะบาง packet → บาง TCP flow slow down
→ ป้องกัน global synchronization
→ Traffic flow สม่ำเสมอกว่า
WRED thresholds by DSCP:
├── DSCP EF: min=80% max=100% (drop น้อยสุด)
├── DSCP AF41: min=70% max=100%
├── DSCP AF31: min=60% max=100%
├── DSCP AF11: min=40% max=100%
└── DSCP 0: min=30% max=100% (drop ก่อน)
ส่วนที่ 13: QoS Best Practices สำหรับองค์กร
13.1 แนวทางปฏิบัติที่ดีที่สุด
QoS Best Practices Checklist:
✅ 1. Classify and mark ที่ Access Layer (ใกล้ source ที่สุด)
└── Trust DSCP จาก trusted devices (IP Phone)
Re-mark traffic จาก untrusted devices (PC)
✅ 2. ใช้ไม่เกิน 4-6 traffic classes
└── มากกว่านี้จะซับซ้อนเกินไปและยากต่อการ manage
✅ 3. Voice (LLQ) ไม่ควรเกิน 33% ของ link bandwidth
└── ป้องกัน starvation ของ traffic อื่น
✅ 4. ใช้ DSCP marking แทน CoS
└── DSCP ทำงานข้าม Layer 3 ได้ (CoS เฉพาะ Layer 2)
✅ 5. Monitor QoS performance อย่างสม่ำเสมอ
└── ตรวจสอบ queue drops, police drops, shape delays
✅ 6. Document QoS policy ให้ชัดเจน
└── mapping table ระหว่าง application → DSCP → queue
✅ 7. ทดสอบ QoS ก่อน deploy ใน production
└── ใช้ iPerf, Wireshark ตรวจสอบ behavior
✅ 8. Implement end-to-end
└── QoS ต้อง consistent ตั้งแต่ access → distribution
→ core → WAN → remote site
✅ 9. อย่าลืม WAN QoS
└── WAN เป็น bottleneck ที่สำคัญที่สุด
✅ 10. Review และ update QoS policy เป็นประจำ
└── Application landscape เปลี่ยนไปตลอด
13.2 ข้อผิดพลาดที่พบบ่อย
Common QoS Mistakes:
❌ 1. Mark ทุก traffic เป็น high priority
└── ถ้าทุกอย่าง priority สูงหมด = ไม่มี priority เลย
❌ 2. QoS เฉพาะ WAN แต่ไม่ทำ LAN
└── Traffic ต้องถูก classify/mark ที่ LAN ก่อน
❌ 3. Trust DSCP จากทุก device
└── User อาจ mark traffic ตัวเองเป็น EF
→ ต้อง re-mark ที่ access layer
❌ 4. ไม่ monitor QoS performance
└── ไม่รู้ว่า QoS ทำงานถูกต้องหรือไม่
❌ 5. Over-provision priority queue
└── LLQ > 33% → starvation ของ data traffic
❌ 6. ไม่ทำ QoS บน wireless
└── WiFi เป็น bottleneck ที่สำคัญ
❌ 7. ลืม QoS สำหรับ cloud traffic
└── SaaS traffic ต้องจัดการด้วย
❌ 8. ไม่สอดคล้องกัน end-to-end
└── ถ้า WAN remarking ทำ DSCP หาย
→ QoS ไม่ทำงาน
ส่วนที่ 14: QoS Implementation Roadmap สำหรับองค์กรไทย
14.1 ขั้นตอนการ Deploy QoS
QoS Implementation Roadmap:
Phase 1: Assessment (2-4 สัปดาห์)
├── สำรวจ network topology
├── ระบุ applications ทั้งหมด (NetFlow/sFlow)
├── วัด baseline performance (latency, jitter, loss)
├── สัมภาษณ์ user เรื่อง pain points
└── Document bandwidth utilization
Phase 2: Design (2-3 สัปดาห์)
├── กำหนด traffic classes (4-6 classes)
├── Map applications → DSCP values
├── ออกแบบ queuing model (LLQ + CBWFQ)
├── กำหนด bandwidth allocation per class
├── Design marking policy (access layer)
└── Plan WAN QoS policies
Phase 3: Lab Testing (1-2 สัปดาห์)
├── สร้าง lab environment
├── ทดสอบ QoS policies
├── Verify with iPerf, Wireshark
├── Test failover scenarios
└── Document results
Phase 4: Pilot Deployment (2-4 สัปดาห์)
├── Deploy ที่ site เดียวก่อน
├── Monitor closely
├── รวบรวม feedback
├── Tune policies ตามผลจริง
└── Resolve issues
Phase 5: Full Deployment (4-8 สัปดาห์)
├── Roll out ทุก site
├── ทำ change management
├── Training สำหรับ network team
├── Set up monitoring/alerting
└── Document final configuration
Phase 6: Continuous Improvement
├── Monthly performance review
├── Quarterly policy review
├── Adjust for new applications
├── Capacity planning
└── Annual QoS audit
14.2 QoS สำหรับองค์กรขนาดต่างๆ ในประเทศไทย
QoS Recommendations by Organization Size:
องค์กรขนาดเล็ก (< 50 users):
├── ใช้ QoS แบบง่ายบน router/firewall
├── จัดลำดับความสำคัญ: VoIP > Video > Data > Guest
├── Rate limit guest network
├── เครื่องมือ: MikroTik Simple Queue, Ubiquiti Traffic Management
└── งบประมาณ: ฟรี (built-in features)
องค์กรขนาดกลาง (50-500 users):
├── Implement MQC QoS on Cisco/Aruba switches
├── WAN QoS (MPLS/Internet)
├── Voice VLAN + IP Phone QoS
├── SD-WAN QoS (ถ้ามี branch offices)
├── Wireless QoS (WMM + bandwidth control)
├── เครื่องมือ: PRTG, LibreNMS สำหรับ monitoring
└── งบประมาณ: 50,000-200,000 บาท
องค์กรขนาดใหญ่ (> 500 users):
├── End-to-end DiffServ architecture
├── SD-WAN with application-aware routing
├── Dedicated voice/video infrastructure
├── Advanced monitoring (ThousandEyes, SolarWinds)
├── Network Automation for QoS deployment (Ansible)
├── Dedicated QoS engineer/team
├── เครื่องมือ: Cisco DNA Center, Aruba Central
└── งบประมาณ: 500,000+ บาท
สรุป: QoS เป็นสิ่งจำเป็นสำหรับเครือข่ายองค์กรยุคใหม่
Quality of Service (QoS) ไม่ใช่ "nice to have" อีกต่อไป แต่เป็น "must have" สำหรับองค์กรที่พึ่งพา VoIP, video conferencing, cloud applications และ real-time services การ implement QoS ที่ดีต้องเริ่มจากการเข้าใจ traffic pattern ขององค์กร กำหนด traffic classes ที่เหมาะสม ใช้ DiffServ model กับ DSCP marking, implement LLQ + CBWFQ queuing และทำ QoS ตั้งแต่ access layer จนถึง WAN
สิ่งสำคัญที่สุดคือ QoS ต้องทำ end-to-end และต้อง monitor อย่างต่อเนื่อง อย่าลืมว่า QoS ไม่ได้เพิ่ม bandwidth แต่ช่วยจัดสรร bandwidth ที่มีให้มีประสิทธิภาพสูงสุด สำหรับองค์กรในไทยที่เพิ่งเริ่มต้น แนะนำให้เริ่มจาก VoIP QoS ก่อน เพราะเป็นส่วนที่ผู้ใช้จะรู้สึกถึงความแตกต่างชัดเจนที่สุด แล้วค่อยขยายไปยัง video และ application QoS ในลำดับถัดไป