Write Traceroute Program Idea Make Iterated Ping Requests Increasing Ttl Values Ttl Icmp P Q37120047

Write your own traceroute program. The idea is to make iteratedping requests with increasing TTL values.  If the TTL ofyour ICMP packet is equal to 1, Intermediate routers between youand the final destination will reply to your ping message withtheir address. If the TTL is larger than 1, they will decease theTTL by one, and then forward your ICMP packet to next hop. Yourprogram should display the address and RTT for each hop in theroute.

Given Python code is:

from socket import *import osimport sysimport structimport timeimport selectimport binascii ICMP_ECHO_REQUEST = 8# Function checksum calculates and returns the checksum of the input.def

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.