Handling of trains tripId