From: Bob Copeland <me@bobcopeland.com>
To: Masashi Honma <masashi.honma@gmail.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
Thomas Pedersen <thomas@eero.com>,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: Remove invalid flag operations in mesh TSF synchronization
Date: Wed, 7 Dec 2016 08:33:15 -0500 [thread overview]
Message-ID: <20161207133315.GD7524@localhost> (raw)
In-Reply-To: <9197b711-3d48-071a-57d8-53e2a11c26de@gmail.com>
On Wed, Dec 07, 2016 at 09:55:41PM +0900, Masashi Honma wrote:
> >It's called mesh_sync_offset_adjust_tbtt() which matches more closely
> >"TBTT adjustment" than "neighbor offset synchronization"?
>
> I think so. Because there is not any code creating "TBTT Adjustment Request
> frame" even though the frame is required by "TBTT adjustment".
This mesh_sync_offset_adjust_tbtt is definitely doing offset
synchronization, so probably "tbtt" should be renamed "tsf" here.
> >The code
> >looks more like offset synchronization though. Perhaps there's some
> >confusing and it's kinda doing both?
>
> In theory, updating the flag with 1) looks not correct because it is not
> clearly defined in spec.
>
> In practice, I could consider extending the meaning of the flag over the
> spec to use it to avoid referring the updating TSF value by peer as Thomas
> said. I have took the statistics how many TSF drift
> (ifmsh->sync_offset_clockdrift_max) happens. The attached file shows the
> stats. The horizontal axis shows TSF drift time(usec) and vertical axis
> shows how many time the drift occurred. The graph shows almost drifts are
> under 20usec. In contrast, 2) could causes more than 1000usec drift. So 1)
> looks not so large enough to protect with the flag.
Yes, offset synchronization is (given decent clocks) supposed to be only
for small tweaks. We will do it up to .8 ms drift though -- above .8 ms, we
just reset drift to zero and adopt the new timing offset. You can see this
kind of large "drift" by restarting a station.
Actually, looking at the code now it doesn't make a lot of sense to set
this flag for offset sync because TOFFSET_KNOWN flag is completely cleared
whenever that is set, so we have to be forgetting the current t_offset all
the time?
--
Bob Copeland %% http://bobcopeland.com/
next prev parent reply other threads:[~2016-12-07 13:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-30 22:44 [PATCH] mac80211: Remove invalid flag operations in mesh TSF synchronization Masashi Honma
2016-12-02 20:07 ` Thomas Pedersen
2016-12-02 21:13 ` Bob Copeland
2016-12-03 6:59 ` Masashi Honma
2016-12-05 17:59 ` Thomas Pedersen
2016-12-07 9:24 ` Johannes Berg
2016-12-07 12:55 ` Masashi Honma
2016-12-07 13:33 ` Bob Copeland [this message]
2016-12-08 1:16 ` Masashi Honma
2016-12-08 1:15 ` [PATCH v2 1/2] " Masashi Honma
2016-12-08 1:15 ` [PATCH v2 2/2] mac80211: Use appropriate name for functions and messages Masashi Honma
2016-12-13 15:23 ` [PATCH v2 1/2] mac80211: Remove invalid flag operations in mesh TSF synchronization Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161207133315.GD7524@localhost \
--to=me@bobcopeland.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=masashi.honma@gmail.com \
--cc=thomas@eero.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).