For electric traction, 16317/18 is hauled by a single electric locomotive from CAPE-NDLS for 3117km (This is part of a journey). For end-to-end journey by electric locomotive, the longest distance is by 12643/44 TVC-NZM Swarna Jayanti express between TVC-NZM for 3011km.
For diesel traction, the longest run by a single diesel loco is by 16733/34 Okha-RMM, running for 3192km with a single loco (this was the case earlier, could have changed).