Infinite cacheflow: a rule-caching solution for software defined networks