The main part of this Assignment is to create a tool that:
- Captures in real time packets drom an intenet device.
- Capture packets from an input file.
- Print some statistics about the captured packets.
- README This file.
- monitor.c The actual tool that captures packets.
- MakeFile MakeFile,everyone knows it :).
- listLib.c A library that helps the main tool keep track of its statistics.
- listLib.h
- Just run make command.
sh sudo monitor -i <Device>
sh sudo monitor -r <file_name>
When we have a TCP packet,we can tell if it is retransmitted base on its sequency number. If the seq_number of a captured TCP packet is smaller than the seq_number of the previous non-retransmitted packet,then the packet is retransmitted. However we can't tell if a UDP packet is retransmitted,because the delivery of data to the destination cannot be guaranteed in UDP. So UDP packets haven't a seq_number,because they dont need one. In this project restransmitted packets are marked only in -i mode,because in -r mode we can't tell who is the receiver and how is the sender,because we dont know the mac Adress of the pc that has captured the packets.We dont have a reference point.