Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

如何在執行 OS 9 的 Dell Networking 交換器上設定 sFlow

Summary: 本文說明如何在執行 OS 9 的 Dell Networking 交換器上設定 sFlow

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

目標

  1. 概觀

  2. 重點提示

  3. 啟用 sFlow

  4. 驗證 sFlow 組態
     

概觀

Dell Networking Operating System (OS) 支援 sFlow 版本 5。
Dell Networking sFlow 的設計目的是讓硬體取樣率是針對每個線路卡的連接埠管道,並根據該連接埠管道中的所有連接埠來決定。
如果未在任何埠上啟用 sFlow,則會將全域採樣率下載到該埠,並用於計算埠管道的最低採樣率。此設計支持將來在該埠上配置 sFlow 的可能性。回退是根據埠管道的硬體採樣率觸發的。
默認全域採樣率為 32768。採樣率確定如下:

  • 如果介面狀態處於啟動狀態,且埠上未配置採樣率,則會根據線路速度計算預設採樣率。
  • 如果介面狀態關閉,則使用全域採樣率設置採樣率。
  • 如果全域採樣率為非預設,例如256,並且介面上未配置採樣率,則介面的採樣率為全域非預設採樣率,即256。
為避免退避,請提高全域採樣率或以所需的採樣率配置所有線卡埠,即使某些埠未配置 sFlow。
 

重點提示

  • sFlow MIB 的 Dell Networking 作業系統實作支援使用 snmpset 的 sFlow 組態。

  • 默認情況下,僅在數據埠上支援 sFlow 收集。要通過管理埠啟用 sFlow 收集,請分別在配置和 EIS 模式下使用管理出口介面選擇和應用程式流收集器命令。

  • Dell Networking 作業系統會將所有 sFlow 封包匯出至收集器。較小的採樣率可能等同於許多導出的數據包。自動應用退避機制來減少此數量。當導出的數據包速率較高且退避機制即將或即將生效時,某些採樣數據包可能會被丟棄。sFlow 封包中的 dropEvent 計數器一律為零。

  • 社區清單和本地首選項欄位不會在 sFlow 數據報的擴展閘道元素中發送。

  • 802.1P 源優先順序欄位不會在 sFlow 數據報的擴展交換機元素中發送。

  • 只有目標和目標對等體 AS 編號會封裝在延伸閘道元素的 dst-as-path 欄位中。

  • 如果採樣的數據包使用基於策略的路由 (PBR) 重定向,則 sFlow 數據報可能包含不正確的擴展閘道/路由器資訊。

  • 如果是路由數據包,擴展交換機元素中的源虛擬局域網 (VLAN) 欄位不會打包。

  • 擴展交換機元素中的目標 VLAN 欄位未打包在組播數據包中。

  • 每秒最多可以對 700 個數據包進行採樣和處理。

 

啟用 sFlow

請按照以下步驟全域啟用 sFlow
 
命令 參數
FTOS# configuration
進入組態模式。
FTOS(conf)# sflow enable
全域啟用 sFlow。
FTOS(conf)# sflow collector <IP ADDR> agent-addr <IP ADDR>
設定收集器 IP 位址 (管理 sFlow 資料的外部裝置)。設置代理IP位址(此或其他收集數據的交換設備)。
FTOS(conf)# sflow max-header-size extended
(選擇性)默認情況下,數據包的最大標頭大小為128位元組。啟用 sFlow max-header-size extended 時,將複製 256 個字節。這些位元組適用於 VxLAN、NvGRE、IPv4 和 IPv6 通道封包。
FTOS(conf)#sflow extended-switch enable
擴展的 sFlow 根據採樣數據包的類型在 sFlow 數據報中打包其他資訊。802.1Q VLAN ID 和 802.1P 優先順序資訊。
FTOS(conf)#sflow polling-interval <15-86400>
(選擇性)設置特定的輪詢間隔以與收集器相容。
FTOS(conf)#sflow sample-rate <256-8388608>

(選擇性)設置特定的採樣率以與收集器相容。(只有 2 的冪。例如 4096 8192)。


請按照以下步驟在介面級別啟用 sFlow:
 
命令 參數
FTOS# Configuration
進入組態模式。
FTOS(conf)# interface te 0/10
進入特定介面。
FTOS(conf-if-te-0/10)# sflow ingress-enable
在介面上啟用 sFlow。
FTOS(conf-if-te-0/10)#sflow max-header-size extended
(選擇性)默認情況下,數據包的最大標頭大小為128位元組。啟用 sFlow max-header-size extended 時,將複製 256 個字節。這些位元組適用於 VxLAN、NvGRE、IPv4 和 IPv6 通道封包。
FTOS(conf-if-te-0/10)#sflow polling-interval <15-86400>
(選擇性)設置特定的輪詢間隔以與收集器相容。
FTOS(conf-if-te-0/10)#sflow sample-rate <256-8388608>
(選擇性)設置特定的採樣率以與收集器相容。(只有 2 的冪,例如 4096 8192)
 

驗證 sFlow 組態

驗證全域組態詳細資訊:
 
FTOS# show sflow
sFlow services are enabled
Global default sampling rate: 32768
Global default counter polling interval: 20
1 collectors configured
Collector IP addr: 133.33.33.53, Agent IP addr: 133.33.33.116, UDP port: 6343
77 UDP packets exported
0 UDP packets dropped
165 sFlow samples collected
69 sFlow samples dropped due to sub-sampling
 
驗證介面 sFlow 詳細資料:
 
FTOS# show sflow interface tengigabitethernet 1/1
Te 1/1 sFlow type                             :Ingress
Configured sampling rate      :16384
Actual sampling rate              :16384
Counter polling interval          :20
Extended max header size    :128
Samples rcvd from h/w          :0
 
FTOS# show running-config interface tengigabitethernet 1/16
!interface TenGigabitEthernet 1/16
no ip address
switchport
sflow ingress-enable
sflow sample-rate 8192
no shutdown

Article Properties


Affected Product

Force10 MXL Blade, PowerSwitch S4810P, PowerSwitch S5000, Force10 S55T, Force10 S60-44T, PowerSwitch S6000, Force10 Z9000, Dell Networking Z9500

Last Published Date

11 Jun 2024

Version

5

Article Type

How To