Method for managing traffic in a network based upon ethernet switches, vehicle, communication interface, and corresponding computer program product