Changes to PCBPORTHASH wrt TCP, review needed

Bruce M Simpson bms at
Tue Oct 28 11:32:11 PST 2003

On Mon, Oct 27, 2003 at 02:16:13AM -0600, Mike Silbersack wrote:
> One easy way to test this patch is to install http_load, set your
> ephemeral port range to something in the range of 30, and have it start
> testing a host.  It will quickly create TIME_WAIT sockets filling all
> ephemeral ports.  Without this patch, you will be unable to create
> outgoing connections; with this patch, other outgoing connections will be
> fine.

I can confirm I can replicate this behaviour with 5.1-CURRENT and 5.1-RELEASE
with http_load.

We discussed on IRC that this problem of ephemeral port hash mapping may also
affect udp PCBs, and that it may be having undesirable effects with multiple
concurrent media streams, as RTP/RTCP is a heavy udp socket consumer in a
large installation, and has specific requirements for binding consecutive
odd/even port pairs (more details in RFC 3550 for those who care).

I will test the patch shortly. I have looked over it and can't find any
immediate problems with it, but further digestion on my part is required.


More information about the freebsd-net mailing list