Welcome! Log In Create A New Profile

Advanced

Re: How would nginx record client IP address under TCP Multipath?

est
January 03, 2014 03:12AM
That's very helpful info. Thanks!

So getsockname() and getpeername() returns the initial subflow, what's the
API to get other subflows?

Edit: found my answer:
https://datatracker.ietf.org/doc/rfc6897/?include_text=1 by
using setsockopt() and getsockopt()

The functions getpeername() and getsockname() SHOULD also always
return the addresses of the first subflow if the socket is used by an
MPTCP-aware application, in order to be consistent with MPTCP-unaware
applications, and, e.g., also with the Stream Control Transmission
Protocol (SCTP). Instead of getpeername() or getsockname(),
MPTCP-aware applications can use new API calls, described in
Section 5.3, in order to retrieve the full list of address pairs for
the subflows in use.


On Fri, Jan 3, 2014 at 9:43 AM, Lukas Tribus <luky-37@hotmail.com> wrote:

> Hi,
>
>
> > Since iOS7 supports TCP Multipath now, I think more and more devices
> > will start support it.
>
> Not if the servers don't support it.
>
> Apple pushed for a specific reason:
> To avoid having a broken TCP session when the IP address of the handheld
> changes, which would interrupt Apple's Siri.
>
> But TCP multipath is still not supported by linux mainline and I don't
> see efforts on linux-netdev to include it anytime soon. I understand there
> is a maintained and uptodate patchset available, but that doesn't mean
> it will be included in the kernel soon.
>
>
>
> > But TCP Multipath allows many client IPs connected to the same server,
> > suppose Nginx in this case, how would access_log record all of the IPs?
>
> The application will always see the first IP, which connected to the
> server,
> as per:
> http://lwn.net/Articles/545862/
>
>
>
>
> Regards,
>
> Lukas
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How would nginx record client IP address under TCP Multipath?

est January 02, 2014 07:50PM

RE: How would nginx record client IP address under TCP Multipath?

Lukas Tribus January 02, 2014 08:44PM

Re: How would nginx record client IP address under TCP Multipath?

est January 03, 2014 03:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready