Working implementation of ddg_traffic_stats.