惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 【当耐特】
Help Net Security
Help Net Security
P
Proofpoint News Feed
J
Java Code Geeks
爱范儿
爱范儿
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Full Disclosure
Google DeepMind News
Google DeepMind News
H
Help Net Security
G
Google Developers Blog
Jina AI
Jina AI
Vercel News
Vercel News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
Lohrmann on Cybersecurity
S
Schneier on Security
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
Security Archives - TechRepublic
Security Archives - TechRepublic
阮一峰的网络日志
阮一峰的网络日志
N
News and Events Feed by Topic
GbyAI
GbyAI
B
Blog
O
OpenAI News
博客园_首页
Cisco Talos Blog
Cisco Talos Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Hacker News: Ask HN
Hacker News: Ask HN
TaoSecurity Blog
TaoSecurity Blog
腾讯CDC
MongoDB | Blog
MongoDB | Blog
M
MIT News - Artificial intelligence
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
Webroot Blog
Webroot Blog
Simon Willison's Weblog
Simon Willison's Weblog
Y
Y Combinator Blog
C
Cisco Blogs
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
AI
AI
W
WeLiveSecurity
aimingoo的专栏
aimingoo的专栏
The Register - Security
The Register - Security
Project Zero
Project Zero
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale

博客园 - toong

envoy DDOS HTTP/2 Bomb CVE-2026-47774 安全漏洞分析 P2P与FRP与websocket python运行虚拟化环境 大模型从0到1 绑定网卡中断后是否需要设置RFS linux socket reuse port 小测试 现代C++ envoy timeout 说明 观察中断的脚本 /proc/interrupts openssl查看编译时选项设置的方法 内核ipsec转发优化方法 提高ipsec多核并行能力的优化方法之一 bash模拟netstat取值的脚本 linux内核对MSI网卡队列的smp_affinity亲和CPU选择 bash多并发--进程池数量控制 bash单例模式 linux 分析中断 linux 查看 ipsec 丢包 linux内核rps与rfs机制分析 linux获取CPU利用率的快捷命令 开启openssl legacy的方法
tc qdisc 的burst如何设置
toong · 2025-07-21 · via 博客园 - toong

rate和burst的是tc qdisc进行限速的基本参数。

rate很直观,就是我们需要的带宽限速值,如500mbit。那么burst如何设置?

简单的说,burst的最小值是rate的10分之一。当然也不能太大,太大会影响延迟,这个没有明确的定性,经验值上限是5分之一?

下面是分析:

从man手册能看见

rate的单位是rate,burst的单位是bytes

根据man tc-htb

从手册可知,填token的timer频率是100次/s,所以busrt值是rate的10分之一,才能至少保证,不会再rate值到达之前触发限速。

大于10分之一,会适当的突破限速,提供一定的burst容忍能力。

另外:

注意 rate,和burst的单位。防止bit,byte写错。

可以通过tc class show dev eth0 确认是否生效。

举例

tc class add dev eth0 parent 1: classid 10:100 htb rate 500mbit burst 50mbit

burst的合理值是再50mbit 到 100mbit之间。

举例

tc class add dev eth0 parent 1: classid 1:100 htb rate 600mbit burst 90mbit cburst 90mbit

# tc class show dev eth0
class htb 1:100 root prio 0 rate 600Mbit ceil 600Mbit burst 11796375b cburst 11796375b
11796375 / 1024 / 1024 * 8 = 89.999

burst的设置值为rate的15%,

意思就是说,限速值是600mbps,在任意100ms内允许发送90mbit的报文出去,也就是该时刻的瞬时速率能达到900mbps