netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC - VXLAN port range facility
@ 2013-05-30 12:40 David Stevens
  2013-05-30 16:41 ` Stephen Hemminger
  0 siblings, 1 reply; 14+ messages in thread
From: David Stevens @ 2013-05-30 12:40 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Stephen,
        I think there are some issues with the port range facility in
VXLAN. Currently, it picks a random port from a wide range (nearly half 
the
port space) and uses that random value as a source port for a generated
UDP packet.
        There are no checks to see if the port is in use by something 
else.

        I can see the value of using a range of ports, but::

1) VXLAN should use its listen port by default
2) VXLAN should actually bind to any source ports it uses, because...
3) VXLAN should never use a port already exclusively in use by something 
else.

As is, VXLAN is not playing well with other UDP users because, for 
example,
it can trigger ICMP errors which will be delivered to some unwitting 
application
whose port it has hijacked.

I think a port ranges may be useful in the context of a small number (say 
10)
of ports that you are actually bound to, so then as part of multi-port 
binding
support. But then a default range of 32K-61K is too large. It then, at 
least,
has the potential to manage ICMP errors triggered by VXLAN.

I think if you want to use port ranges like a range of empheremal ports, 
it's
less useful, but at a minimum it should be a port that you can legally 
bind
to at the time it's in use. Since actually binding/unbinding for each 
packet
would probably be too expensive, I think it'd be better to:

1) use smaller ranges by default
2) actually bind to the entire range on start-up, to prevent other apps 
from using them
3) fail if any in the range is already bound
4) then, with a range of bound ports, select as currently on sends

                                                +-DLS

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

end of thread, other threads:[~2013-06-03  8:22 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30 12:40 RFC - VXLAN port range facility David Stevens
2013-05-30 16:41 ` Stephen Hemminger
2013-05-30 18:00   ` David Stevens
2013-05-31  6:09     ` Jesse Gross
2013-05-31 12:26       ` David Stevens
2013-06-01  6:39         ` Jesse Gross
2013-05-31 16:13     ` Stephen Hemminger
2013-05-31 17:08       ` David Stevens
2013-05-31 17:22         ` Stephen Hemminger
2013-05-31 18:19           ` David Stevens
2013-06-01  1:43             ` Stephen Hemminger
2013-06-01 13:28               ` David Stevens
2013-06-03  8:21               ` David Laight
2013-05-30 19:33   ` Ben Hutchings

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