Redesigning application and protocol management in a modular way