sFlow Sample Packet Ingress and Egress Interface
This section provides information on sFlow Sample Packet Ingress and Egress Interface Indexes. Both ingress and egress interface indexes for a sampled packet are included in sFlow, resulting in more accurate data and enhanced tracing of packet paths. Input and output port information in the samples generated by sFlow feature are both included and it impacts only the flow sample, and not the counter sample.
The packets flowing via VLAN, MPLS, or VxLAN report the physical member interfaces.
Output Interface Reporting during Ingress Flow Sampling
Figure 56. Output port report during ingress flow sampling
Table 51. Ingress Sampling Direction and sFlow Output Mapping
| Topology | Sampling Direction | Packet Destination | sFlow Output ifindex |
|---|---|---|---|
| VLAN | Ingress | L2 interface | L2 interface index |
| L3 interface | Ingress | L3 interface | L3 interface index |
| Dynamic/Static LAG | Ingress | PO/SA interface | PO/SA interface index |
| VPNv4 (l3VPN) | Ingress | Tunnel Interface | L3 Interface Index |
| Sub-interface | Ingress | Sub-interface | Parent L3 interface ifindex |
| VxLAN | Ingress | Tunnel Interface | L3 interface index |
Input Interface Reporting during Egress Flow Sampling
Figure 57. Input port report during egress flow sampling
Table 52. Egress Sampling Direction and sFlow Input Mapping
| Topology | Sampling Direction | Packet Destination | sFlow Output ifindex |
|---|---|---|---|
| VLAN | Egress | L2 interface | L2 interface index |
| L3 interface | Egress | L3 interface | L3 interface index |
| Dynamic/Static LAG | Egress | PO/SA interface | PO/SA interface index |
| VPNv4 (l3VPN) | Egress | Tunnel Interface | L3 interface Index |
| Sub-interface | Egress | Sub-interface | Parent L3 interface ifindex |
| VxLAN | Egress | Tunnel Interface | L3 interface index |