Traffic prioritization depending on protocols and directions