QoS (Quality of Service): จัดลำดับความสำคัญ Traffic บนเครือข่าย

QoS (Quality of Service): จัดลำดับความสำคัญ Traffic บนเครือข่าย

QoS (Quality of Service) คือชุดเทคนิคที่ใช้จัดลำดับความสำคัญของ traffic บน network เพื่อให้ traffic ที่สำคัญ (เช่น VoIP, video conferencing) ได้รับ bandwidth, low latency และ low jitter ก่อน traffic ที่สำคัญน้อยกว่า (เช่น file downloads, web browsing)

เมื่อ network มี congestion (bandwidth ไม่พอ) ทุก traffic จะแย่ลงเท่าๆ กัน ถ้าไม่มี QoS VoIP call จะมี delay และ jitter จนใช้งานไม่ได้ video conference จะ lag และ pixelated ในขณะที่ file download ที่ไม่เร่งด่วนกิน bandwidth ไปหมด QoS แก้ปัญหานี้ด้วยการจัด priority

QoS Metrics

Metric ความหมาย ค่าที่ยอมรับได้ (VoIP)
Bandwidth ปริมาณ data ที่ส่งได้ต่อวินาที ขึ้นกับ codec (G.711 = 80Kbps)
Latency (Delay) เวลาที่ packet ใช้จาก source ถึง destination ≤ 150ms (one-way)
Jitter ความไม่สม่ำเสมอของ delay ระหว่าง packets ≤ 30ms
Packet Loss เปอร์เซ็นต์ packets ที่สูญหาย ≤ 1%

QoS Models

Model วิธีทำงาน Scalability
Best Effort ไม่มี QoS ทุก traffic เท่ากัน ไม่ต้อง config
IntServ (Integrated Services) Reserve bandwidth per flow (RSVP) ต่ำ (ไม่ scale ใน large networks)
DiffServ (Differentiated Services) จัดกลุ่ม traffic → apply policy per class สูง (scale ดี, enterprise standard)

DiffServ QoS Steps

Step Action ทำที่
1. Classification จำแนก traffic ตาม type (VoIP, video, data, etc.) Access layer (switch/router ใกล้ source)
2. Marking ติด label (DSCP/CoS) บน packet header Access layer
3. Policing/Shaping จำกัด bandwidth per class Edge routers
4. Queuing จัด queue per class (priority, weighted) ทุก hop (switch/router)
5. Scheduling เลือก queue ไหนส่งก่อน ทุก hop
6. Congestion Avoidance Drop traffic ก่อน queue เต็ม (WRED) ทุก hop

DSCP Values

DSCP Name DSCP Value Per-Hop Behavior ใช้สำหรับ
EF (Expedited Forwarding) 46 Low latency, low jitter, low loss VoIP (voice payload)
AF41 34 Assured Forwarding (high priority) Video conferencing
AF31 26 Assured Forwarding (medium-high) Streaming video
AF21 18 Assured Forwarding (medium) Business-critical apps (ERP, CRM)
AF11 10 Assured Forwarding (low) Bulk data transfer
CS6 48 Network Control Routing protocols (OSPF, BGP)
CS3 24 Signaling VoIP signaling (SIP, H.323)
CS2 16 OAM Network management (SNMP, SSH)
DF (Default) 0 Best Effort Web browsing, email, general

Queuing Mechanisms

Mechanism วิธีทำงาน เหมาะกับ
FIFO (First In First Out) ส่ง packets ตามลำดับเข้ามา ไม่มี QoS (default)
PQ (Priority Queuing) Priority queue ส่งก่อนเสมอ VoIP (strict priority)
CBWFQ (Class-Based WFQ) กำหนด bandwidth per class (weighted) Multiple classes with guaranteed BW
LLQ (Low Latency Queuing) PQ + CBWFQ combined Enterprise standard (VoIP + data)

QoS Policy Design

Class DSCP Bandwidth % Queue
Voice EF (46) 10-15% Strict Priority (LLQ)
Video AF41 (34) 15-25% CBWFQ
Signaling CS3 (24) 2-5% CBWFQ
Business Apps AF21 (18) 15-25% CBWFQ
Network Control CS6 (48) 3-5% CBWFQ
Management CS2 (16) 3-5% CBWFQ
Default (Best Effort) DF (0) 25-35% CBWFQ (remaining)
Scavenger CS1 (8) 1-5% CBWFQ (lowest)

Policing vs Shaping

Feature Policing Shaping
Over-limit traffic Drop หรือ re-mark Buffer แล้วส่งทีหลัง
Burst อนุญาต burst เล็กน้อย → drop Smooth traffic rate
Direction Inbound + outbound Outbound เท่านั้น
Use Case ISP rate limiting, WAN edge inbound WAN edge outbound, Frame Relay

Best Practices

Practice รายละเอียด
Classify + mark ที่ access layer Mark ใกล้ source ที่สุด trust marking downstream
ใช้ LLQ สำหรับ voice Strict priority + bandwidth limit (≤ 33% of link)
ไม่ใช้ strict priority เกิน 33% ป้องกัน priority traffic starve other classes
QoS ทุก hop (end-to-end) QoS ต้อง consistent ทุก switch/router ใน path
ทดสอบก่อน deploy ทดสอบ QoS policy กับ actual traffic patterns

ทิ้งท้าย: QoS = ความแตกต่างระหว่าง Network ที่ดีกับไม่ดี

QoS จำเป็นเมื่อ bandwidth มีจำกัด + มี real-time traffic DiffServ + LLQ = enterprise standard Classify → Mark → Queue → Schedule ทุก hop Voice = EF (strict priority), Video = AF41, Business = AF21 QoS ต้อง end-to-end (ทุก hop ใน path)

อ่านเพิ่มเติมเกี่ยวกับ Network Load Balancer และ SD-WAN ที่ siamlancard.com หรือจาก icafeforex.com และ siam2r.com

จัดส่งรวดเร็วส่งด่วนทั่วประเทศ
รับประกันสินค้าเคลมง่าย มีใบรับประกัน
ผ่อนชำระได้บัตรเครดิต 0% สูงสุด 10 เดือน
สะสมแต้ม รับส่วนลดส่วนลดและคะแนนสะสม

© 2026 SiamLancard — จำหน่ายการ์ดแลน อุปกรณ์ Server และเครื่องพิมพ์ใบเสร็จ

SiamLancard
Logo
Free Forex EA Download — XM Signal · EA Forex ฟรี
iCafeForex.com - สอนเทรด Forex | SiamCafe.net
Shopping cart