| wetherbean 2005-03-31, 6:21 pm |
| Hi guys..was wondering if anyone had any clever ideas for how to start
this program...I'm having a little trouble getting started and it is
driving me nuts..any input would be great..thanks a lot
Part 1: Network Analysis Tool: Construct a network analysis tool. You
will test your tool by analyzing a few sets of packets captured during
a set of test runs. The captured packets are stored as a sequence of
records in a file with the format given below.
0 15 31
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Capture Second |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Capture Microsecond |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Header ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Data ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
.... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Capture Second (Packet 2) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Capture Microsecond (Packet 2) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Header (Packet 2) ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
....
The capture second and capture microsecond is the time that the IP
packet was captured from the network. Capture seconds are measured
since the epoch on January 1, 1970. Microseconds is the number of
microseconds within that second. This is the standard C timeval
structure configuration.
A:Display the number of IP packets arriving per second along with the
time. The output should look something like this:
Capture starts on: Fri Mar 11 05:18:37 EST 2005 and 006113 microseconds
05:18:37 IP packets: 15
05:18:38 IP packets: 28
05:18:39 IP packets: 3
.. . .
The above is an example that illustrates the time the capture started
(the capture seconds and microseconds of the first IP packet). Each
second of the capture displays the number of IP packets that were
captured within that second. In the example above, 15 were captured
within the first second, 28 in the second second, and 3 in the third
second.
|