linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [PATCH] mac80211: mesh - always do every discovery retry
@ 2015-06-25  1:41 Yeoh Chun-Yeow
  2015-06-25 19:08 ` Jesse Jones
       [not found] ` <4bd697c41f2bb66593c849246bde7b00@mail.gmail.com>
  0 siblings, 2 replies; 9+ messages in thread
From: Yeoh Chun-Yeow @ 2015-06-25  1:41 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org

> Instead of stopping path discovery when a path is found continue
> attempting to find paths until we hit the dot11MeshHWMPmaxPREQretries
> limit.

Let think about that if you have more nodes, you will probably flood
the networks with more mgmt frame than previous implementation. It
also increases the latency for data to be sent.

> This is important because path messages are not reliable and it is
> relatively common to have a short bad path to the destination along with a
> longer but better path. With the original code rather often a path message
> along the long path would be lost so we would stick with the bad path.
> With this change we have a greater chance to get messages over the longer
> path allowing us to select the long path if it's better.

Try to take a look on the dot11MeshHWMPpreqMinInterval
(mesh_hwmp_preq_min_interval) and  (mesh_hwmp_active_path_timeout). I
think that you can probably have more aggressive path selection
interval by modifying these two values.

I don't think that flooding PREQ for resolved path not necessary a
good case for all. Thanks

----
Chun-Yeow

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH] mac80211: mesh - always do every discovery retry
@ 2015-06-24 23:27 Alexis Green
  0 siblings, 0 replies; 9+ messages in thread
From: Alexis Green @ 2015-06-24 23:27 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, Jesse Jones

From: Jesse Jones <jjones@cococorp.com>

Instead of stopping path discovery when a path is found continue
attempting to find paths until we hit the dot11MeshHWMPmaxPREQretries
limit.

This is important because path messages are not reliable and it is
relatively common to have a short bad path to the destination along with a
longer but better path. With the original code rather often a path message
along the long path would be lost so we would stick with the bad path.
With this change we have a greater chance to get messages over the longer
path allowing us to select the long path if it's better.

The standard doesn't seem to address this issue. All it says (13.10.8.5)
is that discovery should be limited to dot11MeshHWMPmaxPREQretries.

Signed-off-by: Alexis Green <agreen@cococorp.com>

---

diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c
index d80e0a4..3eec501 100644
--- a/net/mac80211/mesh_hwmp.c
+++ b/net/mac80211/mesh_hwmp.c
@@ -1179,16 +1179,20 @@ void mesh_path_timer(unsigned long data)
 		return;
 
 	spin_lock_bh(&mpath->state_lock);
-	if (mpath->flags & MESH_PATH_RESOLVED ||
-			(!(mpath->flags & MESH_PATH_RESOLVING))) {
-		mpath->flags &= ~(MESH_PATH_RESOLVING | MESH_PATH_RESOLVED);
-		spin_unlock_bh(&mpath->state_lock);
-	} else if (mpath->discovery_retries < max_preq_retries(sdata)) {
+
+	if (mpath->discovery_retries < max_preq_retries(sdata)) {
 		++mpath->discovery_retries;
 		mpath->discovery_timeout *= 2;
 		mpath->flags &= ~MESH_PATH_REQ_QUEUED;
 		spin_unlock_bh(&mpath->state_lock);
 		mesh_queue_preq(mpath, 0);
+
+	} else if (
+		mpath->flags & MESH_PATH_RESOLVED ||
+			(!(mpath->flags & MESH_PATH_RESOLVING))) {
+		mpath->flags &= ~(MESH_PATH_RESOLVING | MESH_PATH_RESOLVED);
+		spin_unlock_bh(&mpath->state_lock);
+
 	} else {
 		mpath->flags &= ~(MESH_PATH_RESOLVING |
 				  MESH_PATH_RESOLVED |

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-09-08 17:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-25  1:41 [PATCH] mac80211: mesh - always do every discovery retry Yeoh Chun-Yeow
2015-06-25 19:08 ` Jesse Jones
     [not found] ` <4bd697c41f2bb66593c849246bde7b00@mail.gmail.com>
2015-06-26  1:23   ` Yeoh Chun-Yeow
2015-06-26 19:01     ` Jesse Jones
2015-06-26 19:37       ` Yeoh Chun-Yeow
2015-06-26 20:05         ` Jesse Jones
2015-06-28 17:34           ` Yeoh Chun-Yeow
2015-09-08 17:14           ` Bob Copeland
  -- strict thread matches above, loose matches on Subject: below --
2015-06-24 23:27 Alexis Green

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).