BFD & IP SLA Timer Calculator
/* Page-specific */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: bold; }
.badge-fast { background: #d4edda; color: #155724; }
.badge-slow { background: #fff3cd; color: #856404; }
.input-row { display: flex; gap: 15px; flex-wrap: wrap; }
.input-row .input-group { flex: 1; min-width: 160px; }
/* Labels/inputs inside .section-content need dark text (not on purple bg) */
.section-content .input-group label { color: #555; }
.section-content .input-group input,
.section-content .input-group select {
border: 1px solid #ddd; background: white;
}
.section-content .input-group input:focus,
.section-content .input-group select:focus {
border-color: #4CAF50; box-shadow: 0 0 0 3px rgba(76,175,80,0.1); background: white;
}
/* JS-injected classes */
.result-box { background: #f8fff8; border-left: 4px solid #4CAF50; padding: 15px; margin-top: 12px; border-radius: 6px; font-size: 14px; line-height: 1.8; }
.result-highlight { font-size: 1.4em; font-weight: bold; color: #4CAF50; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 15px; }
.compare-card { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; border-left: 4px solid #4CAF50; }
.compare-card h4 { margin-top: 0; color: #2d6a2d; }
@media (max-width: 600px) { .compare-grid { grid-template-columns: 1fr; } }
BFD部分
IP SLA 部分
比较部分
静态预设表
BFD 和 IP SLA 计时器计算器
计算 BFD 会话和 IP SLA 探测的故障检测时间。比较亚秒级与秒级故障转移选项。
BFD检测时间
检测时间 = max(desired_min_tx, required_min_rx) × detector_mult
IP SLA 故障转移计时器
BFD 与 IP SLA 比较
常用 BFD 定时器预设
| 轮廓 | 最小发送/接收(毫秒) | 乘数 | 检测时间 | 使用案例 |
|---|---|---|---|---|
| 挑衅的 | 50 | 3 | 150毫秒 | 数据中心、同子网对等点 |
| 均衡 | 300 | 3 | 900毫秒 | 大多数 WAN 链接 |
| 保守的 | 500 | 3 | 1500毫秒 | 高延迟 WAN、卫星 |
| 慢(无 BFD) | 不适用 | 30–180 秒 | BGP 抑制计时器回退 | |