Increasing Visibility With Perf Flow IPFIX Sampling in OVS OVN
Increasing Visibility With Perf Flow IPFIX Sampling in OVS OVN
Adrián Moreno
Nov ’22
Overview
● Quick overview of IPFIX support in OVS
● IPFIX modes: pros / cons
● Potential of per-flow IPFIX sampling: OVN to the rescue
● Application 1: drop-sampling
● Application 2: ACL sampling
IPFIX Overview
● Protocol + Information Model + Collection Architecture +
much more
○ RFCs: 7011, 7012, 5470, 5153, etc
● The Exporter sends Traffic Flow* Information to the Collector
● Flow information is interpreted according to Templates.
○ Each Template contains a set of Fields (Field ID : Field
Length), a.k.a Entities.
○ There are many standardized Fields
IPFIX Overview II
● There can be many Observation Domains within an Exporter
● There can be many Observation Points within an
Observation Domain
ID Name Size (bits)
cache_max_flows=13 other_config:enable-egress-sampling=false
sampling=400
Quick overview of
what traffic is br-int is not just a
flowing bridge
IPFIX support in OVS: Per-flow
Still have
cache
configuration
ovs-vsctl -- --id=@i create IPFIX targets=\"192.168.0.34:4739\"
cache_max_flows=13
There’s an
intermediate
table with an
ID
IPFIX support in OVS: Per-flow II
We can select
Flow references
what to
Flow_Sample_Collector_Se
sample
t id
actions=sample(probability=32767,collector_set_id=1,
obs_domain_id=123,obs_point_id=234)”
● Demo: https://www.youtube.com/watch?v=z3sWgJNRuTg
Application 2: ACL Sampling
someUUID 25 65535 2
ACL
.. .. .. someUUID
ACL Sampling vs ACL logging
ACL Logging ACL Sampling
Caching ❌ ✅
Adrián Moreno
Nov ’22