All of lore.kernel.org
 help / color / mirror / Atom feed
* Wireguard multihomed roaming performance
@ 2017-06-23 17:04 Tiago Condeixa
  2017-06-23 17:28 ` Jason A. Donenfeld
  0 siblings, 1 reply; 8+ messages in thread
From: Tiago Condeixa @ 2017-06-23 17:04 UTC (permalink / raw)
  To: wireguard

Hi Janson,

I have using wireguard in a multihomed scenarios with a board equipped =
with WiFi and LTE.=20
In order to change the interface to be used I just change the route to =
the IP address of the wireguard server, but sometimes it take some time =
to update the endpoint in the server.=20
I was doing a analysis and the problem is not related with wireguard =
server but with the client. Sometimes the client takes a lot of seconds =
to change the IP source address of the wireguard tunnel and it has a =
great impact on handover time.=20
How are you adjusting the IP source address of the tunnel? do you have a =
cache that is periodically update or based on timeout? I have been =
thinking in adding a method for wg(8) that can allow me to change the IP =
source address of the tunnel when I want to roam between =
technologies/interfaces or do you have any better idea?

thank you,
Tiago=

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

* Re: Wireguard multihomed roaming performance
  2017-06-23 17:04 Wireguard multihomed roaming performance Tiago Condeixa
@ 2017-06-23 17:28 ` Jason A. Donenfeld
  2017-06-23 17:47   ` Tiago Condeixa
  0 siblings, 1 reply; 8+ messages in thread
From: Jason A. Donenfeld @ 2017-06-23 17:28 UTC (permalink / raw)
  To: Tiago Condeixa; +Cc: WireGuard mailing list

Hello Tiago,

WireGuard should do roaming instantly. There should be no delay at
all. If you're experiencing delay, this is a bug that needs
investigating...

What kinds of timeouts are you seeing with the source address change?

Regards,
Jason

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

* Re: Wireguard multihomed roaming performance
  2017-06-23 17:28 ` Jason A. Donenfeld
@ 2017-06-23 17:47   ` Tiago Condeixa
  2017-06-23 18:46     ` Jason A. Donenfeld
  0 siblings, 1 reply; 8+ messages in thread
From: Tiago Condeixa @ 2017-06-23 17:47 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

When the IP address source changes it is really fast, but when it doesn't it=
 takes 20 to 40 seconds.

Regards,
Tiago

> On 23 Jun 2017, at 18:28, Jason A. Donenfeld <Jason@zx2c4.com> wrote:
>=20
> Hello Tiago,
>=20
> WireGuard should do roaming instantly. There should be no delay at
> all. If you're experiencing delay, this is a bug that needs
> investigating...
>=20
> What kinds of timeouts are you seeing with the source address change?
>=20
> Regards,
> Jason

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

* Re: Wireguard multihomed roaming performance
  2017-06-23 17:47   ` Tiago Condeixa
@ 2017-06-23 18:46     ` Jason A. Donenfeld
  2017-06-23 18:57       ` Jason A. Donenfeld
  0 siblings, 1 reply; 8+ messages in thread
From: Jason A. Donenfeld @ 2017-06-23 18:46 UTC (permalink / raw)
  To: Tiago Condeixa; +Cc: WireGuard mailing list

I think I've reproduced your problem and fixed it. Does this work for you?

https://git.zx2c4.com/WireGuard/patch/?id=6f6f5b19284fa57c0ec9bf1e2563b963dd82d48c

Alternatively, just try out the latest git master.

Jason

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

* Re: Wireguard multihomed roaming performance
  2017-06-23 18:46     ` Jason A. Donenfeld
@ 2017-06-23 18:57       ` Jason A. Donenfeld
  2017-06-23 19:42         ` Jason A. Donenfeld
  0 siblings, 1 reply; 8+ messages in thread
From: Jason A. Donenfeld @ 2017-06-23 18:57 UTC (permalink / raw)
  To: Tiago Condeixa; +Cc: WireGuard mailing list

Nevermind, please ignore, still debugging.

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

* Re: Wireguard multihomed roaming performance
  2017-06-23 18:57       ` Jason A. Donenfeld
@ 2017-06-23 19:42         ` Jason A. Donenfeld
  2017-06-23 20:43           ` Tiago Condeixa
  2017-06-26 12:15           ` Tiago Condeixa
  0 siblings, 2 replies; 8+ messages in thread
From: Jason A. Donenfeld @ 2017-06-23 19:42 UTC (permalink / raw)
  To: Tiago Condeixa; +Cc: WireGuard mailing list

Hi Tiago,

Okay, I've fixed it, and the fix is in the git master branch.

I've made a small video demonstrating the fix:
https://data.zx2c4.com/fixed-route-change-wireguard.gif

Can you try things out and let me know how it works?

Thanks,
Jason

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

* Re: Wireguard multihomed roaming performance
  2017-06-23 19:42         ` Jason A. Donenfeld
@ 2017-06-23 20:43           ` Tiago Condeixa
  2017-06-26 12:15           ` Tiago Condeixa
  1 sibling, 0 replies; 8+ messages in thread
From: Tiago Condeixa @ 2017-06-23 20:43 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

Thank you Jason. I will try it on Monday and I will come to you with the res=
ults.

Regards,
Tiago

> On 23 Jun 2017, at 20:42, Jason A. Donenfeld <Jason@zx2c4.com> wrote:
>=20
> Hi Tiago,
>=20
> Okay, I've fixed it, and the fix is in the git master branch.
>=20
> I've made a small video demonstrating the fix:
> https://data.zx2c4.com/fixed-route-change-wireguard.gif
>=20
> Can you try things out and let me know how it works?
>=20
> Thanks,
> Jason

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

* Re: Wireguard multihomed roaming performance
  2017-06-23 19:42         ` Jason A. Donenfeld
  2017-06-23 20:43           ` Tiago Condeixa
@ 2017-06-26 12:15           ` Tiago Condeixa
  1 sibling, 0 replies; 8+ messages in thread
From: Tiago Condeixa @ 2017-06-26 12:15 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

Hi Jason,

I already tried the new version from master and it=E2=80=99s working =
perfect with roaming right now, great job.

Regards,
Tiago


> On 23 Jun 2017, at 20:42, Jason A. Donenfeld <Jason@zx2c4.com> wrote:
>=20
> Hi Tiago,
>=20
> Okay, I've fixed it, and the fix is in the git master branch.
>=20
> I've made a small video demonstrating the fix:
> https://data.zx2c4.com/fixed-route-change-wireguard.gif
>=20
> Can you try things out and let me know how it works?
>=20
> Thanks,
> Jason

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

end of thread, other threads:[~2017-06-26 11:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-23 17:04 Wireguard multihomed roaming performance Tiago Condeixa
2017-06-23 17:28 ` Jason A. Donenfeld
2017-06-23 17:47   ` Tiago Condeixa
2017-06-23 18:46     ` Jason A. Donenfeld
2017-06-23 18:57       ` Jason A. Donenfeld
2017-06-23 19:42         ` Jason A. Donenfeld
2017-06-23 20:43           ` Tiago Condeixa
2017-06-26 12:15           ` Tiago Condeixa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.