Micro router with flow-based navigation mechanism and middlewares support