Router – How to differentiate between UDP traceroute packet and the normal data traffic

layer4routertracerouteudp

I am a programmer and we can filter out the packets in the router to manipulate the IP or MPLS headers. My question is there any way to distinguish between UDP 1 byte traceroute data vs user traffic data? The traceroute udp packet will have different udp source and destination port number and there is no standard port for it. Is there any IP fields through which I can distinguish traceroute packet?

Best Answer

Unix tracertroute will use destenation port range 33434 - 33464, it will start for the first hop with 33434 and for each node will increase it by one till it reach 33464