-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlgorithm.txt
More file actions
52 lines (39 loc) · 1.9 KB
/
Copy pathAlgorithm.txt
File metadata and controls
52 lines (39 loc) · 1.9 KB
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
ALGORITHM
1) Read the Trace File Name and display the contents.
2) Available choices are -
i) Search via IP Address
ii) Search via Domain Name
iii) Input Output Graph Plot
iv) Stastics of the Data in the Captured Trace File and Exit
3) Read choice
4) Choice 1:
i) Enter the corresponding trace filename
ii) Display the list of all IP Addresses available as source corresponding to the captured file
iii) Read the IP Address to display its corresponding details
iv) If the IP Address entered does not match the available IP Address then read the IP Address again
v) In order to extract the details , we feed the IP Address to awk (line by line interpreter)
vi) The details corresponding to a particular IP Address include :
-Time at which the packet was sent or received
-Destination IP Address
-Protocols
-Length of Packet
Choice 2:
i) Enter the corresponding trace filename
ii) Display the list of domain names(Source or Destination) corresponding to the captured file
iii) Read the domain name(Source or Destination) to display its corresponding details
iv) If the domain name(Source or Destination) entered does not match the available source domain names then read the domain name again
v) In order to extract the details , we feed the Domain Name(Source or Destination) to awk (line by line interpreter)
vi) The details corresponding to a particular IP Address include :
-Time at which the packet was sent or received
-Destination IP Address/Source IP Address
-Protocols
-Length of Packet
-Information
vii) The number of packets corresponding to source domain names or destination domain names are displayed
Choice 3:
i) Read the filename with the Graph
ii) Display the Input Output Graph depicting the number of packets sent or received per second
Choice 4:
i) Enter the filename
ii) Display the statistics of data in trace file
iii) Exit