[Top] [All Lists]

Re: [RFC] tcp ephemeral port selection

To: Stephen Hemminger <shemminger@xxxxxxxx>
Subject: Re: [RFC] tcp ephemeral port selection
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Mon, 25 Oct 2004 16:34:18 -0700
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20041011171422.65f88472@xxxxxxxxxxxxxxxxx>
References: <20041011171422.65f88472@xxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Mon, 11 Oct 2004 17:14:22 -0700
Stephen Hemminger <shemminger@xxxxxxxx> wrote:

> Here is a test patch which changes how TCP ephemeral ports are
> selected from a simple roving pointer to:
>       * net_random() as starting point when doing pure local
>         searchs.
>       * use md hash (like isn) when doing connection based
>         assignments with a rover
> This is *not* for 2.6.9 but wanted to get it out for comment for
> future versions.

I'm not totally against this kind of idea at all.

I hope we don't run into situations with the new
code where we don't actually check the whole port
range due to some logic error or similar.

Another thing we need to eventually do is allow
allocation into the local port space more completely.
Even if every local port has one user, we could still
allocate some ports if the daddr/dport is known and
is different from the existing user.

<Prev in Thread] Current Thread [Next in Thread>