Commit fa4207de authored by Mohammad Imran Syed's avatar Mohammad Imran Syed
Browse files

Update README.md

parent 03eafd5e
......@@ -23,21 +23,24 @@ tshark -r pcap_input_file -Y '!_ws.malformed and wlan_radio.channel==1' -T field
**It is, however, essential to clearly define which data one can sniff depending on the location of the measurement campaign to preserve the privacy of the users. It is also necessary to carry out hashing of MAC addresses to preserve the privacy.**
**Steps involved in synchronization:**
The beacons are the closest representatives of real-time clocks. We use these frames as a base for the synchronization of traces. Two traces are used as input, one as a reference trace and the second trace is the one which has to be synchronized. The first step is to independently extract the beacons that are common in both traces. Hence, the coverage areas of the sniffers capturing these traces should overlap to perform this step. The common frames are referred to as reference frames. In the next step, the timestamps of reference frames are synchronized using linear regression over a sliding window of 3 frames. The synchronized reference frames are then used to synchronize the complete trace. The tool provides an additional option of concatenating or merging the synchronized traces [1].
**How to run to tool:**
It is preferable to use Python3.
Python3 pypal.py -h will also show you the information on how to operate the tool.
The tool has to positional arguments and those are the two traces:
trace1: trace to be synchronized
trace2: reference trace
There are several optional arguments but you have to tell the tool which one you want to use. You can use only one optional argument at a time. The arguments are given below:
-U : extract unique frames
-R : extract unique reference frames
-SR : synchronize unique reference frames
-S : synchronize traces
-C : concatenate traces (and keep the duplicate frames)
-M : merge the traces and remove the duplicate frames within a time difference of 106µs.
- -U : extract unique frames
- -R : extract unique reference frames
- -SR : synchronize unique reference frames
- -S : synchronize traces
- -C : concatenate traces (and keep the duplicate frames)
- -M : merge the traces and remove the duplicate frames within a time difference of 106µs.
The time synchronization error (the difference between two timestamps of different sniffers for the same frame) has to be less than half the minimum gap between two valid IEEE 802.11 frames. In the IEEE 802.11b protocol, the minimum gap can be calculated as the 192 microsecond preamble delay plus 10 microsecond SIFS (Short Inter-Frame Space) plus 10 microsecond minimum transmission time for a MAC frame, to be a total of 212 microseconds [2].
So the precision is 212/2 = 106µs
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment