-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
58 lines (33 loc) · 2.55 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Hi,
The folder contains two files : ktjosh_ping.py , ktjosh_traceroute.py
-------------------------------------------------------------------------------------------------------------------
===================================================================================================================
** Note 1: The files will not run on unix machines (RIT CS machines) as it needs sudo previliges
It will run on a windows machine.
** Note 2: for some machines to run ktjosh_traceroute.py you will need to turn off the windows firewall as
it may or may not allow the program to listen to packets sent by intermediate routers.
** Note 3: The program needs Python 3.4 or higher
==================================================================================================================
------------------------------------------------------------------------------------------------------------------
'ktjosh_ping.py' file sends icmp echo request to check the host reachability.
To run the file you will have to type the command ' Python ktjosh_ping.py host_name '
e.g. 'Python ktjosh_ping.py google.com' OR 'Python3 ktjosh_ping.py google.com'
It has differnt options
-c count : Stop after sending (and receiving) count ECHO_RESPONSE packets.
-i wait : Wait wait seconds between sending each packet.
-s packetsize : Specify the number of data bytes to be sent.
-t timeout : Specify a timeout, in seconds, before ping exits regardless of how many packets have been received.
>>> To run the Ping program with options
Type : 'Python Python ktjosh_ping.py [-c count] [-i wait_time] [-s packetsize] [ -t timeout_value] host_name'
-------------------------------------------------------------------------------------------------------------------
'ktjosh_traceroute.py' file prints all the intermediate nodes the packet goes through to reach destination host.
To run the file you will need to type the command 'Python ktjosh_traceroute.py host_name'
e.g. 'Python ktjosh_traceroute.py google.com' OR 'python3 ktjosh_traceroute.py google.com'
IT has differnt options
-n :Print hop addresses numerically rather than symbolically and numerically.
-q nqueries :Set the number of probes per 'ttl' to nqueries.
-S :Print a summary of how many probes were not answered for each hop.
>>> To run the Ping program with options
Type : 'Python ktjosh_traceroute.py [-n] [-q probes_count] [-S] host_name'
-------------------------------------------------------------------------------------------------------------------
Thank you.