อัลกอริทึมจำกัดอัตราด้วย Token Bucket
Token bucket เป็นอัลกอริทึมที่เรียบง่ายและมีประสิทธิภาพสำหรับการปรับรูปแบบการจราจร (traffic shaping) และการจำกัดอัตรา (rate limiting) โดยถังเสมือน (virtual bucket) จะสะสมโทเค็นในอัตราคงที่ (อัตราข้อมูลที่ตกลงไว้ หรือ committed information rate) แพ็กเก็ตขาเข้าจะใช้โทเค็น (หนึ่งโทเค็นต่อหนึ่งไบต์) และจะถูกส่งออกไปก็ต่อเมื่อมีโทเค็นเพียงพอเท่านั้น หากถังเต็ม โทเค็นส่วนเกินจะถูกทิ้ง (ไม่มีการสะสม) Token bucket จะจำกัดอัตราสูงสุดและอนุญาตให้มีการส่งข้อมูลแบบเป็นชุด (burst) ที่ควบคุมได้ ทำให้เหมาะสำหรับการจัดการการจราจรในเครือข่าย
อ่านวิธีฉบับเต็ม
เข้าสู่ระบบด้วยบัญชีฟรีเพื่ออ่านส่วนนี้
Method map
The neighbourhood of related methods — select a node to explore.
แหล่งอ้างอิง
วิธีอ้างอิงหน้านี้
ScholarGate. (2026, June 3). Token Bucket Rate Limiting Algorithm. ScholarGate. https://scholargate.app/th/telecommunications/token-bucket
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA)โทรคมนาคม↔ compare
- การบริการแบบจำแนกประเภท (DiffServ)โทรคมนาคม↔ compare