* About the TSFT field
@ 2014-08-13 9:52 Roberto Riggio
2014-08-13 10:05 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Roberto Riggio @ 2014-08-13 9:52 UTC (permalink / raw)
To: linux-wireless
Hi,
I'm planning to use the TSFT field present in the radiotap
header in order to reconstruct a timeline of packet
reception at different AP.
As far as I've understood the TSFT is generated from the MAC,
however I do not know to which instant the TSFT is relative,
the first bit of the MAC payload, the beginning of the PLCP,
etc.
Also I do not know from which reference the TSFT is generated,
I mean two AP synchronized using NTP will have consistent
TSFT, which kind of error should I expect?
R.
--
--------------------------------------------------------
Roberto Riggio, Ph.D.
CREATE-NET
Future Networks (FuN)
Senior Researcher
Via alla Cascata 56/D - 38123 Povo Trento (Italy)
e-mail: roberto.riggio@create-net.org
Tel: (+39) 0461 408400 - interno/extension 1708
Fax: (+39) 0461 421157
http://www.create-net.org/~rriggio/
--------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited according to
the Italian Law 196/2003 of the Legislature. If you received this in
error, please contact the sender and delete the material from any
computer.
Le informazioni contenute in questo messaggio di posta elettronica e nei
file allegati sono da considerarsi strettamente riservate. Il loro
utilizzo e' consentito esclusivamente al destinatario del messaggio, per
le finalita' indicate nel messaggio stesso. Qualora riceveste questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla cancellazione del
messaggio stesso dal Vostro sistema. Trattenere il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo,
od utilizzarlo per finalita' diverse, costituisce comportamento
contrario ai principi dettati dal D. Lgs. 196/2003.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: About the TSFT field
2014-08-13 9:52 About the TSFT field Roberto Riggio
@ 2014-08-13 10:05 ` Johannes Berg
2014-08-13 17:33 ` Roberto Riggio
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2014-08-13 10:05 UTC (permalink / raw)
To: Roberto Riggio; +Cc: linux-wireless
On Wed, 2014-08-13 at 11:52 +0200, Roberto Riggio wrote:
> As far as I've understood the TSFT is generated from the MAC,
> however I do not know to which instant the TSFT is relative,
> the first bit of the MAC payload, the beginning of the PLCP,
> etc.
It's documented in the radiotap spec, but not all drivers are really
doing the right thing here.
> Also I do not know from which reference the TSFT is generated,
> I mean two AP synchronized using NTP will have consistent
> TSFT, which kind of error should I expect?
It's purely local time - no synchronisation happens.
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: About the TSFT field
2014-08-13 10:05 ` Johannes Berg
@ 2014-08-13 17:33 ` Roberto Riggio
2014-08-13 18:29 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Roberto Riggio @ 2014-08-13 17:33 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
Inline...
On 13/08/14 12:05, Johannes Berg wrote:
> It's documented in the radiotap spec, but not all drivers are really
> doing the right thing here.
Found it. Thanks.
>> Also I do not know from which reference the TSFT is generated,
>> I mean two AP synchronized using NTP will have consistent
>> TSFT, which kind of error should I expect?
>
> It's purely local time - no synchronisation happens.
Meaning that is the system time. right? What if I create an adhoc
interface together with the AP? According to the standard devices
in IBSS shall synch with each other using the tsf info in the beacon
frames. Is this behavior implemented by mac80211?
Thanks
R.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: About the TSFT field
2014-08-13 17:33 ` Roberto Riggio
@ 2014-08-13 18:29 ` Johannes Berg
2014-08-14 12:52 ` Roberto Riggio
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2014-08-13 18:29 UTC (permalink / raw)
To: Roberto Riggio; +Cc: linux-wireless
On Wed, 2014-08-13 at 19:33 +0200, Roberto Riggio wrote:
> > It's purely local time - no synchronisation happens.
>
> Meaning that is the system time. right?
No, it's wifi time. TSF in TUs. Whatever that means. It may or may not
even have a fixed reference, and it's not even guaranteed to sync with
the network.
> What if I create an adhoc
> interface together with the AP? According to the standard devices
> in IBSS shall synch with each other using the tsf info in the beacon
> frames. Is this behavior implemented by mac80211?
That behaviour is implemented, but it's not guaranteed that the TSF will
be used for the radiotap timestamp field. In fact radiotap isn't really
specified to be used while operating, so it seems to me that any
free-running clock with the right frequency (TUs) would be acceptable.
In that sense, the only real use for the timestamp field (barring
external information, like knowing what your driver does) would be for
relative time inside a single capture file.
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: About the TSFT field
2014-08-13 18:29 ` Johannes Berg
@ 2014-08-14 12:52 ` Roberto Riggio
0 siblings, 0 replies; 5+ messages in thread
From: Roberto Riggio @ 2014-08-14 12:52 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
On 13/08/14 20:29, Johannes Berg wrote:
> On Wed, 2014-08-13 at 19:33 +0200, Roberto Riggio wrote:
> That behaviour is implemented, but it's not guaranteed that the TSF will
> be used for the radiotap timestamp field. In fact radiotap isn't really
> specified to be used while operating, so it seems to me that any
> free-running clock with the right frequency (TUs) would be acceptable.
Do you (or somebody else on this ML) happen to know if TSF is used for the
radiotap TS for the ath9k driver?
> In that sense, the only real use for the timestamp field (barring
> external information, like knowing what your driver does) would be for
> relative time inside a single capture file.
Like above, does anybody know if the ath9k driver synchronizes with other
devices in ad hoc mode in the network.
> johannes
r.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-08-14 12:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13 9:52 About the TSFT field Roberto Riggio
2014-08-13 10:05 ` Johannes Berg
2014-08-13 17:33 ` Roberto Riggio
2014-08-13 18:29 ` Johannes Berg
2014-08-14 12:52 ` Roberto Riggio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).