21.1.4 sFlow statistical operation of the Switch
- <Structure of this section>
(1) sFlow Statistics-Collected Ports
The Switch samples sFlow stats for all Ethernet interfaces except the management port and stack port (when stacked). In addition, you can select either reception (ingress) or transmission (egress) as the sampling attribute on a per-device basis.
(2) Target packet of the flow sample
The Switch sets packets forwarded by hardware as flow samples.
The following packets are not treated as flow samples for both reception and transmission:
-
Software forwarding packet
-
Spontaneous packet
-
Own packet
Depending on the sampling attribute, the following packets are not treated as sampling targets:
- Packets that are not treated as sampling targets in the reception specification
-
-
Packets discarded by the Ethernet interface
-
- Packets that are not treated as sampling targets in the transmission specification
-
-
Packets sent from port mirroring and policy-based mirroring mirror ports
-
(3) Discarded Packet Flow Sample Operation
Even if packets are discarded by the Switch, the flow sample of the Switch may send sFlow packets as if they were forwarded to collectors. Check and operate the conditions under which packets are discarded by other functions. The following table shows the flow sample operation for discarded packets by other functions.
Ability to discard |
Receive order |
Specify transmission |
|
---|---|---|---|
Switch with the same incoming and outgoing ports |
Switches in a stacked configuration with different incoming and outgoing ports |
||
Filter (receiver) |
Be collected |
Do not collect |
Do not collect |
QoS (bandwidth monitoring) |
Be collected |
Do not collect |
Do not collect |
Filter (sender) |
Be collected |
Be collected |
Be collected |
QoS (discard control) |
Be collected |
Be collected |
Be collected |
Policy-based Routing |
Be collected |
Do not collect |
Do not collect |
Storm Control |
Do not collect |
Do not collect |
Do not collect |
Inter-port relay blocking |
Be collected |
Do not collect |
Do not collect |
Layer 2 function*1 |
Be collected |
Do not collect |
Do not collect |
Layer 3 function*2 |
Be collected |
Do not collect |
Do not collect |
(4) Notes on the sampling position of the flow sample contents
As a general rule, the flow sample of the Switch collects the contents of sFlow packets when they arrive at the Switch, regardless of whether they are sampled in the receive mode or transmit mode. (The contents of packets are not reflected in sFlow packets even if they are converted in the Switch.)
The same applies when a packet discarded by the Switch is subject to flow sample processing. However, if packets that are forwarded (sent from a port on a switch that is different from the receiving port) are sampled in a stacked configuration across multiple member switches, the contents of the packets sent from the Switch may be collected depending on the forwarding conditions and other functions used. The following table describes the flow sampling by relay pattern.
Sampling attribute |
Stand-alone configuration |
Stack configuration |
|
---|---|---|---|
Packets forwarded in the same switch |
Packets forwarded across multiple member switches |
||
Receive order |
Contents of reception |
Contents of reception |
Contents of reception |
Specify transmission |
Contents of reception |
Contents of reception |
Contents at the time of reception or transmission |
(5) Notes on flow sample contents when using other functions together
The flow sample information collected by the Switch varies depending on the functionality used by the sampling target port and the forwarding conditions for sampling packets. The following table shows the flow sample collection contents when the other functions are used and the relay conditions are used.
Combination function and relay condition |
Receive order |
Specify transmission |
|
---|---|---|---|
Switch with the same incoming and outgoing ports |
Switches in a stacked configuration with different incoming and outgoing ports |
||
VLAN tunneling (tunneling port reception) |
Information before adding Tag for tunneling |
Information after adding Tag for tunneling*1 |
|
VLAN tunneling (tunneling port transmission) |
Information before deleting Tag for tunneling*2 |
||
VLAN Tag transformation (Tag Translation Port Receive) |
Original Tag data |
Converted Tag info*3 |
|
QoS markers (DSCP rewrite) |
DSCP value before rewriting*4 |
DSCP after rewriting*4 |
|
QoS markers (User priority rewrite) |
User priority before rewriting*5 |
User priority after rewriting*5 |
|
Layer 3 unicast forwarding |
Information on reception |
Information during transmission*6 |
|
Policy-based Routing |
Information when receiving*7 |
Information during transmission*6 |
(6) Packets subject to counter sample collection
The counter sample on the Switch counts all packets sent and received on the port regardless of whether they are sent or received.