Flow collection and analysis